FormatFlow

No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

how-to · 5 min read

How to calculate molar mass with the molar mass calculator

Molar mass links a formula to a measurable mass. It is the mass of one mole of a substance in grams per mole, obtained by adding the standard atomic weights of every atom in the formula unit. Search results for a compound usually just want one number, but knowing how the number is built is what makes it safe to rely on.

This guide follows the molar mass calculator step by step: how to type a formula, how to read the element breakdown and mass percentages, and how to handle brackets and hydrates. It then works through H2SO4, Ca(OH)2, Al2(SO4)3 and CuSO4·5H2O, and lists the mistakes that produce a wrong result even when the arithmetic looks fine.

Using the molar mass calculator

Type the formula into the box and the calculator parses it immediately. Element symbols are case-sensitive and normal digits are subscripts, so H2SO4 is two hydrogen atoms, one sulfur atom and four oxygen atoms. Round, square and curly brackets are accepted for groups, and a hydrate dot can be written as a middle dot or a period.

The result panel gives the total molar mass in g/mol and the number of atoms per formula unit. Below it, the element breakdown lists each element's atom count, standard atomic weight, mass contribution and percentage of the total, and the step-by-step panel writes out the multiplication and sum. If a formula cannot be read, the tool says exactly where the problem is instead of returning a number.

Worked example: the molar mass of H2SO4

Sulfuric acid has two hydrogen, one sulfur and four oxygen atoms. Using standard atomic weights: 2 × 1.008 + 1 × 32.06 + 4 × 15.999 = 2.016 + 32.06 + 63.996 = 98.072 g/mol. That is the number you see for the molar mass of H2SO4 in the calculator.

The same table gives the mass percentages: hydrogen contributes 2.016 / 98.072 = 2.06%, sulfur 32.06 / 98.072 = 32.69% and oxygen 63.996 / 98.072 = 65.25%. They add to 100% within rounding, which is a useful check that no atom was missed. Because oxygen dominates the mass, sulfuric acid behaves as a heavy, dense liquid even though hydrogen atoms are far more numerous.

Worked examples: Ca(OH)2, Al2(SO4)3 and a hydrate

Calcium hydroxide, Ca(OH)2, contains one calcium plus two OH groups. The bracket multiplies both atoms inside it, so the count is one calcium, two oxygen and two hydrogen atoms: 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092 g/mol. Writing CaOH2 instead would imply one oxygen and one hydrogen, which is a different, incorrect formula.

Aluminum sulfate, Al2(SO4)3, is two aluminum plus three sulfate groups. Each sulfate contains four oxygen atoms, so the three groups give 12 oxygen and 3 sulfur atoms: 2 × 26.9815 + 3 × 32.06 + 12 × 15.999 = 342.131 g/mol. This is exactly the kind of formula where counting by eye goes wrong and where the calculator's per-element breakdown earns its place.

Copper sulfate pentahydrate, CuSO4·5H2O, adds five water molecules to a copper sulfate unit: 63.546 + 32.06 + 4 × 15.999 + 5 × (2 × 1.008 + 15.999) = 249.677 g/mol. The five multiplies the whole water formula, so it contributes 10 hydrogen and 5 oxygen atoms; about 36% of the hydrate's mass is water, which matters when a recipe calls for the anhydrous salt instead.

Subscripts, coefficients and molar mass versus molecular mass

A subscript belongs to the formula: H2O is a water molecule and H2O2 is hydrogen peroxide, with different atom counts and different molar mass. A coefficient in front of a formula is not part of the substance; 2H2O in an equation means two water molecules taking part, not a molecule containing four hydrogen atoms. The molar mass calculator therefore takes a formula, never a coefficient.

Molar mass and molecular mass are often used interchangeably and are numerically identical for a compound: water has a molecular mass of about 18.015 and a molar mass of 18.015 g/mol. The difference is the unit and meaning. Molecular mass is a relative mass on the atomic mass unit scale, while molar mass is the mass of one mole in grams. For ionic solids such as sodium chloride, the same arithmetic gives the mass of a formula unit, and chemists call it molar mass rather than molecular mass.

Common mistakes that change the answer

Most wrong molar masses come from four slips rather than from arithmetic. Forgetting brackets undercounts the atoms inside a group; typing a coefficient into the formula multiplies the answer by that number; treating the hydrate coefficient as attached only to hydrogen miscounts the water; and entering lowercase letters produces an unknown-symbol error instead of a plausible but wrong mass.

  • Write Ca(OH)2, not CaOH2, when the formula has a hydroxide group.
  • Keep coefficients out of the formula box; use them in a balanced equation instead.
  • For CuSO4·5H2O, the 5 multiplies both H2 and O in the water.
  • Do not round atomic weights before the final sum; round the displayed result only.
  • Check that the element percentages add up to about 100%.

Frequently asked questions

How do I calculate the molar mass of H2SO4?
Add the atomic weights for two hydrogen, one sulfur and four oxygen atoms: 2 × 1.008 + 32.06 + 4 × 15.999. That comes to 2.016 + 32.06 + 63.996 = 98.072 g/mol, which is the value the molar mass calculator reports for sulfuric acid.
What is the difference between molar mass and molecular mass?
Molar mass is the mass of one mole in grams per mole, while molecular mass is a relative mass on the atomic mass unit scale. For a compound the two numbers are the same, so water is 18.015 g/mol and has a molecular mass of about 18.015; the units and physical meaning differ.
Do coefficients in a chemical equation change the molar mass?
No. Molar mass is a property of one formula unit and does not depend on how many units take part in a reaction. A coefficient of 2 in front of H2O means two water molecules in that equation, but water's molar mass stays 18.015 g/mol regardless.
How does the calculator handle hydrates such as CuSO4·5H2O?
The dot separates the salt from the water of crystallization and the number before the water formula multiplies that whole part. The calculator adds one CuSO4 unit plus five H2O units, giving 249.677 g/mol, and it shows both part masses separately in the working.
Why does my calculated molar mass differ slightly from a textbook value?
Textbooks often round atomic weights to one or two decimal places or use older published values. The calculator uses standard IUPAC atomic weights, so differences usually appear in the second or third decimal place. Both results are acceptable for coursework if you show the atomic weights you used.

Tools for this job

All Chemistry Tools