Percent Composition Calculator

Find the mass percent of an element, ingredient, or other component within a compound or mixture.

Mass percent composition
Enter component mass and total sample mass in the same unit.

About percent composition

Percent composition expresses how much of a compound, mixture, or sample is contributed by one component. Mass percent is calculated by dividing the component mass by the total sample mass and multiplying by one hundred. The result answers a straightforward question: out of every one hundred units of sample mass, how many units belong to the selected component? It is widely used for chemical formulas, alloy specifications, nutrition, mineral analysis, solution preparation, and manufacturing quality control. For a pure compound, elemental percent composition can be calculated from its chemical formula. Multiply each element's atomic mass by the number of its atoms in one formula unit, then divide that contribution by the compound's molar mass. In water, oxygen contributes approximately 16.00 grams to a molar mass of about 18.015 grams, producing roughly 88.8 percent oxygen by mass. The hydrogen contribution makes up the remainder. Minor differences in atomic-weight tables and rounding can slightly change the final digits. For a physical mixture or solution, use measured masses instead. If five grams of salt are present in a solution whose total mass is 125 grams, the salt concentration is four percent by mass. The total must include the component and every other material. Adding five grams of solute to 120 grams of solvent creates 125 grams of solution, not 120 grams. Confusing solvent mass with solution mass is a common source of error. Component and total masses may use grams, kilograms, milligrams, or another mass unit, but both values must use the same unit because they form a ratio. The component cannot exceed the total when both describe the same sample. Individual component percentages should sum to approximately one hundred percent for a complete composition, though rounding and unmeasured trace material can create a small difference. A single component may legitimately be zero percent but total mass must be greater than zero. Mass percent differs from volume percent, mass-to-volume percent, mole percent, and parts per million. These concentration measures use different denominators and should not be substituted without density or molecular information. Always report the basis along with the numerical percentage. This calculator specifically evaluates mass divided by mass. It provides a fast, transparent ratio for coursework and routine analysis, while the accuracy of the result remains limited by sample purity, representative sampling, instrument precision, and the reliability of the entered masses.

Percent composition examples

These cases use the same component-mass divided by total-mass relationship.

Mass dataMass percentInterpretation
16.000 g oxygen in 18.015 g water88.8149%Oxygen accounts for most of the molecular mass of water.
5 g salt in 125 g solution4%Five divided by 125 and multiplied by one hundred gives four percent.
12 g carbon in 44 g carbon dioxide27.2727%This simplified atomic-mass example shows carbon's share of carbon dioxide.

How to calculate percent composition

  1. Determine the mass contributed by the component of interest.
  2. Find the total mass of the compound, mixture, or complete sample.
  3. Convert both measurements to the same mass unit.
  4. Select Calculate percent composition and interpret the mass-percent result.

Percent composition calculator FAQ

How do I find an element's mass in a compound?

Multiply the element's atomic mass by its subscript in the chemical formula. Add every element's contribution to obtain the compound molar mass.

Must the inputs be in grams?

No, any mass unit works when both inputs use the same unit. The units cancel in the component-to-total ratio.

Why should all percentages add to 100?

A complete list of mutually exclusive components accounts for the entire sample. Small deviations can occur from rounding, impurities, or omitted trace components.

Is mass percent the same as volume percent?

No, mass percent compares masses while volume percent compares volumes. Conversion between them generally requires density information.

Can the component mass exceed total mass?

Not when both values describe the same sample on the same basis. That condition indicates a unit mismatch, transcription error, or incorrect definition of the total.