- Home
- Chemistry
- Mole concept & formulas
- Empirical & Molecular Formula Calculator
Empirical & Molecular Formula Calculator
Empirical formula from percentage composition, and the molecular formula from the molar mass.
Practice questions
Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.
A compound has 40% carbon, 6.7% hydrogen and 53.3% oxygen. Its molar mass is 180 g/mol. Find its empirical and molecular formula.
A compound contains 32.4% sodium, 22.6% sulfur and 45% oxygen. Find its empirical formula.
A hydrocarbon is 85.7% carbon and 14.3% hydrogen, with molar mass 56 g/mol. Find its molecular formula.
Worked example
Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.
Question: A compound has 40% carbon, 6.7% hydrogen and 53.3% oxygen. Its molar mass is 180 g/mol. Find its empirical and molecular formula.
- Write the given values
- Moles of each element = percentage ÷ atomic mass
- Divide each by the smallest (3.33)
- Empirical formula mass
- Molecular formula: n = molar mass ÷ empirical formula mass
- Write the given values
= C 40, H 6.7, O 53.3 M = 180 g/mol - Moles of each element = percentage ÷ atomic mass
C = 4012.011 = 3.33 H = 6.71.008 = 6.647 O = 53.315.999 = 3.331 - Divide each by the smallest (3.33)
C = 1 H = 1.996 O = 1 - Empirical formula mass
Memp = 1 × 12.011 + 2 × 1.008 + 1 × 15.999 = 30.026 g/mol - Molecular formula: n = molar mass ÷ empirical formula mass
n = 18030.026 = 5.995 ≈ 6
Terms used on this page
New to a word in the question or the solution? Here it is in simple language.
- Mole (mol)
- A counting unit for particles: 1 mol = 6.022 × 10²³ particles. Moles = mass in grams ÷ molar mass.
- Molar mass
- Mass of one mole of a substance in grams. Add the atomic masses: NaOH = 23 + 16 + 1 = 40 g/mol.
- Molarity (M)
- Moles of solute in one litre of solution, in mol/L (written M). A 1 M NaOH solution has 40 g of NaOH in every litre.
Symbols in this solver
What each box asks for, and its unit.
| Symbol | What it means | SI unit |
|---|---|---|
| Each element and its percentage (or mass in g) | text | |
| M | Molar mass of the compound (optional) | g/mol |
Formula & concept
Empirical formula from the percentage (or mass) of each element, and the molecular formula if you know the molar mass.
Key idea: The empirical formula is the simplest whole-number ratio of atoms. Glucose, C₆H₁₂O₆, has the empirical formula CH₂O, the same as formaldehyde and acetic acid have.
How to use this calculator
- Type the known values from your question and pick the unit for each one.
- Press Solve step by step.
- Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
- Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
- Stuck on a word? The terms section explains it in simple language.