Home›Chemistry›Molecular Weight Guide

Empirical Formula from Percent Composition: The Four-Step Method

A laboratory report gives you percentages, not a formula. Divide by atomic weights, divide by the smallest, and round — and the simplest ratio falls out, with two fully worked examples.

Updated October 2026Molecular Weight Calculator

Percent composition is the reverse direction of molar-mass work. Instead of starting from a formula and finding its mass, you start from a laboratory analysis — so many percent carbon, so many percent hydrogen, so many percent oxygen — and you recover the formula. The method has exactly four steps, it uses only division, and it is the method behind every empirical-formula question in school and university chemistry. This guide states it, works it twice with every number shown, explains the rounding rules that cause most errors, and states plainly where it stops: percentages alone can never give the molecular formula, and the calculator on this site does not perform this step for you.

Key takeaways
  • Percent composition means grams of each element per 100 grams of compound, so assuming a 100-gram sample turns every percentage into a mass with no extra work.
  • Divide each mass by its atomic weight to get moles, then divide every mole value by the smallest one: the quotients are the atom ratio.
  • Round only at the end, and round to a recognisable fraction first — 1.99 rounds to 2, but 1.33 means multiply everything by 3.
  • Percentages fix only the simplest ratio. The molecular formula needs one more measurement: the molar mass.

What percent composition actually means

A percent composition is a mass statement, not a count statement. Saying a compound is 40.0% carbon means that in every 100 grams of the compound, 40.0 grams are carbon. It does not mean that 40% of the atoms are carbon, because a carbon atom weighs about twelve times as much as a hydrogen atom: equal masses of two elements contain very different numbers of atoms. The whole method exists to correct for that difference. You convert each mass into a number of atoms — measured in moles, so the numbers stay manageable — and only then compare them.

That is also why the first step of the method, assuming a 100-gram sample, is not an approximation. Percentages are defined per hundred, so a 100-gram sample makes the percentage and the mass numerically identical: 40.0% becomes 40.0 grams, 6.7% becomes 6.7 grams, and nothing has been estimated or rounded. If an analysis is given for a different total, or as masses rather than percentages, the same logic applies with the actual masses — the 100-gram assumption is a convenience, not a requirement.

The four-step method

Step one: assume 100 grams of compound, so each percentage becomes a mass in grams. Step two: divide each mass by the atomic weight of its element, using the standard atomic weights — hydrogen 1.008, carbon 12.011, nitrogen 14.007, oxygen 15.999. The quotients are moles of each element in the sample. Step three: divide every mole value by the smallest mole value in the set. The smallest element becomes 1.00 by construction, and the others become its multiples. Step four: turn the quotients into whole numbers. Values within experimental error of a whole number round to it; values near a simple fraction — 1.33, 1.50, 1.67 — are multiplied through by the denominator that clears them. The whole numbers are the subscripts of the empirical formula, written with the usual element order: carbon first, then hydrogen, then the rest alphabetically.

Two habits protect the result. First, keep at least three significant figures through the divisions and round only at the final step: rounding the mole values early can turn a clean 1.99 into a confusing 2.04 or a 1.50 into a 1.49 that no longer looks like a half. Second, check the answer backwards: compute the percent composition of your proposed empirical formula and compare it with the analysis you started from. If the two agree within the rounding of the data, the ratio is right; if they do not, the error is in the arithmetic, not in the method.

Worked example: the 40.0 / 6.7 / 53.3 analysis

A compound analyses as 40.0% carbon, 6.7% hydrogen and 53.3% oxygen. Assume 100 grams, so the sample contains 40.0 grams of carbon, 6.7 grams of hydrogen and 53.3 grams of oxygen. Divide each by its atomic weight: carbon gives 40.0 ÷ 12.011 = 3.330 moles, hydrogen gives 6.7 ÷ 1.008 = 6.647 moles, and oxygen gives 53.3 ÷ 15.999 = 3.331 moles. The smallest value is carbon’s 3.330, so divide all three by it: carbon 3.330 ÷ 3.330 = 1.00, hydrogen 6.647 ÷ 3.330 = 2.00, oxygen 3.331 ÷ 3.330 = 1.00. The ratio is 1 : 2 : 1, and the empirical formula is CH2O.

ElementMass in 100 g÷ atomic weightMoles÷ smallest (3.330)Ratio
Carbon40.0 g÷ 12.0113.3301.001
Hydrogen6.7 g÷ 1.0086.6472.002
Oxygen53.3 g÷ 15.9993.3311.001

Table 1 — From percentages to the ratio for the 40.0 / 6.7 / 53.3 analysis.

The empirical-formula mass follows at once: one carbon at 12.011 plus two hydrogens at 1.008 each plus one oxygen at 15.999 gives 12.011 + 2.016 + 15.999 = 30.026 g/mol. That is the mass of the CH2O unit, not yet the mass of the compound — the distinction that the next section turns into the molecular formula. Note also that this analysis is exactly the percent composition of glucose, which is why the backward check works so cleanly: glucose, C6H12O6, is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by the same arithmetic, and any candidate formula that does not reproduce those percentages has gone wrong somewhere.

Worked example: the 92.3 / 7.7 analysis

A second compound analyses as 92.3% carbon and 7.7% hydrogen, with no other element present. In 100 grams there are 92.3 grams of carbon and 7.7 grams of hydrogen. Dividing gives carbon 92.3 ÷ 12.011 = 7.685 moles and hydrogen 7.7 ÷ 1.008 = 7.639 moles. Divide by the smaller value, hydrogen’s 7.639: carbon becomes 7.685 ÷ 7.639 = 1.01 and hydrogen becomes 1.00. The ratio is 1 : 1 within experimental error — the 1.01 is the kind of small deviation that real analyses always carry — so the empirical formula is CH, with an empirical-formula mass of 12.011 + 1.008 = 13.019 g/mol.

Here the difference between the two examples matters. In the first example the ratio came out clean at 1 : 2 : 1 with no judgement call. In this example it came out at 1.01 : 1.00, and the judgement is that 1.01 is 1, not a new fraction. The test is the backward check: CH implies 92.3% carbon and 7.7% hydrogen, which matches the analysis, while any more complicated ratio would imply percentages the analysis does not show. When a quotient lands near 1.01 or 1.99, round it; when it lands near 1.33 or 1.50, do not round it — multiply, as the next section explains.

Rounding rules: when to round, and when to multiply

Three cases cover nearly every analysis. If a quotient is within about 0.05 of a whole number — 1.99, 2.02, 0.98 — round it to that whole number; the gap is experimental error in the percentages. If a quotient is near a simple fraction, clear it by multiplying every quotient by the fraction’s denominator: a ratio of 1 : 1.50 : 1 becomes 2 : 3 : 2 on multiplying by 2, and a ratio of 1 : 1.33 : 1 becomes 3 : 4 : 3 on multiplying by 3. If a quotient is near neither — 1.21, say — do not force it: either the analysis has a genuine error, an element is missing from the analysis, or the compound contains a fractional-looking ratio that a larger multiplier would reveal, and the honest move is to recheck the data rather than invent a formula.

The most common rounding error is doing it too early. Dividing 6.7 by 1.008 gives 6.647, and dividing that by 3.330 gives 2.00; but if the mole values are first rounded to 3.3, 6.6 and 3.3, the quotients become 1.00, 2.00 and 1.00 only by luck, and with slightly different data they become 1.00, 2.03 and 0.97, which looks like a problem where none exists. Keep the decimals until the ratio step, and let the ratio step be the only place where judgement happens. A second common error is dividing by the wrong value — by the largest mole value, or by an atomic weight a second time — which produces ratios that are all below 1 and tempt the solver to round everything to 1. The divisor is always the smallest mole value, and it always produces at least one 1.00.

From empirical formula to molecular formula

Percentages determine the ratio, and nothing more. Every multiple of CH2O — CH2O itself, C2H4O2, C3H6O3, C6H12O6 — has exactly the same percent composition, 40.0% carbon, 6.7% hydrogen and 53.3% oxygen, because multiplying a formula multiplies every element by the same factor and the percentages cancel it out. To choose between the multiples you need one independent measurement: the molar mass of the compound, found experimentally. Divide the measured molar mass by the empirical-formula mass, and the quotient, rounded to a whole number, is the multiplier. For the first example the empirical-formula mass is 30.026 g/mol; a measured molar mass of 180.156 g/mol gives 180.156 ÷ 30.026 = 6, so the molecular formula is C6H12O6, glucose. For the second example the empirical-formula mass is 13.019 g/mol; a measured molar mass of 78.114 g/mol gives 78.114 ÷ 13.019 = 6, so the molecular formula is C6H6, benzene.

Molecular formulaMolar mass (g/mol)Empirical mass × nPercent C / H / O
CH2O30.02630.026 × 140.0 / 6.7 / 53.3
C2H4O260.05230.026 × 240.0 / 6.7 / 53.3
C6H12O6180.15630.026 × 640.0 / 6.7 / 53.3

Table 2 — One percent composition, many molecular formulas: the CH2O family.

That table is the reason the two formulas must never be confused, and the reason percent composition questions always come in two parts. The first part asks for the empirical formula, which the percentages alone determine. The second part supplies a molar mass and asks for the molecular formula, which the percentages plus the molar mass determine together. A student who answers the first part with C6H12O6 has guessed the second part’s answer without its data; a student who answers the second part with CH2O has ignored the data given. Keep the two questions separate and each one is straightforward.

The mistakes that produce confident wrong ratios

The leading mistake is skipping the atomic-weight division and treating the percentages themselves as the ratio — 40 : 6.7 : 53.3 rounded to something like 6 : 1 : 8, which is not a formula for anything. Percentages are masses; atoms are counted in moles; the division is the whole point of the method, and skipping it is the only error that guarantees a wrong answer from correct data. The second mistake is dividing by the smallest percentage instead of the smallest mole value, which happens when the two steps are done in the wrong order. The third is writing the formula with the elements in percentage order rather than conventional order, producing H6.7O53.3C40-style nonsense instead of CH2O. The fourth is forgetting that the empirical formula is the simplest ratio: C2H4O2 as an answer to a percent-composition question is not wrong in its ratios, but it is not the empirical formula — it is one of its multiples, and the question asked for the simplest one.

A subtler mistake is treating the backward check as optional. The check costs one multiplication per element and catches every arithmetic slip in the method, including the easy ones: a transposed digit in an atomic weight, a division done upside down, a percentage copied from the wrong column. The habit to build is: propose the formula, compute its percent composition, compare with the analysis. If they match, stop. If they do not, the formula is wrong, however plausible the ratio looked. That habit is worth more than speed, because in laboratory work the same check catches mislabelled samples and contaminated analyses, not just arithmetic.

What this method cannot do, and what the calculator does instead

Three limits belong in any honest account. First, the method assumes the analysis is complete: if an element present in the compound is missing from the percentages, the ratio is wrong, and no amount of careful division repairs it. Analyses that do not sum to 100% should be treated as incomplete until the missing mass is explained. Second, the method gives no information about structure: CH2O is the empirical formula of formaldehyde, acetic acid’s simplest ratio and glucose’s simplest ratio all at once, and telling those apart needs the molar mass and then spectroscopy, not more percentages. Third, this calculation is not something the Molecular Weight Calculator on this site performs: that calculator works from a formula you type, counts its atoms and returns its molar mass with a breakdown. To use the two together, work the ratio by hand with the method above, type the resulting formula into the calculator, and check that its molar mass and its percent breakdown match your analysis — the calculator verifies the formula, it does not derive it.

One excluded cousin deserves a sentence so it is not mistaken for a gap: a mass-spectrometry ppm error — the difference between a measured mass and a theoretical mass expressed in parts per million — is a different calculation from anything on this page, and no tool on this site computes it. Percent composition, empirical formulas and molar masses are the subject here; ppm belongs to instrument work, and a guide that claimed otherwise would be inventing a feature. If a mass-spec question asks for ppm, the formula is the measured-minus-theoretical difference divided by the theoretical mass, times one million — but that is a hand calculation, not a calculator feature, and it is stated here only so the boundary is visible.

Try the numbers in this guide on the calculator itself, with your own formula and your own percentages.

Open the Molecular Weight Calculator

Frequently asked questions

What is percent composition?

Percent composition is the mass of each element in a compound expressed as a percentage of the total mass. A compound that is 40.0% carbon contains 40.0 grams of carbon in every 100 grams of the compound. It is a mass statement, not an atom count, which is why converting to moles is the essential step before any ratio is read off.

Why do you assume a 100-gram sample?

Because percentages are defined per hundred grams, a 100-gram sample makes each percentage numerically equal to a mass in grams: 40.0% becomes 40.0 grams with no calculation and no approximation. If the data are given as actual masses instead of percentages, use those masses directly and skip the assumption; the rest of the method is unchanged.

How do you turn percentages into an empirical formula?

Assume 100 grams so the percentages become masses, divide each mass by its element’s atomic weight to get moles, divide every mole value by the smallest mole value to get the ratio, and round the quotients to whole numbers — multiplying through when a quotient is near a simple fraction such as 1.33 or 1.50. The whole numbers are the subscripts of the empirical formula.

Why do you divide by the smallest number of moles?

Dividing by the smallest value expresses every element relative to the least plentiful one, which turns the mole values into the simplest comparison the data support. The smallest element becomes 1.00 by construction, and the other quotients become its multiples — the ratio in its cleanest form. Dividing by any other value gives the same proportions scaled awkwardly, with no element at 1.

Can percent composition alone give the molecular formula?

No. Every multiple of an empirical formula has the same percent composition, so percentages alone cannot distinguish CH2O from C2H4O2 or C6H12O6. The molecular formula needs one more measurement, the molar mass: divide it by the empirical-formula mass and the whole-number quotient is the multiplier that turns the empirical formula into the molecular one.

Does the Molecular Weight Calculator work out empirical formulas from percentages?

No. The calculator works from a formula you type: it counts the atoms, multiplies by standard atomic weights and returns the molar mass with an element breakdown. It does not take percentages as input and does not derive a ratio. Work the ratio by hand with the method in this guide, then type the resulting formula into the calculator to verify its mass and breakdown.

Related guides

Similar Posts