How to use the molarity calculator
Pick what you want to find. Molarity needs the mass you dissolved and the final volume of the solution. Mass of solute tells you how much to weigh for a target concentration and volume — the most common lab task. Volume tells you how far to fill up a given mass, and molar mass works backwards from a solution of known concentration. The last mode turns the mass percent and density printed on a bottle of concentrated acid or ammonia into molarity.
Type the formula of the solute and the calculator finds its molar mass. It understands brackets (Ca(OH)2, Al2(SO4)3, [Cu(NH3)4]SO4), hydrates written with a dot (CuSO4·5H2O, MgSO4·7H2O — a period or an asterisk works too) and subscript digits pasted from a document (H₂SO₄). Capital letters matter: Co is cobalt but CO is carbon monoxide. For a protein, a polymer or a reagent sold as a mixture, type its molar mass (from the label or certificate) into the optional field instead.
The formulas
Molarity is the amount of substance per liter of solution: c = n ÷ V, in mol/L (the symbol M). The amount comes from the mass: n = m ÷ M, where M is the molar mass in g/mol. Together they give m = c × V × M — the mass to weigh — and every other arrangement the calculator uses. The volume is the volume of the finished solution, not the volume of water you start with: dissolving a solid changes the volume, which is why solutions are made up to the mark in a volumetric flask.
For a concentrated reagent, one liter weighs 1000 × ρ grams, and the mass percent w of that is solute, so c = w × 10 × ρ ÷ M (w in %, ρ in g/mL). Hydrochloric acid at 37% with a density of 1.19 g/mL is 37 × 10 × 1.19 ÷ 36.458 ≈ 12.08 mol/L.
Worked examples
- Concentration: 29.22 g of sodium chloride (NaCl, 58.440 g/mol) is 0.5000 mol. In 500 mL of solution that is 0.5 ÷ 0.5 = 1.000 mol/L; in 2 L it is 0.25 mol/L.
- Mass to weigh: 500 mL of 0.1 M NaCl needs 0.1 × 0.5 × 58.44 = 2.922 g.
- Hydrate: copper(II) sulfate pentahydrate, CuSO4·5H2O, is 249.68 g/mol — the five waters of crystallization add 90.08 g/mol. Weighing the hydrate with the anhydrous molar mass (159.60 g/mol) gives a solution about 36% weaker than intended.
- Sulfuric acid: H2SO4 = 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol (older tables, with 1.00794 for hydrogen, give 98.079).
Molar mass, molecular weight and units
Molar mass in g/mol is numerically equal to the relative molecular mass (molecular weight, formula weight) printed on reagent labels. One mmol/L (mM) is a thousandth of a mol/L and one µmol/L (µM) a millionth; g/L equals mg/mL. The table under the result splits the molar mass by element, with each element's share by mass — handy for checking a formula or for elemental composition.
Atomic weights used
The calculator uses the standard atomic weights of the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW, Atomic Weights 2021, with the 2024 revisions of gadolinium, lutetium and zirconium). Elements whose atomic weight varies in nature, such as hydrogen, carbon, oxygen and chlorine, use IUPAC's conventional values. Elements in brackets have no standard atomic weight; the mass number of their longest-lived isotope is used, as on periodic tables.
| Z | Symbol | Atomic weight | Z | Symbol | Atomic weight |
|---|---|---|---|---|---|
| 1 | H | 1.008 | 47 | Ag | 107.8682 |
| 2 | He | 4.002602 | 48 | Cd | 112.414 |
| 3 | Li | 6.94 | 49 | In | 114.818 |
| 4 | Be | 9.0121831 | 50 | Sn | 118.71 |
| 5 | B | 10.81 | 51 | Sb | 121.76 |
| 6 | C | 12.011 | 52 | Te | 127.6 |
| 7 | N | 14.007 | 53 | I | 126.90447 |
| 8 | O | 15.999 | 54 | Xe | 131.293 |
| 9 | F | 18.998403162 | 55 | Cs | 132.90545196 |
| 10 | Ne | 20.1797 | 56 | Ba | 137.327 |
| 11 | Na | 22.98976928 | 57 | La | 138.90547 |
| 12 | Mg | 24.305 | 58 | Ce | 140.116 |
| 13 | Al | 26.9815384 | 59 | Pr | 140.90766 |
| 14 | Si | 28.085 | 60 | Nd | 144.242 |
| 15 | P | 30.973761998 | 61 | Pm | [145] |
| 16 | S | 32.06 | 62 | Sm | 150.36 |
| 17 | Cl | 35.45 | 63 | Eu | 151.964 |
| 18 | Ar | 39.95 | 64 | Gd | 157.249 |
| 19 | K | 39.0983 | 65 | Tb | 158.925354 |
| 20 | Ca | 40.078 | 66 | Dy | 162.5 |
| 21 | Sc | 44.955907 | 67 | Ho | 164.930329 |
| 22 | Ti | 47.867 | 68 | Er | 167.259 |
| 23 | V | 50.9415 | 69 | Tm | 168.934219 |
| 24 | Cr | 51.9961 | 70 | Yb | 173.045 |
| 25 | Mn | 54.938043 | 71 | Lu | 174.96669 |
| 26 | Fe | 55.845 | 72 | Hf | 178.486 |
| 27 | Co | 58.933194 | 73 | Ta | 180.94788 |
| 28 | Ni | 58.6934 | 74 | W | 183.84 |
| 29 | Cu | 63.546 | 75 | Re | 186.207 |
| 30 | Zn | 65.38 | 76 | Os | 190.23 |
| 31 | Ga | 69.723 | 77 | Ir | 192.217 |
| 32 | Ge | 72.63 | 78 | Pt | 195.084 |
| 33 | As | 74.921595 | 79 | Au | 196.96657 |
| 34 | Se | 78.971 | 80 | Hg | 200.592 |
| 35 | Br | 79.904 | 81 | Tl | 204.38 |
| 36 | Kr | 83.798 | 82 | Pb | 207.2 |
| 37 | Rb | 85.4678 | 83 | Bi | 208.9804 |
| 38 | Sr | 87.62 | 84 | Po | [209] |
| 39 | Y | 88.905838 | 85 | At | [210] |
| 40 | Zr | 91.222 | 86 | Rn | [222] |
| 41 | Nb | 92.90637 | 87 | Fr | [223] |
| 42 | Mo | 95.95 | 88 | Ra | [226] |
| 43 | Tc | [97] | 89 | Ac | [227] |
| 44 | Ru | 101.07 | 90 | Th | 232.0377 |
| 45 | Rh | 102.90549 | 91 | Pa | 231.03588 |
| 46 | Pd | 106.42 | 92 | U | 238.02891 |
Tips for accurate solutions
- Check the formula on the reagent bottle, especially the water of crystallization: Na2CO3, Na2CO3·H2O and Na2CO3·10H2O are three different molar masses.
- Correct for purity: if a reagent is 98% pure, divide the mass by 0.98.
- Molarity changes slightly with temperature because the volume does; molality (mol per kg of solvent) does not.
- To make a weaker solution from a stock, use the dilution calculator (C1V1 = C2V2).
Frequently asked questions
How do I calculate molarity?
Divide the moles of solute by the liters of solution: c = n ÷ V. If you know the mass, first find the moles with n = m ÷ M, using the molar mass from the formula.
How many grams do I need for a 1 M solution?
For one liter, weigh the molar mass in grams: 58.44 g of NaCl or 40.00 g of NaOH, dissolved and filled up to 1 L. For other volumes and concentrations use m = c × V × M.
How do I enter a hydrate like CuSO4·5H2O?
Type the dot (·), a period or an asterisk between the salt and the water: CuSO4·5H2O, CuSO4.5H2O or CuSO4*5H2O all give 249.68 g/mol.
What is the difference between molarity and molality?
Molarity is moles per liter of solution; molality is moles per kilogram of solvent. For dilute water solutions near room temperature the two are close.
How do I convert % and density to molarity?
Choose "Molarity from mass % and density": c = w × 10 × ρ ÷ M. For 96% sulfuric acid with a density of 1.84 g/mL that is about 18 mol/L.
Last updated: October 19, 2026