Empirical and Molecular Formulas from Composition
After reading this you can turn any set of element percents, masses or moles into an empirical formula, and use a molar mass to find the molecular formula, by hand and with the numbers checked.
What an empirical formula tells you
The empirical formula is the simplest whole-number ratio of atoms in a compound. It answers one question: for every atom of the least common element, how many atoms of each other element are present?
Take glucose. A lab reports it as 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass. That percent composition alone gives the empirical formula CH2O: one carbon, two hydrogens, one oxygen. Notice what it does not give you. Formaldehyde is also CH2O. So is acetic acid, C2H4O2, which reduces to the same ratio. The empirical formula fixes the ratio, not the actual count of atoms in a molecule.
To go from ratio to real molecule you need one more number: the molar mass. Glucose has a molar mass of 180 g/mol. The empirical unit CH2O weighs about 30 g/mol, and 180 / 30 = 6, so the molecular formula is (\text{CH}_2\text{O})_6 = \text{C}_6\text{H}_{12}\text{O}_6. That is the hook this tool is built around.
When to use this, and when it cannot help
Reach for this method when you have a composition and want a formula. Combustion analysis is the classic source: burn a known mass of an organic sample, weigh the carbon dioxide and water produced, and back out the mass of C and H. Elemental analysis services report the same thing as mass percents.
The method has limits. It cannot distinguish isomers, because glucose and fructose share the formula C6H12O6 yet differ in structure. It cannot tell you connectivity or bonding. And it assumes your composition data covers every element. If percents do not sum near 100%, a component is missing (often oxygen, found by difference).
Rounding too early destroys the ratio. Carry at least four significant figures through the division step. A mole ratio of 1.99 is clearly 2, but rounding an intermediate value to 2.0 too soon can hide a real 2.5 that needed doubling.
The math, from mass to ratio
Every step rests on one idea: equal moles mean equal atom counts, regardless of mass. Convert each element's amount to moles, then compare.
Here n_i is the moles of element i, m_i is its mass in grams, and M_i is its atomic molar mass in g/mol. If your data is mass percent, treat the percents as grams in a 100 g sample: 40.0% carbon becomes 40.0 g. If your data is already moles, skip this step.
Next divide every mole count by the smallest one. That forces the least common element to a ratio of exactly 1.
The r_i are ratios. If they are already close to whole numbers, you are done. If one lands near 1.5, 1.33 or 1.25, multiply every ratio by 2, 3 or 4 until all are whole. The molecular formula, when you know the molar mass M, comes from one integer multiplier.
M_\text{emp} is the molar mass of the empirical unit, and k rounds to the nearest whole number.
Worked example: the glucose demo
C 40.0, H 6.7, O 53.3, molar mass 180
These are mass percents, so read them as grams in a 100 g sample. Atomic masses: C = 12.011, H = 1.008, O = 15.999 g/mol.
- Convert to moles. Carbon: 40.0 / 12.011 = 3.331. Hydrogen: 6.7 / 1.008 = 6.647. Oxygen: 53.3 / 15.999 = 3.331.
- Find the smallest, which is
3.331(carbon and oxygen tie). - Divide each by 3.331. Carbon: 3.331 / 3.331 = 1.000. Hydrogen: 6.647 / 3.331 = 1.995. Oxygen: 3.331 / 3.331 = 1.000.
- Round to whole numbers: 1, 2, 1. The empirical formula is
CH2O. - Empirical mass: 12.011 + 2(1.008) + 15.999 = 30.026 g/mol.
- Multiplier: k = 180 / 30.026 = 5.994 \approx 6.
- Molecular formula: (\text{CH}_2\text{O})_6 = \text{C}_6\text{H}_{12}\text{O}_6.
The hydrogen ratio came out as 1.995, not a clean 2. That gap is measurement noise in the 6.7% figure, not a sign of a half-atom. Rounding 1.995 to 2 is safe.
Reading the ratios you get
The hardest judgment is deciding when a decimal ratio is really a fraction. Use this table as a guide. The middle column is the fraction it is closest to, and the right column is the whole-number multiplier that clears it.
| Decimal ratio | Likely fraction | Multiply all by |
|---|---|---|
| 1.50 | 3/2 | 2 |
| 1.33 | 4/3 | 3 |
| 1.25 | 5/4 | 4 |
| 1.67 | 5/3 | 3 |
| 2.50 | 5/2 | 2 |
A worked case: iron oxide often analyzes as an Fe:O ratio near 1.00 : 1.50. Multiplying both by 2 gives 2 : 3, so the formula is Fe2O3. If you had rounded 1.50 to 2, you would have written FeO2, which is wrong. Set a tolerance of about \pm 0.1 for calling a value a whole number, and treat anything inside 0.1 of a common fraction as that fraction.
Common mistakes
Five errors account for most wrong answers.
- Rounding intermediate moles
- Keep four significant figures until the final ratio. Rounding
3.331to3.3shifts the hydrogen ratio from 1.995 to 2.02, which is still fine here, but in tighter cases it flips a 2.48 to 2.5 or back. - Dividing by the wrong value
- Always divide by the smallest mole count, not the largest and not the first listed. Dividing by the largest gives fractions below 1 that are harder to read.
- Confusing mass percent with mole percent
- Percents from elemental analysis are mass percents. Convert to moles before comparing. Skipping the conversion for the glucose data would give a false ratio of
40 : 6.7 : 53.3. - Forcing a whole number too aggressively
- A ratio of 2.5 is not 2 or 3. Multiply the whole set by 2.
- Trusting a molar mass you guessed
- The molecular multiplier k should land within about 0.05 of a whole number. If you get
k = 5.4, either the molar mass or the composition is off. Recheck before rounding.
If your percents do not add to 100%, the missing fraction is usually oxygen. Assign the remainder to oxygen and continue. For example, a sample listed as 52.2% C and 13.0% H leaves 34.8%, which is the oxygen mass percent.
How the molecular multiplier behaves
The multiplier k scales linearly with the reported molar mass. Hold the empirical mass at 30.03 g/mol (the CH2O unit) and sweep the molar mass. Every time the molar mass crosses a multiple of 30.03, a new molecular formula becomes correct.
The line shows why one empirical formula can serve many real compounds. Formaldehyde sits at k = 1, acetic acid at k = 2, and glucose at k = 6. The molar mass is the only thing that separates them.
Related tools
Once you have a formula, several other calculators pick up from there. The Molar Mass Calculator runs the reverse trip: give it a formula and it returns molar mass and percent composition, which you can use to check your empirical work. The Mole Calculator converts between grams, moles and particle counts when you need to prepare a sample of known amount.
For reactions built from your compound, the Chemical Equation Balancer and the Stoichiometry Calculator handle balancing and amount tracking. Atomic masses used in the mole step come from the Periodic Table Element Lookup.
Frequently asked questions
What is the difference between empirical and molecular formula?
The empirical formula is the simplest whole-number atom ratio, such as CH2O. The molecular formula is the actual atom count in one molecule, such as C6H12O6. The molecular formula is always a whole-number multiple of the empirical one, and you need the molar mass to find that multiple.
Why do I treat percents as grams?
Percent composition is defined per 100 g of sample. Reading 40.0% as 40.0 g just picks a 100 g basis, which is convenient because the mass numbers equal the percent numbers. Any basis gives the same ratio, since the division step cancels the total mass.
My ratio came out as 1.5. Did I make a mistake?
Probably not. A ratio of 1.5 is a real 3/2 ratio. Multiply every element's ratio by 2 to clear it. For example, 1.00 : 1.50 becomes 2 : 3, giving a formula like Fe2O3.
What if my percents do not add up to 100?
A small gap (99 to 101) is rounding. A large gap means a missing element, usually oxygen. Assign the shortfall to that element as its mass percent and proceed.
Can this tell glucose from fructose?
No. Both are C6H12O6. Empirical and molecular formulas fix the atom counts but not how atoms connect, so isomers share the same formula.