Logo

MonoCalc

/

Empirical Formula Calculator

Chemistry

Input Mode

Mass %

Mass (g)

Sum of percentages:

100.00%

Elements (3/10)

Element Symbol

Mass (%)

Carbon

Atomic mass: 12.011 g/mol

Hydrogen

Atomic mass: 1.008 g/mol

Oxygen

Atomic mass: 15.999 g/mol

Rounding tolerance:

Derive Molecular Formula

Optional

About This Tool

🧪 Empirical Formula Calculator – Find the Simplest Atom Ratio

The empirical formula of a chemical compound expresses the simplest whole-number ratio of atoms present in the compound. It is one of the most fundamental concepts in analytical and general chemistry — allowing scientists and students to determine the composition of an unknown compound from laboratory data alone.

This calculator accepts elemental mass percentages (from elemental analysis reports) or raw masses in grams (from combustion analysis), computes the mole ratios, reduces them to the smallest integers, and delivers the empirical formula with a full step-by-step breakdown.

Empirical Formula vs Molecular Formula

Two formulas describe any covalent compound, and they are not always the same:

PropertyEmpirical FormulaMolecular Formula
DefinitionSimplest whole-number ratio of atomsActual number of each atom per molecule
Example (glucose)CH₂OC₆H₁₂O₆
DerivationFrom mass % or combustion analysisEmpirical formula × integer n
Requires molar mass?NoYes

Some compounds share the same empirical formula — for example, formaldehyde (CH₂O), acetic acid (C₂H₄O₂), and glucose (C₆H₁₂O₆) all reduce to CH₂O. The molecular formula requires knowing the compound's molar mass.

How the Calculation Works

The calculator follows the standard four-step method taught in general chemistry:

Step 1 — Convert to Moles

Divide each element's mass (in grams or treated as grams per 100 g for mass %) by its standard atomic weight:

moles = input_value / atomic_mass

Step 2 — Find the Smallest Mole Ratio

Divide every mole value by the smallest mole value in the set. This normalises all ratios relative to the element with the fewest moles:

ratio = moles / min(moles)

Step 3 — Round to Whole Numbers

Ratios very close to an integer (within the configurable tolerance, default ±0.05) are rounded directly. When ratios contain fractions such as 1.5, 1.33, or 1.25, the calculator automatically finds the smallest integer multiplier (×2, ×3, ×4, ×5 …) that converts all ratios to near-integers.

Step 4 — Empirical Formula Mass & Verification

The empirical formula mass (EFM) is the sum of (subscript × atomic mass) for every element. The calculator also back-calculates the percentage composition from the derived formula so you can verify it matches your original input data.

Deriving the Molecular Formula

When you know the compound's molar mass (from mass spectrometry, vapor-density measurements, or other techniques), the molecular formula is found by:

n = round(Molar Mass / EFM)
Molecular subscript = Empirical subscript × n
Glucose example: EFM of CH₂O = 30.03 g/mol. Known molar mass = 180.16 g/mol. n = 180.16 / 30.03 ≈ 6 → Molecular formula: C₆H₁₂O₆.

Worked Example — Mass Percentage Input

ElementMass %÷ Atomic MassMolesRatioSubscript
C40.00÷ 12.0113.33021.0001
H6.71÷ 1.0086.65671.9982
O53.29÷ 15.9993.33081.0021

Result:

CH₂O

(EFM = 30.03 g/mol)

Two Input Modes Explained

Mass % mode is ideal for elemental analysis certificates, where a laboratory reports the percentage of carbon, hydrogen, nitrogen, and other elements in a sample. The percentages should sum to approximately 100%; if oxygen is not directly measured it is often calculated by difference (100% minus the sum of all other elements).

Mass (g) mode is used in combustion analysis, where the actual masses of CO₂ and H₂O produced by burning a hydrocarbon are measured and converted to the masses of carbon and hydrogen. You can also use it when you have weighed individual element samples directly.

Both modes give identical empirical formulas because the mole ratios depend only on the ratio of masses — not their absolute values.

When Ratios Are Not Whole Numbers

Real experimental data is rarely perfect. A ratio of 1.498 rounds to1.5, which is not an integer — so the calculator multiplies all ratios by 2 (the smallest integer that clears the ½fraction). Similarly, 1.333 suggests a ×3 multiplier.

If your ratios do not simplify cleanly after multiplying by small integers (up to ×10), consider whether:

  • An element is missing from the input (e.g., nitrogen not measured).
  • The measured percentages contain significant experimental error.
  • The compound is ionic or polymeric rather than a discrete molecule.

Real-World Applications

Empirical formula determination is central to chemistry at every level:

  • Drug development: Pharmaceutical companies verify the elemental composition of new compounds before patenting.
  • Mineral analysis: Geochemists identify unknown minerals from the ratios of metal and non-metal atoms.
  • Polymer chemistry: Repeating units in polymers are expressed as empirical formulas (e.g., polyethylene CH₂).
  • Food science: Nutritional labelling standards require elemental composition data for novel food ingredients.
  • Education: Empirical formula problems are standard in AP Chemistry, IB Chemistry, A-Level, and university general chemistry courses.

Frequently Asked Questions

Is the Empirical Formula Calculator free?

Yes, Empirical Formula Calculator is totally free :)

Can I use the Empirical Formula Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Empirical Formula Calculator?

Yes, any data related to Empirical Formula Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is an empirical formula and how does this calculator work?

An empirical formula gives the simplest whole-number ratio of atoms in a compound. This calculator accepts the mass percentage or raw mass (grams) of each element, converts the values to moles by dividing by atomic masses, finds the smallest mole ratio, then rounds to the nearest integers to give the empirical formula subscripts.

What is the difference between an empirical formula and a molecular formula?

An empirical formula is the simplest reduced ratio of atoms (e.g., CH₂O for glucose), while a molecular formula shows the actual number of each atom in one molecule (e.g., C₆H₁₂O₆ for glucose). The molecular formula is always a whole-number multiple of the empirical formula. If you know the molar mass, this calculator can derive the molecular formula for you.

Should I use Mass % mode or Mass (g) mode?

Use Mass % if you have elemental analysis results expressed as percentages (they should sum to ~100%). Use Mass (g) if you have the actual measured masses of each element isolated from a sample — for example, from combustion analysis. Mathematically both modes give the same empirical formula because the ratios are identical.

Why doesn't my percentage composition sum to exactly 100%?

Minor deviations (up to ±1%) are normal due to instrument rounding and measurement uncertainty in elemental analysis. The calculator will warn you if the sum strays outside 99–101%, but will still calculate the formula. Larger deviations may indicate a measurement error or a missing element.

How accurate are the results?

The calculator uses IUPAC 2021 standard atomic weights and a configurable rounding tolerance (default ±0.05). Accuracy depends on the precision of your input data. The back-calculated percentage composition displayed in the results lets you verify the derived formula against your original measurements.

What is the step-by-step panel showing?

The step-by-step panel shows every intermediate calculation: (1) your input values, (2) moles calculated by dividing each mass by its atomic weight, (3) raw mole ratios divided by the smallest mole value, and (4) rounded integer subscripts. This is the standard method taught in general and analytical chemistry courses.