Tested tool guide
Tested browser tools
Checked August 16, 2026
What Molecular Weight Calculator does, with a checked example
A chemical formula is the starting point: the calculator counts each element, totals its atomic-weight contribution, reports the corresponding molecular weight and molar mass, and divides the total into elemental mass percentages shown in a pie chart. It answers what one formula weighs, not what substance produced an experimental mass. The common trap is capitalization: CO denotes carbon and oxygen, while Co is the symbol for cobalt, so chemically correct letter case is essential.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Molecular weight: approximately 18.015; molar mass: approximately 18.015 g/mol; elemental composition: H 11.19% and O 88.81%; pie chart: the same two shares.
Using H = 1.008 and O = 15.999, two hydrogen atoms contribute 2.016 and one oxygen atom contributes 15.999, totaling 18.015. Their percentage contributions are 11.19% and 88.81%, which sum to 100.00% after rounding.