Mass Percent Composition Calculator

Mass percent of the element—
Mass of the element per mole (g)—
Mass percent of the rest—

How Mass Percent Composition Calculator is calculated: Mass percent of an element = (number of atoms x atomic mass / molar mass of the compound) x 100.

What is percent composition?

Percent composition says how much of a compound's mass is one element. Water is about 11.19 percent hydrogen and 88.81 percent oxygen by mass — the same numbers, in the same ratio, for every drop of water anywhere, because the formula H2O fixes the ratio. It is the number that connects a formula to a laboratory analysis: burn a sample, weigh what comes out, and the percentages tell you what the compound is.

This calculator works out the mass percent of one element in a compound. Type the number of atoms of that element in the formula, its atomic mass, and the molar mass of the whole compound, and it shows the element's mass percent, the grams of that element in one mole of compound, and the percent that belongs to everything else.

Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.

This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.

How percent composition is calculated

The method is one fraction. Multiply the number of atoms of the element by its atomic mass — that is the mass of that element in one mole of compound. Divide by the molar mass of the compound, and multiply by 100. For hydrogen in water: 2 atoms times 1.008 is 2.016 grams, divided by 18.015 grams per mole, times 100, is 11.19 percent.

The rest is the complement: 100 minus the element's percent is the percent of everything else. For water, 100 minus 11.19 is 88.81 percent, which is oxygen's share — and you can check that by running oxygen through the same calculation: 1 atom times 15.999, divided by 18.015, times 100, is 88.81 percent. The parts add to 100, which is the check.

This tool uses the standard textbook treatment: ideal behaviour, standard constants, and the conditions stated on the page. Real systems drift from that — gases are not perfectly ideal, activity differs from concentration in salty solutions, and measured values carry error. For school and college work the standard treatment is what is asked for; for research work, treat the result as a starting point and check it against measured data.

Before you rely on a result, run a quick sanity check on it. Convert a value you already know — one large egg should come out near 57 grams, one mole of water near 18 grams — and see that the tool agrees. If it does, your inputs are right and the rest of the answers will be too. If it does not, the input is usually the problem, not the tool.

The molar mass: the input that matters

The input people get wrong is the molar mass of the compound. It must be the molar mass of the whole compound — 18.015 for water, 44.009 for carbon dioxide — not the atomic mass of the element, and not the molar mass of a different compound. A wrong molar mass scales every percent wrong by the same factor, so the numbers look plausible while being wrong.

The second trap is the atom count. Water has two hydrogen atoms, so the hydrogen mass is 2 times 1.008, not 1.008. Glucose, C6H12O6, has twelve hydrogens and six oxygens, and the counts matter as much as the masses. Read the subscripts in the formula carefully — a subscript of 1 is invisible, and a missing subscript is the most common source of error.

The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.

A worked example: hydrogen in water

Take the default example: hydrogen in water. Two hydrogen atoms at 1.008 each give 2.016 grams of hydrogen per mole of water. Divide by the molar mass of water, 18.015, and multiply by 100, and the mass percent of hydrogen is 11.19 percent. The rest of the compound — the oxygen — is 88.81 percent.

Check it the other way: oxygen in water is 1 atom at 15.999, divided by 18.015, times 100, which is 88.81 percent — exactly the rest figure above. And carbon in carbon dioxide is 12.011 divided by 44.009, times 100, which is 27.29 percent. The same method works for every element in every compound.

The answers on this page are rounded for display, usually to two decimal places, while the maths underneath keeps full precision. That means a result shown as 2.28 may really be 2.2814, and the reverse check may differ in the last digit for the same reason. That is rounding, not an error, and it never changes the answer by more than a fraction of a percent.

The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.

Why percent composition matters

Students use percent composition to work out empirical formulas from experimental data: an analysis that finds a compound is 40 percent carbon, 6.7 percent hydrogen, and 53.3 percent oxygen points to a formula with a 1 to 2 to 1 ratio of those atoms. It is also how a compound's identity is checked — the measured percentages must match the formula's percentages.

In industry, percent composition is the language of specifications and labels. A fertiliser that is 46 percent nitrogen by mass is urea; a steel that is 0.8 percent carbon is a different grade from one that is 0.2 percent. The percentage is the number a buyer checks, because it is the number that decides what the material does.

Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.

The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.

Two related tools worth knowing are the molar mass converter and density calculator.

Percent composition vs mole fraction

Mole fraction is a share of the moles, while percent composition is a share of the mass. Water is 11.19 percent hydrogen by mass but 66.67 percent hydrogen by moles, because hydrogen atoms are light and there are two of them. Use mass percent for analysis and weighing; use mole fraction for counting particles and pressures. A mole calculator converts a mass to moles, which is the step before either share can be worked out from a weighed sample.

A percentage calculator does the plain arithmetic of percentages — a part over a whole, times 100 — while this calculator knows the chemistry: atoms times atomic mass over molar mass. If you already have the two masses, use the percentage tool; if you have a formula, use this one.

Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.

Common mistakes with percent composition

The most common mistake is forgetting to multiply the atomic mass by the number of atoms — using 1.008 for hydrogen in water instead of 2.016. The second is using the wrong molar mass, especially for hydrates, where the water of crystallisation counts in the total.

A third mistake is using rounded atomic masses that are too coarse — 1 for hydrogen and 16 for oxygen give 11.11 percent instead of 11.19, which is a visible error in an exam. A fourth is reporting the percent of the wrong element, by mixing up which atom count goes with which mass. A fifth is forgetting that the percentages of all elements must add to 100.

The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.

How to use this percent composition calculator

Type the number of atoms of the element in the formula, its atomic mass, and the molar mass of the whole compound. The mass percent appears instantly, with the element's mass per mole and the percent belonging to the rest alongside. Change any number and the answers update at once.

Work through every element in the compound one at a time, and check that the percentages add to 100 — that is the test that catches a wrong atom count or a wrong molar mass. If they do not add up, recheck the formula's subscripts first.

Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.

Frequently Asked Questions

Percent composition is the mass percent of each element in a compound. Water is 11.19 percent hydrogen by mass, because 2 hydrogen atoms at 1.008 each give 2.016 grams out of every 18.015 grams of water.

Multiply the number of atoms of the element by its atomic mass, divide by the molar mass of the compound, and multiply by 100. For hydrogen in water that is 2 times 1.008, divided by 18.015, times 100.

Yes. The mass percents of every element in a compound always add to exactly 100 percent, because the elements make up the whole compound. In water, 11.19 percent hydrogen plus 88.81 percent oxygen is 100 percent.

It is used to identify compounds from laboratory analysis and to work out empirical formulas. If an analysis finds a compound is 40 percent carbon, 6.7 percent hydrogen, and 53.3 percent oxygen, the formula has those atoms in a 1 to 2 to 1 ratio.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.