Empirical Formula Calculator: From Percentages to a Formula
Find the simplest whole-number ratio of atoms.
An empirical formula gives the simplest ratio of atoms in a compound, and you can work it out from the percent composition or the masses of each element. Enter the elements and amounts, and add the molar mass if you want the molecular formula. The table recovers formulas for five compounds from their percentages.
Your details
Try an example
Result
Empirical formula
CH₂O
Molecular formula C₆H₁₂O₆ (6 × the empirical formula)
- Empirical
- CH₂O
- Formula mass
- 30.03 g/mol
- Molecular
- C₆H₁₂O₆
- C1.00
- H2.00
- O1.00
Good to know: ratio = moles of element ÷ smallest number of moles
How it was worked out · notes
- Treat the amounts as grams (percentages as grams in 100 g).
- Moles of each element = grams ÷ atomic mass.
- Divide every mole value by the smallest one.
- The ratios are already whole numbers.
- Empirical formula: CH2O
- The empirical formula is the simplest whole-number ratio. Give the molar mass (for example from a mass spectrum) to get the molecular formula.
- A tolerance of 0.1 is allowed for experimental rounding.
From amounts to a formula
Divide each amount by its atomic mass, then by the smallest result.
| Element | Amount | Moles | Ratio | Whole numbers |
|---|---|---|---|---|
| C | 40 | 3.3303 | 1.000 | 1 |
| H | 6.7 | 6.6468 | 1.996 | 2 |
| O | 53.3 | 3.3315 | 1.000 | 1 |
Please note: For study and planning. Check calculations independently before using results with chemicals, electricity, pressure or machinery, and follow safety data sheets, manufacturer instructions and local regulations.
The idea behind it
What is going on inside the empirical formula calculator
01Method
Moles, then ratios
Convert each element to moles, divide by the smallest, and scale to whole numbers. The result is the simplest ratio of atoms.
02Whole numbers
Watch for halves and thirds
A ratio near 1.5 means doubling everything, near 1.33 means tripling, near 1.25 means multiplying by four.
03Molecular
Needs the molar mass
Glucose and formaldehyde share the empirical formula CH₂O. Only the molar mass shows which one you have.
Five compounds recovered from their percentages
Glucose and acetic acid share the same empirical formula, CH₂O, so percentages alone cannot tell them apart. The molar mass is what separates the two molecules.
| Compound | Percent by mass | Molar mass | Empirical formula | Molecular formula |
|---|---|---|---|---|
| Glucose | C 40.0, H 6.7, O 53.3 | 180 g/mol | CH₂O | C₆H₁₂O₆ |
| Acetic acid | C 40.0, H 6.7, O 53.3 | 60 g/mol | CH₂O | C₂H₄O₂ |
| Water | H 11.19, O 88.81 | 18 g/mol | H₂O | H₂O |
| Benzene | C 92.3, H 7.7 | 78 g/mol | CH | C₆H₆ |
| Ethanol | C 52.14, H 13.13, O 34.73 | 46 g/mol | C₂H₆O | C₂H₆O |
Percentages are the rounded literature values for each compound.
Elements and amounts in, formula out
- Enter each element and its percentage or mass, for example C 40.0, H 6.7, O 53.3.
- Optionally enter the molar mass to get the molecular formula.
- Read the empirical and molecular formulas.
- Follow the table: moles, ratio, then whole numbers.
40.0% C, 6.7% H, 53.3% O
40.0% C, 6.7% H and 53.3% O gives mole ratios of 1 : 2 : 1, so the empirical formula is CH₂O. With a molar mass of 180 g/mol the molecular formula is C₆H₁₂O₆.
About this tool
Formula
ratio = moles of element ÷ smallest number of moles
Rounding the ratio too early
- Dividing by the largest number of moles instead of the smallest.
- Rounding a ratio like 1.5 to 2 instead of doubling everything.
- Using percentages that do not add to about 100.
- Forgetting that the molecular formula is a whole multiple of the empirical one.
Formula questions
What is the difference between an empirical and a molecular formula?
The empirical formula is the simplest whole-number ratio of atoms, such as CH₂O. The molecular formula is the actual number in a molecule, such as C₆H₁₂O₆, a whole-number multiple of the empirical one.
How do you find an empirical formula?
Convert each amount to moles, divide all of them by the smallest, and if any ratio is not a whole number multiply them all by the smallest factor that makes them whole.
What do I do with a ratio like 1.33?
Multiply everything by 3. A ratio of 1.5 means multiplying by 2, and 1.25 means multiplying by 4.
How is the molecular formula found?
Divide the molar mass by the empirical formula mass to get a whole number, then multiply every subscript in the empirical formula by it.
Related tools
- Degree of Unsaturation CalculatorFind the degree of unsaturation (double bond equivalents) from a molecular formula to count rings and pi bonds.
- Molar Mass CalculatorFind the molar mass of any compound from its formula and see the mass of each element.
- Chemical Equation BalancerBalance a chemical equation and see the coefficients, the masses and an atom-count check.
- Theoretical Yield CalculatorFind the limiting reagent, theoretical yield, percent yield and atom economy for a reaction.
- Percent Yield CalculatorCompare the actual yield of a reaction with the theoretical yield.
How we calculate this
We use the standard published formula or definition for this calculation, and we show the working so you can check it.
Spotted a mistake? Tell us and we'll check it. How we check our calculators