Percent Composition Calculator | Mass Percent

Free elemental mass-percent tool

Percent Composition Calculator for Chemical Formulas and Masses

Find each element’s mass fraction from a supported chemical formula, calculate composition from measured component masses, or rearrange the mass-percent formula. Results include contributions, totals and transparent steps.

Last Updated: August 2, 2026
  • 84 CIAAW-weight elements
  • Nested groups and hydrates
  • Six calculation modes
  • No hidden rounding adjustment

Online Percent Composition and Mass Percent Calculator

Use the formula mode for theoretical elemental composition. Use a mass mode for experimental samples or inverse mass-fraction questions.

Use this page when mass fraction or percentage is the result. Use the Molecular Weight Calculator for molar mass, relative formula mass and atomic-weight uncertainty ranges.

Runs in your browser

Enter Your Composition Data

Enter plain numbers without commas or unit symbols. Formula letters are case-sensitive.

Uses CIAAW 2024 abridged standard atomic-weight values. Supports Unicode or ordinary subscripts, nested parentheses, brackets or braces, dot hydrates, and a terminal caret or Unicode ionic charge.
Examples: H2O, H₂O, CuSO4·5H2O and SO₄²⁻. Isotope labels, fractional subscripts and reaction equations are not supported.
Enter one element symbol from the formula, such as C, Fe or Cl. Leave blank to highlight the first element.
The calculator uses unrounded values internally. Display digits do not add accuracy to your source data.

Load a checked example:

Waiting for valid inputs
Enter a formula or mass data

Mass fractions, percentages, contributions and calculation steps will appear here.

Total molar or sample mass—
Highlighted component—
Highlighted mass fraction—
Composition percentage total—

Percent Composition Results

Each percentage is calculated from its unrounded contribution. Independently rounded rows may not display a total of exactly 100 %.

ComponentInput or countMass contributionMass fraction
Waiting———

Calculation Steps

  1. Select a mode and enter a formula or mass data.
  2. Calculate to see mass fractions and percentages.
Percent composition on this page means composition by mass. It does not mean volume percent, mole percent, purity or percent yield.

How to Use This Percent Composition Calculator

A formula-based calculation takes about two minutes when the compound formula is ready.

  1. Choose a calculation mode. Select chemical formula, custom atomic-mass rows, measured masses or one inverse mass calculation.
  2. Enter the formula or masses. Use correct element capitalization and positive integer subscripts. For custom rows, enter numerical molar-mass values in g/mol; for measured rows, enter plain mass values and select the shared unit.
  3. Identify the target. In formula mode, enter the element symbol you want highlighted or leave it blank to use the first element.
  4. Check the basis. Formula results use the listed CIAAW atomic weights; experimental results use your measured component masses.
  5. Calculate the composition. The tool divides each unrounded mass contribution by the unrounded total.
  6. Review every row. Confirm parsed atom counts, contributions, mass fractions and the selected result before using the answer.
  7. Report suitable precision. Round according to the quality of the formula, atomic-weight data or mass measurements supplied.

Percent Composition Formula

IUPAC defines the mass fraction of component i as its mass divided by the total mass of all components. Expressing this fraction as a percentage gives the familiar percent composition:

For a chemical formula, the element relative-mass contribution is niAr,i, and the relative formula mass is the sum of those contributions. The calculator displays the numerically corresponding nominal molar-mass contributions in g/mol.

The mass of one formula entity expressed in Da (or u) and the molar mass expressed in g/mol have the same nominal numerical value when based on the same atomic-weight data. The calculator labels its contribution and total columns in g/mol.

Supported Chemical Formula Syntax

The parser recognizes all 84 elements for which the CIAAW 2024 abridged table provides a standard atomic weight. Symbols must use correct capitalization, such as NaCl, not nacl. Ordinary or Unicode subscripts are accepted, and an omitted subscript means one.

Input typeExampleStatusMeaning
Plain formulaC9H8O4SupportedInteger element subscripts
Grouped formulaCa(OH)2SupportedNested parentheses, square brackets or braces
HydrateCuSO4·5H2OSupportedMiddle-dot segment with an integer or six-place decimal coefficient
Terminal chargeSO4^2−SupportedCharge is normalized and electron mass is ignored
Isotope label13C or D2ONot supportedUse custom rows with an isotope-specific mass
Reaction equationH2 + O2 → H2ONot supportedEnter one compound only

Radioactive elements without a CIAAW standard atomic weight are rejected in formula mode because one bracketed mass number would not represent a universal atomic weight. Use custom rows with an isotope or nuclide mass appropriate to your problem.

Atomic-Weight Data Used by the Calculator

Formula mode uses the listed single values in the CIAAW 2024 abridged standard atomic-weight table. The table is intended for normal materials. Some elements show natural isotopic variation, so their standard values include uncertainties or represent abridged interval information.

A different isotope composition produces a different molar mass and percent composition. Enriched material, labelled compounds, unusual geological samples and radioactive nuclides therefore require sample-specific values. Select custom rows and enter the corresponding numerical molar-mass values instead of treating the built-in value as exact.

The tool never changes one rounded percentage to force the displayed rows to total 100 %. All contributions are computed first, the unrounded total is retained, and each row is divided independently. This preserves the calculation rather than hiding a rounding difference.

What Each Calculation Mode Solves

ModeKnown valuesCalculated resultKey condition
Chemical formulaSupported formula and atomic-weight tableNominal molar mass and every element percentageOne formula expression; an optional terminal charge is ignored after composition is established
Custom rowsLabel, count and numerical molar mass in g/molContribution and mass percentage per rowPositive integer counts
Component massesComplete list of masses in one unitMass fraction and percentage per componentAt least one positive mass
Find mass percentComponent mass and total massComponent mass fractionComponent does not exceed total
Find component massMass percent and total massComponent massPercent from 0 through 100
Find total massPositive component mass and positive mass percentTotal sample massPercent above 0 and at most 100

Worked Percent Composition Examples

Example 1: Carbon in aspirin

Aspirin has formula C9H8O4. Using the built-in abridged values, carbon contributes 9 × 12.011 = 108.099 g/mol. Hydrogen contributes 8.064 g/mol and oxygen contributes 63.996 g/mol. The total is 180.159 g/mol. Carbon’s mass fraction is 108.099 / 180.159, so its mass percentage is approximately 60.0020 % before reporting to suitable precision.

Example 2: Iron in hematite

For Fe2O3, iron contributes 2 × 55.845 = 111.69 g/mol and oxygen contributes 3 × 15.999 = 47.997 g/mol. The total is 159.687 g/mol. The iron mass percentage is 111.69 / 159.687 × 100 %, approximately 69.9431 %.

Example 3: Composition from measured masses

An analyzed 12.04 g sample contains 7.34 g carbon, 1.85 g hydrogen and 2.85 g nitrogen. The masses total 12.04 g. Dividing each component by 12.04 g gives about 60.9635 % C, 15.3654 % H and 23.6711 % N. Rounded to the measurement precision, these become 61.0 %, 15.4 % and 23.7 %.

Theoretical Versus Experimental Percent Composition

Theoretical composition starts with a chemical formula and reference atomic weights. It describes the ideal stoichiometric material represented by that formula. Experimental composition starts with measured component masses or analytical results. It describes the tested sample and includes measurement uncertainty, impurities, moisture and any real departure from ideal stoichiometry.

A disagreement does not automatically mean the arithmetic is wrong. Check formula hydration, oxidation state, counterions, sample purity, basis of reporting, atomic-weight edition and whether the laboratory result is dry-basis or as-received. Compare values only after both use the same definition and material basis.

Percent composition is not percent yield. Composition describes how total mass is distributed among components. Percent yield compares actual product amount with a theoretical reaction yield.

Mass Fraction, Mole Fraction and Volume Fraction

Mass fraction compares masses. Mole fraction compares amounts of substance. Volume fraction compares volumes under stated conditions. These fractions answer different questions and are not interchangeable without additional data such as molar mass or density.

The headings retain familiar “percent composition” and “mass percent” wording for search clarity. In technical reporting, state the mass fraction expressed as a percentage, for example, “the mass fraction is 10 %” or w = 0.10. NIST writing places a space between the number and the percent symbol, and IUPAC lists “mass percent” as a deprecated synonym.

Purity and concentration also require care. A reagent labelled 95 % purity may use a mass fraction, but a solution labelled 5 % might be defined by mass, volume or amount depending on the standard. Confirm the stated basis before entering the value.

Rounding, Significant Figures and Data Quality

Keep full atom counts, atomic weights and measured masses until the final division. Rounding every contribution first can shift the final percentage. The precision selector changes only what you see; it does not recalculate from displayed values.

Rounded row percentages may show 99.999 % or 100.001 % even when the mathematical fractions total exactly one. Do not alter the final row to conceal this normal display effect. Instead, report a sensible number of significant figures and state that totals differ because of independent rounding when needed.

For quantitative laboratory reporting, include uncertainty, calibration, sample preparation and the atomic-weight or isotopic-composition source. This educational calculator performs deterministic arithmetic. It does not propagate uncertainty or certify a material composition.

Common Percent Composition Mistakes

  • Using atom percentage. Atom counts must first be weighted by atomic mass to obtain a mass percentage.
  • Forgetting a group multiplier. In Ca(OH)2, both oxygen and hydrogen occur twice.
  • Leaving out hydrate water. CuSO4 and CuSO4·5H2O have different molar masses and compositions.
  • Mixing mass units. Convert all experimental component masses to the same unit before forming a ratio.
  • Dividing by the component. The denominator is the total compound or sample mass.
  • Multiplying by 100 twice. A fraction of 0.25 is already 25 %, not 2500 %.
  • Using a reaction coefficient as a subscript. Composition belongs to one compound formula, not a balanced equation.
  • Rounding too early. Retain unrounded contributions until the final percentage.

Browse the Science and Engineering Calculators directory for more chemistry, physics and engineering tools.

Percent Composition Calculator FAQs

What is percent composition in chemistry?

Percent composition states each component’s mass fraction per hundred. For a compound, it commonly reports the percentage of total molar-mass contribution supplied by each element.

How do I calculate percent composition from a formula?

Multiply each element’s atom count by its atomic weight, add all contributions to obtain the nominal molar mass, then divide each element contribution by the total and multiply by 100 %.

How do I calculate mass percent from measured masses?

Divide the component mass by the total sample mass and multiply by 100 %. Both masses must use the same unit.

Do percent composition values always total 100 percent?

Complete unrounded mass fractions total exactly 1, or 100 %. Independently rounded displayed percentages can differ slightly from 100 %.

Does the calculator support parentheses and hydrates?

Yes. It supports nested parentheses, brackets, braces and dot-separated hydrate segments with coefficients, such as Ca(OH)2 and CuSO4·5H2O.

Which atomic weights does formula mode use?

It uses the listed single values from the CIAAW 2024 abridged standard atomic-weight table for the 84 elements with published standard atomic weights.

Can I use isotope-specific or radioactive-element masses?

Yes, use the custom atomic-mass rows and enter the mass appropriate to your nuclide or sample. Formula mode rejects elements without a standard atomic weight.

Is percent composition the same as percent yield?

No. Percent composition divides a component mass by total material mass. Percent yield divides actual reaction yield by theoretical reaction yield.

Why does my result differ from another calculator?

The tools may use different atomic-weight editions, interval choices, isotope data, hydrate formulas or rounding rules. Compare the input formula and data basis first.

Can percent composition determine an empirical formula?

Percent composition supplies the starting mass ratios. Determining an empirical formula also requires converting each element mass to moles and finding the smallest whole-number ratio.

Sources and Method

Definitions and built-in atomic-weight values were checked on August 2, 2026. Formula results use the listed single values from the published abridged table, not interval endpoints or isotope-specific masses.

Post a Comment

0Comments

Post a Comment (0)