Skip to content

Percent Composition Calculator - Mass Percentage Tool

Calculate percent composition by mass for a compound, mixture, or alloy. Enter a total mass and each component's mass to get its percentage of that total.

Percent Composition Calculator

Calculate the percentage composition of a substance based on the mass of its individual components.

Components

Component 1

Loading calculator...
📚

Documentation

What Is Percent Composition?

Percent composition is the mass of one part of a substance, expressed as a percentage of a total mass. A percent composition calculator takes a total mass and the mass of each component, then reports what share of the total each component contributes.

Chemists use it to check what an unknown sample is made of. Manufacturers use it to confirm a batch matches its recipe. Anyone comparing ingredient or alloy masses to a whole can use the same method.

Percent Composition Formula

Percent Composition=Mass of ComponentTotal Mass×100%\text{Percent Composition} = \frac{\text{Mass of Component}}{\text{Total Mass}} \times 100\%

The component mass and the total mass must use the same unit, usually grams. The result is a percentage: how many parts out of 100 that component contributes to the total.

How to Calculate Percent Composition

  1. Divide the component's mass by the total mass.
  2. Multiply the result by 100 to turn it into a percentage.
  3. Round to a sensible number of decimal places (this calculator rounds to two).

Worked Example

A sample weighs 100 grams. It contains 40 grams of carbon.

40 g100 g×100%=40%\frac{40\text{ g}}{100\text{ g}} \times 100\% = 40\%

Carbon makes up 40% of the sample's mass.

How This Calculator Handles the Total Mass

This calculator has two separate inputs: a Total Mass field and a mass field for each component. It does not add up the component masses for you and does not force the results to sum to 100%. Every percentage is calculated as that component's mass divided by whatever value is in the Total Mass field.

This matters when the component masses do not add up to the total. For example, enter a total mass of 100 g, then add two components, Carbon at 30 g and Hydrogen at 30 g. The calculator reports 30% for each, and the two percentages add up to 60%, not 100%, because the components only account for 60 g of the 100 g total.

To get percentages that sum to 100%, set the Total Mass field equal to the sum of the component masses. This is normal in lab work: if a sample weighs 150 g and analysis finds 135 g of copper and 15 g of tin, entering 150 as the total mass gives 90% copper and 10% tin, which does sum to 100% because every gram was accounted for.

If a single component's percentage comes out above 100%, the mass entered for that component is larger than the total mass. Since a part cannot outweigh the whole it belongs to, that usually means the total mass or the component mass was typed incorrectly.

Finding Percent Composition From a Chemical Formula

This calculator works from masses you already have. If instead you are starting from a chemical formula, you first need to work out the mass each element contributes:

  1. Look up the molar mass of each element in the formula.
  2. Multiply each element's molar mass by how many atoms of it appear in the formula.
  3. Add these up to get the compound's total molar mass.
  4. Divide each element's mass contribution by the total molar mass, then multiply by 100.

For water (Hâ‚‚O), using standard atomic weights of about 1.008 for hydrogen and 15.999 for oxygen, the molar mass is 18.015 g/mol. Hydrogen contributes 2 Ă— 1.008 = 2.016 g/mol, which is 11.19% of the total. Oxygen contributes 15.999 g/mol, which is 88.81% of the total. Once these masses are known, they can be entered into the calculator as component masses, with the molar mass as the total mass.

Percent Composition in Practice

  • Chemistry. Comparing a synthesized compound's measured composition with the composition its formula predicts shows whether the reaction produced what was intended.
  • Metallurgy. Alloys are defined by their component percentages. Bronze, for instance, is typically 88–95% copper and 5–12% tin; a sample outside that range is a different alloy or is contaminated.
  • Pharmaceuticals. Manufacturers check that the active ingredient stays within an approved percentage range in every batch.
  • Food labeling. A label claiming "20% protein" is based on the mass of protein divided by the total mass of the food.

Other Ways to Express Composition

Mass percentage is not the only way to describe what is in a mixture. Mole percentage compares numbers of molecules rather than mass, and is common in reaction chemistry. Volume percentage, seen on drink labels as things like "40% alcohol," is standard for liquids. Parts per million (ppm) is used for very small trace amounts, such as contaminants in water. Molarity, moles of solute per liter of solution, is the standard unit for lab solutions. Which one to use depends on how the substance was measured.

Frequently Asked Questions

What is percent composition?

It is the mass of one component of a substance, divided by the total mass, expressed as a percentage. It shows how much of the total mass each part contributes.

What is the percent composition formula?

Percent composition = (mass of component Ă· total mass) Ă— 100%. Both masses must be in the same unit.

Does this calculator normalize the component masses so they always add up to 100%?

No. It divides each component's mass by whatever value is entered in the Total Mass field. If the component masses do not add up to that total, the percentages will not add up to 100% either. To get percentages that sum to 100%, set the total mass equal to the sum of the component masses.

Can a percentage come out above 100%?

Yes, if a component's mass is entered as larger than the total mass. Since a component cannot weigh more than the whole sample it is part of, a result above 100% usually points to a data-entry mistake in the total mass or a component mass.

How do you find percent composition from a chemical formula?

Work out the molar mass of the compound, find how much mass each element contributes based on its number of atoms, then divide each element's contribution by the total molar mass and multiply by 100. See the water example above.

What units should be used?

Any mass unit works, as long as every component and the total mass use the same one. Grams are the usual choice in lab work. Mixing units, such as entering some masses in grams and the total in kilograms, will give wrong percentages.

What is the difference between percent composition and percent yield?

Percent composition describes what a substance is made of. Percent yield describes how much product a reaction actually produced, compared to the maximum possible. They are both percentages but measure different things.

References

  1. International Union of Pure and Applied Chemistry. IUPAC Compendium of Chemical Terminology (the "Gold Book").
  2. National Institute of Standards and Technology. NIST Atomic Weights and Isotopic Compositions.
  3. Harris, D. C. (2015). Quantitative Chemical Analysis (9th ed.). W. H. Freeman and Company.
  4. Brown, T. L., LeMay, H. E., Bursten, B. E., Murphy, C. J., & Woodward, P. M. (2017). Chemistry: The Central Science (14th ed.). Pearson.