How to use it
- Enter two or more element symbols with a mass (g) or percent (%), up to four.
- Percent works as well as grams because only the ratio matters.
- If you know the molar mass, enter it in the last field to get the molecular formula.
What this calculates
The empirical formula gives the atoms in the simplest whole-number ratio. Divide each element's mass by its atomic weight to get moles, divide by the smallest to get ratios, then multiply by a whole number from 1 to 10 until the ratios are close to integers. Glucose has the empirical formula CH₂O but the molecular formula C₆H₁₂O₆. The molecular formula is a whole-number multiple of the empirical one, so with the molar mass you divide by the empirical formula mass to find the multiple. If a ratio stays more than 0.05 away from a whole number the calculator reports it, since the data are too imprecise or wrong.
The formulas
- Moles n = mass ÷ atomic weight
- Ratio = each n ÷ the smallest n, multiplied by 1 to 10 until near whole numbers
- Empirical formula mass = Σ(atoms × atomic weight)
- Molecular formula = empirical formula × (molar mass ÷ empirical formula mass)
Reference table
| Substance | Mass percent (%) | Empirical formula |
|---|---|---|
| C6H12O6 | C 40 · H 6.714 · O 53.28 | CH2O |
| Fe2O3 | Fe 69.94 · O 30.06 | Fe2O3 |
| C4H8 | C 85.63 · H 14.37 | CH2 |
| N2O4 | N 30.45 · O 69.55 | NO2 |
| H2O | H 11.19 · O 88.81 | H2O |
Worked examples
- Fe 69.94%, O 30.06% → empirical formula Fe₂O₃
- C 40%, H 6.71%, O 53.29% → CH₂O, and with molar mass 180 the molecular formula C₆H₁₂O₆
- C 85.63%, H 14.37% → empirical formula CH₂
Frequently asked questions
How do empirical and molecular formulas differ?
The empirical formula is the simplest whole-number ratio; the molecular formula is the actual atom count. Hydrogen peroxide is HO empirically and H₂O₂ molecularly.
What if I see "does not fit whole numbers"?
The masses may be imprecise or an element may be missing. Enter more accurate values or check for a missing element, often oxygen.
What if I do not know the oxygen mass?
Oxygen may be 100 minus the sum of the other percentages. Enter that value yourself.
Can I enter the same element twice?
No. Add the masses of the same element and enter it once.
What if the molar mass is imprecise?
If it is more than 5% from a whole multiple of the empirical formula mass, the calculator says it does not match. Check the molar mass.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Good to know
- To get molar mass and element shares from a formula, use the Molar Mass Calculator.
- For reaction coefficients, use the Chemical Equation Balancer.
Sources
- OpenStax Chemistry 2e 3.2 — Determining Empirical and Molecular Formulas
- IUPAC CIAAW — Abridged Standard Atomic Weights 2024
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.