Empirical Formula Calculator

Calculate the simplest whole number ratio of atoms in a compound from percent composition or mass data.

Element Data

Results

Calculated
Empirical Formula
-
Calculation Steps
Element Mass/Percent Molar Mass Moles Mole Ratio Subscript

Frequently Asked Questions

What's the difference between empirical and molecular formula?

The empirical formula shows the simplest whole number ratio of atoms (e.g., CH2O), while the molecular formula shows the actual number of atoms in one molecule (e.g., C6H12O6 for glucose). The molecular formula is always a whole number multiple of the empirical formula.

How do I know if my empirical formula is correct?

Check that: (1) all subscripts are whole numbers with no common factor greater than 1, (2) the percent composition calculated from your formula matches the original data, and (3) the subscripts represent the smallest possible integers.

What if my ratios don't come out to whole numbers?

If ratios are close to whole numbers (within 0.1), you can round. Otherwise, multiply all ratios by the same factor to get whole numbers. Common multipliers are 2 (for X.5), 3 (for X.33 or X.67), or 4 (for X.25 or X.75).

Can two different compounds have the same empirical formula?

Yes! Compounds with the same empirical formula are called "isomers" if they share the same molecular formula, or they may have different molecular formulas. For example, glucose (C6H12O6) and acetic acid (C2H4O2) both have the empirical formula CH2O.

How do I find the molecular formula from the empirical formula?

You need the molar mass of the compound. Calculate the mass of the empirical formula, then divide the molar mass by the empirical formula mass to get n. Multiply all subscripts in the empirical formula by n to get the molecular formula.

What is the difference between empirical and molecular formula?
An empirical formula gives the simplest whole-number ratio of atoms in a compound. A molecular formula gives the actual number of atoms of each element in one molecule. Key distinction: the molecular formula is always a whole-number multiple of the empirical formula. Empirical formula × n = molecular formula. Examples of the difference: Glucose: empirical = CH₂O; molecular = C₆H₁₂O₆; n = 6. Benzene: empirical = CH; molecular = C₆H₆; n = 6. Hydrogen peroxide: empirical = HO; molecular = H₂O₂; n = 2. Ethanol: empirical = C₂H₆O; molecular = C₂H₆O; n = 1 (same). When they're the same: when the empirical formula cannot be simplified further (n = 1), the empirical and molecular formulas are identical. Example: ethanol (C₂H₆O), carbon dioxide (CO₂), water (H₂O). When to use each: empirical formula: used in analytical chemistry from combustion analysis. Summarizes compositional ratios. Ionic compounds are always expressed as empirical formulas (NaCl, not Na₂Cl₂). Molecular formula: used in organic chemistry, biochemistry, and when the actual molecular structure matters. Required for calculating molecular weight and for reaction stoichiometry. Finding molecular formula from empirical: calculate the empirical formula mass. Divide the molecular weight (from mass spectrometry or other methods) by the empirical formula mass to get n. Multiply empirical subscripts by n.
How do you find the empirical formula from percent composition?
Here is the complete procedure for finding empirical formula from percent composition data: Step 1: assume a 100-gram sample. The percent of each element directly equals the grams of that element. If a compound is 40% carbon, 6.7% hydrogen, and 53.3% oxygen → assume: 40 g C, 6.7 g H, 53.3 g O. Step 2: convert grams to moles by dividing by atomic mass. C: 40 g ÷ 12.011 g/mol = 3.330 mol. H: 6.7 g ÷ 1.008 g/mol = 6.647 mol. O: 53.3 g ÷ 15.999 g/mol = 3.332 mol. Step 3: divide all mole values by the SMALLEST value. Smallest = 3.330 (carbon). C: 3.330 ÷ 3.330 = 1.000. H: 6.647 ÷ 3.330 = 1.995 ≈ 2. O: 3.332 ÷ 3.330 = 1.001 ≈ 1. Step 4: round to nearest whole number (if close to whole number). If values are within ±0.05 of a whole number, round to it. Step 5: handle non-whole ratios (common cases). If you get x.5 → multiply ALL subscripts by 2. If you get x.33 or x.67 → multiply ALL subscripts by 3. If you get x.25 or x.75 → multiply ALL subscripts by 4. Step 6: write the empirical formula. From the example: C₁H₂O₁ → CH₂O. This is the same as formaldehyde, glucose, acetic acid — they all share the empirical formula CH₂O (though they are completely different compounds). Verification: add up masses: C(12) + H₂(2) + O(16) = 30 g/mol → empirical formula weight = 30. If molecular weight is 180 (glucose), then n = 180/30 = 6, giving C₆H₁₂O₆.
How do you find the molecular formula from the empirical formula?
To find the molecular formula, you need two pieces of information: the empirical formula (from percent composition) and the molecular weight (from mass spectrometry, colligative property measurements, or given in the problem). The procedure: Step 1: Calculate the empirical formula mass. Add up the atomic masses of all atoms in the empirical formula. Example: empirical formula CH₂O. C: 12.011; H₂: 2 × 1.008 = 2.016; O: 15.999. Empirical formula mass = 30.026 g/mol. Step 2: Calculate the ratio n. n = Molecular Weight ÷ Empirical Formula Mass. If molecular weight = 180.16 g/mol (glucose): n = 180.16 / 30.026 = 6.00 → n = 6. Step 3: Multiply empirical formula subscripts by n. CH₂O × 6 = C₆H₁₂O₆ → glucose. Another example: empirical formula: CH. Empirical mass = 12.011 + 1.008 = 13.019 g/mol. Molecular weight = 78.11 g/mol (benzene). n = 78.11 / 13.019 = 6.00. Molecular formula = C₆H₆ → benzene. Common exam pitfall: n must be a whole number (or very close to one). If you calculate n = 3.02, round to 3. If you get n = 2.67, you likely made an error in the empirical formula. The molecular formula is always: Molecular formula = (Empirical formula)ₙ where n is a positive integer. When n = 1: empirical formula = molecular formula (ethanol, CO₂, H₂O). Important: different compounds can share the same empirical formula. Glucose (C₆H₁₂O₆), acetic acid (C₂H₄O₂), glyceraldehyde (C₃H₆O₃) all have empirical formula CH₂O but are completely different compounds.
What are common mistakes in empirical formula calculations?
Empirical formula calculations have several common error points: 1. Not dividing by the SMALLEST mole value. Always identify the smallest mole count and divide ALL elements by it. Students sometimes divide by a different value or forget this step. 2. Premature rounding: round only in the final step (subscripts must be whole numbers). Rounding intermediate mole values introduces errors. Example: 2.67 moles ÷ by smallest → 1.67 → should multiply by 3 to get 5 (not round 1.67 to 2). 3. Forgetting to multiply when ratios aren't whole numbers. If you get ratios of 1.5 : 1 : 2.5, multiply ALL by 2 to get 3 : 2 : 5. Common non-whole fractions and multipliers: ×.5 → multiply by 2. ×.33 or ×.67 → multiply by 3. ×.25 or ×.75 → multiply by 4. ×.20 or ×.40, ×.60, ×.80 → multiply by 5. 4. Percentages not summing to 100%. If given, e.g., 65% C, 7% H, 28% O → sum = 100%. If they don't sum to 100%, calculate the remainder (often oxygen). Example: 75% C, 25% H → O% = 0%; the compound contains only C and H. 5. Wrong atomic masses. Double-check: H = 1.008, C = 12.011, N = 14.007, O = 15.999, S = 32.06. Students sometimes use rounded values (H = 1, C = 12) — these work for many problems but can accumulate error in fractional subscript determination. 6. Confusing empirical and molecular formula: the question may give molecular weight and ask for molecular formula — be sure to do the extra step of calculating n and multiplying subscripts. 7. Ionic compounds: empirical formulas for ionic compounds (NaCl, CaCO₃) represent the simplest ratio of ions, not discrete molecules. The formula unit (not molecule) is used for ionic compounds.

Key Takeaways

  • The empirical formula shows the simplest whole number ratio of atoms in a compound
  • It's derived by converting mass or percent composition to moles, then finding the smallest ratio
  • The molecular formula is always a whole number multiple of the empirical formula
  • Example: Glucose (C6H12O6) has the empirical formula CH2O

What Is an Empirical Formula?

Empirical vs. Molecular Formula Reference (Common Examples)
Compound Empirical Formula Molecular Formula Molecular Weight
GlucoseCH₂OC₆H₁₂O₆180.16 g/mol
BenzeneCHC₆H₆78.11 g/mol
Hydrogen peroxideHOH₂O₂34.01 g/mol
Acetylene (ethyne)CHC₂H₂26.04 g/mol
Acetic acid (vinegar)C₂H₄O₂ = CH₂OCH₂O → same as glucose!60.05 g/mol
EthanolC₂H₆OC₂H₆O (same)46.07 g/mol
EthyleneCH₂C₂H₄28.05 g/mol
Phosphorus (P₄)PP₄123.88 g/mol
Common Element Atomic Masses for Formula Calculations
Element Symbol Atomic Mass (g/mol)
HydrogenH1.008
CarbonC12.011
NitrogenN14.007
OxygenO15.999
FluorineF18.998
SodiumNa22.990
MagnesiumMg24.305
PhosphorusP30.974
SulfurS32.06
ChlorineCl35.45
PotassiumK39.098
CalciumCa40.078
IronFe55.845
CopperCu63.546
Empirical Formula Calculation Step Reference
Step Action Example (58.8% C, 9.8% H, 31.4% O)
1Assume 100 g sample58.8 g C, 9.8 g H, 31.4 g O
2Convert g → moles (÷ atomic mass)C: 58.8/12.011=4.896; H: 9.8/1.008=9.722; O: 31.4/15.999=1.963
3Divide all by smallest mole valueSmallest = 1.963; C: 2.495; H: 4.953; O: 1.000
4Round to nearest whole numberC: 2.5; H: 5; O: 1
5If fractional (x.5), multiply all by 2C: 5; H: 10; O: 2
ResultEmpirical formulaC₅H₁₀O₂
VerifySum of masses = 5(12)+10(1)+2(16) = 102 g/molMatches molecular weight?

An empirical formula represents the simplest whole number ratio of atoms of each element in a chemical compound. Unlike the molecular formula, which shows the actual number of atoms, the empirical formula shows only the relative proportions.

For example, hydrogen peroxide (H2O2) has the molecular formula showing 2 hydrogen and 2 oxygen atoms, but its empirical formula is HO, showing a 1:1 ratio. Glucose (C6H12O6) has the empirical formula CH2O, representing a 1:2:1 ratio.

Common Examples

Compound Molecular Formula Empirical Formula
Water H2O H2O
Hydrogen Peroxide H2O2 HO
Glucose C6H12O6 CH2O
Benzene C6H6 CH
Acetic Acid C2H4O2 CH2O

How to Calculate Empirical Formula

Step-by-Step Process

1

Convert to Grams (if given percentages)

If given percent composition, assume 100g sample so percentages equal grams directly. For example, 40% carbon = 40g carbon.

2

Convert Grams to Moles

Divide the mass of each element by its molar mass (atomic weight from periodic table). Moles = Mass / Molar Mass

3

Find the Mole Ratio

Divide all mole values by the smallest number of moles. This gives the simplest ratio.

4

Round to Whole Numbers

If ratios are close to whole numbers (within 0.1), round directly. If not, multiply all ratios by a common factor (usually 2, 3, or 4).

Worked Example: Compound with 40% C, 6.7% H, 53.3% O

Step 1: Assume 100g sample: 40g C, 6.7g H, 53.3g O

Step 2: Convert to moles:

  • C: 40g / 12.01 g/mol = 3.33 mol
  • H: 6.7g / 1.008 g/mol = 6.65 mol
  • O: 53.3g / 16.00 g/mol = 3.33 mol

Step 3: Divide by smallest (3.33):

  • C: 3.33/3.33 = 1
  • H: 6.65/3.33 = 2
  • O: 3.33/3.33 = 1

Result: Empirical formula = CH2O

Empirical Formula vs. Molecular Formula

The molecular formula shows the actual number of atoms in one molecule, while the empirical formula shows only the simplest ratio. The molecular formula is always a whole number multiple of the empirical formula.

Molecular Formula = (Empirical Formula)n
Where n = Molecular Mass / Empirical Formula Mass

To find the molecular formula from the empirical formula, you need the molar mass of the compound. Divide the molar mass by the empirical formula mass to find n, then multiply all subscripts by n.

Pro Tip: Handling Tricky Ratios

If your mole ratios don't round to nice whole numbers, look for common patterns: ratios near 0.25, 0.33, 0.5, 0.67, or 0.75 suggest multiplying by 4, 3, 2, 3, or 4 respectively. For example, a ratio of 1.5 means multiply all ratios by 2.

Applications of Empirical Formulas

  • Analytical Chemistry: Determining the composition of unknown compounds
  • Pharmaceutical Research: Identifying drug compounds and their structures
  • Environmental Science: Analyzing pollutants and their compositions
  • Food Science: Determining nutritional composition of foods
  • Materials Science: Characterizing new materials and alloys
What if my reagents aren't 100% pure?
Account for purity in your mass calculation: actual mass needed = theoretical mass / (purity fraction). For example, 95% pure NaCl: if you need 10g of pure NaCl, weigh out 10/0.95 = 10.53g. Always check the Certificate of Analysis for the actual purity of each lot.