Free to Use

Empirical Formula Calculator

Find the empirical formula (simplest whole-number ratio) of chemical compounds from mass composition, percentage composition, or a known molecular formula. Step-by-step solutions included.

Enter the mass (in grams) of each element present in the compound. Add as many elements as needed. The calculator will find the empirical formula from the mass composition.
Enter the percentage (by mass) of each element in the compound. Percentages should add up to 100%. The calculator will find the empirical formula by treating percentages as grams.
Enter a molecular formula (e.g., C6H12O6 for glucose) to find its empirical formula. The calculator will reduce the subscripts to their simplest whole-number ratio.

Real-World Empirical Formula Examples

๐Ÿงช Finding Empirical Formula from Mass

Problem: A 25.0 g sample of a compound contains 8.34 g of carbon (C) and 16.66 g of oxygen (O). Find the empirical formula.

Solution:

Moles of C = 8.34 / 12.011 = 0.694 mol

Moles of O = 16.66 / 15.999 = 1.041 mol

Ratio: C = 0.694/0.694 = 1, O = 1.041/0.694 = 1.5

Multiply by 2: C = 2, O = 3

Empirical Formula: Cโ‚‚Oโ‚ƒ

๐Ÿ“Š Finding Empirical Formula from Percentage

Problem: A compound contains 40.00% carbon (C), 6.71% hydrogen (H), and 53.29% oxygen (O) by mass. Find the empirical formula.

Solution:

Assume 100 g: 40.00 g C, 6.71 g H, 53.29 g O

Moles: C = 40.00/12.011 = 3.33 mol, H = 6.71/1.008 = 6.66 mol, O = 53.29/15.999 = 3.33 mol

Ratio: C = 3.33/3.33 = 1, H = 6.66/3.33 = 2, O = 3.33/3.33 = 1

Empirical Formula: CHโ‚‚O (formaldehyde)

๐Ÿงฌ Molecular Formula to Empirical Formula

Problem: Find the empirical formula of glucose, whose molecular formula is Cโ‚†Hโ‚โ‚‚Oโ‚†.

Solution:

Find the GCD of subscripts: C=6, H=12, O=6

Divide each by the GCD (6): Cโ‚†/โ‚†Hโ‚โ‚‚/โ‚†Oโ‚†/โ‚†

Empirical Formula: CHโ‚‚O

โš—๏ธ Ascorbic Acid (Vitamin C)

Problem: Ascorbic acid has the molecular formula Cโ‚†Hโ‚ˆOโ‚†. What is its empirical formula?

Solution:

Find GCD of subscripts: C=6, H=8, O=6

The GCD of 6 and 8 is 2. Divide: Cโ‚†/โ‚‚Hโ‚ˆ/โ‚‚Oโ‚†/โ‚‚

Empirical Formula: Cโ‚ƒHโ‚„Oโ‚ƒ

Empirical Formula Guide

Moles = Mass / Atomic Mass
Convert mass to moles for each element

The empirical formula represents the simplest whole-number ratio of atoms of each element in a compound. It is determined by converting mass data to moles, finding the simplest ratio, and scaling to whole numbers where needed.

Empirical Formula = (Elementโ‚)x(Elementโ‚‚)yโ€ฆ
Where x and y are the smallest whole-number subscripts

Steps to Calculate Empirical Formula

1๏ธโƒฃ Convert to Moles

Divide the mass (in grams) of each element by its atomic mass. For percentage composition, assume a 100 g sample โ€” then percentages become grams directly.

2๏ธโƒฃ Find the Ratio

Divide each mole value by the smallest mole value among all elements. This gives the mole ratio.

3๏ธโƒฃ Convert to Whole Numbers

If any ratio is within 0.05 of a whole number, round it. Otherwise, multiply all ratios by a small integer (2, 3, or 4) to get whole numbers.

4๏ธโƒฃ Write the Formula

Write the element symbols followed by the whole-number subscripts. If the subscript is 1, it is omitted. The result is the empirical formula.

Common Atomic Masses Used

๐Ÿ”ฌ Hydrogen (H)

1.008 g/mol โ€” the lightest element, found in water, acids, and organic compounds.

๐Ÿ”ฌ Carbon (C)

12.011 g/mol โ€” the building block of all organic chemistry and life on Earth.

๐Ÿ”ฌ Nitrogen (N)

14.007 g/mol โ€” essential for proteins, DNA, and many industrial compounds.

๐Ÿ”ฌ Oxygen (O)

15.999 g/mol โ€” abundant in the atmosphere, water, and countless compounds.

๐Ÿ”ฌ Sulfur (S)

32.065 g/mol โ€” found in amino acids and many minerals.

๐Ÿ”ฌ Phosphorus (P)

30.974 g/mol โ€” key component of DNA, ATP, and bone tissue.

โš–๏ธ
Mass Composition Mode
Enter the mass in grams of each element in your compound. The calculator converts masses to moles and finds the simplest whole-number ratio.
๐Ÿ“Š
Percentage Mode
Works with percentage composition data. Enter the percentage of each element by mass โ€” the calculator handles the rest automatically.
๐Ÿงฌ
From Molecular Formula
Enter any molecular formula (like C6H12O6 or N2O4) and get the empirical formula by reducing subscripts to their simplest whole-number ratio.
๐Ÿ“
Step-by-Step Solutions
Every calculation includes a detailed step-by-step breakdown showing the formula, mole calculations, ratio analysis, and final empirical formula.

What is an Empirical Formula?

The empirical formula of a chemical compound is the simplest whole-number ratio of atoms of each element present in the compound. It represents the smallest possible integer ratio of elements that maintains the compound's composition.

For example, hydrogen peroxide has the molecular formula Hโ‚‚Oโ‚‚, which tells us that each molecule contains 2 hydrogen atoms and 2 oxygen atoms. The empirical formula is HO, because the ratio of H:O is 1:1 (the simplest whole-number ratio).

Different compounds can share the same empirical formula. For instance, glucose (Cโ‚†Hโ‚โ‚‚Oโ‚†), formaldehyde (CHโ‚‚O), and acetic acid (Cโ‚‚Hโ‚„Oโ‚‚) all have the empirical formula CHโ‚‚O, even though they are very different substances with different molecular formulas and properties.

Empirical Formula vs Molecular Formula

The molecular formula tells you the exact number of atoms of each element in one molecule of a compound. The empirical formula tells you the simplest ratio of those atoms.

Molecular Formula = n ร— Empirical Formula
Where n is a positive integer (usually 1, 2, 3...)
Compound Molecular Formula Empirical Formula n
WaterHโ‚‚OHโ‚‚O1
Hydrogen PeroxideHโ‚‚Oโ‚‚HO2
GlucoseCโ‚†Hโ‚โ‚‚Oโ‚†CHโ‚‚O6
Acetic AcidCโ‚‚Hโ‚„Oโ‚‚CHโ‚‚O2
Dinitrogen TetroxideNโ‚‚Oโ‚„NOโ‚‚2
BenzeneCโ‚†Hโ‚†CH6

To find the molecular formula from the empirical formula, you need the molar mass of the compound. The ratio n = (molar mass of compound) / (molar mass of empirical formula) tells you how many empirical formula units make up one molecule.

Frequently Asked Questions

What is an empirical formula in chemistry?
An empirical formula is the simplest whole-number ratio of atoms of each element in a chemical compound. It shows the relative proportions of elements, not the actual number of atoms in a molecule. For example, the empirical formula of hydrogen peroxide (Hโ‚‚Oโ‚‚) is HO, because the ratio of hydrogen to oxygen is 1:1.
How do you calculate an empirical formula?
To calculate an empirical formula: 1) Convert the mass of each element to moles by dividing by its atomic mass. 2) Divide each mole value by the smallest mole value to get the ratio. 3) If the ratios are not whole numbers, multiply all ratios by a factor (2, 3, or 4) to get whole numbers. 4) Write the element symbols with the whole numbers as subscripts.
What is the difference between empirical and molecular formula?
The molecular formula gives the exact number of atoms of each element in one molecule (e.g., glucose is Cโ‚†Hโ‚โ‚‚Oโ‚†). The empirical formula gives the simplest ratio of atoms (glucose's empirical formula is CHโ‚‚O). Multiple compounds can share the same empirical formula but have different molecular formulas. The molecular formula is always a whole-number multiple of the empirical formula.
Can two different compounds have the same empirical formula?
Yes, absolutely. Many different compounds can share the same empirical formula. For example, formaldehyde (CHโ‚‚O), acetic acid (Cโ‚‚Hโ‚„Oโ‚‚), and glucose (Cโ‚†Hโ‚โ‚‚Oโ‚†) all have the empirical formula CHโ‚‚O. They are very different substances โ€” formaldehyde is a gas at room temperature, acetic acid is vinegar, and glucose is a sugar. This is why both empirical and molecular formulas are important in chemistry.
When would the empirical and molecular formulas be the same?
The empirical and molecular formulas are the same when the formula is already in its simplest whole-number ratio. This happens for many simple compounds like water (Hโ‚‚O), carbon dioxide (COโ‚‚), methane (CHโ‚„), and ammonia (NHโ‚ƒ). In these cases, the molecular formula cannot be reduced further, so n = 1 in the relationship: Molecular Formula = n ร— Empirical Formula.
Why do we need atomic masses to find the empirical formula?
Atomic masses (also called atomic weights) are needed to convert mass to moles. The mass of an element in a sample tells us its weight, but different elements have different atomic masses. To compare the number of atoms of each element present, we must convert to moles using the formula: moles = mass รท atomic mass. Only then can we find the elemental ratio. For example, 12 g of carbon (1 mole) and 16 g of oxygen (1 mole) have the same number of atoms, even though their masses differ.

โš ๏ธ Important Note: Empirical formulas represent the simplest ratio of elements and may not reflect the actual molecular structure. To determine the molecular formula, you need additional information such as the molar mass of the compound. This calculator is for educational and reference purposes. Always verify results with experimental data for critical applications.