Code tool

Percent Composition Calculator

Enter component names and masses to total the sample and calculate each mass percentage.

In-browser processingNo account requiredPrivacy details ↗

Enter at least two components with positive finite masses. Formula parsing and atomic-mass lookup are unsupported; enter the masses yourself. Incomplete optional rows are ignored.

Inputs stay in this browser; nothing is uploaded or saved.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter each component name and mass in one consistent unit.
  2. Use at least two complete rows with positive masses.
  3. Review total mass and each component percentage.

Mass-entry worksheet

Only user-entered names and masses are used. No chemical formulas or atomic masses are looked up. Incomplete optional rows are ignored.

GOOD TO KNOW

Common questions

Can I enter a chemical formula?

No. Enter each component name and mass explicitly.

Do percentages have to sum to 100?

The calculated percentages sum to 100% within rounding.

Does it identify elements?

No. Names are labels only; there is no element or atomic-mass lookup.