← All tools/Calculators/Chemistry/Empirical Formula Calculator

Empirical Formula Calculator

Type a molecular formula and get the simplest whole-number ratio of its atoms — the empirical formula.

Letters and numbers only, e.g. H2O or Fe2O3. Formulas with brackets are not parsed.

g/mol

Empirical formula

CH2O

C : H : O = 1 : 2 : 1

C
1
H
2
O
1
Breakdown
Formula enteredC6H12O6
Element countsC 6 · H 12 · O 6
Greatest common divisor6
Mole ratioC : H : O = 1 : 2 : 1
Empirical molar mass30.03 g/mol
Molecular formula—

How it works

Parse the formula into element counts, e.g. C6H12O6 → C 6, H 12, O 6
Divide every count by their greatest common divisor (GCD)
Empirical formula = the reduced counts, omitting 1s
Mole ratio = the reduced counts, e.g. C : H : O = 1 : 2 : 1
Molecular formula = empirical formula × n, where n = molar mass ÷ empirical mass
Percent-composition method: moles = mass ÷ atomic mass, then divide all moles by the smallest
Formulas with brackets, e.g. Ca(OH)2, are not parsed by this tool

C6H12O6 has 6 C, 12 H and 6 O atoms. The greatest common divisor is 6, so dividing gives a 1:2:1 ratio and the empirical formula CH2O. With a molar mass of 180.16 g/mol and an empirical mass of 30.03 g/mol, n = 180.16 ÷ 30.03 = 6, so the molecular formula is C6H12O6. By the percent-composition method, 40.0% C, 6.7% H and 53.3% O in 100 g give 3.33, 6.65 and 3.33 mol — the same 1:2:1 ratio.

Frequently asked questions

What is an empirical formula?

It is the simplest whole-number ratio of the atoms in a compound. Glucose is C6H12O6, but its atoms are in a 1:2:1 ratio, so its empirical formula is CH2O — the same ratio, with no common divisor left.

How do I work out an empirical formula from percent composition?

Take 100 g of the compound, so each percent is a mass in grams. Divide each mass by that element’s atomic mass to get moles, then divide all the mole values by the smallest one. The result is the whole-number ratio — for 40.0% C, 6.7% H and 53.3% O that is 1:2:1, or CH2O.

What is the difference between the empirical and molecular formulas?

The molecular formula is the real count of atoms in one molecule; the empirical formula is that count reduced to its simplest ratio. The molecular formula is the empirical formula multiplied by a whole number n, where n = molar mass ÷ empirical mass.

Why does this tool not accept formulas with brackets?

Brackets such as those in Ca(OH)2 mean a group of atoms repeats, which needs a different parser. This tool handles plain formulas of element symbols and numbers only, such as H2O, Fe2O3 and C6H12O6.

What if two compounds share an empirical formula?

That is normal — CH2O is the empirical formula of both formaldehyde (CH2O) and glucose (C6H12O6). The empirical formula alone cannot tell them apart; you need the molar mass to find the molecular formula.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.