LabCanvas
Free account · save your work, full figure editorSign up free

Molarity calculator

To make a solution of a given molarity, weigh mass (g) = molarity (mol/L) × volume (L) × molar mass (g/mol), dissolve it and 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.

What it does
Gives the mass to weigh for a molarity and volume, or the molarity or volume from a mass (kg to ng, M to pM).
Formula
m=C×V×MC=m÷(V×M)V=m÷(C×M)
Example
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.

Last updated · First published

FreeNo sign-upRuns in your browserLab calculators

Loading Molarity calculator…

At a glance

Molarity calculator at a glance
Formulam=C×V×M
Solves forMass, concentration or volume
Unitsg, mg, µg; M, mM, µM, nM; L, mL, µL
OutputThe answer and a plain instruction for the bench
Runs inYour web browser; nothing is uploaded
PriceFree, no account needed

What it does

How to use the molarity calculator

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

How it works

m=C×V×MC=mV×MV=mC×M

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.

  1. Saline: 500 mL of 150 mM NaCl (58.44 g/mol). m=0.150×0.500×58.44=4.383 g. Dissolve in about 400 mL of water and make up to 500 mL.
  2. Tris stock: 250 mL of 1 M Tris base (121.14 g/mol). m=1×0.250×121.14=30.29 g. Dissolve in about 200 mL, set the pH with HCl, then make up to 250 mL.
  3. A hydrate: 100 mL of 1 M MgCl₂ from MgCl₂·6H₂O (203.30 g/mol): m=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.
  4. Molarity from a mass: 2.5 g of glucose in 50 mL (180.16 g/mol). C=m/(M×V) =2.5/(180.16×0.050) =0.2775 M (277.5 mM). In the same way, 5 mg/mL glucose is 27.75 mM.
  5. Volume from a mass: 1.00 g of DTT as a 1 M stock (154.24 g/mol). V=m/(M×C) =1.00/154.24= 0.00648 L, so dissolve it to 6.48 mL.
  6. EDTA: 100 mL of 0.5 M from the disodium dihydrate (372.24 g/mol): m=0.5×0.100×372.24=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).

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.

Molar masses of common lab reagents (CIAAW 2021 atomic weights)
ReagentFormulaMolar mass (g/mol)Grams for 100 mL of 1 MUsed for
Sodium chlorideNaCl58.445.844Saline, PBS, salt in buffers
Potassium chlorideKCl74.557.455PBS, PCR buffer
Tris baseC₄H₁₁NO₃121.1412.114Tris buffers, TAE, TBE
Tris-HClC₄H₁₂ClNO₃157.5915.759Tris buffers (acid form)
HEPES (free acid)C₈H₁₈N₂O₄S238.3023.830Cell culture and protein buffers
MOPS (free acid)C₇H₁₅NO₄S209.2620.926RNA gels, buffers near pH 7.2
MES (anhydrous)C₆H₁₃NO₄S195.2319.523Buffers near pH 6
PIPES (free acid)C₈H₁₈N₂O₆S₂302.3630.236Buffers near pH 7
EDTA disodium dihydrateC₁₀H₁₄N₂Na₂O₈·2H₂O372.2437.2240.5 M EDTA stock, TE, TAE
EDTA (free acid)C₁₀H₁₆N₂O₈292.2429.224Chelator (dissolves only above pH 8)
D-Glucose (anhydrous)C₆H₁₂O₆180.1618.016Media, glucose stocks
SucroseC₁₂H₂₂O₁₁342.3034.230Gradients, loading buffers
GlycineC₂H₅NO₂75.077.507Tris-glycine running and transfer buffers
SDS (sodium dodecyl sulfate)C₁₂H₂₅NaO₄S288.3828.838SDS-PAGE, lysis buffers
Sodium hydroxideNaOH40.004.000pH adjustment
Potassium hydroxideKOH56.115.611pH adjustment (HEPES-KOH)
Magnesium chloride hexahydrateMgCl₂·6H₂O203.3020.330PCR, enzyme buffers
Magnesium chloride (anhydrous)MgCl₂95.219.521As above, if the bottle is anhydrous
Magnesium sulfate heptahydrateMgSO₄·7H₂O246.4724.647Media, M9
Calcium chloride dihydrateCaCl₂·2H₂O147.0114.701Competent cells, media
Calcium chloride (anhydrous)CaCl₂110.9811.098As above, if the bottle is anhydrous
Sodium bicarbonateNaHCO₃84.018.401Cell culture media, coating buffer
Potassium dihydrogen phosphateKH₂PO₄136.0813.608PBS, phosphate buffers
Disodium hydrogen phosphate (anhydrous)Na₂HPO₄141.9614.196PBS, phosphate buffers
Disodium hydrogen phosphate heptahydrateNa₂HPO₄·7H₂O268.0626.806As above, if the bottle is the heptahydrate
Sodium dihydrogen phosphate monohydrateNaH₂PO₄·H₂O137.9913.799Phosphate buffers (acid form)
Sodium acetate trihydrateCH₃COONa·3H₂O136.0813.6083 M sodium acetate for DNA precipitation
Ammonium sulfate(NH₄)₂SO₄132.1313.213Protein precipitation
Ammonium chlorideNH₄Cl53.495.349M9 media, red-cell lysis
DTT (dithiothreitol)C₄H₁₀O₂S₂154.2415.424Reducing agent, 1 M stock
2-MercaptoethanolC₂H₆OS78.137.813Reducing agent (liquid, 14.3 M neat)
ImidazoleC₃H₄N₂68.086.808His-tag elution
UreaCH₄N₂O60.066.006Denaturing buffers (8 M)
Guanidine hydrochlorideCH₆ClN₃95.539.553Denaturing buffers (6 M)
GlycerolC₃H₈O₃92.099.209Storage buffers (usually by % v/v)
Boric acidH₃BO₃61.836.183TBE buffer
Acetic acid (glacial)CH₃COOH60.056.005TAE, acetate buffers
Trisodium citrate dihydrateC₆H₅Na₃O₇·2H₂O294.1029.410Citrate buffers, SSC
Citric acid monohydrateC₆H₈O₇·H₂O210.1421.014Citrate buffers, antigen retrieval

How to make common stock solutions

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

Stock solution recipes
StockWeighThen
5 M NaCl292.2 g NaCl per litreDissolve in about 800 mL, make up to 1 L. Autoclave.
1 M Tris-HCl, pH 8.0121.14 g Tris base per litreDissolve 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.0186.12 g EDTA disodium dihydrate per litreStir 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 litreThe hexahydrate is hygroscopic: weigh quickly from a freshly opened bottle.
1 M KCl74.55 g KCl per litreDissolve and make up to 1 L.
1 M HEPES, pH 7.4238.30 g HEPES per litreAdjust the pH with NaOH or KOH, then make up to 1 L. Filter-sterilise.
3 M sodium acetate, pH 5.2408.2 g sodium acetate trihydrate per litreAdjust to pH 5.2 with glacial acetic acid, make up to 1 L.
1 M DTT (10 mL)1.542 g DTTDissolve to 10 mL in water, aliquot and store at −20 °C.
8 M urea (100 mL)48.05 g ureaDissolves slowly and cools the solution; make up to 100 mL. Use fresh (it forms cyanate).
6 M guanidine hydrochloride (100 mL)57.32 g GuHClMake 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 imidazoleMake up to 100 mL; check the pH if your protocol needs it.
10 % (w/v) SDS100 g SDS per litreA % w/v stock, not molar (about 0.35 M). Wear a mask when weighing the powder.
1× PBS, pH 7.48 g NaCl, 0.2 g KCl, 1.44 g Na₂HPO₄, 0.24 g KH₂PO₄ per litreThat 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× TAE242 g Tris base, 57.1 mL glacial acetic acid, 100 mL 0.5 M EDTA pH 8.0 per litre2.00 M Tris, 1.00 M acetic acid, 50 mM EDTA. Dilute 1:50 for use.
10× TBE108 g Tris base, 55 g boric acid, 40 mL 0.5 M EDTA pH 8.0 per litre0.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

Molar concentration units
UnitIn mol/LSame asExample
1 M1 mol/L1 mmol/mL1 M Tris stock
1 mM10⁻³ mol/L1 µmol/mL = 1 nmol/µL150 mM NaCl in saline
1 µM10⁻⁶ mol/L1 nmol/mL = 1 pmol/µL10 µM primer working stock
1 nM10⁻⁹ mol/L1 pmol/mL = 1 fmol/µLAntibody or drug concentrations
1 pM10⁻¹² mol/L1 fmol/mLLibrary loading for sequencing
Multiply by this to convert
FromToMultiply by
MmM1000
mMµM1000
µMnM1000
mMM0.001
mMmg/mLmolar mass ÷ 1000
mg/mLmM1000 ÷ molar mass
gmg1000
LmL1000

For units based on mass or percent (mg/mL, % w/v, ppm, molality), use the 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).
  • 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

  1. 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
  2. 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
  3. Kim S, Chen J, Cheng T et al. PubChem 2023 update. Nucleic Acids Res 2023;51:D1373–D1380. doi:10.1093/nar/gkac956
  • Dilution calculatorC₁V₁ = C₂V₂ for whichever value is missing, and serial dilutions planned tube by tube.
  • Molar mass calculatorMolar mass from a chemical formula, hydrates and brackets included, with the mass % of each element.
  • Concentration converterConvert between M, mg/mL, % w/v, % w/w, ppm, molality and normality.
  • All 43 lab calculatorsSolutions, molecular biology, cell culture, assays, electrochemistry and materials, on one page.

Frequently asked 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 M=(g/L)/(g/mol). For example, 8.77 mg/mL NaCl is 8.77 g/L÷58.44 g/mol=0.150 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=mass/molar mass. So M=mass/(molar mass×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 mol/L×1 L×58.44 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×V. 250 mL of 0.2 M contains 0.2×0.250=0.05 mol; multiply by the molar mass to get grams.

Make the whole figure in LabCanvas

Vector figure editor, slides, 3D models, protein structures and Prism-style graphs, in your browser.

Get started