The percent composition equation is percent by mass of an element = (mass of that element in the compound ÷ total mass of the compound) × 100%. This calculator uses a compound’s chemical formula and the element’s molar mass contribution to find what percentage of the compound’s mass comes from that element; enter the compound’s molar mass and the element’s contribution.
Formula
The mass percent of a selected element is its total molar-mass contribution in one mole of compound divided by the compound’s total molar mass, multiplied by 100:
% element = (m ÷ M) × 100%
- m is the mass contribution of the selected element in one mole of compound, in g/mol. Calculate it by multiplying the element’s atomic mass by the number of atoms of that element in the formula.
- M is the compound’s total molar mass, in g/mol, calculated by adding the contributions of all atoms in its formula.
- % element is the resulting mass percentage.
The calculator accepts the two mass contributions directly. Its output is therefore the selected element’s mass percent, rather than a full list of all elements. Use consistent units for both inputs; because the units cancel in the division, the result is a percentage.
Worked Example
For water, H2O, calculate the oxygen mass percent. The calculator’s default values are an oxygen contribution of 32.00 g/mol and a total molar mass of 180.16 g/mol, so this example uses those exact defaults. These are convenient example inputs for the ratio, not the molar mass of water.
- Divide the selected element’s contribution by the compound’s molar mass: 32.00 g/mol ÷ 180.16 g/mol = 0.177614.
- Convert the fraction to percent: 0.177614 × 100% = 17.7614%.
- Rounded to the calculator’s two decimal places, the answer is 17.76%.
To calculate water’s actual oxygen percent, use oxygen’s contribution of 15.999 g/mol and water’s molar mass of 18.015 g/mol: (15.999 ÷ 18.015) × 100% ≈ 88.81%. The default calculator values demonstrate the calculation pattern but do not represent that water calculation.
Assumptions
- The formula and molar masses represent a single, specified chemical compound with a known composition.
- The entered element contribution includes every atom of that element in one formula unit.
- Input quantities use the same mass-per-mole unit, here g/mol. The calculator does not identify the compound or verify the inputs.
- The result is theoretical mass composition; it does not measure impurities, moisture, or sample composition experimentally.
How to Calculate Each Element’s Contribution
First determine the compound’s molar mass from its chemical formula. Multiply each element’s atomic mass by its subscript, then add the results. A missing subscript means one atom. Parentheses multiply every atom inside by the subscript outside them; a leading coefficient indicates multiple formula units and should be accounted for consistently.
For water, H2O, use the standard atomic weights H = 1.008 and O = 15.999:
- Hydrogen contribution: 2 × 1.008 = 2.016 g/mol.
- Oxygen contribution: 1 × 15.999 = 15.999 g/mol.
- Total molar mass: 2.016 + 15.999 = 18.015 g/mol.
Then divide each contribution by 18.015 g/mol and multiply by 100. Hydrogen is about 11.19% and oxygen about 88.81%. Together they total 100% apart from rounding. For a hydrate, include the water molecules indicated in the formula; for example, a dot followed by a number and H2O adds those water atoms to the formula mass.
What Percent Composition Tells You
Percent composition describes the proportion of a compound’s total mass attributable to each element. It is useful in stoichiometry, checking chemical formulas, comparing compositions, and interpreting elemental analysis. It differs from the atom count: water contains twice as many hydrogen atoms as oxygen atoms, but oxygen contributes far more mass because an oxygen atom is much heavier than a hydrogen atom.
A percent composition table can also be used in the reverse direction. Given a sample’s mass and an element’s percent, estimate that element’s mass by multiplying sample mass by the percent written as a decimal. For instance, a 10.0 g sample that is 40.0% carbon contains 10.0 g × 0.400 = 4.00 g of carbon, assuming the sample has that composition and is sufficiently pure.
Common Errors and Limits
- Using atom counts instead of mass contributions: multiply atomic mass by the number of atoms before dividing.
- Forgetting a subscript or parentheses: parse the complete chemical formula, including hydrates and grouped ions.
- Mixing incompatible quantities: numerator and denominator must both represent mass per mole, or otherwise use the same mass basis.
- Rounding too early: retain several digits during the molar-mass sum and round the final percentage. Rounded element percentages may add to 99.99% or 100.01%.
- Confusing mass percent with atomic percent: atomic percent counts relative numbers of atoms; mass percent weights each atom by its atomic mass.
The formula gives the theoretical composition implied by the formula and chosen atomic weights. It cannot tell whether a physical sample contains contaminants, is wet, or has a different chemical form. Isotopic composition can also affect measured molar mass; standard atomic weights are suitable for ordinary calculations, but a sample enriched in a particular isotope may require isotope-specific data.
Frequently Asked Questions
What is the equation for percent composition?
Divide the mass of the element in the compound by the compound’s total mass, then multiply by 100%. Using molar masses, the equivalent equation is (element’s molar-mass contribution ÷ compound’s molar mass) × 100%.
How do I find percent composition from a chemical formula?
Calculate the molar mass of the whole formula, calculate the mass contribution of each element from its atomic mass and atom count, then divide each contribution by the total and multiply by 100%.
Do the percentages in a compound add up to 100%?
They should sum to 100% when every element in the formula is included. Small differences are normal when individual results are rounded.
Is percent composition the same as empirical formula?
No. Percent composition reports mass fractions. An empirical formula gives the simplest whole-number ratio of atoms; percent composition can be used to help determine that ratio when experimental data are available.
Can percent composition be greater than 100%?
Not for one element’s share of a correctly specified compound. A result above 100% usually signals mismatched units, an incorrect total molar mass, or a contribution entered more than once.
Related
Formula used
in m | Mass contribution of element | g/mol | 32.00 | 0 in t | Total compound molar mass | g/mol | 180.16 | 0 out p | Percent composition by mass | % | (m / t) * 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
- What Is r in the Free Energy Equation?1.0000
- Average Atomic Mass Equation and Calculator10.81103 u
- Theoretical Yield Calculator and Stoichiometry Formula1.8015 g
- Arrhenius Equation: A-Level Chemistry and Calculator52.91 kJ/mol
- Empirical Formula Equation: Calculate the Simplest Ratio
- Radioactive Decay Equation: Formula and Examples500,000.09 nuclei