# Molecular Weight Calculator

> Type a chemical formula such as C6H12O6, Ca(OH)2 or CuSO4·5H2O to get its molar mass in g/mol and the mass percentage of each element.

Category: Science & engineering · Applies to: Worldwide · Last updated: 2026-10-29
Interactive calculator: https://calculators.geekmidst.com/calculators/molecular-weight-calculator

The molar mass of a compound is the sum of the standard atomic weights of its atoms. This calculator reads the formula, including brackets and hydrates, and adds them up using IUPAC/CIAAW values.

Also called: Molar mass calculator, Formula mass calculator.

## Inputs
- Chemical formula (default C6H12O6)

## Results
- Molar mass
- Atoms per formula unit
- Different elements

## Formula

```
M = Σ (number of atoms of each element × its standard atomic weight)
```

Where:
- M: molar mass in g/mol (numerically equal to the molecular weight in daltons)
- atomic weights: CIAAW abridged standard atomic weights, e.g. H 1.0080, C 12.011, O 15.999

## Worked example
1. Carbon: 6 × 12.011 = 72.066.
2. Hydrogen: 12 × 1.008 = 12.096.
3. Oxygen: 6 × 15.999 = 95.994.
4. Total = 72.066 + 12.096 + 95.994 = 180.156 g/mol.

**Result:** Glucose, C6H12O6, has a molar mass of 180.156 g/mol, and is 53.3% oxygen by mass.

## What the result means

Use the molar mass to convert between grams and moles (moles = grams ÷ molar mass), for example when making up a solution in the Molarity Calculator.

## Assumptions and limits
- Atoms have their natural isotopic composition. Atomic weights are the CIAAW abridged standard values (2024 edition).
- Elements with no stable isotopes (such as technetium or plutonium) have no standard atomic weight and are rejected.
- Charges and isotopic labels (e.g. D for deuterium) are not supported.
- Five significant figures are enough for laboratory work but not for high-precision mass spectrometry.

## Questions

### Is molecular weight the same as molar mass?

Numerically, yes. Molecular weight is the mass of one molecule in daltons (u); molar mass is the mass of one mole in g/mol, and the two numbers are equal.

### Why do different tables give slightly different values?

Some elements’ atomic weights vary with the source of the sample, so tables round them differently. The differences are usually in the third decimal place.

## Sources
- [CIAAW — Abridged Standard Atomic Weights](https://ciaaw.org/abridged-atomic-weights.htm)

## Related calculators
- [Molarity Calculator](https://calculators.geekmidst.com/calculators/molarity-calculator)
- [Density Calculator](https://calculators.geekmidst.com/calculators/density-calculator)
- [Percentage Calculator](https://calculators.geekmidst.com/calculators/percentage-calculator)

Source: GM¹X CalcVerse — https://calculators.geekmidst.com/calculators/molecular-weight-calculator
