Skip to content
Quasar Tools Logo

Percent Composition Calculator

Calculate the percentage composition by mass of every element in any chemical formula. Using IUPAC 2021 standard atomic weights, this tool parses formulas with parentheses, brackets, and hydration dots instantly. View the results on an interactive donut chart, analyze the element breakdown table, and follow detailed step-by-step mathematical explanations. Running completely locally in your browser.

Percent Composition Calculator

Enter any chemical compound formula to calculate the percentage mass composition of each element using standard IUPAC 2021 atomic weights.

Supports parentheses `()`, brackets `[]`, hydrate dots `·` or `.`, and multipliers. Symbols must be correctly capitalized (e.g., `NaCl`, not `nacl`).

Try Common Compounds:

Key Features of the Percent Composition Calculator

Instant Molar Mass Parsing

Parse complex chemical formulas (parentheses, square brackets, and hydration dots) and instantly look up IUPAC 2021 atomic weights to calculate overall molar mass and individual element contributions.

Interactive SVG Donut Chart

A beautiful visual representation of the elemental mass percentage composition. Hover over the color-coded sectors of the donut chart to see counts, atomic mass contributions, and exact percentages.

Step-by-Step Solved Math

Follow along with explicit mathematical steps. Shows the formula rearrangement, numeric substitutions, intermediate calculations, and final percentages so you can learn the exact method.

100% Client-Side Privacy

All chemical formulas are parsed and calculated entirely inside your web browser. No data is sent to external servers, protecting your research, homework, or chemical formula privacy.

Common Use Cases for Percent Composition Calculator

Determining Empirical Formulas

Start with percent composition data from elemental analysis to calculate the empirical formula of an unknown compound by dividing percentages by atomic masses.

Verifying Chemical Purity

Compare experimental mass percentages obtained from gas chromatography or mass spectrometry against theoretical percent composition values to check for sample purity.

Formulation Development

Calculate the mass contribution of active pharmaceutical ingredients or raw chemicals when formulating fertilizers, cosmetics, food additives, or drug dosages.

Material Characterization

Analyze the elemental percentages in complex alloys, polymer repeating units, minerals, and geological crystals to verify their composition profiles.

Academic & Classroom Study

Enable chemistry students to double-check their homework assignments, practice calculations, and visualize how elements contribute mass to compounds.

Mineral and Ore Valuation

Determine the theoretical maximum yield of a metal (like copper in chalcopyrite, CuFeS2) from its chemical formula using mass percentages.

Understanding Chemical Percent Composition

What is Percent Composition?

The percent composition (or percentage composition by mass) of a chemical compound is the ratio of the mass of each individual element to the total mass of the compound, expressed as a percentage. This concept is fundamental in analytical chemistry, stoichiometry, and materials characterization, as it defines the elemental makeup of any pure substance.

How to Calculate Percent Composition

To calculate the percent composition of an element in a chemical compound manually:

  1. Determine the chemical formula: Find the number of atoms of each element in the compound (e.g., $H_2O$ has 2 Hydrogen atoms and 1 Oxygen atom).
  2. Calculate the total molar mass:Multiply the number of atoms of each element by its standard atomic weight, then sum these values together to find the compound's molar mass (in g/mol).
  3. Apply the percent composition formula:
    % Element = ( (Atoms of Element × Atomic Weight) / Molar Mass of Compound ) × 100
  4. Sum Check: Verify that the percentages of all elements in the compound add up to exactly 100% (allowing for minor rounding variances).

Real-World Applications

In research and industrial laboratories, percent composition is used during elemental analysis. When an analytical chemist synthesizes a new compound, they measure its mass percentage composition. Comparing these experimental percentages with the theoretical values calculated by this tool helps confirm the identity and purity of the chemical substance. Furthermore, percent composition is the starting point for deriving a compound's **empirical formula**.

Frequently Asked Questions About Percent Composition

Percent composition (or percentage composition by mass) is the percentage by mass of each element present in a chemical compound. It is calculated by dividing the total mass of a specific element in one mole of the compound by the total molar mass of the compound, then multiplying by 100.

The formula for percent composition of element X is: % X = (n × atomic weight of X / total molar mass of compound) × 100, where "n" is the number of atoms of element X in the chemical formula. Our calculator performs this substitution and arithmetic automatically for any valid formula.

Yes. Our percent composition calculator parses simple formulas (like H2O), formulas with parentheses (like Ca(OH)2), square brackets (like [Cu(NH3)4]SO4), and hydrated compounds (like CuSO4·5H2O) instantly. Make sure element symbols use correct casing (e.g. Ca, not CA or ca).

The calculator uses the standard IUPAC 2021 atomic weights — the most accurate and up-to-date values agreed upon by the international scientific community. For radioactive elements with no stable isotopes, the mass number of the most stable isotope is used in calculations.

Percent composition data from elemental analysis allows chemists to determine the ratio of elements in an unknown compound. By dividing each element's mass percentage by its atomic weight, and then simplifying the ratios to the smallest whole numbers, you obtain the empirical formula.

Absolutely. All calculation logic, recursive formula parsing, and chart rendering run 100% locally in your web browser. Your inputs are never transmitted to any external server or saved.

Yes, the Percent Composition Calculator is completely free to use with no hidden tiers, registrations, or usage limits. You can check as many chemical compounds as you need.