Empirical Formula Calculator (% Composition)
Convert percent composition data to empirical and molecular formulas. Enter element percentages to calculate mole ratios, empirical formula, and molecular
Empirical Formula Calculator (% Composition)
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Moles = % / Atomic Mass, then divide by smallest mole value
Worked example — Empirical formula = CH2O
Formula
Moles = % / Atomic Mass, then divide by smallest mole value
Convert each element percentage to moles by dividing by its atomic mass. Then divide all mole values by the smallest to get the simplest ratio. Multiply by a whole number if needed. For molecular formula, divide the known molar mass by the empirical formula mass.
Worked Examples
Example 1: Empirical Formula of Glucose
Problem:A compound is 40.0% C, 6.7% H, and 53.3% O. Find the empirical formula.
Solution:C: 40.0 / 12.011 = 3.330 mol H: 6.7 / 1.008 = 6.647 mol O: 53.3 / 15.999 = 3.331 mol Divide by smallest (3.330): C: 1, H: 2, O: 1 Empirical Formula: CH2O
Result:Empirical formula = CH2O
Example 2: Molecular Formula from Empirical
Problem:The empirical formula is CH2O (mass 30.03 g/mol) and the molar mass is 180.16 g/mol.
Solution:Multiplier = 180.16 / 30.03 = 6 Molecular formula = C6H12O6 This is the molecular formula of glucose.
Result:Molecular formula = C6H12O6
Frequently Asked Questions
What is the difference between empirical and molecular formulas?
The empirical formula represents the simplest whole-number ratio of atoms in a compound. The molecular formula shows the actual number of atoms in one molecule. For example, glucose has an empirical formula of CH2O (simplest ratio 1:2:1) but a molecular formula of C6H12O6 (the actual molecule). The molecular formula is always a whole-number multiple of the empirical formula. To determine the molecular formula, you need both the empirical formula and the compound molar mass.
How do you find the empirical formula from percent composition?
To find the empirical formula from percent composition, follow these steps: (1) Assume you have 100 grams of the compound, so each percentage equals grams. (2) Convert grams of each element to moles by dividing by its atomic mass. (3) Divide all mole values by the smallest mole value to get mole ratios. (4) If the ratios are not whole numbers, multiply all ratios by the smallest integer that converts them to whole numbers. These whole numbers become the subscripts in the empirical formula.
What if the percent composition does not add up to 100%?
If the given percentages do not sum to 100%, there may be an additional element not listed, most commonly oxygen. In such cases, you can assume the remaining percentage belongs to the missing element. For example, if a compound is 40% carbon and 6.7% hydrogen (totaling 46.7%), the remaining 53.3% is likely oxygen. Always check whether the problem states all elements or if one must be calculated by difference. Empirical Formula Calculator (% Composition) will work with whatever percentages you provide.
Why do we need to multiply mole ratios by whole numbers sometimes?
After dividing by the smallest mole value, the ratios may not be exact whole numbers due to the nature of the math. Common cases include ratios like 1.5 (multiply by 2), 1.33 (multiply by 3), 1.25 (multiply by 4), or 1.67 (multiply by 3). Since chemical formulas must have whole-number subscripts representing actual atoms, we need to find the smallest multiplier that converts all ratios to integers. This step is essential for getting the correct empirical formula.
How does combustion analysis provide the percentages used in Empirical Formula Calculator (% Composition)?
Combustion analysis burns a weighed sample of an unknown organic compound completely in excess oxygen, then traps and weighs the resulting CO2 and H2O. Since all the sample's carbon ends up in CO2 and all its hydrogen ends up in H2O, chemists back-calculate the original mass of carbon and hydrogen in the sample, convert those masses to percentages, and (if the compound contains oxygen) find oxygen's percentage by subtracting from 100%. This is the real experimental source of the percent-composition numbers Empirical Formula Calculator (% Composition) turns into an empirical formula — a workflow used routinely to identify unknown organic compounds in synthesis and forensic labs.
Why is a separate molar mass needed to get the molecular formula instead of just the empirical formula?
The empirical formula only captures a ratio (like CH2O), which is consistent with an entire family of compounds of different actual sizes — formaldehyde (CH2O, 30.03 g/mol), acetic acid (C2H4O2, 60.05 g/mol), and glucose (C6H12O6, 180.16 g/mol) all share the same empirical formula CH2O but are completely different substances. A separate experimental molar mass measurement (often from mass spectrometry or freezing-point depression) is needed to determine the whole-number multiplier n in (empirical formula)n that gives the true molecular formula.
What is the difference between percent composition by mass and mole percent?
Percent composition by mass gives each element's share of the sample's total mass, and it is what elemental analysis reports and what Empirical Formula Calculator (% Composition) expects as input. Mole percent gives each element's share of the total number of atoms, which is what the empirical formula subscripts express. The two differ because atomic masses differ: in water hydrogen is two thirds of the atoms but only about 11 percent of the mass, since oxygen at 16.00 g/mol dwarfs hydrogen at 1.008. Dividing by atomic mass is the step that converts mass shares into mole ratios.
Do ionic compounds and network solids have molecular formulas at all?
No. Sodium chloride is a continuous lattice of sodium and chloride ions with no discrete molecule to count, and quartz is an extended silicon-oxygen network. For these substances the empirical formula is the whole story, and chemists call it a formula unit: NaCl means a one-to-one ion ratio, SiO2 a one-to-two atom ratio. Supplying a molar mass for such a compound is meaningless, since there is no molecule whose mass could be a whole-number multiple of the formula unit.
How much experimental error can the mole ratios absorb before the formula is wrong?
Elemental analysis typically reports percentages good to a few tenths of a percent, so a computed ratio of 2.97 or 3.04 is safely rounded to 3. Trouble starts when the ratio sits near a genuine fraction, since 2.45 could be 2.5 needing a doubling or a badly measured 2.4. The risk grows with the size of the subscripts, because a compound requiring a multiplier of five or seven demands far better analytical precision than one that resolves to small integers.
Can two different compounds share the same percent composition?
Yes, and this is the method's central limitation. Isomers have identical formulas and therefore identical percentages: glucose and fructose are both C6H12O6, and ethanol and dimethyl ether are both C2H6O. Compounds related by a whole-number multiple, such as formaldehyde and acetic acid, also share percentages exactly. Composition fixes only which atoms are present and in what proportion; connectivity requires structural evidence from nuclear magnetic resonance, infrared spectroscopy or mass spectral fragmentation.
References
Background & Theory
History
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Percent Composition Calculator
Calculate percent composition with inputs, formulas, and instant results.
🧮Percent Purity Calculator
Calculate percent purity with inputs, formulas, and instant results.
🧮Percent Ionic Character Calculator
Calculate percent ionic character with inputs, formulas, and instant results.
🧮Mass Percent Calculator
Calculate mass percent with inputs, formulas, and instant results.
🧮Percent Solution Calculator
Calculate percent solution with inputs, formulas, and instant results.
🧮Percent Yield Calculator
Calculate percent yield with inputs, formulas, and instant results.
🧮Percent to Molarity Calculator
Calculate percentage concentration to molarity with inputs, formulas, and instant results.
🧮Henderson-Hasselbalch Calculator
Calculate pH of buffer solutions using the Henderson-Hasselbalch equation from pKa and concentrations.