Percent Composition Calculator

Use this percent composition calculator to parse a chemical formula, calculate its molar mass, and show how much each element contributes by mass.

--

Run the calculator.

Quick Answer: Percent composition by mass is found by dividing each element's mass contribution in one mole of the compound by the total molar mass and multiplying by 100.

What This Percent Composition Calculator Helps You Do

This calculator turns a molecular formula into atom counts, molar mass, and element-by-element mass percentages in one pass.

That makes it useful for empirical-formula work, stoichiometry checks, and fast validation when a percentage answer looks suspicious.

How to Calculate Percent Composition Calculator

  1. Enter the formula: Type a valid chemical formula such as H2SO4, Ca(OH)2, or CuSO4·5H2O.
  2. Parse the atom counts: The calculator expands groups and hydrate notation, then totals the atoms of each element.
  3. Convert to percentages: Each element's mass contribution is divided by the total molar mass to produce the percent composition.

Percent Composition Calculator Formula

Element percent = (element mass contribution / molar mass of compound) × 100
Variable Meaning Unit
% element Mass percent of an element in the compound %
m_element Element mass contribution in one mole g/mol
M Compound molar mass g/mol

Use the worked examples below to check how the formula behaves with real values. If the result looks unexpected, verify the unit assumptions and the meaning of each variable before interpreting the answer.

Worked Examples

Inorganic compound - Water
  • Formula: H2O

Result: Hydrogen = 11.19%, oxygen = 88.81%

Most of water's mass comes from oxygen even though it has two hydrogen atoms.

Mineral - Calcium hydroxide
  • Formula: Ca(OH)2

Result: Ca = 54.09%, O = 43.19%, H = 2.72%

Parentheses matter because the OH group appears twice.

How to Interpret Your Results

Range Meaning Action
Largest percentage Dominant mass contributor Use it to sanity-check whether the formula entry looks right.
Small percentage Minor mass contributor Small percentages are common for hydrogen or low atom counts.
All percentages sum to 100% Balanced output If they do not, the formula was not parsed correctly.

Frequently Asked Questions

No. Percent composition is mass based, while mole fraction is particle or mole based.

Yes. This page expands grouped formulas and common hydrate notation.

Hydrogen atoms are very light, so even several hydrogen atoms may contribute little mass.
Note: Percent composition depends on the formula you enter, so double-check subscripts, parentheses, and hydrate notation before using the result in stoichiometry.

References

Last reviewed: March 2026