Empirical Formula Calculator
Enter each element's mass percent (2 to 4 elements) to find the empirical formula — the simplest whole-number ratio of atoms — with a live 3D atom cluster and charts.
Reviewed by the ToolNestr Editorial Team — July 2026
Enter 2 to 4 elements with their mass percent. Symbols are case-sensitive (Co = cobalt, CO = carbon + oxygen). Percentages are normalized to 100% automatically.
Two ideas that trip students up
1. The classic CH₂O cluster
One carbon, two hydrogens, one oxygen — the same ratio shared by formaldehyde, acetic acid, and glucose. Illustrative only, not a real molecular structure.
2. Mass % ≠ mole %
For CH₂O, carbon is 40.0% of the mass but only 25% of the moles — heavier atoms dominate mass percent while contributing fewer particles.
Empirical formula graphs
How it works
The core idea in one line: mass percent turns directly into grams for a 100 g sample, grams divided by atomic mass gives moles, and dividing every mole value by the smallest one reveals the simplest whole-number atom ratio.
moli = mass %i / Ai
assuming a 100 g sample, mass % = grams
ratioi = moli / molmin
divide every mole value by the smallest
subscripti = round(ratioi × k)
k = small integer (1, 2, 3…) to reach whole numbers
If the resulting ratios aren't already whole numbers, that usually means the true ratio has a fraction like ½ or ⅓ hiding in it — multiplying every ratio by 2, 3, or 4 clears the fraction and reveals the correct whole-number subscripts.
Worked example 1 — the classic CH₂O compound
Given: A compound is 40.0% C, 6.7% H and 53.3% O by mass. Find the empirical formula.
This is the same ratio as glucose (C₆H₁₂O₆) and formaldehyde (CH₂O) — mass percent alone can't tell them apart.
Worked example 2 — an iron oxide
Given: An iron oxide is 69.94% Fe and 30.06% O by mass. Find the empirical formula.
A ratio ending near .5, .33 or .25 signals you need to multiply by 2, 3 or 4 respectively before rounding.
Empirical formula vs molecular formula
The molecular formula is always a whole-number multiple of the empirical formula.
| Compound | Empirical formula | Molecular formula |
|---|---|---|
| Formaldehyde | CH₂O | CH₂O (×1) |
| Acetic acid | CH₂O | C₂H₄O₂ (×2) |
| Glucose | CH₂O | C₆H₁₂O₆ (×6) |
| Benzene | CH | C₆H₆ (×6) |
| Hydrogen peroxide | HO | H₂O₂ (×2) |
Mass percent composition fixes the empirical formula only — an independent molar mass measurement is needed to find the multiplier.
Where empirical formulas actually matter
🧫 Combustion analysis
Burning an unknown organic sample and measuring the CO₂ and H₂O produced gives the mass percent of C and H directly — the empirical formula is the first step toward identifying an unknown compound.
🔬 Materials & mineral analysis
X-ray fluorescence and other elemental analysis techniques report composition by mass percent; empirical formula calculations convert that into the simplest atomic ratio for a mineral or alloy.
🏭 Quality control
Manufacturers verify that a batch of a compound matches its expected elemental composition — a mass-percent-derived empirical formula that doesn't match the target formula flags contamination or an incomplete reaction.
Common misconceptions
"Empirical formula and molecular formula are always the same."
Only when the multiplier is 1. Glucose (C₆H₁₂O₆) and formaldehyde (CH₂O) share the exact same empirical formula, CH₂O, but very different molecular formulas — mass percent alone never distinguishes them.
"Mass percent and mole percent are the same thing."
They are not, because atoms of different elements have different masses. A compound that is 40% C by mass is not 40% C by moles — carbon's heavier atomic mass means fewer moles per gram than a lighter element like hydrogen.
"Any non-whole-number ratio means you made an arithmetic error."
Ratios like 1.5, 1.33, or 1.25 are often correct and simply need scaling by 2, 3, or 4 respectively — rounding 1.5 straight to 2 would give the wrong formula.
"You need the actual mass in grams, not just percentages, to find the empirical formula."
Percentages are enough. Assuming a 100 g sample turns each mass percent directly into grams, and the mole ratio is unaffected by the total sample size — only relative amounts matter.
Formula sources & further reading
The formulas here are standard, traceable to:
- • OpenStax, Chemistry 2e — Chapter 3.2, Determining Empirical and Molecular Formulas (free, peer-reviewed). openstax.org
- • Brown, LeMay & Bursten, Chemistry: The Central Science — Chapter 3, Stoichiometry: Calculations with Chemical Formulas and Equations.
- • Zumdahl & Zumdahl, Chemistry — Chapter 3, section on empirical and molecular formulas.
- • IUPAC, Standard Atomic Weights — the atomic mass values used for mole conversions. iupac.org
Mass percentages are normalized to sum to 100% before conversion to moles. Ratios within 0.1 of a whole number are rounded directly; otherwise the tool scales by 2, 3, or 4 to reach whole numbers. Results are rounded for display.
How to use this calculator
Add each element
Enter the element symbol (case-sensitive, e.g. "Co" vs "CO") and its mass percent, for 2 to 4 elements.
Compute
The calculator converts to moles, finds the smallest, and scales the ratio to whole numbers automatically.
Check the breakdown
See moles, mole ratio, and mole percent per element, plus a live 3D atom cluster and charts.
Related tools
Frequently asked questions
What is an empirical formula?
The empirical formula shows the simplest whole-number ratio of atoms of each element in a compound. It may or may not match the actual molecular formula — glucose's molecular formula is C₆H₁₂O₆, but its empirical formula is CH₂O.
How is the empirical formula calculated from mass percent?
Assume a 100 g sample, so each mass percent becomes grams directly. Divide each element's grams by its atomic mass to get moles, divide every mole value by the smallest one to get a ratio, then round (or scale by a small whole number) to reach whole-number subscripts.
What if the mole ratios aren't close to whole numbers?
Multiply every ratio by the smallest integer that brings them all within about 0.1 of a whole number — usually 2, 3, or 4. For example, ratios of 1, 1.5, 1 become 2, 3, 2 after multiplying by 2.
Do the mass percentages have to add up to exactly 100%?
This calculator normalizes automatically — if your percentages sum to less than 100% (say, because a trace element was omitted) or slightly over due to rounding, it scales them proportionally before computing moles, so the ratio between elements is unaffected either way.
Why is empirical formula different from molecular formula?
The empirical formula is the reduced ratio; the molecular formula is the true count of atoms per molecule, which is always a whole-number multiple of the empirical formula. Finding the multiplier requires an independent measurement of molar mass — mass percent alone cannot distinguish CH₂O from C₆H₁₂O₆.