HomeCalculatorsChemistryPercent Composition Calculator

Percent Composition Calculator

Chemistry

Calculate the percent composition by mass for each element in a compound instantly. Enter up to 3 elements to get mass percentages and molar mass.

Reviewed by the thecalcu.com team · Last updated January 20, 2026

6
12
6

Element 1 (% mass)

0
Element 2 (% mass)
0
Element 3 (% mass)
0
Molar Mass
0

Breakdown

How the total splits

Element 1 (% mass)
0
Element 2 (% mass)
0
Element 3 (% mass)
0

This calculator computes your Element 1 (% mass), Element 2 (% mass), Element 3 (% mass), Molar Mass from the values you enter.

Inputs
Element 1Count 1Element 2Count 2Element 3 (optional)Count 3
Outputs
Element 1 (% mass)Element 2 (% mass)Element 3 (% mass)Molar Mass

What is a Percent Composition?

The Percent Composition Calculator determines the mass percentage of each element in a compound. Select up to 3 elements with atom counts and the calculator computes %element = (n × M_element / M_total) × 100 for each, plus the total molar mass. The default shows glucose (C₆H₁₂O₆): 40% C, 6.7% H, 53.3% O.

Percent composition connects the chemical formula of a compound to the mass fractions of its elements, the information you would measure in combustion analysis or elemental analysis. It is the starting point for determining empirical formulas from experimental data: convert percentages to mole ratios (divide by atomic mass), then find the simplest whole-number ratio. The Empirical Formula Calculator automates this reverse calculation.

For building the calculation from element atomic masses, the Molar Mass Calculator is the complementary tool, it calculates total molar mass with the same element-select interface but highlights the molar mass rather than the elemental percentages. For compounds with more than three elements, combine these calculations manually using the atomic masses from the Atomic Mass Calculator.

Why Use a Percent Composition Calculator?

Computing mass percentages requires correct atomic masses, multiplication, and division for each element. For a three-element compound like H₂SO₄: %H = 2×1.008/98.072×100, %S = 32.06/98.072×100, %O = 4×15.999/98.072×100, three separate calculations, each requiring the molar mass denominator to be correctly computed first. A single arithmetic error invalidates all percentages. This calculator eliminates the arithmetic entirely.

For NCERT Class 11 and JEE problems where percent composition is given and empirical formula is required, this calculator helps verify your work on the forward problem (formula → percent) before attempting the reverse.

Who Should Use This Calculator?

Class 11 and 12 chemistry students learning percent composition, empirical formulas, and combustion analysis, core NCERT Chapter 1 (Some Basic Concepts) topics that appear in JEE Main and NEET.

JEE aspirants verifying percent compositions for organic compounds (C, H, O, N combinations) needed for combustion analysis problems and empirical formula calculations.

Analytical chemists and quality control analysts checking expected elemental compositions against combustion analyser output to confirm compound identity or purity.

Agricultural chemists and fertiliser technologists computing N, P, K mass fractions of fertilisers for labelling compliance and subsidy calculation.

What Insights Does the Percent Composition Calculator Give You?

Element 1 (% mass) is the primary output, the mass percentage of the first element. For C₆H₁₂O₆, C = 40.00%, which immediately shows that glucose is nearly half carbon by mass.

Element 2 (%) and Element 3 (%) complete the composition picture. The three percentages should sum to 100% (within rounding), the calculator ensures this mathematically.

Molar Mass (g/mol) provides the denominator for all percentage calculations and the value needed for mole-gram conversions.

How to use this Percent Composition calculator

  1. Select Element 1 and enter Count 1. For glucose: C × 6.
  2. Select Element 2 and enter Count 2. For glucose: H × 12.
  3. Select Element 3 and enter Count 3. For glucose: O × 6.
  4. Read Element 1 (% mass) as the primary result, the mass percentage of the first element.
  5. Check that elements 1 + 2 + 3 percentages sum to 100%, verify the calculation is complete.
Show formula & methodology ↓Show less ↑

Formula & Methodology

Percent composition by mass:

%element_i = (nᵢ × Mᵢ / M_compound) × 100 M_compound = n₁M₁ + n₂M₂ + n₃M₃

Worked example, Urea (CH₄N₂O):

Urea can be entered as C×1, H×4, N×2, O×1, but this calculator only handles 3 elements. Use the first three (C, H, N) to find their percentages, then compute O% by subtraction (100 − %C − %H − %N):

M(urea) = 1×12.011 + 4×1.008 + 2×14.007 + 1×15.999 = 60.055 g/mol %C = 12.011/60.055 × 100 = 19.998% ≈ 20.00% %H = 4.032/60.055 × 100 = 6.714% %N = 28.014/60.055 × 100 = 46.646% %O = 100 − 20.00 − 6.71 − 46.65 = 26.64%

Urea's 46.65% nitrogen content (the highest of common fertilisers) is why it is the most widely used nitrogenous fertiliser in India, applied to rice, wheat, sugarcane, and cotton. IFFCO (Indian Farmers Fertiliser Cooperative) is the world's largest producer and distributor of urea.

Frequently Asked Questions

What is percent composition in chemistry?
Percent composition (percent by mass or mass percent) is the percentage of the total molar mass contributed by each element in a compound. For element i: %element_i = (nᵢ × Mᵢ / M_compound) × 100, where nᵢ is the atom count, Mᵢ is the atomic mass, and M_compound is the total molar mass. The percentages of all elements must sum to exactly 100%. Percent composition characterises the elemental makeup of a compound and is used to determine empirical formulas from combustion analysis.
What is the formula for percent composition?
%element = (mass of element in 1 mol of compound / molar mass of compound) × 100 = (n × M_element / M_compound) × 100. For water (H₂O, M = 18.015): %H = (2 × 1.008 / 18.015) × 100 = 11.19%; %O = (15.999 / 18.015) × 100 = 88.81%. Sum = 100.00%. For glucose C₆H₁₂O₆ (M = 180.156): %C = 72.066/180.156 × 100 = 40.00%; %H = 12.096/180.156 × 100 = 6.71%; %O = 95.994/180.156 × 100 = 53.29%.
How do I use the Percent Composition Calculator?
Select Element 1, enter its atom count, repeat for Element 2 and optionally Element 3. Default shows glucose (C₆H₁₂O₆): C×6, H×12, O×6. The calculator returns the mass percentage of each element and the total molar mass. The pie chart visualises the elemental composition by mass fraction.
How is percent composition used to determine empirical formulas?
Percent composition → empirical formula: (1) Divide each element's percentage by its atomic mass to get mole ratios. (2) Divide all mole ratios by the smallest. (3) If ratios are not whole numbers, multiply by the smallest integer to get whole numbers. Example: 40% C, 6.71% H, 53.29% O: C = 40/12.011 = 3.33; H = 6.71/1.008 = 6.66; O = 53.29/15.999 = 3.33. Ratio = 1:2:1 → empirical formula CH₂O (formaldehyde/glucose share this empirical formula). The [Empirical Formula Calculator](/empirical-formula-calculator/) automates this process.
What is the percent composition of common compounds?
Water (H₂O): H = 11.19%, O = 88.81%. Carbon dioxide (CO₂): C = 27.29%, O = 72.71%. Ammonia (NH₃): N = 82.24%, H = 17.76%. Sodium chloride (NaCl): Na = 39.34%, Cl = 60.66%. Glucose (C₆H₁₂O₆): C = 40.00%, H = 6.71%, O = 53.29%. Aspirin (C₉H₈O₄): C = 60.00%, H = 4.48%, O = 35.52%. Urea (CH₄N₂O): C = 20.00%, H = 6.71%, N = 46.65%, O = 26.64% (4 elements, beyond this calculator's 3-element limit).
What is the percent composition of fertilizers and why does it matter in Indian agriculture?
Urea (CH₄N₂O): 46.65% N, highest nitrogen content of common fertilisers; India is the world's second-largest urea consumer. DAP (diammonium phosphate, (NH₄)₂HPO₄): 18% N, 46% P₂O₅ (phosphate). KCl (muriate of potash): 60% K₂O equivalent (52.4% K). India's fertiliser subsidy system (managed by MoF and Ministry of Chemicals) is based on nutrient content, knowing percent composition of N, P, K elements determines the subsidy rate per metric tonne. Companies like IFFCO and Coromandel specify fertilisers by elemental percentages.
How does combustion analysis use percent composition?
Combustion analysis determines organic compound composition: a weighed sample is burned in excess O₂; the CO₂ and H₂O produced are collected and weighed. %C = (mass CO₂ / mass sample) × (12.011/44.009) × 100; %H = (mass H₂O / mass sample) × (2.016/18.015) × 100; %O = 100 − %C − %H − %N (by difference). This gives percent composition from which the empirical formula is derived. Combustion analysis is the standard method for characterising new organic compounds in chemistry research labs.
Can two different compounds have the same percent composition?
Yes, compounds with the same empirical formula but different molecular formulas have the same percent composition. Formaldehyde (CH₂O) and glucose (C₆H₁₂O₆) and acetic acid (C₂H₄O₂) all have the same empirical formula CH₂O and identical percent composition: 40.0% C, 6.7% H, 53.3% O. Distinguishing between them requires molecular mass determination (by mass spectrometry, osmometry, or vapour density). This is why percent composition alone cannot uniquely identify a compound.
What is the percent composition of iron ores used in India's steel industry?
Hematite (Fe₂O₃): M = 2×55.845 + 3×15.999 = 159.687 g/mol; %Fe = 111.69/159.687 × 100 = 69.94%; %O = 47.997/159.687 × 100 = 30.06%. Magnetite (Fe₃O₄): M = 3×55.845 + 4×15.999 = 231.531 g/mol; %Fe = 167.535/231.531 × 100 = 72.36%. Magnetite has slightly higher iron content than hematite, relevant for blast furnace calculations at SAIL plants in Bhilai, Rourkela, and Bokaro, which process Odisha and Chhattisgarh iron ores.
How does percent composition relate to empirical vs molecular formula?
Percent composition → empirical formula → molecular formula (with additional molecular mass information). Empirical formula: the simplest whole-number ratio of atoms. Molecular formula: the actual number of atoms. Both have the same percent composition. Benzene (C₆H₆) and acetylene (C₂H₂) have the same empirical formula CH (92.26% C, 7.74% H). To get the molecular formula from the empirical formula: n = M_molecular / M_empirical; molecular formula = n × empirical formula. This is a standard NCERT Class 11 problem type.