ToolNestr

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

Disclaimer: This tool is provided for educational purposes to support learning in chemistry. It is not a substitute for professional laboratory, safety, or dosage calculations.
Chemistry

Enter 2 to 4 elements with their mass percent. Symbols are case-sensitive (Co = cobalt, CO = carbon + oxygen). Percentages are normalized to 100% automatically.

%
%
%
%
Empirical formula

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

Mole ratio per element (should land near whole numbers)
Mass % vs mole % per element

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.

Moles (per 100 g): C: 40.0 / 12.011 = 3.331; H: 6.7 / 1.008 = 6.647; O: 53.3 / 16.00 = 3.331
Divide by smallest (3.331): C: 1.000; H: 1.996 ≈ 2; O: 1.000
Empirical formula: CH₂O

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.

Moles (per 100 g): Fe: 69.94 / 55.845 = 1.2525; O: 30.06 / 16.00 = 1.8788
Divide by smallest (1.2525): Fe: 1.000; O: 1.500
Scale by 2 (to clear the .5): Fe: 2.000; O: 3.000
Empirical formula: Fe₂O₃

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.

CompoundEmpirical formulaMolecular formula
FormaldehydeCH₂OCH₂O (×1)
Acetic acidCH₂OC₂H₄O₂ (×2)
GlucoseCH₂OC₆H₁₂O₆ (×6)
BenzeneCHC₆H₆ (×6)
Hydrogen peroxideHOH₂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

1

Add each element

Enter the element symbol (case-sensitive, e.g. "Co" vs "CO") and its mass percent, for 2 to 4 elements.

2

Compute

The calculator converts to moles, finds the smallest, and scales the ratio to whole numbers automatically.

3

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₆.

All tool categories

🧪 Chemistry (50 tools)
⏲️ Half-Life Calculator🔬 Molar Mass Calculator🧪 Molarity Calculator💨 Ideal Gas Law Calculator🔄 Combined Gas Law Calculator🌈 pH Calculator💧 Dilution Calculator🧴 Percent Concentration Calculator🌫️ PPM Calculator🧊 Molality Calculator⚗️ Normality Calculator🎈 Boyle's Law Calculator🔺 Charles's Law Calculator🌡️ Gay-Lussac's Law Calculator🧮 Chemical Equation Balancer⚖️ Limiting Reagent Calculator🎯 Percent Yield Calculator🔵 pOH Calculator🧫 Theoretical Yield Calculator🥼 Actual Yield Calculator🧬 Molecular Formula Calculator🔢 Mole Ratio Calculator🧿 Empirical Formula Calculator🧯 Henderson-Hasselbalch (Buffer) Calculator🫧 Neutralization Reaction Calculator💉 Titration Calculator🔁 Equilibrium Constant (Keq) Calculator⏳ Reaction Rate Calculator🌌 Avogadro's Number Calculator🧭 Reaction Quotient (Q) Calculator🌋 Enthalpy Calculator🥽 Calorimetry Calculator🎲 Entropy Calculator⚛️ Ka/Kb Equilibrium Constant Calculator🌬️ Dalton's Law (Partial Pressure) Calculator➡️ Gibbs Free Energy Calculator🔗 Bond Energy Calculator🔋 Nernst Equation Calculator🏔️ Arrhenius Equation Calculator☢️ Isotope Calculator🔘 Atom Calculator🔷 Electron Configuration Calculator🔌 Cell EMF Calculator🪫 Faraday's Law of Electrolysis Calculator♨️ Boiling Point Elevation Calculator❄️ Freezing Point Depression Calculator🔠 Interactive Periodic Table🔶 Atomic Mass Calculator⏱️ Rate Constant Calculator🫙 Vapor Pressure Calculator
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)