An empirical formula gives the simplest whole-number ratio of atoms in a compound. Enter each element’s measured mass or percentage to calculate the formula, with mole amounts and the simplest ratio shown as supporting results.
Formula
For each element, calculate its amount in moles by dividing its mass in grams by its molar mass in grams per mole:
n = m / M
Here, n is amount in moles (mol), m is element mass (g), and M is atomic molar mass (g/mol). For the example calculator inputs, use carbon 12.011 g/mol, hydrogen 1.008 g/mol, and oxygen 15.999 g/mol.
Next, divide every mole amount by the smallest mole amount. The resulting values are the simplest ratio. If a mass percentage is entered instead of a mass, treat the percentage number as grams in a notional 100 g sample; the same ratios result. The calculator’s first output gives the carbon subscript relative to the smallest amount; compare the three mole outputs and divide each by their minimum to obtain all subscripts. Reduce or scale the ratios to whole numbers for the formula.
Worked Example
Use the calculator’s default values: 40 g carbon, 6.71 g hydrogen, and 53.29 g oxygen. These add to 100.00 g, so they can also be read as percentages. Divide each mass by its atomic molar mass:
- Carbon: 40 / 12.011 = 3.3303 mol
- Hydrogen: 6.71 / 1.008 = 6.6567 mol
- Oxygen: 53.29 / 15.999 = 3.3308 mol
The smallest amount is 3.3303 mol. Divide each amount by that value:
- Carbon: 3.3303 / 3.3303 = 1.0000
- Hydrogen: 6.6567 / 3.3303 ≈ 1.9988
- Oxygen: 3.3308 / 3.3303 ≈ 1.0002
The ratio is approximately 1:2:1, so the empirical formula is CH2O. The output decimals are rounded for display; use the unrounded calculations when deciding whether a ratio is close to an integer.
Assumptions
- The entered values are element masses in grams, or percentages on a common total-mass basis.
- The sample contains only the elements included in the calculation; omitted elements can change the result.
- Atomic molar masses use the stated standard atomic weights: C 12.011, H 1.008, and O 15.999 g/mol.
- This calculation gives an empirical formula, not necessarily a molecule’s actual molecular formula.
What You’ll Need
- A reliable mass or percentage for each element in the compound. The values must all describe the same sample or percentage basis.
- The elements’ atomic molar masses, usually taken from a periodic table. This guide’s example uses carbon, hydrogen, and oxygen.
- A calculator, spreadsheet, or the calculator above. Keep extra digits through the calculations and round only when interpreting the ratio.
Step-by-Step
- List every element and its amount. Record the mass of each element in grams if known. If the data are percentages, use those percentages directly as masses in a hypothetical 100 g sample. For example, 40% carbon represents 40 g carbon in 100 g of sample. Percentages should refer to the same total and normally add to about 100%, allowing for reported rounding.
- Check the basis and units. Convert all masses to grams before calculating. Do not combine a percentage for one element with a mass for another unless you first convert them to a consistent sample basis. If given a sample mass and percentages, multiply the sample mass by each percentage divided by 100 to find each element’s mass.
- Convert each element’s mass to moles. Divide each mass by that element’s atomic molar mass. For example, use 12.011 g/mol for carbon and 1.008 g/mol for hydrogen. The units cancel as g ÷ (g/mol) = mol. Do this separately for every element, including elements with small masses.
- Find the smallest mole amount. Compare the calculated amounts and identify the lowest one. This value is the common divisor for the next step; it does not mean the element with the smallest mass necessarily has the fewest moles, because atomic masses differ.
- Divide every mole amount by the smallest. The smallest element’s result becomes 1. The other values should be close to simple whole-number ratios when the data are sufficiently precise. Do not round too early: retain several significant figures and inspect the unrounded ratios.
- Turn near-whole ratios into integers. If results are close to integers, round to the nearest whole numbers and write them as subscripts. If a ratio is close to a common fraction instead, multiply all ratios by the same small whole number. For example, 1:1.5 becomes 2:3 when every value is multiplied by 2; 1:1.33 may be near 3:4 when multiplied by 3.
- Write the formula and check it. Put element symbols in a consistent order, commonly the order provided by the problem or the conventional order for that compound class. Omit a subscript of 1. Recalculate the element proportions implied by the formula and compare them with the input data as a reasonableness check.
Common Mistakes
- Using masses as subscripts: Formula subscripts come from mole ratios, not directly from gram amounts or percentages. Convert to moles first.
- Using the wrong atomic mass: Check that each mass is assigned to the right element and use the element’s atomic molar mass, not its mass number unless the problem specifies a particular isotope.
- Rounding too soon: A value such as 1.98 may indicate 2, but early rounding can hide a meaningful ratio. Keep calculator precision until the final interpretation.
- Rounding a fractional ratio without scaling: A ratio such as 1:1.5 is not 1:2. Multiply all terms by 2 to obtain 2:3.
- Ignoring missing elements or inconsistent percentages: If the listed percentages total far from 100%, check whether an element was omitted, the data are on different bases, or the sample includes water or another component.
Tips
- For percentages, taking a 100 g sample makes each percentage numerically equal to grams and usually simplifies the arithmetic.
- Use a table with columns for element, mass, atomic molar mass, moles, and mole ratio. It makes arithmetic and transcription errors easier to spot.
- Ratios close to halves, thirds, or quarters often indicate that all values need to be multiplied by 2, 3, or 4. Use the smallest multiplier that gives whole numbers.
- After finding an empirical formula, a known molecular molar mass can help determine the molecular formula. That is a separate step: divide molecular molar mass by empirical-formula molar mass, then multiply every empirical subscript by the resulting whole number.
Troubleshooting
A ratio is not close to a simple fraction: Recheck arithmetic, units, atomic masses, and whether all elements were included. Confirm that percentages share a common basis. Experimental uncertainty may also mean the reported composition does not yield an exact integer ratio.
Values appear just above or below an integer: Use the unrounded mole amounts and consider the precision of the original measurements. A ratio such as 2.01 may reasonably represent 2 when input data are rounded; do not force a distant value to an integer without a chemical or measurement-based reason.
Percentages do not total 100%: Small differences can result from rounding. A large difference may indicate missing elements, an incorrect percentage basis, or measurements that include impurities or moisture. Clarify the data before assigning a formula.
The calculated formula differs from an expected compound: Check whether the task asks for an empirical formula or a molecular formula. The empirical formula is the simplest ratio and can be a reduced version of the molecular formula.
Frequently Asked Questions
What does an empirical formula tell you?
It gives the simplest whole-number ratio of the elements’ atoms in a compound. It does not necessarily give the actual number of atoms in one molecule.
Can I calculate an empirical formula from percentages?
Yes. Treat each percentage as the corresponding number of grams in a hypothetical 100 g sample, then convert to moles and find the simplest ratio.
What if the mole ratio is 1:1.5?
Multiply every term by 2, giving 2:3. Apply the same multiplier to all elements so the ratio stays equivalent.
Should I round mole amounts?
Do not round intermediate mole amounts aggressively. Divide by the smallest amount using full calculator precision, then interpret the resulting ratios using the precision of the original measurements.
Is the empirical formula always the molecular formula?
No. The molecular formula is an integer multiple of the empirical formula. You need the compound’s molecular molar mass to determine that multiple.
What if the composition includes an element not in the calculator?
Include every element in the mole-ratio calculation. Use a calculator or table that supports the full element list; leaving out an element can produce an incorrect formula.
Related
Formula used
in c | Carbon mass or percent | g or % | 40 | 0 in h | Hydrogen mass or percent | g or % | 6.71 | 0 in o | Oxygen mass or percent | g or % | 53.29 | 0 out f | Empirical formula subscripts C:H:O | mol ratio | c / 12.011 / min(c / 12.011, h / 1.008, o / 15.999) | 0 out mc | Moles of carbon | mol | c / 12.011 | 4 out mh | Moles of hydrogen | mol | h / 1.008 | 4 out mo | Moles of oxygen | mol | o / 15.999 | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Percent Composition Formula and Worked Example17.76 %
- What Is r in the Free Energy Equation?1.0000
- Average Atomic Mass Equation and Calculator10.81103 u
- Theoretical Yield Calculator and Stoichiometry Formula1.8015 g
- Arrhenius Equation: A-Level Chemistry and Calculator52.91 kJ/mol
- Empirical Formula Equation: Calculate the Simplest Ratio