Molecular Weight Calculator
Any formula in, molar mass out — with the per-element math shown.
Per-element breakdown
| Element | Atoms | Atomic mass | Contribution | % of mass |
|---|
Parentheses (Ca(OH)₂) and hydrates (CuSO₄·5H₂O) work too. Masses are IUPAC standard atomic weights.
How to find a molecular weight
- Type the chemical formula — e.g.
H2OorCa(OH)2. - Press Calculate (or Enter). The molar mass appears in g/mol.
- Read the breakdown — atoms × atomic mass = each element's share, plus percent composition.
- Try the preset chips for common compounds like glucose.
Frequently asked questions
What is molecular weight (molar mass)?
Molecular weight is the mass of one molecule, built by adding up the atomic masses of all its atoms. The same number is the molar mass: the grams in one mole of the substance. Water's molecular weight is 18.015, so one mole of water weighs 18.015 g.
How is molecular weight calculated?
Multiply each element's atom count by its atomic mass and add the results: M = Σ (atoms × atomic mass). For H2O that's 2 × 1.008 + 1 × 15.999 = 18.015 g/mol. This calculator shows every step in the breakdown table.
What is the difference between molecular weight and molar mass?
Only the units differ. Molecular weight is the mass of a single molecule in atomic mass units (amu); molar mass is the mass of one mole in grams per mole (g/mol). The number is identical, so chemists use the terms interchangeably.
Where do the atomic masses come from?
From the standard atomic weights published by IUPAC — each is the weighted average of an element's naturally occurring isotopes. For synthetic elements with no stable isotopes, the table uses the mass number of the longest-lived isotope.
Why does my textbook show a slightly different value?
Usually rounding: 18.015 vs 18.02 g/mol for water is the same value with fewer decimals. Some elements (like carbon or lead) also have slightly different isotopic mixes in different samples, which shifts the average by a tiny amount.
How do I convert grams to moles with this?
Divide the grams by the molar mass: moles = grams ÷ g/mol. With 36.03 g of water, that's 36.03 ÷ 18.015 = 2 moles. This is the step that feeds into molarity calculations.
More from the codex
Molecular Weight Calculator
Molar mass with a per-element breakdown.
Chemical Equation Balancer
Balance any reaction with exact integer coefficients.
Open tool → LiveMolarity / Dilution Calculator
M = n/V and M₁V₁ = M₂V₂, solved any way.
Open tool → LiveDensity / Mass / Volume Calculator
ρ = m/V — solve for any variable.
Open tool → LivePeriodic Table
All 118 elements, one click away.
Open tool → LiveHalf-Life Calculator
Decay math plus a decay chart.
Open tool → LivePercent Error Calculator
Percent error vs. the true value, plus percent difference.
Open tool → LiveScientific Notation Converter
Convert, normalize, and do sci-notation arithmetic.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.