Omni Calculator logo

Empirical Formula Calculator

You can enter up to 10 elements in total. As you fill in each element symbol and its percentage/mass, the next input will appear automatically.

Enter some element symbols and percentage of mass values! 

Did we solve your problem today?

Check out 14 similar stoichiometry calculators 🧪

Air-fuel ratio (AFR)

Atom economy

Avogadro's number

Omni’s empirical formula calculator lets you do what early chemists once struggled to achieve: deduce a compound’s formula from nothing more than elemental data.

Instead of guessing coefficients or memorizing mechanical steps, you can see how percent composition or mass data translate into a clear, consistent chemical formula. In this article, you’ll learn how to turn experimental data into a meaningful empirical formula, understand why such formulas are called empirical, and clarify the distinction between empirical vs. molecular formula comparisons.

Keep reading to:

  • Understand the chemical formula definition;
  • Learn how to calculate empirical formula;
  • Explore empirical vs. molecular formula in a clear comparison; and
  • Discover how to find the molecular formula from the empirical formula.

Chemical formula definition: What is meant by the simplest formula of a compound?

The empirical formula expresses the simplest whole-number ratio of atoms in a compound. It doesn’t describe how atoms are arranged, nor does it necessarily show the actual number of atoms in a molecule. Instead, it captures the simplest ratio consistent with experimental data.

Before modern analytical techniques, chemists relied on elemental analysis to determine the composition of substances. They could measure the relative amounts of elements present in a compound (often calculating mass percent composition or mole ratios). Still, they couldn’t determine the exact number of atoms in a molecule. What they could establish was proportion. From those proportions emerged the idea of the empirical formula.

For example, glucose (C6H12O6) and formaldehyde (CH2O) share the same empirical formula (CH2O), even though their molecular formulas differ. The empirical formula reflects the simplest ratio of atoms — in this case, 2:1. This also explains why many ionic compounds, such as calcium chloride (CaCl2), are written as empirical formulas only: they form extended networks rather than individual molecules. Learn more about properties of ionic compounds.

💡 The topic is broader than it may seem at first glance — for a clearer breakdown, see our guides “What Is an Empirical Formula? The Blueprint of Matter” and “How to find empirical formula?”.

Empirical vs. molecular formula: What’s the difference?

When comparing empirical vs. molecular formula, remember that they represent different types of chemical formula definition — that is, different ways of expressing chemical composition.

The empirical formula shows the simplest whole-number ratio of elements in a compound. The molecular formula, on the other hand, gives the exact number of each type of atom in one molecule. It’s important to capture the difference because, as we have shown, in many cases, the molecular formula is a multiple of the empirical formula. Glucose, for instance, has the molecular formula C6H12O6, but its empirical formula is CH2O. The molecular formula contains six times as many atoms as the empirical formula suggests.

However, for some substances, the empirical vs. molecular formula comparison reveals no difference. For example, the empirical formula for silver oxide is the Ag2O, which also represents its molecular formula. The simplest ratio already reflects the actual composition of a single molecule. If you’d like to explore the topic in more depth, visit “Empirical vs. Molecular Formula: Key Differences Explained”.

Understanding this distinction is essential if you want to move from empirical to molecular formula. Once you know the empirical formula and understand how to find molar mass, you can determine how many empirical units fit into one molecule, and from there, find the full molecular formula.

How to calculate empirical formula step by step

If you’re wondering how to work out an empirical formula from percent composition or mass data, the process follows a clear and logical sequence. For example, suppose a compound contains 40.0% carbon, 6.7% hydrogen, and 53.3% oxygen:

  1. Start with percent composition (or masses). If your data are given as percentages, assume a 100 g sample. This means in a 100 g sample, you have 40.0 g C, 6.7 g H, 53.3 g O.
  2. Convert grams to moles. Divide each mass by the element’s atomic mass (see our atomic mass calculator if you’re unsure of the value): moles = mass/atomic mass.
    • C: 40.0/12.011 = 3.33028 mol
    • H: 6.7/1.008 = 6.64683 mol
    • O: 53.3/15.999 = 3.33146 mol
  3. Divide by the smallest number of moles. Identify the smallest value (3.33028) and divide all mole amounts by it:
    • C: 3.33/3.33028 = 1
    • H: 6.65/3.33028 = 1.99588 ≈ 2
    • O: 3.33/3.33028 = 1.00035 ≈ 1
  4. Write the empirical formula: CH2O
  5. If the ratios aren’t whole numbers (e.g., 1.5 or 1.33), multiply them by the smallest whole number that makes them integers. For example, 1 : 1.5 → multiply by 2 → 2 : 3.

And that is the core idea behind how to work out an empirical formula accurately.

How to find molecular formula from empirical formula

Once you understand what is meant by the simplest formula of a compound, you’re ready to perform reverse calculations from empirical to molecular formula. The empirical formula shows only the simplest whole-number ratio of atoms, but the actual molecule may contain multiple empirical units (n). If you’re unsure how to determine the value, see how to calculate molecular weight before performing the empirical to molecular formula conversion.

  1. Calculate the empirical formula mass. For example, if the empirical formula of glucose is CH2O: 12.011 + 2 × 1.008 + 15.999 = 30.026 g/mol.
  2. Divide the molar mass by the empirical formula mass to find the multiplier n. Suppose the compound’s molar mass is 180.16 g/mol; then: n = 180.16 / 30.026 ≈ 6.
  3. Multiply all subscripts by n: CH2O → C6H12O6.

So the molecular formula is C6H12O6.

If the value of n equals 1, it means that the empirical formula already represents the molecular formula. For example, the empirical formula for silver oxide is Ag2O. If its molar mass matches the empirical formula mass, then no multiplication is needed — the molecular formula remains Ag2O.

How to use empirical formula calculator

Using our empirical formula calculator is clear and straightforward. Just follow these steps:

  1. Choose the input mode. Select Mass (g) if you know the sample masses, or Percent by mass if your data are given as percent composition.
  2. Enter each element's symbol and its value.
  3. The calculator will display the empirical formula along with the calculation steps.
  4. If the mole ratios are not whole numbers (e.g., 1.5), the empirical formula calculator automatically scales them to the nearest whole-number ratio (e.g., ×2 → 3).

FAQs

What is meant by simplest formula of a compound?

The simplest formula of a compound is its empirical formula, which shows the lowest whole-number ratio of atoms present. It does not indicate the actual number of atoms in a molecule or their arrangement; it only indicates their proportion based on experimental data.

How do I calculate empirical formula?

To calculate the empirical formula, follow these steps:

  1. Assume a 100 g sample (if given percentages).
  2. Convert grams to moles.
  3. Divide by the smallest mole value.
  4. Multiply to obtain whole numbers if necessary.

What compound contains 40% carbon, 6.7% hydrogen and 53.3% oxygen?

A compound with 40% carbon, 6.7% hydrogen, and 53.3% oxygen has the empirical formula CH2O. Assuming a 100 g sample gives 40.0 g C, 6.7 g H, and 53.3 g O; converting to moles (3.33, 6.65, 3.33 mol) and dividing by the smallest value yields a 1:2:1 ratio.

How can I convert empirical to molecular formula?

To convert an empirical formula to a molecular formula, divide the compound’s molar mass by the empirical formula mass to find the multiplier n. Then multiply all subscripts in the empirical formula by n to obtain the molecular formula.

What is the empirical formula for silver oxide?

The empirical formula for silver oxide is Ag2O. When percent composition data are converted to moles and divided by the smallest mole value, the ratio of silver to oxygen simplifies to 2:1.