Build a formula
Tap atoms to write a chemical formula, and the page reads it back.
The 21 elements in this site’s 160 compounds.
Writing a formula needs JavaScript. The example above is complete, and every formula on this site is listed below.
- C 6
- H 12
- O 6
Drag to rotate; pinch or Ctrl + scroll to zoom. Arrow keys rotate, + − zoom, R resets.
Formulas on this site
- CO Carbon monoxide 2 atoms
- HBr Hydrogen bromide 2 atoms
- HCl Hydrogen chloride 2 atoms
- HF Hydrogen fluoride 2 atoms
- KCl Potassium chloride 2 atoms
- KI Potassium iodide 2 atoms
- NaCl Sodium chloride 2 atoms
- ZnO Zinc oxide 2 atoms
- CaCl2 Calcium chloride 3 atoms
- CaF2 Calcium fluoride 3 atoms
- CO2 Carbon dioxide 3 atoms
- H2S Hydrogen sulfide 3 atoms
- MgCl2 Magnesium chloride 3 atoms
- N2O Nitrous oxide 3 atoms
- O3 Ozone 3 atoms
- KOH Potassium hydroxide 3 atoms
- NaOH Sodium hydroxide 3 atoms
- SO2 Sulfur dioxide 3 atoms
- H2O Water 3 atoms
- C2H2 Acetylene 4 atoms
- NH3 Ammonia 4 atoms
- CH2O Formaldehyde 4 atoms
- H2O2 Hydrogen peroxide 4 atoms
- HNO2 Nitrous acid 4 atoms
- SO3 Sulfur trioxide 4 atoms
- Al2O3 Aluminium oxide 5 atoms
- CaCO3 Calcium carbonate 5 atoms
- Ca(OH)2 Calcium hydroxide 5 atoms
- CCl4 Carbon tetrachloride 5 atoms
- CHCl3 Chloroform 5 atoms
- CCl2F2 Dichlorodifluoromethane 5 atoms
- CH2Cl2 Dichloromethane 5 atoms
- HCOOH Formic acid 5 atoms
- Fe2O3 Iron(III) oxide 5 atoms
- Mg(OH)2 Magnesium hydroxide 5 atoms
- CH4 Methane 5 atoms
- HNO3 Nitric acid 5 atoms
- KNO3 Potassium nitrate 5 atoms
- AgNO3 Silver nitrate 5 atoms
- NH4Cl Ammonium chloride 6 atoms
- BaSO4 Barium sulfate 6 atoms
- CaSO4 Calcium sulfate 6 atoms
- H2CO3 Carbonic acid 6 atoms
- CuSO4 Copper(II) sulfate 6 atoms
- C2H4 Ethylene 6 atoms
- MgSO4 Magnesium sulfate 6 atoms
- CH3OH Methanol 6 atoms
- KMnO4 Potassium permanganate 6 atoms
- NaHCO3 Sodium bicarbonate 6 atoms
- Na2CO3 Sodium carbonate 6 atoms
- C2H3Cl Vinyl chloride 6 atoms
- CH3CHO Acetaldehyde 7 atoms
- C2H4O Ethylene oxide 7 atoms
- H2SO4 Sulfuric acid 7 atoms
- C2H2F4 1,1,1,2-Tetrafluoroethane 8 atoms
- CH3COOH Acetic acid 8 atoms
- C2H6 Ethane 8 atoms
- H2C2O4 Oxalic acid 8 atoms
- H3PO4 Phosphoric acid 8 atoms
- CH3COONa Sodium acetate 8 atoms
- CO(NH2)2 Urea 8 atoms
- CH3OCH3 Dimethyl ether 9 atoms
- C2H5OH Ethanol 9 atoms
- C2H4O3 Glycolic acid 9 atoms
- C3H6 Propylene 9 atoms
- C4H6 1,3-Butadiene 10 atoms
- C3H6O Acetone 10 atoms
- C2H6O2 Ethylene glycol 10 atoms
- C2H5NO2 Glycine 10 atoms
- C3H8 Propane 11 atoms
- C2H5COOH Propionic acid 11 atoms
- C3H7OH 1-Propanol 12 atoms
- C6H6 Benzene 12 atoms
- C3H8O Isopropyl alcohol 12 atoms
- C3H6O3 Lactic acid 12 atoms
- C4H4N2O2 Uracil 12 atoms
- C3H7NO2 Alanine 13 atoms
- C4H8O Butanone 13 atoms
- C4H5N3O Cytosine 13 atoms
- C6H5OH Phenol 13 atoms
- C3H8O2 Propylene glycol 13 atoms
- (CH3)3N Trimethylamine 13 atoms
- C6H5CHO Benzaldehyde 14 atoms
- C4H10 Butane 14 atoms
- C3H7COOH Butyric acid 14 atoms
- C3H7NO2S Cysteine 14 atoms
- CH3COOC2H5 Ethyl acetate 14 atoms
- C3H8O3 Glycerol 14 atoms
- C4H10 Isobutane 14 atoms
- C4H9OH 1-Butanol 15 atoms
- C5H5N5 Adenine 15 atoms
- C6H5COOH Benzoic acid 15 atoms
- C2H5OC2H5 Diethyl ether 15 atoms
- C4H6O5 Malic acid 15 atoms
- C3H6N6 Melamine 15 atoms
- C5H6N2O2 Thymine 15 atoms
- C7H8 Toluene 15 atoms
- C5H5N5O Guanine 16 atoms
- C7H6O3 Salicylic acid 16 atoms
- C8H8 Styrene 16 atoms
- C4H6O6 Tartaric acid 16 atoms
- C5H4N4O3 Uric acid 16 atoms
- C5H9N3 Histamine 17 atoms
- C5H12 Pentane 17 atoms
- C6H12 Cyclohexane 18 atoms
- C3H8NO5P Glyphosate 18 atoms
- C10H8 Naphthalene 18 atoms
- C5H9NO4 Glutamic acid 19 atoms
- C8H8O3 Methyl salicylate 19 atoms
- C5H8NO4Na Monosodium glutamate 19 atoms
- C8H8O3 Vanillin 19 atoms
- C8H9NO2 Acetaminophen 20 atoms
- C6H8O6 Ascorbic acid 20 atoms
- C6H14 Hexane 20 atoms
- C4H11N5 Metformin 20 atoms
- C9H8O4 Aspirin 21 atoms
- C6H8O7 Citric acid 21 atoms
- C8H11NO2 Dopamine 22 atoms
- C6H13NO2 Isoleucine 22 atoms
- C6H13NO2 Leucine 22 atoms
- C9H11NO2 Phenylalanine 23 atoms
- C8H10N4O2 Caffeine 24 atoms
- C6H12O6 Fructose 24 atoms
- C6H12O6 Glucose 24 atoms
- C9H11NO3 Tyrosine 24 atoms
- C10H12N2O Serotonin 25 atoms
- C9H13NO3 Epinephrine 26 atoms
- C8H18 Isooctane 26 atoms
- C10H16 Limonene 26 atoms
- C10H14N2 Nicotine 26 atoms
- C8H18 Octane 26 atoms
- C11H12N2O2 Tryptophan 27 atoms
- C12H17NO DEET 31 atoms
- C10H20O Menthol 31 atoms
- C14H14O3 Naproxen 31 atoms
- C15H16O2 Bisphenol A 33 atoms
- C13H18O2 Ibuprofen 33 atoms
- C13H16N2O2 Melatonin 33 atoms
- C15H11I4NO4 Thyroxine 35 atoms
- C13H21NO3 Albuterol 38 atoms
- C20H14O4 Phenolphthalein 38 atoms
- C14H18N2O5 Aspartame 39 atoms
- C14H22N2O Lidocaine 39 atoms
- C17H21NO Diphenhydramine 40 atoms
- C17H18F3NO Fluoxetine 40 atoms
- C16H18N2O4S Penicillin G 41 atoms
- C16H19N3O5S Amoxicillin 44 atoms
- C18H24O2 Estradiol 44 atoms
- C12H22O11 Lactose 45 atoms
- C12H22O11 Sucrose 45 atoms
- C10H16N5O13P3 Adenosine triphosphate 47 atoms
- C20H24N2O2 Quinine 48 atoms
- C19H28O2 Testosterone 49 atoms
- C16H32O2 Palmitic acid 50 atoms
- C21H30O2 Progesterone 53 atoms
- C18H34O2 Oleic acid 54 atoms
- C21H30O5 Cortisol 56 atoms
- C27H44O Cholecalciferol 72 atoms
- C27H46O Cholesterol 74 atoms
- C33H35FN2O5 Atorvastatin 76 atoms
How to read a formula
A chemical formula records how many atoms of each kind are present in one unit of a compound. Each count is set as a subscript after its element symbol, and a single atom takes no number at all. A symbol is itself an abbreviation of one or two letters, O for oxygen, Cl for chlorine.
Where the symbols stand is a matter of convention, and this page writes them in the order you tap, because what it matches is the count and not the order. Tap oxygen and then two hydrogens and the glyph reads OH2, which still answers water. A compound page may print the same composition another way: acetic acid is CH3COOH there and C2H4O2 here.
The tiles hand out element symbols rather than atoms, on this evidence: methane forming from free gaseous atoms is a reaction nobody watches directly, and its energy is known from indirect evidence.
What a formula leaves out
The formulas we ordinarily write say nothing about structure: which atoms are bonded to which, or how they stand in space. Among organic compounds, hundreds of different molecules may share one empirical formula. Ethanol and dimethyl ether are such a pair, both written C2H6O, and their properties differ accordingly. What tells them apart is connectivity, the sequence in which their atoms are joined; a structural formula shows it and a plain formula does not.
When a formula is a ratio
Some solids are built as extended lattices that hold no separate molecules. Sodium chloride is the familiar case: each ion sits among six neighbours of opposite charge, and each of those among six more. The ion at the centre claims only a sixth of each chloride around it, so the composition still comes out one to one. No NaCl particle can be picked out of such a crystal, and the formula states a ratio rather than a count of a particle. Formulas of this kind give the relative numbers of the elements in the smallest whole numbers.
So this page matches an ionic formula by its ratio, and Na2Cl2 and Na3Cl3 both answer sodium chloride. A molecular formula it matches exactly, which is why H4O2 is not a second way of writing water.
Sources
- Stephen Lower, Chem1 General Chemistry, §4.3 Formulas and Their Meaning (LibreTexts, CC BY 3.0)
- Stephen Lower, Chem1 General Chemistry, §7.7 Ionic and Ion-Derived Solids (LibreTexts, CC BY 3.0)
- Stephen Lower, Chem1 General Chemistry, §9.1 Three Views of Chemical Bonding (LibreTexts, CC BY 3.0)
- Stephen Lower, Chem1 General Chemistry, §9.2 Molecules: Properties of Bonded Atoms (LibreTexts, CC BY 3.0)