Examples:
Formula Formula: M = Σ (ni × Ar,i)
Supports parentheses
Supports parentheses
(...), square brackets [...], hydrates with ·, ., or *, and net charges like SO4^2-.
Molar Mass (Molecular Weight)
—
—
Empirical Formula
—
Total Atoms / Unit
—
Moles in Sample
—
| Element | Atoms | Atomic Mass | Subtotal (g/mol) | Mass % |
|---|
Step-by-Step Calculation
How It Works & Quick Guide
Adding up atomic weights by hand gets tedious fast—especially when you are dealing with nested brackets like K₄[Fe(CN)₆] or hydrated salts like copper(II) sulfate pentahydrate. Type any formula here to get its exact molar mass, elemental breakdown, and sample moles in seconds.
How to Use the Molar Mass Calculator
- Enter any chemical formula using standard element symbols (e.g., CuSO4·5H2O or K4[Fe(CN)6]).
- Optionally enter a sample mass in g, mg, or kg to calculate moles.
- Review the molar mass, stacked elemental composition bar, and step-by-step atomic weight sum.
The Formula Behind It
M = Σ (n_i × A_r,i), where n_i is the atom count of element i and A_r,i is its IUPAC standard atomic weight.
Worked Example
For CuSO₄·5H₂O: Cu (63.546) + S (32.06) + 9×O (143.991) + 10×H (10.08) = 249.677 g/mol.
Good to Keep in Mind
Uses IUPAC 2021 standard atomic weights across all 118 elements. Supports nested parentheses, square brackets, hydrates, and net ionic charges.
Molar Mass Calculator - Frequently Asked Questions
Does this calculator support hydrates like CuSO4·5H2O?
Yes. You can separate hydrate water molecules using ·, ., or * (for example CuSO4·5H2O or CuSO4.5H2O) and the parser automatically multiplies the water atoms.
How are nested brackets such as K4[Fe(CN)6] handled?
Our recursive formula parser evaluates nested parentheses and square brackets from the inside out and multiplies inner element counts by trailing subscripts.
Is molar mass numerically equal to molecular weight?
Yes. Molecular weight in Daltons (Da or u) and molar mass in g/mol share the same numerical value based on the 12C atomic mass scale.
Can I calculate moles directly from a weighed sample?
Yes. Enter your sample mass in grams, milligrams, or kilograms alongside the formula to view the exact number of moles.