Composition to atomic ratio
Empirical Formula Calculator
An empirical formula is the simplest whole-number ratio of atoms in a compound. Enter the mass or mass percentage of each element. The calculator converts each amount to moles, divides by the smallest value, and scales fractions such as 1.5 or 1.33 to whole numbers. Add the molar mass to get the molecular formula as well.
Empirical Formula Calculator
Calculator
Choose percent composition or measured masses, then enter two to eight elements. Element symbols and English names are accepted. The molar mass is optional.
Load an example
Calculation method
How the calculation works
Worked examples
Check the result by hand
- 1.In a 100 g sample there are 40.0 g C, 6.71 g H, and 53.28 g O.
- 2.Moles: C = 40.0 / 12.011 = 3.330, H = 6.71 / 1.008 = 6.657, O = 53.28 / 15.999 = 3.330.
- 3.Divide by 3.330: C : H : O = 1.000 : 1.999 : 1.000, which rounds to 1 : 2 : 1.
- 1.Moles: Fe = 34.97 / 55.845 = 0.6262 and O = 15.03 / 15.999 = 0.9394.
- 2.Divide by 0.6262: Fe : O = 1 : 1.500.
- 3.Multiply both by 2 to clear the half: 2 : 3.000.
- 1.Moles in 100 g: C = 4.995, H = 4.440, O = 2.220.
- 2.Divide by 2.220: C : H : O = 2.250 : 2.000 : 1.
- 3.Multiply every ratio by 4 to clear the quarter: 9 : 8 : 4.
- 1.Moles in 100 g: C = 6.163, H = 8.641, N = 1.233. Dividing by 1.233 gives 4.998 : 7.008 : 1, so the empirical formula is C₅H₇N.
- 2.Empirical formula mass = 5(12.011) + 7(1.008) + 14.007 = 81.118 g/mol.
- 3.n = 162.3 / 81.118 = 2.001, which rounds to 2. Multiply every subscript by 2.
Scope
Assumptions and limits
These limits keep the result reproducible and make unsupported inputs visible instead of guessing.
Empirical Formula Calculator FAQ
Frequently asked questions
How do you find an empirical formula?
Convert the mass of each element to moles by dividing by its atomic weight. If you have percentages, assume 100 g so each percentage becomes grams. Divide every mole value by the smallest one, then round to whole numbers, multiplying first if a ratio ends near .5, .33, or .25. The whole numbers are the subscripts.
What is the difference between an empirical and a molecular formula?
The empirical formula is the simplest whole-number ratio of atoms. The molecular formula gives the actual number of atoms in one molecule and is a whole-number multiple of the empirical formula. Glucose has the empirical formula CH₂O and the molecular formula C₆H₁₂O₆.
How do you find the molecular formula from the empirical formula?
Divide the molar mass of the compound by the empirical formula mass to get n, then multiply every subscript by n. For CH₂O (30.026 g/mol) and a molar mass of 180.16 g/mol, n = 6, so the molecular formula is C₆H₁₂O₆.
When should I multiply the mole ratios, and by what number?
Multiply when a ratio is clearly between whole numbers. Use 2 for ratios ending near .5, 3 for .33 or .67, 4 for .25 or .75, and 5 for .2, .4, .6, or .8. Multiply every ratio by the same number. A value such as 1.98 or 2.03 is usually rounding error and can simply be rounded.
Do mass percentages have to total exactly 100%?
No. Rounded experimental values often total slightly more or less, and only the relative amounts matter. If one element was found by difference, subtract the others from 100% and enter that value as its own row. The calculator warns when the total is more than one percentage point from 100%.
How do I use combustion analysis data?
First convert the products back to element masses. Mass of C = mass of CO₂ × 12.011 / 44.009, and mass of H = mass of H₂O × 2.016 / 18.015. If the compound also contains oxygen, its mass is the sample mass minus the C and H masses. Then enter the three masses in mass mode.
Why is the formula written in a different order than I expected?
The formula lists elements in the order you enter them, so Na, S, O gives Na₂SO₄. When that order differs from Hill order (carbon, then hydrogen, then the other elements alphabetically), the Hill-order version is shown as well.