Skip to content
FiftyCalc Free calculators for all 50 states

Empirical Formula Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Choose up to four elements and enter their mass percentages or grams; you get the whole-number ratio of atoms.

Result

Sample figures

Element 1: subscript in the empirical formula—

Element 1: mole ratio —

  • Element 2: mole ratio—
  • Element 3: mole ratio—
  • Element 4: mole ratio—
  • Multiplier used to reach whole numbers—
  • Element 2: subscript in the empirical formula—
  • Element 3: subscript in the empirical formula—
  • Element 4: subscript in the empirical formula—
  • Empirical formula mass (g/mol)—
  • Molecular formula = empirical formula × —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Empirical Formula Calculator

Element 1: choose one of the 15 options in the list. Prefilled example: C (12.011).

Element 1: mass % (or grams): enter 0 or more. Prefilled example: 40.0.

Element 2: choose one of the 15 options in the list. Prefilled example: H (1.008).

Element 2: mass % (or grams): enter 0 or more. Prefilled example: 6.71.

Element 3: choose one of the 15 options in the list. Prefilled example: O (15.999).

Element 3: mass % (or grams): enter 0 or more. Prefilled example: 53.29.

Element 4: choose one of the 15 options in the list. Prefilled example: — none —.

Element 4: mass % (or grams): enter 0 or more. Prefilled example: 0.

Molar mass of the compound, if known (0 = skip), in g/mol: enter 0 or more. Prefilled example: 180.156.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Element 1: choose one of the 15 options in the list.
  2. Element 1: mass % (or grams): enter 0 or more.
  3. Element 2: choose one of the 15 options in the list.
  4. Element 2: mass % (or grams): enter 0 or more.
  5. Element 3: choose one of the 15 options in the list.
  6. Element 3: mass % (or grams): enter 0 or more.
  7. Element 4: choose one of the 15 options in the list.
  8. Element 4: mass % (or grams): enter 0 or more.
  9. Molar mass of the compound, if known (0 = skip), in g/mol: enter 0 or more.
  10. Read the result: Element 1: subscript in the empirical formula; the panel also shows Element 1: mole ratio, Element 2: mole ratio, Element 3: mole ratio, Element 4: mole ratio, Multiplier used to reach whole numbers, Element 2: subscript in the empirical formula, Element 3: subscript in the empirical formula, Element 4: subscript in the empirical formula, Empirical formula mass (g/mol) and Molecular formula = empirical formula × .

How this calculator works

Moles of each element = mass ÷ atomic weight (atomic weights from CIAAW abridged standard atomic weights 2024 (ciaaw.org/abridged-atomic-weights.htm, read 2026-10-27)). Each is divided by the smallest to get the mole ratio.

The ratios are multiplied by the smallest whole number from 1 to 6 that brings every ratio within 0.1 of an integer, then rounded: these are the subscripts. A multiplier of 0 means no whole-number ratio was found; check the data.

If you know the molar mass, molar mass ÷ empirical formula mass gives the factor that turns the empirical formula into the molecular formula.

Worked example

Element 1C (12.011)
Element 1: mass % (or grams)40
Element 2H (1.008)
Element 2: mass % (or grams)6.71
Element 3O (15.999)
Element 3: mass % (or grams)53.29
Element 4— none —
Element 4: mass % (or grams)0
Molar mass of the compound, if known (0 = skip)180.156 g/mol
Element 1: subscript in the empirical formula1
Element 2: subscript in the empirical formula2
Element 3: subscript in the empirical formula1
Multiplier used to reach whole numbers1
Empirical formula mass (g/mol)30.026
Molecular formula = empirical formula × 6.00

Frequently asked questions

What is the empirical formula of glucose?

40.0% C, 6.71% H and 53.29% O give CH₂O; with a molar mass of 180.156 g/mol the molecular formula is 6 × CH₂O = C₆H₁₂O₆.

Can I enter grams instead of percent?

Yes: only the ratios matter, so grams from an analysis work the same way.

Related calculators