Home › Calculators › Empirical Formula Calculator

Empirical Formula Calculator

Turn a percent composition or measured masses into the empirical formula, with every step shown: moles of each element, division by the smallest and the whole-number multiplier. Add the molar mass to get the molecular formula too.

Last updated:

Amounts are

One element per line (or comma separated): symbol then number, e.g. Fe 69.94, O 30.06

Combustion analysis often gives oxygen by difference

g/mol

Gives the molecular formula

Enter your values to see the result.
Advertisement
Advertisement

How to use the Empirical Formula Calculator

  1. Choose percent or grams.
  2. Type each element and its amount, one per line, like C 40.0.
  3. Optionally set a remainder element if one was found by difference.
  4. Enter the molar mass if you also want the molecular formula.
  5. Read the empirical formula and follow the working table.

Empirical formula step by step

  1. Grams: treat percentages as grams in a 100 g sample.
  2. Moles: n = mass ÷ atomic mass for each element.
  3. Ratio: divide every mole value by the smallest one.
  4. Whole numbers: if a ratio is not close to an integer, multiply all of them by 2, 3, 4… until they are.
  5. Molecular formula: n = molar mass ÷ empirical formula mass; multiply all subscripts by n.

Common decimal ratios and their multipliers

Ratio ends inMultiply byExample
.521 : 1.5 → 2 : 3 (Fe₂O₃)
.33 or .6731 : 1.33 → 3 : 4 (Fe₃O₄)
.25 or .7541 : 2.25 → 4 : 9
.2, .4, .6, .851 : 2.5 is ×2, 1 : 1.2 → 5 : 6
.17 or .8361 : 1.167 → 6 : 7

Worked examples

CompositionMole ratioEmpirical formulaMolecular formula
C 40.00%, H 6.71%, O 53.29%1 : 2 : 1CH₂OC₆H₁₂O₆ (M = 180.16)
C 92.26%, H 7.74%1 : 1CHC₆H₆ (M = 78.11)
Fe 69.94%, O 30.06%1 : 1.5Fe₂O₃Fe₂O₃
N 30.45%, O 69.55%1 : 2NO₂N₂O₄ (M = 92.01)

Frequently asked questions

What is an empirical formula?

It is the simplest whole-number ratio of atoms in a compound. Glucose has the molecular formula C₆H₁₂O₆ but the empirical formula CH₂O, because 6:12:6 simplifies to 1:2:1.

How do I find the empirical formula from percentages?

Assume a 100 g sample so percentages become grams. Divide each mass by the element's atomic mass to get moles, divide all mole values by the smallest one, then multiply by a small whole number if needed so every ratio is close to an integer.

What if a ratio comes out as 1.5 or 1.33?

Multiply all ratios by the number that makes them whole: ×2 for x.5, ×3 for x.33 or x.67, ×4 for x.25 or x.75. For Fe 69.94% and O 30.06% the ratio is 1 : 1.5, which ×2 gives Fe₂O₃.

How do I get the molecular formula?

Divide the compound's molar mass by the empirical formula mass. The result should be a whole number n; multiply every subscript by n. For CH₂O (30.03 g/mol) and M = 180.16 g/mol, n = 6, giving C₆H₁₂O₆.

What does 'oxygen by difference' mean?

In combustion analysis only C, H (and sometimes N) are measured directly. If the compound also contains oxygen, its percentage is 100% minus the sum of the others. Choose oxygen as the remainder element to do this automatically.

How much rounding is acceptable?

Experimental data usually give ratios within about ±0.1 of a whole number. This calculator accepts ratios within 0.1 and warns you when the best fit is off by more than 0.15.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Mass Percent CalculatorMass percent of a solution, percent composition of a formula, or mass for a target %.Molar Mass CalculatorMolar mass of any chemical formula with an element-by-element mass % breakdown.Chemical Equation BalancerBalance chemical, ionic and redox equations with the matrix method and steps.Grams to Moles CalculatorConvert grams to moles and back from a chemical formula, with molar mass and atom counts.Interactive Periodic TableAll 118 elements with colour modes, filters, search and full element details.Molarity CalculatorSolve mass, volume, molarity or molar mass, and C1V1 = C2V2 dilutions with units.pH CalculatorConvert pH, pOH, [H+] and [OH-], or find the pH of strong and weak acids and bases.Dilution CalculatorSolve C1V1 = C2V2 for any variable: stock volume, final volume or concentration, with units.Percent Yield CalculatorPercent yield from actual and theoretical yield, or theoretical yield from moles and formulas.PPM CalculatorConvert ppm to mg/L, %, ppb and mg/kg, find ppm of a solution, or ppm to mg/m³ for gases.Blood Type CalculatorPossible child blood types and their odds from both parents' ABO and Rh types, with Punnett squares.Buffer pH CalculatorBuffer pH from pKa and acid/base concentrations, or the recipe for a target pH.Combined Gas Law CalculatorSolve P1V1/T1 = P2V2/T2 for any variable, with Boyle's, Charles's and Gay-Lussac's modes.Electron Configuration CalculatorFull and noble-gas shorthand electron configuration, orbital diagram and valence electrons.Gibbs Free Energy CalculatorΔG from ΔH, ΔS and temperature, with spontaneity, crossover temperature and K.Molality CalculatorMolality from grams or moles of solute and solvent mass, or solve for either one.Moles to Atoms CalculatorConvert moles, grams and atoms or molecules with Avogadro's number, atoms per element.Protons Neutrons Electrons CalculatorCount protons, neutrons and electrons for any element, isotope or ion, with isotope notation.Serial Dilution CalculatorConcentration, transfer and diluent volume for every tube of a dilution series.Soap Lye CalculatorNaOH or KOH and water for a soap recipe from oil SAP values, superfat and water ratio.Theoretical Yield CalculatorTheoretical yield in grams and moles from limiting reagent mass and mole ratio.Titration CalculatorAnalyte concentration or equivalence volume from a titration, with pH curve and indicator.Punnett Square CalculatorBuild monohybrid, dihybrid or trihybrid Punnett squares with genotype and phenotype ratios.Stoichiometry CalculatorFrom one known mass or mole amount, get moles and grams of every reactant and product.Six Sigma CalculatorDPMO, yield and sigma level from defects, with the 1.5 sigma shift and a conversion table.Beer-Lambert Law CalculatorSolve A = εlc for absorbance, concentration, molar absorptivity or path length; %T conversion.Boyle's Law CalculatorSolve P1V1 = P2V2 for any missing pressure or volume, with units, gauge option and steps.Centrifuge RPM to RCF CalculatorConvert centrifuge RPM to RCF (× g) or RCF to RPM from rotor radius, with an RPM chart.Charles's Law CalculatorSolve V1/T1 = V2/T2 for volume or temperature, with °C, °F or K converted to kelvin.Hardy-Weinberg CalculatorAllele frequencies, expected genotypes and a chi-square equilibrium test from counts or p, q.Normality CalculatorFind normality from mass or molarity, and how much solid or stock acid makes an N solution.Oxidation Number CalculatorEnter a formula or ion to get the oxidation state of every element, with the rules used.Percent Solution CalculatorHow much solute and solvent for a w/v, w/w or v/v % solution, plus % from amounts and dilutions.Valence Electrons CalculatorValence electrons for any element, ion or molecule formula, with group-by-group working.
See all 35 Chemistry & Biology Calculators →