Skip to content
Convert. Calculate.

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.

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₆
Mole ratio (smallest = 1)
  • C1.00
  • H2.00
  • O1.00
Image

Good to know: ratio = moles of element ÷ smallest number of moles

How it was worked out · notes
  1. Treat the amounts as grams (percentages as grams in 100 g).
  2. Moles of each element = grams ÷ atomic mass.
  3. Divide every mole value by the smallest one.
  4. The ratios are already whole numbers.
  5. 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.

ElementAmountMolesRatioWhole numbers
C403.33031.0001
H6.76.64681.9962
O53.33.33151.0001

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.

Five compounds recovered from their percentages
CompoundPercent by massMolar massEmpirical formulaMolecular formula
GlucoseC 40.0, H 6.7, O 53.3180 g/molCH₂OC₆H₁₂O₆
Acetic acidC 40.0, H 6.7, O 53.360 g/molCH₂OC₂H₄O₂
WaterH 11.19, O 88.8118 g/molH₂OH₂O
BenzeneC 92.3, H 7.778 g/molCHC₆H₆
EthanolC 52.14, H 13.13, O 34.7346 g/molC₂H₆OC₂H₆O

Percentages are the rounded literature values for each compound.

Elements and amounts in, formula out

  1. Enter each element and its percentage or mass, for example C 40.0, H 6.7, O 53.3.
  2. Optionally enter the molar mass to get the molecular formula.
  3. Read the empirical and molecular formulas.
  4. 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

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