Skip to content
DeviceCheckHub

Molarity Calculator

Work out how much to weigh for a solution, its molarity, the volume or the molar mass, straight from a chemical formula, with the steps, how to make it up, and a dilution calculator for stock solutions.

Your solution

Type a formula such as NaCl, Ca(OH)2 or CuSO4·5H2O, or a molar mass such as 58.44. M means mol/L.

Mass = 2.922 g: 2.922 g of NaCl in 500 mL makes a 0.1 M solution.

Mass = 2.922 g

Mass m
2.922 g
Molar mass M
58.44 g/mol (NaCl)
Moles n
50 mmol
Volume V
500 mL
Molarity c
0.1 M
Mass concentration
5.844 g/L (= 5.844 mg/mL)

How to make it

  1. Weigh 2.922 g of NaCl.
  2. Dissolve it in less water (or your solvent) than 500 mL, in a beaker.
  3. Pour it into a 500 mL volumetric flask, rinse the beaker into the flask, and add more of the same solvent up to the mark. Mix well.

Step by step

  1. Moles: n = c × V = 0.1 M × 500 mL = 0.1 mol/L × 0.5 L = 50 mmol.
  2. Mass: m = n × M = 0.05 mol × 58.44 g/mol = 2.922 g.

Molar mass by element

ElementAtomsAtomic weightMass %
Na122.99039.34%
Cl135.4560.66%
  • Molar mass from the CIAAW 2024 abridged standard atomic weights, rounded to 0.01 g/mol as on reagent labels.

Dilute a stock solution: c₁V₁ = c₂V₂

V₁ = 10 mL: mix 10 mL of the 1 M stock with 90 mL of solvent to make 100 mL of 0.1 M.

V₁ = 10 mL

Stock c₁
1 M
Stock to use V₁
10 mL
Final c₂
0.1 M
Final volume V₂
100 mL
Solvent to add
90 mL
Dilution factor
10-fold (1 part stock in 10 parts in total)

Step by step

  1. V₁ = c₂ × V₂ / c₁ = 0.1 M × 100 mL ÷ 1 M = 10 mL.
  2. Solvent to add: V₂ − V₁ = 100 mL − 10 mL = 90 mL.

How to use the molarity calculator

  1. Choose what to find: the mass to weigh, the concentration, the volume of solution or the molar mass.
  2. Pick a common substance, or type its formula or molar mass. Enter the other values with their units; the box for the unknown is hidden.
  3. Read the answer with the moles, the mass concentration and the steps. When you are making a solution, the calculator also lists how to make it up.
  4. To dilute a stock solution, use the second part: enter three of c₁, V₁, c₂ and V₂ and read how much stock and solvent to mix.

What molarity means

Molarity, or molar concentration, is in Wikipedia’s words “the number of moles of solute per liter of solution.” Its unit is mol/L, written M, so a 1 M solution holds one mole of solute in every liter, and a 0.1 M solution a tenth of a mole. Smaller concentrations use millimolar (mM, a thousandth of a mole per liter), micromolar (µM) and nanomolar (nM).

A mole is a count. The BIPM, which maintains the International System of Units, defines the mole as “the SI unit of amount of substance” and fixes one mole at exactly 6.022 140 76 × 10²³ elementary entities, such as molecules or formula units. Counting in moles lets you compare amounts of different substances, even though their particles have very different masses.

Note that the volume is the volume of the finished solution, not of the water you start with. Dissolving a solid changes the volume a little, which is why careful work makes up a solution to the final volume instead of adding the solid to a measured amount of water.

The molarity formula

The amount of solute in moles is its mass divided by its molar mass, n = m / M, and the concentration is the amount divided by the volume, c = n / V. Together they give c = m / (M × V), which links four quantities: mass, molar mass, volume and concentration. Knowing any three gives the fourth, so the same formula answers four questions:

Units matter: the volume must be in liters when the concentration is in mol/L. The calculator converts milliliters, microliters, milligrams and the other units for you, and shows the working in mol, L and g so you can follow each step.

Worked example: making 0.1 M salt water

Say you need 500 mL of 0.1 M sodium chloride. The amount of salt is 0.1 mol/L × 0.5 L = 0.05 mol. Sodium chloride, NaCl, has a molar mass of 58.44 g/mol, so you weigh 0.05 × 58.44 = 2.922 g of salt. Dissolve it in less than 500 mL of water, pour it into a 500 mL volumetric flask, rinse the beaker into the flask and fill to the mark.

The calculation works backwards too. If you dissolve 10 g of sodium chloride and make it up to 0.5 L, the concentration is 342.2 mM, or about 0.342 mol/L. To make 1 L of 1 M Tris buffer base, C₄H₁₁NO₃ with a molar mass of 121.14 g/mol, you need 121.1 g.

Molar mass from a chemical formula

The molar mass is the mass of one mole of a substance in grams. Wikipedia notes: “Most commonly, the molar mass is computed from the standard atomic weights.” That is what the calculator does: it reads the formula, counts the atoms of each element and adds up their atomic weights. Glucose, C₆H₁₂O₆, comes to 180.16 g/mol and sucrose, C₁₂H₂₂O₁₁, to 342.30 g/mol.

The atomic weights are the 2024 abridged standard atomic weights published by CIAAW, the Commission on Isotopic Abundances and Atomic Weights, which the calculator holds for all 118 elements. CIAAW quotes them “to five significant figures unless such precision cannot be attained due to the variability of isotopic composition in normal materials,” so chlorine is 35.45 and sulfur 32.06. Molar masses are rounded to 0.01 g/mol, as on reagent labels; a label printed with older atomic weights can differ in the last digit. Elements with no stable isotopes, such as technetium and plutonium, have no standard atomic weight, so for their compounds you type the molar mass yourself.

The formula reader understands brackets of all three kinds, as in Ca(OH)₂ or K₄[Fe(CN)₆], counts after brackets, and hydrates written with a dot. You can type the dot as ·, a full stop or *, so CuSO4.5H2O and CuSO4*5H2O work too. Symbols must use a capital and then a small letter: Co is cobalt, while CO is carbon monoxide.

Hydrates: weigh what is in the bottle

Many salts come as hydrates, with water built into their crystals; copper(II) sulfate pentahydrate, CuSO₄·5H₂O, is one of the examples Wikipedia gives. As Wikipedia’s article on water of crystallization puts it, solutions made from the hydrate and the anhydrous salt “behave identically,” but the degree of hydration matters for weighing, because a mole of the hydrate weighs more.

For 250 mL of 0.5 M copper sulfate you need 31.21 g of the pentahydrate (249.68 g/mol) but only 19.95 g of the anhydrous salt (159.60 g/mol). Weighing the wrong one makes the solution the wrong strength, so check the formula on the label and type it exactly.

Making the solution in the lab

For an accurate concentration, make the solution up in a volumetric flask. Wikipedia describes the volumetric flask as “calibrated to contain a precise volume at a certain temperature” and notes that such flasks “are used for precise dilutions and preparation of standard solutions.” Dissolve the weighed solid in a beaker with less solvent than the final volume, transfer it to the flask, rinse the beaker into the flask so that nothing is lost, then add solvent to the line and mix.

Temperature matters a little. Wikipedia’s article on molar concentration points out that “the volume of most solutions slightly depends on temperature due to thermal expansion,” so molarity changes slightly with temperature. When that matters, chemists use molality, moles per kilogram of solvent, which does not.

Diluting a stock solution

Dilution is “the process of decreasing the concentration of a solute in a solution, usually simply by mixing with more solvent,” in Wikipedia’s words. Adding solvent does not change the amount of solute, so the moles in the stock you take equal the moles in the final solution: c₁ × V₁ = c₂ × V₂.

To make 100 mL of 0.1 M from a 1 M stock: mix 10 mL of the 1 M stock with 90 mL of solvent to make 100 mL of 0.1 M. To make 1 L of a 50 µM working solution from a 10 mM stock: mix 5 mL of the 10 mM stock with 995 mL of solvent to make 1 L of 50 µM. The dilution part of the calculator lets you mix units, such as a stock in mM and a target in µM, and it gives the dilution factor.

Common mistakes

Your values stay on your device

Everything is worked out in your browser. Nothing you type is sent anywhere or stored.

Frequently asked questions

How do I calculate molarity from grams?

Divide the mass by the molar mass to get moles, then divide the moles by the volume of the solution in liters: c = m / (M × V). Choose “Concentration” above, enter the mass, the volume and the molar mass or the formula, and the calculator shows the result with the steps.

How many grams do I need to make a solution?

Multiply the molarity by the volume in liters and by the molar mass: m = c × V × M. Choose “Mass to weigh”, enter the concentration and the volume you want and the formula, and the calculator gives the mass with step-by-step instructions for making the solution.

Can I type a chemical formula instead of a molar mass?

Yes. Type a formula such as NaCl, Ca(OH)2, K4[Fe(CN)6] or CuSO4·5H2O into the molar mass box (a full stop or * also works for the hydrate dot). The calculator adds up the CIAAW 2024 standard atomic weights and shows each element’s share of the mass.

What is the difference between molarity and molality?

Molarity is moles of solute per liter of solution; molality is moles of solute per kilogram of solvent. Because the volume of a solution changes a little with temperature, molarity does too, while molality does not.

How do I dilute a stock solution?

Use c₁V₁ = c₂V₂: the amount of solute in the stock you take equals the amount in the final solution. Enter three of stock concentration, stock volume, final concentration and final volume in the dilution part, and it tells you how much stock and how much solvent to mix.

Is anything I type sent anywhere?

No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub