Percent Composition Calculator (Mass Percent of Each Element)

Percent composition is the share of a compound’s mass that comes from each element. Enter a formula to get the mass percent of every element, choose any element or group (such as the water in a hydrate or the nitrogen in a fertilizer salt) to see its percent, and give a sample mass to see how many grams of each it contains.

Inputs

Advanced options (1)

Results

Mass percent of the chosen element or group
36.077%
Mass of the chosen element or group in the sample
9.019
Molar mass of the compound
249.677
g/mol
Number of the element or group per formula unit
5
Formula in Hill order
CuH₁₀O₉S

    RefCHM-STO-008
    Methodmass % of element i = nᵢ·Aᵣ(i)/M × 100; % of a group = k·M(group)/M × 100
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Molar mass of the compoundM = Σ (atoms × atomic weight)1 × 63.546 + 1 × 32.06 + 9 × 15.999 + 10 × 1.008 = 249.677 g/mol
    2. Mass percent of each element% = atoms × atomic weight ÷ M × 100Cu 25.451 %, S 12.841 %, O 57.671 %, H 4.0372 %
    3. Number of H₂O per formula unitsmallest of (atoms in the compound ÷ atoms in the group)H: 10 ÷ 2 = 5; O: 9 ÷ 1 = 9 → 5
    4. Mass percent of H₂O% = k × M(group) ÷ M × 1005 × 18.015 ÷ 249.677 × 100 = 36.077 %
    5. Mass in the samplemass = sample × % ÷ 10025 g × 36.077 % = 9.019 g

    Mass percent composition

    ElementAtomsMass in 1 mol (g)Mass percentMass in the sample (g)
    Cu (copper)163.54625.451 %6.3628
    S (sulfur)132.0612.841 %3.2101
    O (oxygen)9143.99157.671 %14.418
    H (hydrogen)1010.084.0372 %1.0093

    Working out percent by mass

    Multiply each element’s atom count by its standard atomic weight to get its mass in one mole of the compound, then divide by the molar mass. The percentages always add up to 100 %. For a group, multiply the group’s molar mass by how many of it each formula unit holds: copper(II) sulfate pentahydrate holds five waters, so its water content is 5 × 18.015 ÷ 249.68. The automatic count is simply how many of the group the atoms can supply, so it answers “how much water is in a hydrate” directly; for a formula such as glucose it would also count the hydrogen and oxygen as water, which is arithmetic rather than chemistry.

    Assumptions and limits

    • CIAAW 2021 standard atomic weights (abridged values for elements whose weight is an interval).
    • The compound is pure and has exactly the formula entered; real samples may contain moisture or impurities.
    • Fertilizer labels quote phosphorus and potassium as P₂O₅ and K₂O equivalents, which this calculator does not convert.

    References

    • Prohaska, T. et al. (2022), Standard atomic weights of the elements 2021 (IUPAC Technical Report), Pure and Applied Chemistry 94, 573–600.
    • Atkins, P., Jones, L. and Laverman, L., Chemical Principles: The Quest for Insight, 7th ed., W. H. Freeman, 2016, Fundamentals section on determining chemical formulas (mass percentage composition).

    Questions

    What percent of copper(II) sulfate pentahydrate is water?
    36.08 % by mass: five waters (90.075 g/mol) in 249.68 g/mol. A 25 g sample holds 9.019 g of water.
    What is the percent of nitrogen in ammonium nitrate, NH₄NO₃?
    35.00 %. Two nitrogen atoms (28.014 g/mol) in a molar mass of 80.043 g/mol.
    What is the mass percent of nitrogen in urea, CO(NH₂)₂?
    46.65 %, which is why urea is quoted as a 46 % N fertilizer.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.