How this instrument works
An empirical formula gives the simplest whole-number ratio of atoms in a compound — CH₂O for formaldehyde, glucose, and every other compound sharing that same 1:2:1 carbon-hydrogen-oxygen ratio, even though they're chemically very different substances with different actual molecular formulas. Finding it from lab data starts with percent composition: if you know what fraction of a compound's mass is each element, you can treat that as grams of each element per 100 g of compound, without needing to know the compound's actual molar mass yet.
From there, the process is mechanical: convert each element's mass to moles by dividing by its atomic weight, then divide every mole value by whichever one came out smallest. That last step is the whole trick — dividing by the smallest guarantees at least one element ends up at a clean ratio of exactly 1, and the others land at whatever multiple of that baseline they actually represent. For a compound that's 40.0% C, 6.7% H, and 53.3% O by mass, that arithmetic lands on carbon:hydrogen:oxygen ≈ 1:2:1 — the empirical formula CH₂O.
Sometimes the ratio doesn't land on clean whole numbers — a result like 1 : 1.5 needs one more step, multiplying every ratio by whatever small integer clears the fraction (×2 turns 1 : 1.5 into the whole-number ratio 2 : 3; a ratio ending in .33 instead would call for ×3). This instrument performs the mass-to-moles conversion and the divide-by-smallest step, and returns the resulting ratios exactly as calculated; recognizing a non-whole-number pattern like x.33 or x.5 and picking the right multiplier to clear it is a judgment call left to you, not something this tool automates.
- Choose Element 1 from its dropdown — the dropdown carries each element's atomic weight internally, so you pick the element by name rather than typing a chemical symbol.
- Enter Element 1's mass percent (or grams per 100 g of sample, which is numerically the same thing).
- Repeat for Element 2 and Element 3.
- Read the mole ratio for each element relative to whichever one came out smallest — the smallest is always reported as exactly 1.
- If any ratio isn't close to a whole number, multiply all three ratios by the smallest integer that clears the fraction — this instrument reports the raw ratios; that final rounding judgment is yours to make.
Worked example — finding formaldehyde's empirical formula
A compound analyzes as 40.0% carbon, 6.7% hydrogen, and 53.3% oxygen by mass. Treating that as a 100 g sample: moles of C = 40.0 ⁄ 12.011 = 3.330, moles of H = 6.7 ⁄ 1.008 = 6.647, moles of O = 53.3 ⁄ 15.999 = 3.332. Carbon has the smallest mole count, so divide every value by 3.330: C = 1.000, H ≈ 1.996, O ≈ 1.000. Those ratios are close enough to 1 : 2 : 1 to round confidently, giving the empirical formula CH₂O — the formula for formaldehyde, and also the empirical formula (though not the molecular formula) of glucose and every other simple carbohydrate.
That CH₂O result is deliberately clean, but real lab data rarely lands exactly on whole numbers — measurement uncertainty alone usually produces ratios like 1.996 rather than a perfect 2.000, which this instrument reports as-is rather than silently rounding for you. Judging when 1.996 is 'close enough' to round to 2, versus when a ratio like 2.4 genuinely needs multiplying by a small integer to clear the fraction, is exactly the step this tool leaves for you to apply.
Questions
What is the difference between an empirical formula and a molecular formula?
An empirical formula gives the simplest whole-number ratio of atoms in a compound; a molecular formula gives the actual number of each atom in one real molecule of the compound. Glucose's molecular formula is C₆H₁₂O₆, but its empirical formula is CH₂O — the same 1:2:1 ratio reduced to its simplest terms, shared with formaldehyde (CH₂O) and every other compound built from that same underlying ratio, even though they're entirely different substances.
Why do you divide by the smallest mole value?
Dividing every element's mole count by the smallest one guarantees at least one element normalizes to exactly 1, which is the necessary first step toward expressing the ratio in simplest whole-number terms. It doesn't guarantee every ratio lands on a whole number by itself — that's why a further whole-number-clearing multiplication is sometimes needed afterward — but it's the standard starting point every empirical formula calculation begins from.
What if my mole ratios come out to something like 1 : 1.5 : 1?
A ratio ending in .5 (or .33, or .25, and similar recognizable fractions) means the true whole-number ratio hasn't been reached yet — multiply every ratio by the smallest integer that clears the fraction. A 1 : 1.5 : 1 ratio, multiplied by 2, becomes 2 : 3 : 2, a genuine whole-number ratio. This instrument reports the ratios exactly as calculated from your inputs; recognizing the fractional pattern and applying the right multiplier is a manual step this tool doesn't automate.
Why does this calculator use a dropdown for elements instead of letting me type a chemical symbol?
Each dropdown option carries that element's standard atomic weight as its underlying value, so selecting 'Carbon' from the list plugs 12.011 g/mol directly into the calculation without a separate lookup step or the risk of a typo in a hand-typed symbol. It's the same design used for this project's molar mass and percent composition calculators, and it trades free-text flexibility for a lower-error, no-lookup-table-needed input.
Can I find an empirical formula with more than three elements?
This instrument accepts up to three elements, which covers the great majority of common empirical formula problems taught in general chemistry. Compounds with four or more distinct elements need the same mass-to-moles, divide-by-smallest procedure extended across every element present — the underlying method is identical, just with more rows of arithmetic to track by hand or in a spreadsheet.