Molarity Calculator for Solutions, Dilutions and Buffers

Type a formula or a reagent name and get the grams to weigh. The other tabs plan C₁V₁ = C₂V₂ dilutions, serial dilution series, whole recipes with a printable prep sheet, and buffers at a target pH.

Try:

For planning lab work. Check each bottle's label against the formula and finish every pH adjustment on a calibrated meter.

On this page

  1. How to use the molarity calculator
  2. Molarity, molality, normality and the formulas
  3. Five worked examples
  4. Making a buffer that hits its pH
  5. Reading the result and common mistakes
  6. Open a problem from a link

How to use the molarity calculator

  1. Molarity: type a formula (NaCl) or a name (Tris, disodium EDTA), pick what to solve for and fill in the other two values. The molar mass is split element by element.
  2. Dilution: enter three of C₁, V₁, C₂ and V₂. Units may differ on each side, and 10x stocks work as they are.
  3. Serial: give the start, the dilution factor, the number of tubes and the volume per tube or per transfer.
  4. Recipe: list each reagent, its final concentration and whether you weigh it or pipette a stock. Type your bottle's hydrate if it differs, then print the prep sheet.
  5. Buffer: pick the buffer, pH, concentration, volume and temperature, then mix two forms or titrate one.
You typeThe tool reads
CuSO4·5H2O, CuSO4.5H2O, CuSO4*5H2OCopper sulfate pentahydrate, 249.68 g/mol
K3[Fe(CN)6], CaSO4·0.5H2ONested brackets, decimal waters
SO4^2-, Fe3+, NH4+The charge is ignored
150 mM, 2 %w/v, 10x, 100 uLA number and a unit, with u for µ
Tip

Formulas are case sensitive: Co is cobalt and CO is carbon monoxide. Names are not, so tris, TRIS and Tris all work.

Molarity, molality, normality and the formulas

Molarity (M) is moles of solute per litre of solution, so the mass to weigh is m = c × V × M, with M the molar mass in g/mol. Molality is moles per kilogram of solvent; bench recipes are almost always molar. Normality counts reacting equivalents per litre: 1 M H₂SO₄ is 2 N in acid-base work. This tool works in molarity and mass concentration.

The molar mass sums each atomic weight times its count, using the IUPAC abridged standard atomic weights (CIAAW 2024): NaCl is 22.990 + 35.45 = 58.44 g/mol. Percent w/v is grams per 100 mL, so 0.9% NaCl is 9 g/L, or 154 mM.

A dilution keeps the solute fixed: C₁V₁ = C₂V₂, plus V₂ − V₁ of diluent. In a serial dilution with factor DF, tube k holds C₀ ÷ DFᵏ and each transfer is T = V ÷ DF. Buffers follow pH = pKa + log([A⁻] ÷ [HA]), with the pKa corrected for temperature and ionic strength.

Five worked examples

1. The hydrate trap: 250 mL of 0.1 M copper sulfate

The blue crystals are CuSO₄·5H₂O, 249.68 g/mol, against 159.60 g/mol for anhydrous CuSO₄. The right amount is 0.1 × 0.250 × 249.68 = 6.242 g. Weigh the anhydrous figure, 3.990 g, of crystals and you get 0.0639 M, 36% short.

2. 50x TAE down to 1x

For 500 mL of 1x, V₁ = 1 × 500 mL ÷ 50 = 10 mL of stock plus 490 mL of water. No molar mass is needed.

3. Plating a culture in six 10-fold steps

To bring 1 × 10⁹ CFU/mL down to 1 × 10³ CFU/mL (about 100 colonies from 100 µL), move 100 µL into 900 µL six times. That uses 5.4 mL of diluent, and tube 6 holds 10⁻⁶ of the start.

4. A five-reagent lysis buffer

For 500 mL of 50 mM Tris, 150 mM NaCl, 5 mM MgCl₂ (hexahydrate on the shelf), 1 mM EDTA (from 0.5 M) and 10% v/v glycerol: 3.028 g Tris base, 4.383 g NaCl, 0.5082 g MgCl₂·6H₂O (2.135 × the anhydrous 0.2380 g), 1 mL EDTA stock, 50 mL glycerol, then water to 500 mL.

5. 0.1 M potassium phosphate at pH 7.4

The ionic strength, 0.26 M, lowers the working pKa₂ from 7.20 to 6.77, so 81.1% of the phosphate is dibasic: 14.13 g K₂HPO₄ and 2.571 g KH₂PO₄ per litre. The published table (Sambrook) mixes 80.2 mL of 1 M K₂HPO₄ with 19.8 mL of 1 M KH₂PO₄, or 13.97 g and 2.694 g. The textbook equation with pKa 7.20 gives 61.4%.

Making a buffer that hits its pH

Reading the result and common mistakes

Each tab keeps its inputs in the address bar, so a link reopens the exact problem:

TabParametersExample
Molarityformula, c, v, m, mw, solve (mass, volume, conc or mw)?formula=NaCl&c=0.5M&v=250mL
Dilutiontab=dilution, c1, v1, c2, v2, solve, formula?tab=dilution&c1=50x&c2=1x&v2=500mL
Serialtab=serial, c0, df, n, vt (per tube) or tr (transfer)?tab=serial&c0=1mg/mL&df=10&n=6&vt=1mL
Recipetab=recipe, name, vf, one r per reagent: name~target~stock~shelf form~molar mass&r=NaCl~150mM&r=EDTA~1mM~0.5M
Buffertab=buffer, buf, ph, c, v, t, method, ideal?tab=buffer&buf=tris&ph=8&c=50mM&t=4

Embed the Molarity Calculator on your website

Teachers, bloggers and course sites can add this tool to any web page for free. Paste the code below into an HTML or embed block (WordPress, Google Sites, Canvas, Moodle, Blogger, Wix). It loads the same tool you see above, without our menus or ads. Please keep the credit line under the frame. Sizes, a live preview and step-by-step guides for each platform are on the calculator widget page.

Frequently asked questions

How do I calculate the grams needed for a molar solution?

Multiply the molarity by the volume in litres and by the molar mass. For 250 mL of 0.5 M NaCl that is 0.5 × 0.250 × 58.44 = 7.305 g.

What is the difference between molarity and molality?

Molarity is moles per litre of solution; molality is moles per kilogram of solvent. In dilute water solutions they are close, and lab recipes use molarity.

How do I use C1V1 = C2V2?

Put the stock concentration and volume on one side and the diluted ones on the other, then solve for the missing value. For 500 mL of 1x from 50x, V1 = 1 × 500 ÷ 50 = 10 mL, plus 490 mL of water.

Do I use the molar mass of the hydrate or the anhydrous salt?

Use the form you weigh. For 250 mL of 0.1 M copper sulfate that is 6.242 g of CuSO4·5H2O or 3.990 g of anhydrous CuSO4. The recipe tab converts between forms for you.

Why is the buffer pKa different from my textbook?

Textbooks give the pKa at zero ionic strength. In a real 0.1 M phosphate buffer it sits about 0.4 units lower. Textbook mode uses the plain value for homework.

How do I make a 10-fold serial dilution?

Move 1 part of the previous tube into 9 parts of diluent, mix, and repeat with a fresh tip. With 1 mL per tube that is 100 µL into 900 µL each step.

The WideMath team

Anuj Paudel, Ashish Pandey and Jhalak Prasad Pandey, Nepal

We build WideMath's free calculators. Every worked example on this page was computed with the tool above and checked against an independent method before it was published. Found a wrong answer? Tell us at [email protected].