Empirical Formula Calculator

Convert element masses or percent composition into the simplest whole-number chemical formula.

Inputs

Use grams or percentages. If you use percentages, the calculator assumes a 100 g sample.

Results

Results will appear here.

Advertisement

How to Use This Empirical Formula Calculator

  • Enter elements. Put one element and one amount on each line, such as C 40.0.
  • Choose the amount type. Select percent composition or mass in grams.
  • Convert to moles. The tool divides each amount by the element atomic mass.
  • Normalize ratios. Moles are divided by the smallest mole amount and rounded to a small whole-number ratio.
  • Add molecular mass. If you know the compound molar mass, the empirical formula can be scaled to a molecular formula.

About This Empirical Formula Calculator

An empirical formula is the simplest whole-number ratio of atoms in a compound. It does not necessarily show the actual number of atoms in one molecule; it shows the reduced ratio. For example, glucose has the molecular formula C6H12O6, but its empirical formula is CH2O because the 6:12:6 ratio reduces to 1:2:1. This calculator follows the standard general chemistry workflow: convert masses or percentages into moles, divide all mole amounts by the smallest value, and then adjust near-fraction ratios into integers.

The tool is especially useful for percent composition problems. When a problem says a substance is 40.00 percent carbon, 6.71 percent hydrogen, and 53.29 percent oxygen, you can treat those percentages as grams in a 100 g sample. After dividing by atomic masses, the mole ratios reveal the empirical formula. If an experimental ratio lands near 1.5, 1.333, 1.25, or another common fraction, the calculator searches small multipliers so the final formula uses whole-number subscripts instead of awkward decimals.

You can also provide a molecular mass to get the molecular formula. The calculator computes the empirical formula mass and compares it with the supplied molar mass. If the molecular mass is close to an integer multiple of the empirical mass, the empirical subscripts are multiplied by that factor. This is a convenient way to connect elemental analysis with a real molecular formula. Results are estimates, so rounded composition data can create small differences. Always use sensible significant figures and check that the final ratio matches the chemistry of the problem.

Formula

moles = amount / atomic mass; ratio = moles / smallest moles; molecular formula = empirical formula x n

5 Fun Facts about Empirical Formulas

They can hide molecule size

CH2O could represent formaldehyde, acetic acid, glucose, or other compounds after scaling.

Simple ratio

Percent becomes grams

Percent composition problems are often solved by imagining a convenient 100 g sample.

100 g trick

Ratios need judgment

Experimental data rarely makes perfect integers, so small rounding tolerance is part of the method.

Lab data

Molecular mass scales it

The molecular formula is an integer multiple of the empirical formula when the data is consistent.

Formula mass

Ionic compounds use them daily

Many ionic formulas are empirical formulas because they describe repeating lattice ratios, not molecules.

Ionic solids

FAQ

What if my ratio is 1.5?

Multiply all ratios by 2. The calculator tries small multipliers automatically.

Can this use combustion analysis?

Yes after you convert combustion products into element masses. This page expects element amounts, not CO2 and H2O inputs directly.

Explore more tools