Skip to main content

Empirical Formula Calculator

Find an empirical formula from masses (grams) or percent composition. We convert each element to moles, divide by the smallest, then scale to whole-number ratios. Supports the full standard periodic table, and an optional hydrate term like · x H₂O.

Background

The empirical formula is the simplest whole-number ratio of atoms in a compound. Example: glucose C₆H₁₂O₆ has empirical formula CH₂O.

Enter composition

Input mode

Enter the measured mass (grams) of each element in the sample.

Elements

Add 2–8 elements. Symbols like C, H, O, Na, Cl, As are all supported — we cover the full standard atomic-mass table.

Optional hydrate

Appended to the empirical formula — it doesn't change the base ratios.

Learning options

Chips prefill values and calculate immediately.

Result

No result yet. Add elements and click Calculate.

How to use this calculator

  • Pick Mass (g) or Percent mode.
  • Add each element (symbol) and its value — any element on the periodic table works.
  • Click Calculate to get the empirical formula, a mole-ratio visual, and a mole-ratio table.
  • If needed, we scale ratios to the nearest whole numbers (like ×2 for 1.5).

How this calculator works

  • Convert each entry to moles: moles = grams / atomic mass.
  • Divide all moles by the smallest mole value to get ratios.
  • Find a small multiplier (×1..×12) that turns ratios into near integers.
  • Format the formula with subscripts (e.g., C₆H₁₂O₆).

Formula & Equation Used

Moles: n = m / M

Ratio: rᵢ = nᵢ / min(n)

Scale: find integer k such that k·rᵢ ≈ integers

Example Problems & Step-by-Step Solutions

Example 1 — Percent composition of glucose

  1. Assume 100 g: C=40.00 g, H=6.71 g, O=53.29 g.
  2. Convert to moles: C≈3.33, H≈6.66, O≈3.33.
  3. Divide by smallest (3.33): C=1, H=2, O=1 → CH₂O.

Example 2 — Percent composition of carbon dioxide

  1. Assume 100 g: C=27.29 g, O=72.71 g.
  2. Convert to moles: C≈2.27, O≈4.54.
  3. Divide by smallest (2.27): C=1, O=2 → CO₂.

Example 3 — Mass data (iron oxide)

  1. Given masses: Fe=111.69 g, O=48.00 g.
  2. Convert to moles: Fe≈2.00, O≈3.00.
  3. Divide by smallest (2.00): Fe=1, O=1.5 → multiply by 2 → Fe=2, O=3.
  4. Empirical formula: Fe₂O₃.

Example 4 — Mass data (arsenic trioxide)

  1. Given masses: As=149.84 g, O=48.00 g.
  2. Convert to moles: As≈2.00, O≈3.00.
  3. Divide by smallest (2.00): As=1, O=1.5 → multiply by 2 → As=2, O=3.
  4. Empirical formula: As₂O₃.

Frequently Asked Questions

What if I get ratios like 1.5 or 2.33?

We multiply by a small number (like ×2 or ×3) to make them whole numbers.

Can I use percent composition?

Yes — percent mode treats each percent as grams in a 100 g sample.

Is empirical formula always the same as molecular formula?

Not always. Molecular formula can be a multiple of the empirical formula (like C₆H₁₂O₆ vs CH₂O).

Which elements are supported?

The full set of standard atomic masses used in general chemistry, including less common ones like arsenic (As), antimony (Sb), and bismuth (Bi).

Atomic Mass
2. Atoms & Elements
5 problems
Topic
Jules
Mole Concept
2. Atoms & Elements
7 problems
Topic
Jules
Law of Definite Proportions
2. Atoms & Elements
5 problems
Topic
Jules
Empirical Formula
3. Chemical Reactions
6 problems
Topic
Jules
Mass Percent
3. Chemical Reactions
7 problems
Topic
Jules
2. Atoms & Elements - Part 1 of 4
6 topics 14 problems
Chapter
Jules
2. Atoms & Elements - Part 2 of 4
6 topics 14 problems
Chapter
Jules
2. Atoms & Elements - Part 3 of 4
6 topics 14 problems
Chapter
Jules
2. Atoms & Elements - Part 4 of 4
5 topics 14 problems
Chapter
Jules
3. Chemical Reactions - Part 1 of 4
5 topics 13 problems
Chapter
Jules
3. Chemical Reactions - Part 2 of 4
6 topics 13 problems
Chapter
Jules
3. Chemical Reactions - Part 3 of 4
5 topics 13 problems
Chapter
Jules
3. Chemical Reactions - Part 4 of 4
1 topic 3 problems
Chapter
Hydrates
21. Aldehydes and Ketones: Nucleophilic Addition
5 problems
Topic
Ernest
19. Aldehydes and Ketones:Nucleophilic Addition - Part 1 of 7
5 topics 16 problems
Chapter
Johnny
19. Aldehydes and Ketones:Nucleophilic Addition - Part 2 of 7
1 topic 13 problems
Chapter
Johnny
19. Aldehydes and Ketones:Nucleophilic Addition - Part 3 of 7
2 topics 13 problems
Chapter
Ernest
21. Aldehydes and Ketones: Nucleophilic Addition - Part 4 of 7
5 topics 14 problems
Chapter
Ernest
21. Aldehydes and Ketones: Nucleophilic Addition - Part 5 of 7
4 topics 12 problems
Chapter
Ernest
21. Aldehydes and Ketones: Nucleophilic Addition - Part 6 of 7
5 topics 14 problems
Chapter
Ernest
21. Aldehydes and Ketones: Nucleophilic Addition - Part 7 of 7
3 topics 8 problems
Chapter
Ernest
Moles and Avogadro's Number
20. Heat and Temperature
3 problems
Topic
Patrick
20. Heat and Temperature - Part 1 of 2
5 topics 12 problems
Chapter
Patrick
20. Heat and Temperature - Part 2 of 2
4 topics 11 problems
Chapter
Patrick
Empirical Formula
6. Chemical Reactions & Quantities
3 problems
Topic
Jules
Mole Concept
6. Chemical Reactions & Quantities
6 problems
Topic
Jules
Mass Percent
6. Chemical Reactions & Quantities
3 problems
Topic
Jules
2. Atoms and the Periodic Table - Part 1 of 3
6 topics 14 problems
Chapter
Jules
2. Atoms and the Periodic Table - Part 2 of 3
12 topics 14 problems
Chapter
Jules
2. Atoms and the Periodic Table - Part 3 of 3
10 topics 14 problems
Chapter
Jules
6. Chemical Reactions & Quantities - Part 1 of 2
6 topics 9 problems
Chapter
Jules
6. Chemical Reactions & Quantities - Part 2 of 2
3 topics 8 problems
Chapter
Jules
Law of Definite Proportions
5. Molecules and Compounds
4 problems
Topic
Empirical Formula
6. Chemical Composition
5 problems
Topic
Mole Concept
6. Chemical Composition
5 problems
Topic
Mass Percent
6. Chemical Composition
5 problems
Topic
5. Molecules and Compounds
11 topics 33 problems
Chapter
6. Chemical Composition
4 topics 12 problems
Chapter
Back to all calculatorsAll calculators