molecalculator

Moles & Molar Mass

How to Solve for Percent Composition (Step-by-Step)

Calculator No. 01-11141 · Updated · Formula and assumptions shown below

Percent composition of element 50.00 %
Mass of element (g)
2.922 g
Set in the form below
Total mass of compound (g)
5.844 g
Set in the form below
You enter
Mass of element (g) (g), Total mass of compound (g) (g)
You get
Percent composition of element (%)
Rounding
2 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.

Percent composition tells you the mass percentage of each element in a chemical compound. You enter the chemical formula (or the masses of each element and the total mass), and the calculator returns the percent by mass for each element. This is essential for empirical formula determination, stoichiometry, and checking the purity of a sample.

Formula

The percent composition of an element in a compound is the mass of that element divided by the total mass of the compound, multiplied by 100%:

Percent composition (element) = (mass of element / total mass of compound) × 100%

Where:

  • mass of element (g) is the mass of the element in the sample.
  • total mass of compound (g) is the total mass of the sample (sum of all element masses).

If you are working from a chemical formula, you first find the molar mass of the compound using atomic weights, then divide the total mass of each element in one mole by the molar mass and multiply by 100.

Worked Example

Suppose you have a 5.844 g sample of sodium chloride (NaCl), and the sodium in it weighs 2.922 g. What is the percent composition of sodium?

Using the formula:

Percent Na = (mass of Na / total mass) × 100 = (2.922 g / 5.844 g) × 100 = 0.5000 × 100 = 50.00%

So sodium makes up 50.00% of the sample by mass. This matches the calculator output for the default values.

Assumptions

  • The sample is pure and contains only the compound of interest.
  • All masses are measured accurately.
  • The total mass is the sum of all element masses (no other components).

When to Use Percent Composition

Percent composition is used to:

  • Determine the empirical formula of a compound from experimental mass data.
  • Verify the identity of a substance by comparing its theoretical percent composition with experimental results.
  • Calculate the amount of a specific element in a given mass of compound (e.g., nitrogen in fertilizer).

How to Read the Result

The result is a percentage (0–100%). For a pure compound, the sum of the percent compositions of all elements should equal 100% (within rounding error). For example, in NaCl, Na is 39.34% and Cl is 60.66%, summing to 100.00%.

Common Mistakes

  • Using the wrong mass: Confusing the mass of the element with the total mass. Always divide element mass by total mass, not the other way.
  • Forgetting to multiply by 100: The ratio alone is a decimal fraction, not a percentage.
  • Unit errors: Ensure both masses are in the same unit (grams, kilograms, etc.) before dividing.
  • Rounding too early: Round only at the final step to avoid significant error accumulation.
  • Assuming the formula mass is the same as the sample mass: When using molar masses, use the molar mass of the compound, not the mass of a single molecule.

Tips

  • When working from a formula, write out the molar mass calculation clearly: e.g., for H₂O: H: 2 × 1.008 = 2.016 g/mol, O: 1 × 15.999 = 15.999 g/mol, total = 18.015 g/mol.
  • Use the periodic table’s standard atomic weights (e.g., H = 1.008, C = 12.011, O = 15.999).
  • Check that your percentages sum to 100% (within ±0.1% due to rounding).
  • For hydrates, include the water molecules in the molar mass calculation.

Troubleshooting

If the percentages don’t sum to 100%: Recheck your masses and arithmetic. A common issue is using the mass of the element from the formula but the total mass from a different sample. Ensure both come from the same source.

If you get a percentage over 100%: You likely divided the total mass by the element mass. Swap the numerator and denominator.

If the calculator shows “Cannot compute”: Check that the total mass is greater than zero. If you enter a total mass of zero or negative, the result is undefined.

If you are trying to find the percent composition from a formula and get stuck: Break it down: first find the molar mass of each element in the formula, then the total molar mass, then divide each element’s mass by the total and multiply by 100.

Frequently Asked Questions

Q: What is percent composition used for?
A: It is used to determine empirical formulas, check purity, and calculate the mass of an element in a given sample.

Q: How do I find the percent composition of a compound from its formula?
A: Calculate the molar mass of the compound. Then for each element, multiply its atomic weight by the number of atoms, divide by the total molar mass, and multiply by 100%.

Q: Can percent composition be more than 100%?
A: No, for a pure compound the sum of all element percentages is exactly 100%. Individual percentages are always less than 100%.

Q: What if my compound is a hydrate?
A: Include the water molecules in the molar mass. For example, CuSO₄·5H₂O has a molar mass that includes 5 water molecules.

Q: Why do my percentages not add up to exactly 100%?
A: This is usually due to rounding of atomic weights. Use more significant figures and round only at the end.

Q: Is percent composition the same as mass fraction?
A: Mass fraction is the ratio (element mass / total mass). Percent composition is that ratio multiplied by 100. They are directly related.

Related

Formula used
in m | Mass of element (g) | g | 2.922 | 0
in mt | Total mass of compound (g) | g | 5.844 | 0.001
out p | Percent composition of element | % | (m / mt) * 100 | 2

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 Moles & Molar Mass section →