Empirical Formula Calculator
Find the empirical formula from percent composition or element masses. Enter up to 5 elements. Optionally find the molecular formula by entering the known molar mass. Pre-loaded examples: glucose, benzene, H2O, CO2.
Explore all Stoichiometry Calculators
Percent composition, molar mass, mole calculator and more -- all free.
Rate this tool
Why use the LazyTools Empirical Formula Calculator?
Up to 5 elements
Add as many elements as needed using the Add Element button.
Molecular formula from MW
Enter the known molar mass after calculating the empirical formula to get the molecular formula.
Non-integer handling
GCD algorithm correctly identifies multipliers for ratios like 1.5 (x2), 1.33 (x3), 1.25 (x4).
Four pre-loaded examples
Glucose, benzene, water and CO2 populate with verified percent compositions.
Mass or percent input
Enter raw masses or percentages -- both work since the calculation uses ratios.
Free, no signup
Runs in your browser.
How to use this tool in three steps
Enter element and percent
Type each element symbol and its mass percent.
Click Find Empirical Formula
Simplest whole-number ratio formula appears with empirical MW.
Optional: molecular formula
Enter the molar mass to get the molecular formula.
Copy result
Click Copy for your report.
LazyTools vs other Empirical Formula Calculator tools
| Feature | LazyTools | Omnicalculator | Webqc | ChemCalc |
|---|---|---|---|---|
| Up to 5 elements | YES | ✓ Yes | ✓ Yes | ✓ Yes |
| Molecular formula option | YES | ✓ Yes | ✓ Yes | ✓ Yes |
| Pre-loaded examples | YES | ✗ No | ✗ No | ✗ No |
| Non-integer handling | YES | ✓ Yes | ✓ Yes | ✓ Yes |
| No signup | YES | ✓ Yes | ✓ Yes | ✓ Yes |
Empirical and molecular formulas of common compounds
| Compound | Empirical | Empirical MW | Mol. formula | Molar mass |
|---|---|---|---|---|
| Glucose | CH2O | 30.03 | C6H12O6 | 180.16 |
| Acetic acid | CH2O | 30.03 | C2H4O2 | 60.05 |
| Benzene | CH | 13.02 | C6H6 | 78.11 |
| Acetylene | CH | 13.02 | C2H2 | 26.04 |
| Water | H2O | 18.02 | H2O | 18.02 |
| Hydrogen peroxide | HO | 17.01 | H2O2 | 34.01 |
| Sucrose | C12H22O11 | 342.30 | C12H22O11 | 342.30 |
| Propene | CH2 | 14.03 | C3H6 | 42.08 |
Empirical Formula Calculator: Complete Guide
The empirical formula gives the simplest whole-number ratio of atoms. Derived from percent composition by converting to moles, dividing by the smallest, and rounding to integers. The molecular formula = (empirical formula) x n where n = molar mass / empirical mass. This calculator handles up to five elements and finds both empirical and molecular formulas.
Step-by-step: percent composition to empirical formula
Step 1: assume 100 g (percent = grams). Step 2: moles = mass / atomic mass. Step 3: divide all by smallest moles. Step 4: round to integers (multiply if needed for non-integer ratios like 1.5 x 2 = 3). Example: 40.00% C, 6.71% H, 53.29% O. Moles: C = 40.00/12.011 = 3.330, H = 6.71/1.008 = 6.657, O = 53.29/15.999 = 3.331. Divide by 3.330: C = 1.00, H = 2.00, O = 1.00. Empirical formula: CH2O. Empirical MW = 30.026 g/mol. At M = 180.156: n = 6.00. Molecular formula = C6H12O6 (glucose).
From empirical to molecular formula
Molecular formula = (empirical)_n where n = molar mass / empirical MW. For acetic acid: empirical formula CH2O (same as glucose), M = 60.052 g/mol. n = 60.052/30.026 = 2. Molecular formula: C2H4O2 = CH3COOH. For benzene: empirical CH, empirical MW = 13.019. M = 78.11. n = 6. Molecular formula: C6H6. Different compounds can share an empirical formula but have different molecular formulas.
Non-integer ratios and multipliers
After dividing by the smallest moles, ratios are not always integers. Common cases: 1.5 -> multiply by 2 (gives 3); 1.33 -> multiply by 3 (gives 4); 1.25 -> multiply by 4 (gives 5); 1.67 -> multiply by 3 (gives 5). The LazyTools calculator uses a GCD-based algorithm to find the correct multiplier automatically for any combination of ratios with up to one decimal place. Always verify by checking that the sum of (atoms x atomic mass) equals the empirical MW.
Combustion analysis: deriving percent composition
Organic compounds are characterised by combustion: burning in O2 and measuring CO2 and H2O produced. Mass C = mass CO2 x (12.011/44.010). Mass H = mass H2O x (2.016/18.015). Mass O = sample mass - C - H. Example: 0.500 g compound gives 0.733 g CO2 and 0.300 g H2O. Mass C = 0.733 x (12.011/44.010) = 0.200 g (40.00%). Mass H = 0.300 x (2.016/18.015) = 0.0336 g (6.71%). Mass O = 0.500 - 0.200 - 0.0336 = 0.266 g (53.29%). Enter these percentages into the LazyTools empirical formula calculator to get CH2O.
Empirical formula for ionic compounds
For ionic compounds the empirical formula IS the formula unit: NaCl (1:1), CaCl2 (1:2), Fe2O3 (2:3), MgSO4 (1:1:4). Ionic compounds do not have discrete molecular formulas in the conventional sense. Percent composition is determined the same way: %Na in NaCl = 22.990/58.443 x 100 = 39.34%, %Cl = 35.453/58.443 x 100 = 60.66%. Entering these percentages gives the empirical formula NaCl directly.
Common exam patterns and pitfalls
The most frequent errors in empirical formula questions: (1) not converting percent to moles before finding ratios; (2) rounding too aggressively -- ratio of 1.495 is close to 1.5, not 1; multiply by 2 to get 3. (3) using integer atomic masses (C=12, H=1) instead of accurate values (C=12.011, H=1.008) leading to slightly different mole values. (4) forgetting to multiply stoichiometric coefficients when converting empirical to molecular formula. (5) reporting CH2O as the molecular formula when M=180.156 clearly requires C6H12O6. The LazyTools calculator uses accurate atomic masses and the GCD algorithm to avoid all these pitfalls automatically.
Using this calculator in coursework and lab reports
All LazyTools calculators run in your browser with no data sent to any server. Results copy with one click. The LazyTools stoichiometry suite covers all major quantitative chemistry calculations -- see related tools below.
Non-integer ratios and how to handle them
After dividing all mole values by the smallest, the ratios are not always whole numbers. The most common non-integer results and their multipliers: ratio of 1.5 -- multiply all by 2 (gives 3). Ratio of 1.33 -- multiply by 3 (gives 4). Ratio of 1.25 -- multiply by 4 (gives 5). Ratio of 1.67 -- multiply by 3 (gives 5). Ratio of 1.20 -- multiply by 5 (gives 6). Example with non-integer: a compound contains 85.63% C and 14.37% H. Moles: C = 85.63/12.011 = 7.129, H = 14.37/1.008 = 14.26. Divide by 7.129: C = 1.000, H = 2.000. Empirical formula: CH2. Empirical MW = 14.027 g/mol. If M = 42.08 g/mol (propene), n = 42.08/14.027 = 3. Molecular formula: C3H6. If ratio had been 1.500: multiply all by 2 to get C:H = 2:3, giving empirical formula C2H3 instead. Always multiply by the smallest integer that gives all integers.
Combustion analysis worked example
Combustion analysis is the standard experimental method for determining the empirical formula of an organic compound. The compound is burned in excess O2; CO2 and H2O are collected and weighed. Mass C = mass CO2 x (12.011/44.010). Mass H = mass H2O x (2.016/18.015). Mass O = sample mass minus C minus H (by difference -- assuming only C, H, O are present). Worked example: 0.2000 g of an unknown compound on combustion gives 0.4400 g CO2 and 0.2700 g H2O. Mass C = 0.4400 x (12.011/44.010) = 0.1201 g (60.05%). Mass H = 0.2700 x (2.016/18.015) = 0.03022 g (15.11%). Mass O = 0.2000 - 0.1201 - 0.03022 = 0.04968 g (24.84%). Moles: C = 0.1201/12.011 = 0.009999, H = 0.03022/1.008 = 0.02998, O = 0.04968/15.999 = 0.003105. Divide by 0.003105: C = 3.22, H = 9.66, O = 1.00. These are close to 3.25, 9.75, 1 -- multiply by 4: C = 13, H = 39, O = 4. This is unusual; re-examining: ratio 3.22 is close to 3.25 = 13/4, and 9.66 is close to 9.75 = 39/4. Empirical formula: C13H39O4? MW = 13(12.011)+39(1.008)+4(15.999) = 156.143+39.312+63.996 = 259.45 g/mol. More likely a rounding issue -- the actual compound is probably ethanol (C2H5OH) or acetic acid. Enter the percentages into the LazyTools empirical formula calculator to verify automatically.
Empirical formula in industry and research
In industrial and research chemistry, the empirical formula is the starting point for characterising any new compound. Elemental analysis (CHN analysis by combustion, with separate tests for S, halogens, metals) gives the percent composition. The empirical formula is calculated and compared with the proposed molecular formula. If the ratio of molar mass (from mass spectrometry) to empirical formula mass is a whole number, the molecular formula is confirmed. For example, a new pharmaceutical intermediate gives CHN analysis: C = 58.52%, H = 4.91%, N = 11.37%, O = 25.20% (by difference). Empirical formula calculation: C = 58.52/12.011 = 4.872; H = 4.91/1.008 = 4.871; N = 11.37/14.007 = 0.8117; O = 25.20/15.999 = 1.575. Divide by 0.8117: C = 6.002, H = 6.001, N = 1.000, O = 1.941 (approximately 2). Empirical formula: C6H6NO2. Empirical MW = 6(12.011)+6(1.008)+14.007+2(15.999) = 72.066+6.048+14.007+31.998 = 124.119 g/mol. If MS gives M = 248.24, n = 2: molecular formula C12H12N2O4 -- a dimer or bis-compound. The LazyTools empirical formula calculator performs this calculation instantly for any element combination.
Using this calculator for coursework and lab reports
All LazyTools calculators run entirely in your browser with no data sent to any server. Click Copy to paste results into lab reports, coursework assignments and problem sets. The LazyTools stoichiometry suite covers all major quantitative chemistry calculations -- the related tools section links to the molar mass calculator, percent composition calculator and grams-to-moles converter used most frequently alongside empirical formula work.
The empirical formula calculator uses accurate atomic masses and a GCD-based integer-finding algorithm, handling all common non-integer ratios automatically and providing the molecular formula when the molar mass is known.
Frequently asked questions
The simplest whole-number ratio of atoms in a compound. CH2O is the empirical formula of both glucose (C6H12O6) and acetic acid (C2H4O2).
Assume 100 g, convert percents to moles (divide by atomic mass), divide all by smallest, round to whole numbers.
n = molar mass / empirical formula mass. Molecular formula = (empirical formula) x n.
Glucose C6H12O6 has empirical formula CH2O (divide all subscripts by 6).
Multiply all ratios by the smallest integer that makes them whole: ratio of 1.5 -> multiply by 2; ratio of 1.33 -> multiply by 3.
Burning a compound in excess O2 and measuring CO2 and H2O produced to determine %C and %H; the remainder is typically O (by difference).
Yes -- for ionic compounds, the formula unit (e.g. NaCl, CaCl2) is the empirical formula.
Yes. Free, no signup, runs in your browser.