Empirical Formula Calculator

Calculate the empirical formula of a compound from percent composition or mass data. Enter the elements and their percentages or masses to find the simplest whole-number ratio.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

This calculator determines the empirical formula (simplest whole-number ratio of atoms) from mass or percentage composition data.

  1. Set number of elements (2–5) using the input field at the top.
  2. Enter element symbols (e.g., C, H, O) in the Element fields. Use standard periodic table abbreviations.
  3. Enter mass values in the Mass / % fields. You can use either:
    • Percentages (%) – must sum to ~100%.
    • Grams (g) – actual masses from a sample.
  4. Select the unit (% or g) for each element from the dropdown.
  5. Click "Calculate Empirical Formula".

Output: The empirical formula (e.g., CH₂O) appears in green. Below it, a step-by-step breakdown shows mole calculations and ratio rounding.

Tip: If percentages don’t sum to 100% (within 0.5%), the calculator will warn you. For gram inputs, no total check is performed.

Previous Results

Generate Charts
Result Inputs Date

Frequently Asked Questions

An empirical formula represents the simplest whole-number ratio of atoms of each element in a compound. For example, hydrogen peroxide (H2O2) has an empirical formula of HO.

Enter the number of elements (2-5), then input each element symbol (e.g., C, H, O) and its mass in grams or percentage. Click 'Calculate Empirical Formula' to get the result.

If you enter all percentages, they should sum to approximately 100%. The calculator will warn you if the sum is off by more than 0.5%. You can also enter masses in grams instead.

Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0