Skip to main content
Pearson+ LogoPearson+ Logo
All Calculators & ConvertersAll calculators

Enter composition

Tip: If you have percents, we treat them as grams in a 100 g sample.

Add 2–8 elements. Symbols like C, H, O, Na, Cl are supported. We use standard atomic masses.

Optional hydrate

Options

Chips prefill values and calculate immediately.

Result

No results yet. Add elements and click Calculate.

How to use this calculator

  • Pick Mass (g) or Percent mode.
  • Add each element (symbol) and its value.
  • Click Calculate to get the empirical formula 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 Problem & Step-by-Step Solution

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 (CO₂)

  1. Assume 100 g: C=27.29 g, O=72.71 g.
  2. Convert to moles: C≈27.29/12.01≈2.27, O≈72.71/16.00≈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≈111.69/55.85≈2.00, O≈48.00/16.00=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₃.

Frequently Asked Questions

Q: 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.

Q: Can I use percent composition?

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

Q: 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).

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 3
5 topics 13 problems
Chapter
Jules
3. Chemical Reactions - Part 2 of 3
6 topics 13 problems
Chapter
Jules
3. Chemical Reactions - Part 3 of 3
5 topics 13 problems
Chapter
Jules
19. Aldehydes and Ketones:Nucleophilic Addition - Part 1 of 3
5 topics 14 problems
Chapter
Johnny
19. Aldehydes and Ketones:Nucleophilic Addition - Part 2 of 3
1 topic 13 problems
Chapter
Johnny
19. Aldehydes and Ketones:Nucleophilic Addition - Part 3 of 3
2 topics 13 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
5 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