🧪 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:
| Property | Empirical Formula | Molecular Formula |
|---|---|---|
| Definition | Simplest whole-number ratio of atoms | Actual number of each atom per molecule |
| Example (glucose) | CH₂O | C₆H₁₂O₆ |
| Derivation | From mass % or combustion analysis | Empirical formula × integer n |
| Requires molar mass? | No | Yes |
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_massStep 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 × nWorked Example — Mass Percentage Input
| Element | Mass % | ÷ Atomic Mass | Moles | Ratio | Subscript |
|---|---|---|---|---|---|
| C | 40.00 | ÷ 12.011 | 3.3302 | 1.000 | 1 |
| H | 6.71 | ÷ 1.008 | 6.6567 | 1.998 | 2 |
| O | 53.29 | ÷ 15.999 | 3.3308 | 1.002 | 1 |
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.
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.