molecalculator

Reactions & Stoichiometry

Mass Percent Composition Equation and Examples

Calculator No. 05-0780 · Updated · Formula and assumptions shown below

Element mass percent 27.29 %
Element mass in one mole of compound
12.011 g/mol
Result, rounded to 3 decimal places
Atomic mass of element in one formula unit
12.011 g/mol
Set in the form below
Number of atoms of element in formula unit
1
Set in the form below
You enter
Atomic mass of element in one formula unit (g/mol), Number of atoms of element in formula unit, Molar mass of compound (g/mol)
You get
Element mass percent (%), Element mass in one mole of compound (g/mol)
Rounding
2 dp · 3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The mass percent composition equation is mass percent = (mass of a component ÷ total mass of the sample) × 100%. This calculator finds the percentage by mass of one element in a compound from its formula and atomic masses, and returns the element’s mass percent.

Formula

For an element in a pure compound, mass percent = (number of atoms of that element in one formula unit × atomic mass of the element ÷ molar mass of the compound) × 100.

  • a is the element’s atomic mass, in grams per mole (g/mol).
  • n is the number of atoms of that element in the compound’s chemical formula; it is a count and has no unit.
  • mm is the compound’s molar mass, in g/mol.
  • p is the element’s mass percent, in percent (%).
  • m is the mass contributed by that element in one mole of compound, in g/mol.

The underlying general equation is mass percent = (component mass ÷ total sample mass) × 100%. In a compound, the ratio can be calculated using molar masses because both the element contribution and the whole compound are expressed per mole. The number of moles cancels, so the percentage does not depend on how much of the compound is present.

Worked Example

Find the carbon mass percent in carbon dioxide, CO2. The calculator defaults are the values for this example: carbon atomic mass 12.011 g/mol, one carbon atom per formula unit, and carbon dioxide molar mass 44.009 g/mol.

  1. Carbon’s contribution to one mole of CO2: 12.011 g/mol × 1 = 12.011 g/mol.
  2. Divide by the compound’s molar mass: 12.011 g/mol ÷ 44.009 g/mol = 0.27291.
  3. Convert the fraction to a percentage: 0.27291 × 100 = 27.29%.

The result is 27.29% carbon by mass. The remaining mass is oxygen. Using the same molar mass and oxygen’s standard atomic mass, oxygen contributes 2 × 15.999 = 31.998 g/mol, or about 72.71%. The two percentages sum to 100.00% at the displayed precision.

Assumptions

  • The compound is pure and its chemical formula is known.
  • The formula represents the actual composition, including any waters of hydration or specified ions.
  • Atomic masses and molar mass use the same units and compatible atomic-weight values.
  • The calculation is a theoretical composition by mass, not a measurement of impurities or sample moisture.

How to Calculate Composition from a Formula

First determine the molar mass of the entire formula unit. Multiply each element’s atomic mass by its subscript, then add those contributions. A missing subscript means one atom. Parentheses multiply every atom inside them by the subscript outside the parentheses. For a hydrate, include the waters and the coefficient before the water formula.

Next, calculate the contribution from the element of interest: multiply its atomic mass by the number of its atoms in one formula unit. Divide that contribution by the compound’s full molar mass and multiply by 100. Repeat for other elements as needed. The atomic masses should come from a consistent table; standard atomic weights are commonly rounded for routine calculations, so the last decimal can vary slightly between references.

For example, in water, H2O, the molar mass using H = 1.008 and O = 15.999 is 2 × 1.008 + 15.999 = 18.015 g/mol. Hydrogen’s contribution is 2.016 g/mol, giving 2.016 ÷ 18.015 × 100 ≈ 11.19% hydrogen. Oxygen makes up approximately 88.81%.

What the Result Means

Mass percent describes the share of a compound’s mass attributable to an element. A 100 g sample of pure CO2, for instance, contains about 27.29 g of carbon and 72.71 g of oxygen by this calculation. It does not mean that the compound contains 27.29% carbon atoms by count: atom percent and mass percent are different because atoms have different masses.

For a pure compound, the mass percentages of all constituent elements should total approximately 100%. A small discrepancy can result from rounding each value. A large discrepancy usually points to a formula, subscript, molar-mass, or unit error. For a mixture, the same general equation applies, but the denominator is the total mass of the mixture and the component mass must be known; a compound’s formula alone cannot reveal the proportions of an unknown mixture.

Common Errors and Limits

  • Using only one atom’s mass: multiply by the subscript. CO2 has two oxygen atoms, so oxygen contributes twice its atomic mass.
  • Using an incomplete denominator: the molar mass must include every atom in the chemical formula, not just the element being analyzed.
  • Confusing mass percent with atom percent: mass percent weights atoms by their masses; atom percent counts them.
  • Ignoring formula details: parentheses, ionic formulas, hydrates, and isotopic labeling can change the composition or molar mass.
  • Rounding too early: retain extra digits during the calculation and round the final percentage to a sensible precision.

This equation gives a theoretical value for a specified chemical formula. It cannot identify an unknown substance or account for contamination, variable water content, or experimental measurement error. If the formula is uncertain or the sample is not pure, measured composition may differ from the calculated result.

Frequently Asked Questions

What is the mass percent composition equation?
Mass percent composition = (mass of the component ÷ total mass of the sample) × 100%. For an element in a compound, use its total atomic-mass contribution divided by the compound’s molar mass, then multiply by 100%.

How do you find mass percent from a chemical formula?
Calculate the compound’s molar mass, find the mass contribution of the element using its atomic mass and formula subscript, divide the contribution by the molar mass, and multiply by 100.

Do mass percentages in a compound add up to 100%?
Yes, the percentages for all elements in a pure compound add to 100% before rounding. Displayed values may total 99.99% or 100.01% because individual percentages are rounded.

Is mass percent the same as percent by mass?
Yes. “Mass percent,” “percent by mass,” and “percent composition by mass” generally refer to the same ratio, expressed as a percentage.

Can mass percent be greater than 100%?
Not for a component’s share of the total mass when the numerator is part of that same sample and both masses are measured consistently. A result above 100% signals a calculation, formula, or measurement mismatch.

Related

Formula used
in a | Atomic mass of element in one formula unit | g/mol | 12.011 | 0
in n | Number of atoms of element in formula unit | - | 1 | 0
in mm | Molar mass of compound | g/mol | 44.009 | 0
out p | Element mass percent | % | (a * n / mm) * 100 | 2
out m | Element mass in one mole of compound | g/mol | a * n | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Reactions & Stoichiometry section →