An empirical formula calculator turns the percentage composition of a compound, or the masses of its elements, into the simplest whole-number ratio of atoms. Add the molar mass and it also gives the molecular formula. Enter one element per line with its percentage or mass.
How to use the empirical formula calculator
- Enter each element symbol and its percent or mass, one per line.
- Optionally enter the molar mass of the compound.
- Press Calculate.
The method
The method on the page runs in four steps. Assume 100 grams so that percentages become grams. Convert the grams of each element to moles by dividing by its atomic mass. Divide every mole value by the smallest one. If the results are not whole numbers, multiply them all by an integer until they are [1]. The calculator follows these steps and shows each one in the working line.
A worked example
The page's example is methyl acetate, with 48.64 percent carbon, 8.16 percent hydrogen and 43.20 percent oxygen, using atomic masses of 12.01, 1.007 and 16.00 [1]. The moles are about 4.049, 8.095 and 2.7. Dividing by 2.7 gives 1.5, 3 and 1, and multiplying by 2 gives C₃H₆O₂ [1]. The page adds that this is also the molecular formula of methyl acetate [1]. The calculator uses a hydrogen mass of 1.008 and gives the same answer.
What empirical means
The empirical formula shows the simplest ratio of atoms. Glucose, ribose, acetic acid and formaldehyde all share the empirical formula CH₂O [1]. Hexane, C₆H₁₄, has the empirical formula C₃H₇, hydrogen peroxide, H₂O₂, has HO, and for water the two formulas are the same [2]. The page notes that a molecular formula is either the same as the empirical formula or an integer multiple of it [2].
Finding the molecular formula
Divide the molar mass of the compound by the empirical formula mass, round to the nearest whole number and multiply every subscript by it. For glucose, with 40.00 percent carbon, 6.71 percent hydrogen and 53.29 percent oxygen, the empirical formula is CH₂O with a mass of about 30.03. A molar mass of 180.16 gives a multiple of 6, so the molecular formula is C₆H₁₂O₆. The pages do not write this relation out, so it is our own working.
Where the numbers come from
Combustion analysis measures the carbon, hydrogen and other elements in a sample, and the page on elemental analysis describes how the ratio of elements is worked out to give a formula that fits the results [3]. It says that results are accepted within 0.3 percent of the calculated values [3]. Because measured percentages are never exact, the calculator accepts a ratio within 0.1 of a whole number.
Atomic masses used
The page gives carbon as 12.01, hydrogen as 1.007 and oxygen as 16.00 [1]. The calculator also holds rounded standard atomic masses for nitrogen, fluorine, sodium, magnesium, phosphorus, sulfur, chlorine, potassium, calcium, iron, copper, zinc and bromine, entered from the periodic table. Those other values are not from the pages we read.
Common traps
Ratios such as 1.5 or 2.33 mean that you have to multiply, by 2 or 3. Do not round 1.5 down to 1. Make sure that the percentages come from the whole sample, with oxygen included, because oxygen is often found by difference. If the ratio does not come out, recheck the percentages and the element list.
Working with grams instead of percentages
If you start from the masses of a sample, for example 2.40 grams of carbon, 0.40 grams of hydrogen and 3.20 grams of oxygen, enter them as they are. The ratio method does not need the total to be 100, since it only compares the moles of one element with another. The result for this example is CH₂O, the same as for glucose. Percentages are simply masses for a sample of 100 grams.
Combustion data
Laboratory data often come as the carbon dioxide and water collected from burning a sample. Convert them first to the mass of carbon and hydrogen, using the fractions of 12.01 out of 44.01 and 2.016 out of 18.02, and find oxygen by difference from the sample mass. Then enter the three masses. This route is how many empirical formulas were first found.
Checking the result
Compute the percentage composition of your answer and compare it with the data. Differences of a few tenths of a percent are normal, and the page on elemental analysis accepts up to 0.3 percent. If the result differs by much more, recheck the percentages and the list of elements.
Practice problems
Try a compound with 52.14 percent carbon, 13.13 percent hydrogen and 34.73 percent oxygen. The ratio comes to 2, 6 and 1, so the empirical formula is C₂H₆O, which matches ethanol and a molar mass of 46.07 gives the same molecular formula. Then try 85.6 percent carbon and 14.4 percent hydrogen, which gives CH₂.
Common mistakes
- Rounding 1.5 to 1 or 2. Multiply all the ratios until each is whole.
- Forgetting oxygen. Oxygen is often found by difference from 100 percent.
- Using atomic numbers instead of masses. Divide by atomic mass.
- Confusing empirical and molecular formulas. Add the molar mass to get the molecular formula.
What next
Use this often? Add Empirical Fo to your Home screen.
Frequently asked questions
What is an empirical formula calculator?
A tool that turns percent composition or element masses into the simplest whole-number ratio of atoms.
How do I find an empirical formula?
Convert percentages to grams, grams to moles, divide by the smallest, and multiply to whole numbers if needed.
What is the empirical formula of glucose?
CH₂O. The molecular formula is C₆H₁₂O₆.
How do I get the molecular formula?
Divide the molar mass by the empirical formula mass and multiply every subscript by that whole number.
What if the ratio is 1.5?
Multiply every ratio by 2 to get whole numbers.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.