Skip to content
Calculator Tools
Chemistry Calculators

Percent Composition Calculator

Percentage by mass of every element in a compound, with the mass of each in a sample.

Enter values

Results update as you type.

Result

Largest component: O

53.284 %

Molar mass
180.156 g/mol
Elements
3

Composition of C6H12O6

ElementAtomsPercent by massMass in 100 g
O (Oxygen)653.284%53.2838
C (Carbon)640.002%40.002
H (Hydrogen)126.714%6.7142

About the Percent Composition Calculator

Percentage by mass of every element in a compound, with the mass of each in a sample.

Also known as: mass percent of element, percentage composition, elemental analysis, percent by mass.

How to use this calculator

  1. Enter chemical formula, sample mass.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

% element = (atoms × atomic mass) / molar mass × 100

Worked example

Using the values pre-filled in the calculator above:

  • Chemical formula: C6H12O6
  • Sample mass = 100 g

the calculator returns:

  • Largest component: O: 53.284 %
  • Molar mass: 180.156 g/mol
  • Elements: 3