How to use the empirical formula calculator
- Choose how your data is given: a composition, or a combustion analysis.
- For a composition, type each element symbol followed by its amount, as mass percent or as grams, such as C 40.0, H 6.71, O 53.3. Separate them with commas, spaces or new lines.
- For a combustion analysis, enter the mass of the sample burned and the masses of CO₂ and H₂O it produced, and say whether the sample contains oxygen.
- Optionally, enter the molar mass to get the molecular formula as well.
- Read the formula, the mole ratio of each element, and every step, including the multiplier used to clear fractions.
What an empirical formula is
Wikipedia defines it plainly: “In chemistry, the empirical formula of a chemical compound is the simplest whole number ratio of atoms present in a compound.” Its example is a pair of sulfur oxides: sulfur monoxide and disulfur dioxide “both have the empirical formula SO,” while their molecular formulas are SO and S₂O₂.
An empirical formula is what an elemental analysis can tell you directly, because measuring the mass of each element gives ratios, not the size of the molecule. It also notes that “all formulas of ionic compounds are empirical,” since a salt such as calcium chloride is a network of ions rather than separate molecules.
How to calculate it, step by step
Glucose, C₆H₁₂O₆, is C 40%, H 6.714%, O 53.28% by mass. To find its empirical formula:
- Assume 100 g of the compound, so the percentages become grams: 40 g of C, 6.714 g of H, 53.28 g of O.
- Divide each mass by the element’s atomic weight to get moles. Carbon, 12.011 g/mol, and oxygen, 15.999 g/mol, come out nearly equal; hydrogen, 1.0080 g/mol, comes out twice as large.
- Divide every amount by the smallest. The ratios are 1 : 2 : 1, within rounding.
- If a ratio ends in .5, .33, .67 or .25, multiply all of them by 2, 3 or 4 first; here they are already whole.
The result is CH₂O. Wikipedia lists glucose, ribose, acetic acid and formaldehyde as compounds that “all have different molecular formulas but the same empirical formula: CH₂O.”
Ratios that are not whole numbers
Rounding is right only when a ratio is already close to a whole number. Iron(III) oxide is Fe 69.94%, O 30.06% by mass, which gives an oxygen-to-iron ratio of about 1.5. Rounding it to 2 would be wrong; multiplying both by 2 gives the correct Fe₂O₃. Vitamin C, ascorbic acid, has a hydrogen ratio near 1.33, so the multiplier is 3, giving C₃H₄O₃.
The calculator tries multipliers from 1 to 8 and uses the smallest that brings every ratio within 0.1 of a whole number. If none does, it shows the closest and warns you, because the data is then probably too rough or an element is missing.
From empirical to molecular formula
The molecular formula is a whole-number multiple of the empirical one. Divide the molar mass by the empirical formula mass. For CH₂O, about 30.03 g/mol, and a molar mass of 180.16 g/mol, the ratio is 6, so the molecular formula is C₆H₁₂O₆. With a molar mass of 90.08 g/mol, the same data would give C₃H₆O₃, the formula of lactic acid. If the ratio is far from a whole number, the calculator warns that the molar mass and the composition may not match.
Combustion analysis
In a combustion analysis, a weighed sample is burned and the water and carbon dioxide it produces are trapped and weighed. Wikipedia sums up the chemistry: “For every hydrogen atom in the compound 1/2 equivalent of water is produced, and for every carbon atom in the compound 1 equivalent of carbon dioxide is produced.” So the mass of carbon is the mass of CO₂ times 12.011 ÷ 44.009, its share of CO₂; the mass of hydrogen is the mass of H₂O times 2 × 1.0080 ÷ 18.015. Anything left of the sample’s mass is oxygen, for a compound of C, H and O.
Burning 0.255 g of a compound that gives 0.561 g of CO₂ and 0.306 g of H₂O, for example, leads to C₃H₈O, the formula of propanol. If the sample has only carbon and hydrogen, choose “C and H only”; the calculator then reports how much of the sample the two elements account for, as a check.
Starting from grams
A laboratory experiment usually gives masses rather than percentages. Choose grams and type the mass of each element found in the sample; there is no need to convert to percent first, because only the proportions matter. Suppose 0.24 g of magnesium is heated in oxygen and the oxide formed weighs 0.40 g. The extra 0.16 g is oxygen, and the calculator turns Mg 0.24, O 0.16 into MgO. In the same way, a gas sample found to hold 2.4 g of carbon and 0.6 g of hydrogen gives CH₃; adding a molar mass of 30.07 g/mol turns it into C₂H₆, the formula of ethane.
Reversing the calculation is a quick check. The molar mass calculator works out the mass percentages of any formula; for CH₂O they are C 40%, H 6.714%, O 53.28%, exactly those of glucose, because the two share one empirical formula. If the percentages of your answer are far from your data, look again at the element symbols and at how the ratios were rounded.
Getting reliable results
- Use at least three significant figures. Rough percentages make ratios such as 1.33 and 1.5 hard to tell apart.
- Check that the percentages add up to about 100%. If they fall short, an element, often oxygen, is missing; the calculator points this out.
- Do not round the mole ratios too early: 1.49 should become 3 : 2, not 1 : 1.
- Write symbols with the right case: Co is cobalt, not carbon and oxygen.
Your values stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do you find an empirical formula from percentages?
Assume 100 g of the compound, so each percentage is a mass in grams. Divide each mass by the element’s atomic weight to get moles, divide all the moles by the smallest, and, if the ratios are not whole numbers, multiply them all by the smallest number that makes them whole.
What is the difference between an empirical and a molecular formula?
The empirical formula gives the simplest whole-number ratio of atoms; the molecular formula gives the actual number of each atom in a molecule. Glucose, C₆H₁₂O₆, has the empirical formula CH₂O. The molecular formula is always a whole-number multiple of the empirical formula.
How do I get the molecular formula?
Enter the compound’s molar mass. The calculator divides it by the empirical formula mass, rounds the result to a whole number n, and multiplies every count by n. For CH₂O and a molar mass of 180.16 g/mol, n is 6, giving C₆H₁₂O₆.
What if a ratio comes out as 1.5 or 1.33?
That is a fraction, not rounding error. 1.5 means multiply everything by 2, 1.33 or 1.67 by 3, and 1.25 or 1.75 by 4. The calculator finds the smallest multiplier that brings every ratio within 0.1 of a whole number and shows the step.
How does combustion analysis work?
Burning a compound of carbon, hydrogen and oxygen turns all its carbon into CO₂ and all its hydrogen into H₂O. Weighing those gives the masses of carbon and hydrogen in the sample; oxygen is what is left. Choose “Combustion analysis” and enter the three masses.
Is anything I type sent anywhere?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.