Break a chemical formula into each element’s percentage by mass.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The parser expands counts, each contribution is count × atomic weight, and contribution divided by total formula mass gives mass percentage. Rounded display values therefore sum approximately to 100%.
H2O
Molar mass: 18.015 Breakdown: O: 88.81%, H: 11.19%
Students break water into element percentages, materials reports compare composition, and assay checks compare formula with measured mass.