Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Empirical Formula Calculator

  • Free
  • Runs in your browser
  • No account needed

The calculator finds the empirical formula, empirical formula mass, mole ratios, and the molecular formula when you supply a molar mass. Example: 40.00% C, 6.71% H, 53.29% O yields empirical CH2O, M_emp = 30.03 g/mol.

Empirical formula
CH₂O
Empirical formula mass
30.026 g/mol
Molecular formula
C₆H₁₂O₆ (6 x empirical)
Mole ratio
C 1.000 : H 1.999 : O 1.000
Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Empirical Formula Calculator

You use this tool to turn element percents or grams into an empirical formula, the empirical formula mass, mole ratios, and a molecular formula if you enter molar mass. Enter element symbols with percent or gram values and optionally the compound molar mass in g/mol. Results update instantly as you type; there is no calculate button. The page runs in your browser only, so nothing is uploaded to a server. You can copy results or share a link that reopens the tool with your inputs. The calculator follows the standard textbook method and uses standard atomic weights published by IUPAC/CIAAW. Students, lab techs and teachers use it for homework checks, quick verification and classroom demos.

How to use it

  1. 1Enter elements with percent values or grams for a 100 g sample assumption.
  2. 2Optionally enter the molar mass of the compound in g/mol.
  3. 3Watch empirical formula, empirical mass and mole ratios update instantly.
  4. 4Copy the result or share a link that reopens with your inputs.
Advertisement

Worked example

Input: C 40.00%, H 6.71%, O 53.29% and optional molar mass 180.16 g/mol. Result: Empirical formula CH2O; Empirical formula mass 30.03 g/mol; Mole ratio C:H:O = 1:2:1; Molecular formula C6H12O6.

The formula

Treat percentages as grams in a 100 g sampleMoles of each element = grams / atomic weightDivide every mole value by the smallestIf a ratio is not close to a whole number (within 0.1), multiply all ratios by 2, 3, 4 and so on until they areMolecular formula = empirical formula x (molar mass / empirical formula mass)Results update instantly as the visitor types; there is no calculate buttonVisitors can copy the result and share a link that reopens with their numbers

Source: IUPAC Gold Book definition of empirical formulaOpenStax Chemistry 2e, determining empirical and molecular formulasIUPAC/CIAAW standard atomic weights. Last checked 6 November 2026.

What it is good for

  • Shows empirical and molecular formulas instantly as you type.
  • Runs entirely in your browser; nothing is uploaded to a server.
  • Lets you copy results and share a link that reopens with your inputs.
  • Molecular formula requires a correct experimental molar mass and that M_mol / M_emp is an integer.
  • Tiny differences can occur if you need atomic weights beyond standard published values.
Advertisement

Questions people ask

What is an empirical formula?

The empirical formula is the simplest whole number ratio of atoms in a compound. For example CH2O shows a 1:2:1 ratio for C, H and O.

How do I enter percent versus grams?

If you enter percents the tool assumes a 100 g sample so percent equals grams. You may also enter actual gram amounts instead of percents.

What if I get fractional ratios like 1.5?

Multiply all ratios by a small integer such as 2, 3 or 4 until they become near whole numbers. The tool tests multipliers to find the smallest integer set.

Do my percents need to add to exactly 100%?

No. The calculator normalizes the inputs if their sum is close to 100%. Large deviations suggest missing elements or bad data and you should check your inputs.

Where do the atomic weights come from?

The tool uses standard atomic weights published by IUPAC/CIAAW. These are the commonly accepted values for lab and classroom use.

Is my data uploaded or saved on a server?

No. The calculator runs in your browser and does not upload numbers. You can copy results or create a share link that encodes your inputs in the URL.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement