About Empirical Formula Calculator
An empirical formula gives the simplest whole-number ratio of elements in a compound. It is what you get from percentage composition data, and it is the step before a molecular formula when the compound's molar mass is known. It does not say how many atoms are in one molecule.
This calculator accepts element masses or mass percentages, converts each element to moles with the standard atomic weights, divides by the smallest amount and scales the ratios until they are whole numbers. Percentages that do not add up to 100% are normalized first, with a note explaining the adjustment.
What this tool does
Mass or percentage input
Switch between measured masses in grams and mass percentages; the conversion to moles is handled for you either way.
Whole-number scaling
Ratios are multiplied by the first integer from 1 to 10 that brings every value within a small tolerance of a whole number, then reduced to the simplest form.
Percentage normalization
When percentages do not sum to 100%, they are normalized to a 100% total and the tool says so instead of silently distorting the result.
Mole-ratio table
The table shows each element's input value, atomic mass, moles, ratio and final whole number so every step can be checked.
Formula formatting
Carbon-containing formulas follow the usual carbon-then-hydrogen ordering, while formulas without carbon keep a conventional element order.
Clear errors
Unknown symbols, duplicate elements, non-positive values and ratios that do not resolve are reported instead of guessed.
How to use Empirical Formula Calculator
- 01
Choose the data you have
Select mass percent if you have percentage composition, or mass if you weighed each element or were given masses.
- 02
Enter the elements
Type an element symbol and its mass or percentage in each row; use the add button for more elements and the symbol field suggests known elements.
- 03
Read the mole ratio
The table converts each value to moles, divides by the smallest amount and scales to whole numbers for the formula.
- 04
Check the scaling factor
If the ratios needed multiplying, the summary shows the factor that was applied and the reduction that followed.
- 05
Use the formula
Copy the empirical formula and, if a molar mass is known, take it to the molecular formula calculator to find the multiple.
How this tool works
- Works with
- MASSES → FORMULA
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Assumes the element masses or percentages are accurate; small analytical errors can change the last digit of the formula.
- Percentages are assumed to describe the whole compound and are normalized when they do not total 100%.
- Finds empirical formulas only; the molecular formula needs a molar mass and is calculated by the separate molecular formula tool.
Privacy and file handling
Element values are processed only in your browser tab. Nothing is uploaded, stored or logged, and the calculator makes no network request.
Read the full privacy policy