About Molar Mass Calculator
Molar mass is the mass of one mole of a substance, numerically equal to its formula mass in atomic mass units but written in grams per mole. Getting it right is the first step in almost every stoichiometry problem: without it you cannot turn a weighed mass into moles, and without moles you cannot use a balanced equation.
This calculator parses the formula you type, including nested brackets such as Al2(SO4)3 and hydrate notation such as CuSO4·5H2O. It works through the element totals, multiplies each by its standard relative atomic mass and adds the results, then shows the contribution and percentage of every element so a mistyped subscript is easy to spot.
What this tool does
Nested brackets and hydrates
Round, square and curly brackets can be nested, and hydrate dots accept an integer coefficient such as the 5 in CuSO4·5H2O.
Per-element breakdown
Each element gets its atom count, relative atomic mass, mass contribution and percentage of the total, which is the data needed to check a formula or find a mass fraction.
Step-by-step working
The calculation is written out with each atomic mass multiplication and the final sum, so the result can be followed by hand or copied into notes.
118-element table
All 118 elements are supported with standard atomic weights, and the full table is available on the page for checking a value.
Strict formula validation
Unknown symbols, unbalanced or mismatched brackets, zero subscripts and stray numbers are reported with a specific message instead of being guessed at.
Local and instant
Parsing and arithmetic run in the browser as you type, so formulas from coursework or lab work never leave the device.
How to use Molar Mass Calculator
- 01
Type the formula
Enter the formula with normal digits for subscripts, for example Ca(OH)2 or Al2(SO4)3; Unicode subscripts such as H₂O are accepted too.
- 02
Use brackets for groups
Wrap repeating groups in (), [] or {} and put the multiplier after the closing bracket, as in Ca(OH)2.
- 03
Add hydrate water
Write hydrate dots as a middle dot or period, for example CuSO4·5H2O, and put the water coefficient after the dot.
- 04
Read the breakdown
Check the headline molar mass, then the element table for atom counts, contributions and percentages.
- 05
Follow the working
Use the step-by-step panel to check each atomic mass multiplication and the final addition.
How this tool works
- Works with
- FORMULA → MASS
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Uses standard atomic weights only: isotope-specific masses and isotopic purity are not handled.
- Neutral formulas only: charges, oxidation states and coefficients in front of a formula are rejected rather than parsed.
- Fractional subscripts, as used in some mineral formulas, are not supported, and results are rounded to three decimal places.
- Elements with no stable isotope use the mass number of their longest-lived isotope, so those molar masses are approximate.
Privacy and file handling
Formulas are parsed and the molar mass is calculated in your browser tab. Nothing you type is uploaded, stored or logged, and the calculator makes no network request.
Read the full privacy policy