Percent Composition Calculator

This calculator finds the percent composition by mass of an element within a compound, telling you what fraction of the compound's mass comes from that element. Percent composition is a basic and useful idea in chemistry: it breaks down a compound by the mass contribution of each of its elements. For any element in a compound, the mass percent is the total mass of that element in one mole of the compound, the number of its atoms times its atomic mass, divided by the molar mass of the whole compound, expressed as a percentage. This tells you, for example, that water is about 89 percent oxygen and 11 percent hydrogen by mass, even though it has twice as many hydrogen atoms, because oxygen atoms are so much heavier. Percent composition is used to work out how much of an element a material contains, to check the purity and identity of a compound, to calculate nutrient content in fertilisers, and as a step toward finding empirical formulas. This tool makes it straightforward. You enter the atomic mass of the element, the number of atoms of that element in the formula, and the molar mass of the whole compound, and the calculator returns the percent by mass of that element, along with its mass contribution per mole. The results update as you type, so you can work through each element in turn. Use it for chemistry homework, for analysing a compound, or for any composition calculation. To find the percentage of a different element in the same compound, simply change the atomic mass and atom count while keeping the compound's molar mass the same. The percentages of all the elements in a compound add up to one hundred.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner
88.81%
percent by mass of the element
Mass contribution16 g/mol
Compound molar mass18.015 g/mol
Atoms1

Mass percent = (atomic mass x number of atoms / molar mass of compound) x 100. The percentages of all elements in a compound sum to 100.

How it works

The mass of the element in one mole of the compound is its atomic mass multiplied by the number of its atoms in the formula. Dividing that by the molar mass of the whole compound, and multiplying by one hundred, gives the percent composition by mass of that element. Repeating for each element gives the full breakdown.

Worked example

For oxygen in water, H2O, oxygen's atomic mass is 16.00 with 1 atom, and water's molar mass is 18.015 grams per mole. The percent composition of oxygen is 16.00 times 1, divided by 18.015, times 100, which is about 88.81 percent. The remaining 11.19 percent is the two hydrogen atoms.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.