# Molarity calculator

> Free molarity calculator: grams = M × L × g/mol. Mass to weigh, or molarity from a mass, with molar masses of 39 lab reagents and stock recipes.

URL: https://www.labcanvas.com/tools/molarity-calculator

To make a solution of a given molarity, weigh mass (g) = molarity (mol/L) × volume (L) × molar mass (g/mol), dissolve it in less solvent than you need, then make up to the final volume. For 500 mL of 150 mM NaCl (58.44 g/mol) that is 0.150 × 0.500 × 58.44 = 4.383 g. Enter any two of mass, concentration and volume with the molar mass, or pick one of 39 common reagents, and the calculator gives the third, from kilograms to nanograms and molar to picomolar.

## Quick answer

- **What it does:** Calculates the mass to weigh for a solution of given molarity and volume, or the molarity or volume from a mass, with units from kg to ng and M to pM.
- **Formula:** m = C × V × M (g = mol/L × L × g/mol); C = m ÷ (V × M); V = m ÷ (C × M).
- **Example:** For 500 mL of 150 mM NaCl (M = 58.44 g/mol): m = 0.150 mol/L × 0.500 L × 58.44 g/mol = 4.383 g, made up to 500 mL.

Free, in the browser, no account needed. Updated 2026-11-17.

## Features

- Solve for mass, concentration or volume
- Molar mass presets for 39 common reagents, hydrates included
- Unit conversion (g, mg, µg; M, mM, µM, nM; L, mL, µL)
- Plain-language instruction for the bench
- Tables below: molar masses, stock-solution recipes, unit conversions

## How to use it

1. **Choose what to calculate**: Mass to weigh, the resulting concentration, or the final volume.
2. **Enter the molar mass**: Pick a reagent or type the formula weight from the bottle (it includes any water of hydration).
3. **Enter the known values**: Type the other two values with their units; the result updates as you type.

## At a glance

| | |
| --- | --- |
| Formula | \(m = C \times V \times M\) |
| Solves for | Mass, concentration or volume |
| Units | g, mg, µg; M, mM, µM, nM; L, mL, µL |
| Output | The answer and a plain instruction for the bench |

## How it works

$$\begin{aligned} m &= C \times V \times M \\ C &= \frac{m}{V \times M} \\ V &= \frac{m}{C \times M} \end{aligned}$$

where \(m\) is the mass in grams, \(C\) the molar concentration in mol/L (M), \(V\) the volume in litres and \(M\) the molar mass in g/mol. All inputs are converted to these base units first.

## Worked examples: NaCl, Tris, MgCl₂, glucose, DTT and EDTA

Each example uses **m = C × V × M**: mass (g) = concentration (mol/L) × volume (L) × molar mass (g/mol). Convert mM to M and mL to L first.

- **Saline: 500 mL of 150 mM NaCl** (58.44 g/mol). \(m = 0.150 \times 0.500 \times 58.44 = \mathbf{4.383\ g}\). Dissolve in about 400 mL of water and make up to 500 mL.
- **Tris stock: 250 mL of 1 M Tris base** (121.14 g/mol). \(m = 1 \times 0.250 \times 121.14 = \mathbf{30.29\ g}\). Dissolve in about 200 mL, set the pH with HCl, then make up to 250 mL.
- **A hydrate: 100 mL of 1 M MgCl₂ from MgCl₂·6H₂O** (203.30 g/mol): \(m = \mathbf{20.33\ g}\). Using the anhydrous molar mass (95.21 g/mol) by mistake would give 9.52 g of the hexahydrate, only 0.468 M.
- **Molarity from a mass: 2.5 g of glucose in 50 mL** (180.16 g/mol). \(C = m / (M \times V)\) \(= 2.5 / (180.16 \times 0.050)\) \(= \mathbf{0.2775\ M}\) (277.5 mM). In the same way, 5 mg/mL glucose is 27.75 mM.
- **Volume from a mass: 1.00 g of DTT as a 1 M stock** (154.24 g/mol). \(V = m / (M \times C)\) \(= 1.00 / 154.24 = \) 0.00648 L, so dissolve it to **6.48 mL**.
- **EDTA: 100 mL of 0.5 M** from the disodium dihydrate (372.24 g/mol): \(m = 0.5 \times 0.100 \times 372.24 = \mathbf{18.61\ g}\). It dissolves only once the pH is near 8 (add NaOH).

Step by step: [How to make a 1 M NaCl solution (and any molar solution)](https://www.labcanvas.com/blog/how-to-make-1m-nacl-solution).


## Molar masses of common lab reagents

Use the molar mass of the exact form you weigh: hydrates include their water (MgCl₂·6H₂O is 203.30 g/mol, MgCl₂ is 95.21 g/mol). Values are calculated from the IUPAC (CIAAW) 2021 standard atomic weights and agree with PubChem’s published values to within their rounding; the label on your bottle may differ in the last digit. The last column is the mass for 100 mL of a 1 M solution, which is the molar mass divided by 10.

| Reagent | Formula | Molar mass (g/mol) | Grams for 100 mL of 1 M | Used for |
| --- | --- | --- | --- | --- |
| Sodium chloride | NaCl | 58.44 | 5.844 | Saline, PBS, salt in buffers |
| Potassium chloride | KCl | 74.55 | 7.455 | PBS, PCR buffer |
| Tris base | C₄H₁₁NO₃ | 121.14 | 12.114 | Tris buffers, TAE, TBE |
| Tris-HCl | C₄H₁₂ClNO₃ | 157.59 | 15.759 | Tris buffers (acid form) |
| HEPES (free acid) | C₈H₁₈N₂O₄S | 238.30 | 23.830 | Cell culture and protein buffers |
| MOPS (free acid) | C₇H₁₅NO₄S | 209.26 | 20.926 | RNA gels, buffers near pH 7.2 |
| MES (anhydrous) | C₆H₁₃NO₄S | 195.23 | 19.523 | Buffers near pH 6 |
| PIPES (free acid) | C₈H₁₈N₂O₆S₂ | 302.36 | 30.236 | Buffers near pH 7 |
| EDTA disodium dihydrate | C₁₀H₁₄N₂Na₂O₈·2H₂O | 372.24 | 37.224 | 0.5 M EDTA stock, TE, TAE |
| EDTA (free acid) | C₁₀H₁₆N₂O₈ | 292.24 | 29.224 | Chelator (dissolves only above pH 8) |
| D-Glucose (anhydrous) | C₆H₁₂O₆ | 180.16 | 18.016 | Media, glucose stocks |
| Sucrose | C₁₂H₂₂O₁₁ | 342.30 | 34.230 | Gradients, loading buffers |
| Glycine | C₂H₅NO₂ | 75.07 | 7.507 | Tris-glycine running and transfer buffers |
| SDS (sodium dodecyl sulfate) | C₁₂H₂₅NaO₄S | 288.38 | 28.838 | SDS-PAGE, lysis buffers |
| Sodium hydroxide | NaOH | 40.00 | 4.000 | pH adjustment |
| Potassium hydroxide | KOH | 56.11 | 5.611 | pH adjustment (HEPES-KOH) |
| Magnesium chloride hexahydrate | MgCl₂·6H₂O | 203.30 | 20.330 | PCR, enzyme buffers |
| Magnesium chloride (anhydrous) | MgCl₂ | 95.21 | 9.521 | As above, if the bottle is anhydrous |
| Magnesium sulfate heptahydrate | MgSO₄·7H₂O | 246.47 | 24.647 | Media, M9 |
| Calcium chloride dihydrate | CaCl₂·2H₂O | 147.01 | 14.701 | Competent cells, media |
| Calcium chloride (anhydrous) | CaCl₂ | 110.98 | 11.098 | As above, if the bottle is anhydrous |
| Sodium bicarbonate | NaHCO₃ | 84.01 | 8.401 | Cell culture media, coating buffer |
| Potassium dihydrogen phosphate | KH₂PO₄ | 136.08 | 13.608 | PBS, phosphate buffers |
| Disodium hydrogen phosphate (anhydrous) | Na₂HPO₄ | 141.96 | 14.196 | PBS, phosphate buffers |
| Disodium hydrogen phosphate heptahydrate | Na₂HPO₄·7H₂O | 268.06 | 26.806 | As above, if the bottle is the heptahydrate |
| Sodium dihydrogen phosphate monohydrate | NaH₂PO₄·H₂O | 137.99 | 13.799 | Phosphate buffers (acid form) |
| Sodium acetate trihydrate | CH₃COONa·3H₂O | 136.08 | 13.608 | 3 M sodium acetate for DNA precipitation |
| Ammonium sulfate | (NH₄)₂SO₄ | 132.13 | 13.213 | Protein precipitation |
| Ammonium chloride | NH₄Cl | 53.49 | 5.349 | M9 media, red-cell lysis |
| DTT (dithiothreitol) | C₄H₁₀O₂S₂ | 154.24 | 15.424 | Reducing agent, 1 M stock |
| 2-Mercaptoethanol | C₂H₆OS | 78.13 | 7.813 | Reducing agent (liquid, 14.3 M neat) |
| Imidazole | C₃H₄N₂ | 68.08 | 6.808 | His-tag elution |
| Urea | CH₄N₂O | 60.06 | 6.006 | Denaturing buffers (8 M) |
| Guanidine hydrochloride | CH₆ClN₃ | 95.53 | 9.553 | Denaturing buffers (6 M) |
| Glycerol | C₃H₈O₃ | 92.09 | 9.209 | Storage buffers (usually by % v/v) |
| Boric acid | H₃BO₃ | 61.83 | 6.183 | TBE buffer |
| Acetic acid (glacial) | CH₃COOH | 60.05 | 6.005 | TAE, acetate buffers |
| Trisodium citrate dihydrate | C₆H₅Na₃O₇·2H₂O | 294.10 | 29.410 | Citrate buffers, SSC |
| Citric acid monohydrate | C₆H₈O₇·H₂O | 210.14 | 21.014 | Citrate buffers, antigen retrieval |

## How to make common stock solutions

The usual stocks of a molecular biology lab, with the mass from \(m = C \times V \times M\). Always dissolve in less water than the final volume, adjust the pH if needed, then make up to the mark.

| Stock | Weigh | Then |
| --- | --- | --- |
| 5 M NaCl | 292.2 g NaCl per litre | Dissolve in about 800 mL, make up to 1 L. Autoclave. |
| 1 M Tris-HCl, pH 8.0 | 121.14 g Tris base per litre | Dissolve in 800 mL, adjust to pH 8.0 with concentrated HCl at the temperature you will use it, make up to 1 L. |
| 0.5 M EDTA, pH 8.0 | 186.12 g EDTA disodium dihydrate per litre | Stir in 800 mL and add NaOH: it dissolves as the pH reaches about 8. Make up to 1 L. |
| 1 M MgCl₂ | 203.30 g MgCl₂·6H₂O per litre | The hexahydrate is hygroscopic: weigh quickly from a freshly opened bottle. |
| 1 M KCl | 74.55 g KCl per litre | Dissolve and make up to 1 L. |
| 1 M HEPES, pH 7.4 | 238.30 g HEPES per litre | Adjust the pH with NaOH or KOH, then make up to 1 L. Filter-sterilise. |
| 3 M sodium acetate, pH 5.2 | 408.2 g sodium acetate trihydrate per litre | Adjust to pH 5.2 with glacial acetic acid, make up to 1 L. |
| 1 M DTT (10 mL) | 1.542 g DTT | Dissolve to 10 mL in water, aliquot and store at −20 °C. |
| 8 M urea (100 mL) | 48.05 g urea | Dissolves slowly and cools the solution; make up to 100 mL. Use fresh (it forms cyanate). |
| 6 M guanidine hydrochloride (100 mL) | 57.32 g GuHCl | Make up to 100 mL; the volume grows a lot as it dissolves, so start with about 40 mL of water. |
| 1 M imidazole (100 mL) | 6.81 g imidazole | Make up to 100 mL; check the pH if your protocol needs it. |
| 10 % (w/v) SDS | 100 g SDS per litre | A % w/v stock, not molar (about 0.35 M). Wear a mask when weighing the powder. |
| 1× PBS, pH 7.4 | 8 g NaCl, 0.2 g KCl, 1.44 g Na₂HPO₄, 0.24 g KH₂PO₄ per litre | That is 137 mM NaCl, 2.7 mM KCl, 10 mM Na₂HPO₄ and 1.8 mM KH₂PO₄. Adjust to pH 7.4 with HCl. |
| 50× TAE | 242 g Tris base, 57.1 mL glacial acetic acid, 100 mL 0.5 M EDTA pH 8.0 per litre | 2.00 M Tris, 1.00 M acetic acid, 50 mM EDTA. Dilute 1:50 for use. |
| 10× TBE | 108 g Tris base, 55 g boric acid, 40 mL 0.5 M EDTA pH 8.0 per litre | 0.89 M Tris, 0.89 M boric acid, 20 mM EDTA. Dilute to 0.5× or 1× for use. |

## Molarity units: M, mM, µM and nM

| Unit | In mol/L | Same as | Example |
| --- | --- | --- | --- |
| 1 M | 1 mol/L | 1 mmol/mL | 1 M Tris stock |
| 1 mM | 10⁻³ mol/L | 1 µmol/mL = 1 nmol/µL | 150 mM NaCl in saline |
| 1 µM | 10⁻⁶ mol/L | 1 nmol/mL = 1 pmol/µL | 10 µM primer working stock |
| 1 nM | 10⁻⁹ mol/L | 1 pmol/mL = 1 fmol/µL | Antibody or drug concentrations |
| 1 pM | 10⁻¹² mol/L | 1 fmol/mL | Library loading for sequencing |

| From | To | Multiply by |
| --- | --- | --- |
| M | mM | 1000 |
| mM | µM | 1000 |
| µM | nM | 1000 |
| mM | M | 0.001 |
| mM | mg/mL | molar mass ÷ 1000 |
| mg/mL | mM | 1000 ÷ molar mass |
| g | mg | 1000 |
| L | mL | 1000 |

For units based on mass or percent (mg/mL, % w/v, ppm, molality), use the [concentration converter](https://www.labcanvas.com/tools/concentration-converter).

## Common mistakes when making a molar solution

- **Using the anhydrous molar mass for a hydrate.** CaCl₂·2H₂O (147.01 g/mol) and CaCl₂ (110.98 g/mol) are not interchangeable; the wrong one leaves you 25 % short or 32 % over.
- **Adding the solute to the full volume of water.** The solute takes up space, so 4.383 g NaCl in 500 mL of water gives slightly more than 500 mL and less than 150 mM. Make up to volume instead.
- **Mixing up mM and M, or mL and L.** A factor of 1000. Writing the units into the calculator (150 mM, 500 mL) avoids it.
- **Weighing Tris-HCl for a “Tris” recipe.** Tris base is 121.14 g/mol, Tris-HCl 157.59 g/mol, and the two give very different starting pHs.
- **Setting the pH of Tris at room temperature for use at 4 °C or 37 °C.** Its pKa changes by about −0.028 per °C (see the [pH calculator](https://www.labcanvas.com/tools/ph-calculator)).
- **Confusing molarity with molality or % w/v.** 1 M NaCl is 58.44 g per litre of solution, not per kilogram of water, and 5.84 % w/v.
- **Forgetting the purity.** For a reagent that is 98 % pure, divide the mass by 0.98.

## References

- Cohen ER, Cvitaš T, Frey JG et al. *Quantities, Units and Symbols in Physical Chemistry* (IUPAC Green Book), 3rd ed. RSC Publishing; 2007. [doi:10.1039/9781847557889](https://doi.org/10.1039/9781847557889)
- Prohaska T, Irrgeher J, Benefield J et al. Standard atomic weights of the elements 2021 (IUPAC Technical Report). *Pure Appl Chem* 2022;94:573–600. [doi:10.1515/pac-2019-0603](https://doi.org/10.1515/pac-2019-0603)
- Kim S, Chen J, Cheng T et al. PubChem 2023 update. *Nucleic Acids Res* 2023;51:D1373–D1380. [doi:10.1093/nar/gkac956](https://doi.org/10.1093/nar/gkac956)


## Related calculators

- [Dilution calculator](https://www.labcanvas.com/tools/dilution-calculator): C₁V₁ = C₂V₂ for whichever value is missing, and serial dilutions planned tube by tube.
- [Molar mass calculator](https://www.labcanvas.com/tools/molar-mass-calculator): Molar mass from a chemical formula, hydrates and brackets included, with the mass % of each element.
- [Concentration converter](https://www.labcanvas.com/tools/concentration-converter): Convert between M, mg/mL, % w/v, % w/w, ppm, molality and normality.
- [All 31 lab calculators](https://www.labcanvas.com/tools/lab-calculators)

## Questions

### How do I convert a concentration in mg/mL to molarity?

Divide by the molar mass: mg/mL is the same as g/L, so \(\mathrm{M} = (\mathrm{g/L}) / (\mathrm{g/mol})\). For example, 8.77 mg/mL NaCl is \(8.77\ \mathrm{g/L} \div 58.44\ \mathrm{g/mol} = 0.150\ \mathrm{M}\) (150 mM). In the calculator, enter the mass in mg and a volume of 1 mL and solve for concentration.

### How do you calculate molarity?

Molarity is moles of solute divided by litres of solution: \(M = n / V\), and \(n = \text{mass} / \text{molar mass}\). So \(M = \text{mass} / (\text{molar mass} \times \text{volume})\).

### What is the difference between molarity and molality?

Molarity is moles per litre of solution; molality is moles per kilogram of solvent. Molality does not change with temperature, molarity does slightly.

### Should I use the molar mass of the hydrate?

Yes, if you weigh the hydrate. MgCl₂·6H₂O is 203.30 g/mol, while anhydrous MgCl₂ is 95.21 g/mol; use the formula weight printed on your bottle.

### Why make up to volume instead of adding solvent to the volume?

The solute takes up space, so dissolving in the full volume of solvent gives slightly more than the target volume and a lower concentration.

### How many grams of NaCl do I need for 1 L of 1 M?

58.44 g, the molar mass in grams: \(m = 1\ \mathrm{mol/L} \times 1\ \mathrm{L} \times 58.44\ \mathrm{g/mol}\). For 100 mL of 1 M, 5.844 g; for 1 L of 0.5 M, 29.22 g.

### How do I make a 1 M solution?

Weigh the molar mass in grams for each litre (for example 121.14 g of Tris base for 1 L of 1 M Tris), dissolve it in about 80 % of the final volume, adjust the pH if needed, then add solvent to the final volume in a volumetric flask or cylinder.

### How do I calculate moles from molarity and volume?

Multiply: \(n = C \times V\). 250 mL of 0.2 M contains \(0.2 \times 0.250 = 0.05\) mol; multiply by the molar mass to get grams.
