Chemistry · Science

Molar Mass Calculator

Calculate the molar mass of a chemical formula, with each element's contribution and percentage by mass.

Live resultFormula shownStep-by-stepNo sign-up
Inputs

Molar Mass Calculator

Live
Updates as you type. Nothing leaves your browser.
ResultLive
Molar mass—
Explain my calculation

Each substitution is shown so you can check the arithmetic.

Enter values to see the step-by-step working.

Molar Mass formula

Formula
M = Σ (nᵢ × Aᵢ)

The live calculator applies this equation with full precision and rounds only for display.

What the variables mean

nᵢ = number of atoms of element i; Aᵢ = its standard atomic mass in g/mol.

Worked example

Example

Glucose, C₆H₁₂O₆, has a molar mass of 180.156 g/mol: 72.064 g of carbon, 12.096 g of hydrogen and 96.00 g of oxygen.

How to interpret the result

Molar mass converts between grams and moles. It is the sum of standard atomic masses, so it is an average value that reflects natural isotopic abundance.

Common mistakes

  • Convert volume to litres and temperature to kelvin before using gas or concentration formulas. Molar mass is grams per mole, not a dimensionless number. For pH, hydrogen-ion concentration must be in mol/L.

Frequently asked questions

Does the calculator handle parentheses?
Yes. It expands groups such as Ca(OH)2 and Cu(NO3)2. Hydrate dots and charges are not supported; enter the anhydrous formula instead.
What formula does this calculator use?
The calculator uses M = Σ (nᵢ × Aᵢ). The variables and units are listed on this page, and the live result shows the substituted working.
Are the results rounded?
Yes. Intermediate calculations use full precision, and the displayed result is rounded for readability. Small differences in the last digit can appear depending on the inputs.
Is this calculator free to use?
Yes. FormulasWorld calculators are free, require no account, and run in your browser. The formula and method are shown so you can verify the result independently.
Sources and standards

The formula, classification ranges and assumptions on this page follow the definitions and guidance of the bodies below.

How these are used: sources and standards.

Reviewed November 2026 · This tool is for education and estimation. See the disclaimer and methodology.

FormulasWorld

Need the theory behind molar mass?

Read the formula entry for the derivation, units and related equations.