Empirical Formula Calculator
Calculate the simplest whole-number ratio of atoms in a compound from elemental mass percentages or masses. Enter up to three elements with their mass data to find the empirical formula.
The empirical formula tells you the simplest whole-number ratio of atoms in a compound, derived from its elemental composition by mass. It's the foundational result of combustion analysis, the technique used to determine the molecular makeup of unknown organic compounds since the 1800s. Burn a known mass of the unknown, capture and weigh the CO₂ and H₂O produced, and you can back out the carbon-hydrogen-oxygen ratios. Layer on a mass spectrometer for molecular weight, and you can convert empirical to molecular formula (e.g., empirical CH₂O × 6 = molecular C₆H₁₂O₆ for glucose).
This calculator takes mass percentages of up to three elements and computes the empirical formula. The workflow: assume 100 g of compound (so mass % becomes grams directly), convert each element's grams to moles using its atomic mass, divide all mole counts by the smallest to get a ratio, then multiply if needed to convert decimals (1.5, 1.33, etc.) into whole numbers. The result is the simplest atom ratio — the empirical formula.
Empirical formulas show up in chemistry homework, food chemistry (proximate analysis), drug development (characterizing new compounds), and materials science (determining ceramic or polymer compositions). The math is straightforward but the technique requires careful attention to which numbers are whole and which need rescaling.
Inputs
Atomic mass of element 1 (C=12.011)
Atomic mass of element 2 (H=1.008)
Atomic mass of element 3 (O=15.999)
Results
Ratio
1:2:1
El. 1 Ratio
1
El. 2 Ratio
2
Empirical Formula Results
| Parameter | Value |
|---|---|
| Element 1 Mass % | 40.00% |
| Element 1 Moles | 3.3303 mol |
| Element 1 Ratio | 1 |
| Element 2 Mass % | 6.71% |
| Element 2 Moles | 6.6567 mol |
| Element 2 Ratio | 2 |
| Element 3 Mass % | 53.29% |
| Element 3 Moles | 3.3308 mol |
| Element 3 Ratio | 1 |
| Total Mass % | 100.00% |
| Empirical Ratio | 1 : 2 : 1 |
Formula
How to use this calculator
- Enter atomic masses and mass percentages for up to three elements.
- For elements not in your compound, leave the percentage at 0.
- If the percentages don't sum to 100, assume the remainder is oxygen (or another known element).
- The calculator divides all moles by the smallest, giving the ratio.
- For non-integer ratios (1.5, 1.33), multiply all by the smallest integer that makes them whole.
- To convert empirical to molecular formula: divide molecular mass by empirical formula mass; the result is the multiplier n.
Worked examples
Glucose vs formaldehyde — same empirical, different molecular
**Scenario:** A compound is 40.0% C, 6.71% H, 53.29% O. Find its empirical formula. **Calculation:** In 100 g: 40.0 g C → 3.33 mol; 6.71 g H → 6.66 mol; 53.29 g O → 3.33 mol. Divide all by 3.33: C 1.00, H 2.00, O 1.00. Empirical formula = CH₂O. **Result:** Empirical formula CH₂O could be formaldehyde (molecular mass 30 g/mol, formula CH₂O × 1), acetic acid (60 g/mol, CH₂O × 2 = C₂H₄O₂), glucose (180 g/mol, CH₂O × 6 = C₆H₁₂O₆), sucrose, or several other sugars. Empirical formula alone doesn't identify the compound; you also need the molecular mass (from mass spec) to determine the actual molecular formula.
Iron oxide mineral identification
**Scenario:** A rust sample tests 70.00% Fe, 30.00% O. Find empirical formula and identify the iron oxide. **Calculation:** In 100 g: 70.0 g Fe → 70.0/55.845 = 1.254 mol; 30.0 g O → 30.0/15.999 = 1.875 mol. Divide by smallest (1.254): Fe 1.00, O 1.495. Multiply both by 2: Fe 2, O 2.99 ≈ 3. Empirical formula = Fe₂O₃. **Result:** Fe₂O₃ — hematite, the most common rust component (also the form in iron-rich red soils and the surface of Mars). Other iron oxides have different stoichiometry: FeO (wüstite, 77.7% Fe), Fe₃O₄ (magnetite, 72.4% Fe). The 70% iron content here uniquely identifies Fe₂O₃.
Mystery hydrocarbon from combustion analysis
**Scenario:** Burn 1.000 g of an unknown hydrocarbon (C + H only). Collect 3.143 g CO₂ and 1.286 g H₂O. **Calculation:** Mass C = 3.143 × (12.011/44.01) = 0.8579 g. Mass H = 1.286 × (2.016/18.015) = 0.1439 g. Check: 0.8579 + 0.1439 = 1.002 g ≈ 1.000 g (good — no other elements). Mass %: 85.79% C, 14.39% H (rounds to 14.21%). Moles: C 0.8579/12.011 = 0.07143, H 0.1439/1.008 = 0.1428. Divide by smallest: C 1.000, H 2.000. Empirical = CH₂. **Result:** Empirical formula CH₂. Could be ethylene (C₂H₄), propylene (C₃H₆), cyclohexane (C₆H₁₂), or any alkene/cycloalkane. Need molecular mass to distinguish: if 28 g/mol → ethylene, 84 g/mol → cyclohexane.
When to use this calculator
**Use empirical formula calculation for:**
- **Combustion analysis problems**: classic organic chemistry technique, still taught for the underlying mass-balance principles. - **Mineral identification**: ratios of metal to oxygen in oxides, sulfides, carbonates. - **Quality control in industrial chemistry**: verify that a manufactured compound has the expected elemental composition. - **Drug development**: confirm that a newly synthesized compound has the intended stoichiometry. - **Forensic chemistry**: identify unknown substances from elemental analysis of small samples. - **Materials science**: composition of alloys, ceramics, polymers. - **Educational problems**: classic stoichiometry homework testing mass-mole conversion fluency.
**The empirical-to-molecular workflow:**
1. **Get elemental composition** (mass %) from combustion analysis, ICP-MS, XRF, or other elemental analysis. 2. **Convert to mole ratios** (this calculator). 3. **Get molecular mass** from mass spectrometry, osmometry, freezing-point depression, or vapor density. 4. **Compute multiplier n** = molecular mass / empirical formula mass. 5. **Multiply empirical formula by n** to get molecular formula.
**Practical limitations:**
- **Empirical formulas don't distinguish isomers**: glucose, fructose, and galactose all have empirical formula CH₂O and molecular formula C₆H₁₂O₆ but different structures. - **Ionic compounds**: "empirical formula" is the same as the formula unit (NaCl, MgO). There's no separate "molecular formula" because ionic compounds aren't discrete molecules. - **Hydrates and solvates**: include water of hydration in your mass balance. Anhydrous CuSO₄ has 39.8% Cu; CuSO₄·5H₂O has only 25.5% Cu.
**Real-world examples by class:**
- **Sugars and starches**: empirical CH₂O, molecular varies (C₅H₁₀O₅ pentose, C₆H₁₂O₆ hexose, polymeric for starch). - **Fats and oils**: roughly CₐHᵦO (with a:b ratio near 1:2), molecular formula very large (C₅₅H₁₀₀O₆ typical triglyceride). - **Proteins**: roughly C₁H₁.₅N₀.₃O₀.₃S₀.₀₁ on average; empirical formula approach is impractical, sequencing is needed. - **Mineral oxides**: Fe₂O₃ (hematite), MnO₂ (pyrolusite), Al₂O₃ (corundum) — straightforward. - **Common organic compounds**: CH₂Cl₂ (dichloromethane), CH₃CN (acetonitrile), C₆H₅OH (phenol).
**Sources of mass percentage data:**
- Combustion (Pregl-Dumas) for C, H, N. - ICP-MS or ICP-OES for metals. - XRF for thicker samples. - Direct gravimetric methods (sulfur, oxygen, halogens). - Manufacturer Certificate of Analysis (CoA) for purchased reagents.
Common mistakes to avoid
- Forgetting to assume 100 g — without this step, mass percentages aren't directly usable.
- Not dividing by smallest moles. Without this step, you don't get the ratio.
- Stopping at decimal ratios. 1.5 should become 3 (multiply by 2); 1.33 should become 4 (multiply by 3).
- Reporting empirical formula as molecular formula. Glucose is C₆H₁₂O₆ not CH₂O — you need molecular mass to determine the multiplier.
- Forgetting an element. If percentages sum to 95%, the remaining 5% is probably oxygen (or another unmeasured element).
- Using molecular instead of atomic mass. CH₂O is built from C (12), H (1), and O (16) individually, not from CH₂O (30) as a whole.
- Treating ionic and covalent compounds the same. NaCl has empirical formula = molecular formula (no separate molecules); glucose has different empirical and molecular formulas.
Frequently Asked Questions
Sources & further reading
Related Calculators
Molar Mass Calculator
Calculate molar mass from element atomic weights and their quantities in a compound.
Percent Yield Calculator
Calculate percent yield from actual and theoretical yield values.
Theoretical Yield Calculator
Calculate theoretical yield from stoichiometry, reactant mass, and molar masses.