Audited 27 Jul 2026·Last updated 28 Oct 2026·6 citations·Tier 1·0 uses

Molarity Calculator

Solve M = n/V for molarity, moles or volume, find the grams of solute to weigh out from molar mass, or the final volume of a C1V1 = C2V2 dilution.

Molarity Calculator

Solve for
Amount-of-substance concentration in mol/L (also written M). Required for solving moles, volume, or mass. Leave blank when solving for molarity.
mol/L
Amount of substance in moles. Required when solving for molarity or volume. Leave blank when solving for moles.
mol
Solution volume in litres. Convert mL to L by dividing by 1000 (500 mL = 0.5 L). Leave blank when solving for volume.
L
Molar mass of the solute, in g/mol. Defaults to 58.44 (sodium chloride, NaCl). Look up your compound on the NIST WebBook or sum atomic masses from a periodic table.
g/mol
Concentration of the stock solution before dilution. Used only when solveFor = 'dilutionVolume'.
mol/L
Volume of stock solution taken for the dilution. Used only when solveFor = 'dilutionVolume'.
L
Desired concentration after dilution. Must be less than or equal to the initial concentration. Used only when solveFor = 'dilutionVolume'.
mol/L
Molarity
0.1
Concentration in moles per litre of solution (mol/L, written M); in dilution mode it repeats your target concentration C₂.
Moles
0.05 mol
Volume
0.5 L
Mass of solute
2.922 g
Dilution volume (V2)
0 L

Background.

How many grams of salt go into 500 mL of a 0.1 M solution? Most molarity questions are a version of that one, and they all rest on one definition: molarity is moles of solute per litre of finished solution. Multiply a molarity by a volume and you have moles; multiply the moles by the compound's molar mass and you have the mass to weigh out. For sodium chloride that is 0.1 × 0.5 = 0.05 mol, then 0.05 × 58.44 = 2.922 g.

You can work in five directions. Choose what you want — molarity, moles, volume, the mass of solute, or the final volume of a dilution — and fill in the fields that choice needs; the others are ignored. Concentrations go in as mol/L, amounts as moles, volumes as litres, so 250 mL is entered as 0.25.

There is no box for a mass you have already weighed. If you dissolved 5.00 g of NaCl and want to know the molarity, convert the mass to moles first (5.00 ÷ 58.44 = 0.0856 mol) and solve for molarity from that and the volume.

Chemists count in moles rather than grams because reactions happen between particles. Equal volumes of 0.1 M hydrochloric acid and 0.1 M sodium hydroxide neutralise each other exactly, even though a mole of HCl weighs 36.46 g and a mole of NaOH about 40.00 g. Express both as grams per litre and that one-to-one match disappears from view.

Measuring per litre has a cost: a litre of liquid is not a fixed amount of anything. Water expands by a little over 0.02% for each degree of warming near room temperature, so a solution made up at 20 °C is very slightly weaker at 30 °C with not a single particle lost. For routine bench work that drift is too small to matter. Where it does, chemists use molality, moles per kilogram of solvent, which does not change with temperature.

What is molarity calculator?

Molarity is the amount of a dissolved substance in moles divided by the volume of the whole solution in litres. Its unit is mol/L, written M on labels and in methods, so 0.1 M is read as 'a tenth molar'; IUPAC's formal name for the quantity is amount-of-substance concentration, symbol c. A mole is exactly 6.02214076 × 10²³ particles, fixed by the 2019 redefinition of the SI. The volume is that of the finished solution, not of the water you started with: a 1 M sodium chloride solution is 58.44 g of salt made up to one litre in total, which takes slightly less than a litre of water. For a sense of scale, concentrated hydrochloric acid as sold is about 12 M, sodium in blood plasma sits around 0.14 M, and many biological buffers are used at tens of millimolar. Older titration methods sometimes state normality instead, which counts reacting equivalents rather than molecules: 1 M sulfuric acid is 2 N as an acid, because each molecule can give up two hydrogen ions.

How to use this calculator.

  1. Choose what to solve for. Molarity uses Moles and Volume; Moles uses Molarity and Volume; Volume uses Moles and Molarity; Mass uses Molarity, Volume and Molar mass; Dilution volume uses the three dilution fields (C1, V1 and C2). Fields a mode does not use can be left as they are.
  2. Convert to base units before typing: millilitres to litres by dividing by 1,000 (500 mL is 0.5), millimoles to moles the same way, and millimolar to mol/L likewise (25 mM is 0.025).
  3. For Molar mass, use the figure for exactly what is in the jar, including any water of crystallisation — the label or a periodic-table sum will give it. The default, 58.44 g/mol, is sodium chloride; change it for anything else, because the mass shown in every mode except dilution is calculated from this field.
  4. For a dilution, enter the stock concentration as C1, the volume of stock you will measure out as V1, and the concentration you want as C2. C2 cannot be higher than C1. The answer is the total volume to make the solution up to, not the amount of water to add.
  5. If you start from a weighed mass, divide it by the molar mass to get moles, then solve for molarity with that number and the final volume.

The formula.

M = n ⁄ V

Everything follows from the definition M = n ÷ V, where M is the molarity in mol/L, n the amount of solute in moles and V the volume of solution in litres. Solving for moles rearranges it to n = M × V; solving for volume gives V = n ÷ M. The mass of solute links moles to grams through the molar mass: mass = n × molar mass, so in mass mode the full chain is mass = M × V × molar mass. In the molarity, moles and volume modes the mass shown alongside uses the same step with whatever molar mass is in the field.

The dilution law comes from one observation: adding solvent changes the volume but not the number of solute particles. Measure out V₁ litres of stock at concentration C₁ and you have C₁ × V₁ moles. Make that up to a total volume V₂ and the moles are unchanged, now spread through more liquid, so C₂ × V₂ = C₁ × V₁, which rearranges to V₂ = C₁ × V₁ ÷ C₂. The water to add is roughly V₂ − V₁.

That 'roughly' is the main physical caveat. The equations treat volumes as exact, but liquid volumes do not always add: mixing concentrated acids, or ethanol, with water gives a little less than the sum of the parts. That is why the reliable method is to bring the solution up to a mark on a volumetric flask rather than measuring the water separately.

A few inputs have no physical answer and are refused: a volume of zero when solving for molarity, a molarity of zero when solving for volume, a molar mass of zero or less in mass mode, and in a dilution a stock volume or target concentration of zero, or a target stronger than the stock. A target equal to the stock is accepted and returns V₂ = V₁, no dilution at all.

A worked example.

Example

To make 500 mL of 0.1 M sodium chloride, choose Mass, enter 0.1 for molarity, 0.5 for volume (500 mL ÷ 1,000) and leave the molar mass at 58.44 g/mol. The moles needed come first: n = 0.1 mol/L × 0.5 L = 0.05 mol. Converting to grams, 0.05 mol × 58.44 g/mol = 2.922 g. The other results simply confirm the setup: molarity 0.1 mol/L, moles 0.05, volume 0.5 L, and a dilution volume of 0, since no dilution was asked for. At the bench, weigh 2.922 g of salt on a balance that reads to the milligram, dissolve it in roughly 400 mL of water in a 500 mL volumetric flask, then add water up to the line and invert the flask to mix. Pouring 2.922 g into a full 500 mL of water would give slightly more than 500 mL of solution and a concentration slightly under 0.1 M. For comparison, normal saline at 0.9% is 9 g per litre, which is 9 ÷ 58.44 = 0.154 M, so this solution is about two-thirds of the strength of a saline drip.

volume0.5
molar Mass58.44
molarity0.1
solve Formass

Frequently asked questions.

How do I work out the molarity of a solution I made from a weighed solid?
Divide the mass by the molar mass to get moles, then divide by the final volume in litres. Five grams of sodium chloride is 5.00 ÷ 58.44 = 0.0856 mol; made up to 250 mL, that is 0.0856 ÷ 0.25 = 0.3422 M. Enter the moles and the volume with Molarity selected and the calculator does the second division.
Which molar mass should I use for a hydrated salt?
The one for the hydrate, because the water molecules are part of what you weigh. Copper(II) sulfate pentahydrate is about 249.68 g/mol against 159.60 for the anhydrous salt. For 100 mL of 0.1 M you need 2.497 g of the blue pentahydrate; weighing only 1.596 g of it, the anhydrous figure, would give 0.0639 M, about 36% short.
When should I use molality instead of molarity?
Use molality, moles per kilogram of solvent, when temperature changes during the work or when the property depends on particles per solvent mass: freezing-point depression, boiling-point elevation and other colligative effects. Water is about 4% less dense at 100 °C than at 0 °C, so molarity drifts by that much over the liquid range while molality stays put.
The dilution answer is the total volume. How much water do I add?
Approximately V₂ minus V₁. Diluting 50 mL of 1 M stock to 0.1 M gives V₂ = 0.5 L, so about 450 mL of water. In practice, put the stock in a 500 mL volumetric flask and fill to the mark, since mixed volumes are not always exactly additive. With concentrated acids, add the acid to water, never water to the acid, because the heat released can make it spit.
Why won't it accept a final concentration higher than the stock?
Adding solvent can only spread the same moles through more volume, so a dilution always lowers the concentration. Making a solution stronger means adding more solute or evaporating solvent, which the dilution law does not describe. If C₂ equals C₁ the answer is V₂ = V₁: there is nothing to add.
Is 0.1 M sodium chloride 0.1 M of particles?
Not quite. Molarity counts formula units of what you dissolved, but each NaCl separates into a sodium ion and a chloride ion, so the solution holds about 0.2 mol of ions per litre. That matters for osmotic effects: 0.9% saline is 0.154 M NaCl, which works out to roughly 308 milliosmoles per litre if every ion is counted.
How do I convert molarity to milligrams per litre or ppm?
Multiply molarity by molar mass to get grams per litre, then by 1,000 for milligrams per litre. For 0.01 M sodium chloride: 0.01 × 58.44 × 1,000 = 584.4 mg/L. In dilute water-based solutions a litre weighs very nearly a kilogram, so mg/L and parts per million by mass are effectively the same number.
Is there a limit to the molarity I can make?
Yes, the solubility of the solute, which the calculator does not know. Sodium chloride stops dissolving at about 36 g per 100 g of water at room temperature, so a request for 10 M, which would need 584.4 g in every litre of solution, returns a number that no flask can hold. Check a solubility table before preparing anything near saturation.
How do I enter millimolar or micromolar concentrations?
Convert them to mol/L first: 1 mM is 0.001 mol/L and 1 µM is 0.000001 mol/L. Units scale together, so 1 mol/L is the same as 1 mmol/mL or 1 µmol/µL. That is why a 5 µL aliquot of a 2 mM solution holds 10 nanomoles: 2 µmol/mL × 0.005 mL.
The volume of stock I need is tiny. How do I measure it accurately?
Split the dilution into steps. Making 100 mL of 5 mM from a 1 M stock needs only 0.5 mL of stock, where a small pipetting error becomes a large error in the result. Dilute ten-fold first instead, 10 mL of stock made up to 100 mL to give 0.1 M, then make 5 mL of that up to 100 mL. Each step uses a volume that is easy to measure, and both can be checked in dilution mode.

References& sources.

  1. [1]IUPAC Gold Book, 'amount-of-substance concentration, c' — the formal IUPAC definition of molarity, c = n / V, including the modern recommendation to use 'c' rather than 'M' as the quantity symbol and the explicit note that 'molar concentration' and 'molarity' are accepted synonyms. International Union of Pure and Applied Chemistry.
  2. [2]Atkins, P. W. & de Paula, J. (2014). Atkins' Physical Chemistry, 10th ed. Oxford University Press. Chapter 1A 'The properties of gases' and Foundations section on amount of substance, molar quantities, and the distinction between molarity and molality including the temperature-dependence argument.
  3. [3]NIST 'Definition of the Mole' (2019 SI redefinition) — the mole is defined as exactly 6.02214076 × 10²³ elementary entities; Avogadro's number is now an exact, fixed integer rather than an experimentally measured constant. National Institute of Standards and Technology, Physical Measurement Laboratory.
  4. [4]Skoog, D. A., West, D. M., Holler, F. J. & Crouch, S. R. (2014). Fundamentals of Analytical Chemistry, 9th ed., Cengage. Chapter 4 on concentration units, the molarity-versus-molality discussion, and the standard protocols for preparing solutions by mass and by dilution from stock.
  5. [5]NIST Chemistry WebBook — searchable database of molar masses, thermochemistry, and spectroscopy for over 100,000 compounds; the canonical primary source for molar-mass values entered into molarity calculations. National Institute of Standards and Technology.
  6. [6]Lide, D. R. (ed.) (2005). CRC Handbook of Chemistry and Physics, 86th ed., CRC Press. Section 8 'Analytical Chemistry' on solubility tables, density of aqueous solutions versus concentration, and conversion factors between molarity, molality, mass percent, and ppm.

How this page was produced

Published by
Quanta Calculator
Primary sources
6 cited below
Method
M = n ⁄ V
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon