ToolNestr

Molarity Calculator

Enter any two of molarity, moles, or volume to solve for the third — or switch to dilution mode. A live 3D beaker and charts show what the numbers mean.

Reviewed by the ToolNestr Editorial Team — July 2026

Disclaimer: This tool is provided for educational purposes to support learning in chemistry. It is not a substitute for professional laboratory, safety, or dosage calculations.
Chemistry
Molarity
Moles
Volume

Live 3D beaker

Change the moles of solute and the volume of solution — the concentration and the density of dissolved particles update live. Drag to orbit (touch works too).

Concentration = 1.00 M  (moderately concentrated)

Concentration graphs

Concentration as you add solvent (fixed moles)
Moles needed vs volume (at current M)
How your solution compares to everyday ones (approx. molarity, log scale)

How molarity is calculated

The core definition in one line: molarity is the number of moles of solute divided by the volume of solution in litres — M = n / V. A 1 M solution holds one mole of dissolved substance in every litre.

The formula rearranges three ways, so knowing any two quantities gives the third:

M = n / V

concentration from moles & volume

n = M × V

moles needed for a target M

V = n / M

volume to reach a target M

Most of the time you start from a mass on a balance, not moles. The full chain is: mass → moles (divide by molar mass) → molarity (divide by litres). Written out:

M = (mass ÷ molar mass) ÷ volume(L)

Where the dilution equation comes from: when you add solvent, the moles of solute do not change — only the volume does. Since n = M × V, and n before equals n after, you get the compact rule

M₁V₁ = M₂V₂

That single fact — moles are conserved on dilution — is the reason a small amount of concentrated stock can be diluted to a large, precise working solution.

Worked example 1 — molarity from mass

Given: you dissolve 20 g of sodium hydroxide (NaOH, molar mass 40.00 g/mol) and make it up to 500 mL of solution. What is the molarity?

Moles: 20 ÷ 40.00 = 0.50 mol
Volume in litres: 500 mL ÷ 1000 = 0.50 L
Molarity: M = 0.50 ÷ 0.50 = 1.00 M

Worked example 2 — dilution

Given: you have a 12 M stock of hydrochloric acid. How do you make 250 mL of 1 M HCl?

Rearrange: V₁ = M₂V₂ ÷ M₁
Stock volume: V₁ = (1 × 0.250) ÷ 12 = 0.0208 L ≈ 20.8 mL
Measure 20.8 mL of the 12 M stock, then add water up to 250 mL total. (Safety: always add acid to water, never the reverse.)

Two ideas that trip students up

1. Dilution keeps the particles, adds the water

Both beakers hold the same number of solute particles. The right one just has more solvent, so the particles are spread thinner — lower molarity, identical moles.

2. Molarity is particles per litre

Each cube is one litre. A 2 M solution simply packs twice as many moles of solute into the same litre as a 1 M solution — concentration is a density of "stuff dissolved."

Molarity of some everyday solutions

Approximate values — useful for a sense of scale of what "how concentrated" actually means.

Solution Approx. molarity Note
Blood glucose~0.005 Mvery dilute
Seawater (NaCl)~0.6 Msalty
Household vinegar~0.9 Macetic acid
Stomach acid~0.1 MHCl
Concentrated HCl (stock)~12 Mlab reagent
Pure water (as itself)~55.5 Mfor reference

Where molarity actually matters

🧪 The lab bench

Almost every wet-lab procedure starts with "prepare X mL of a Y molar solution." Molarity is how chemists communicate concentration unambiguously, and the dilution equation is used dozens of times a day to turn concentrated stocks into precise working solutions.

💊 Medicine and pharmacy

IV fluids, drug formulations and buffers are all defined by concentration. Getting a dilution wrong is not an academic error here — it changes a dose — which is why the M₁V₁ = M₂V₂ calculation is double-checked at every step.

🌊 Environmental testing

Measuring pollutants in water means preparing calibration standards at known molarities by serial dilution. The accuracy of the final reading is only as good as the concentration maths behind the standards.

Common misconceptions

"Molarity is per litre of solvent (water)."

It is per litre of solution — solute plus solvent together, measured after mixing. You dissolve the solute and then make the total volume up to the mark, rather than adding solute to a litre of water.

"Diluting a solution removes some of the solute."

Dilution only adds solvent. The moles of solute are unchanged — they are just spread through a larger volume, so the concentration drops. That conservation of moles is the whole basis of M₁V₁ = M₂V₂.

"Molarity and molality are the same thing."

Molarity is moles per litre of solution and shifts with temperature as the volume changes. Molality is moles per kilogram of solvent and does not, which is why molality is used for boiling-point and freezing-point work.

"Just use millilitres — the number is bigger."

The formula requires litres. Using millilitres without converting inflates your molarity by a factor of 1000. Always divide millilitres by 1000 first.

Formula sources & further reading

The molarity and dilution relationships are standard general-chemistry definitions, traceable to these widely used references:

  • OpenStax, Chemistry 2e — §3.4 "Molarity" (free, peer-reviewed). openstax.org
  • Brown, LeMay & Bursten, Chemistry: The Central Science — Chapter 4, Reactions in Aqueous Solution (Concentrations of Solutions).
  • Zumdahl & Zumdahl, Chemistry — Chapter 4, Types of Chemical Reactions and Solution Stoichiometry.
  • IUPAC — recommended symbol for amount concentration is c (mol/L); "molarity" and the unit symbol M remain in common practical use.

Results are rounded to four significant figures; very small or very large values switch to scientific notation.

Related tools

Frequently asked questions

What is molarity?

Molarity (M) is the number of moles of solute per litre of solution: M = mol / L. It is the most common way chemists express the concentration of a solution.

How do I calculate molarity from mass?

First convert the mass of solute to moles using its molar mass (moles = mass ÷ molar mass), then divide by the solution volume in litres. For example, 58.44 g of NaCl is 1 mole; dissolved to make 1 L gives a 1 M solution.

What is the dilution formula?

M₁V₁ = M₂V₂, where M₁ and V₁ are the initial concentration and volume and M₂ and V₂ are the final ones. It works because diluting a solution adds solvent but does not change the number of moles of solute.

What units should I use?

Molarity in mol/L (M), moles in mol, and volume in litres. If your volume is in millilitres, divide by 1000 first — forgetting this is the single most common molarity mistake.

What is the difference between molarity and molality?

Molarity is moles of solute per litre of solution and changes slightly with temperature (because volume changes). Molality is moles of solute per kilogram of solvent and is temperature-independent, so it is preferred for precise or high-temperature work.

Does adding water change the number of moles of solute?

No. Dilution changes the concentration and the volume, but the amount of solute (moles) stays exactly the same. That constant-moles fact is what the dilution equation M₁V₁ = M₂V₂ is built on.

All tool categories

🧪 Chemistry (50 tools)
⏲️ Half-Life Calculator🔬 Molar Mass Calculator🧪 Molarity Calculator💨 Ideal Gas Law Calculator🔄 Combined Gas Law Calculator🌈 pH Calculator💧 Dilution Calculator🧴 Percent Concentration Calculator🌫️ PPM Calculator🧊 Molality Calculator⚗️ Normality Calculator🎈 Boyle's Law Calculator🔺 Charles's Law Calculator🌡️ Gay-Lussac's Law Calculator🧮 Chemical Equation Balancer⚖️ Limiting Reagent Calculator🎯 Percent Yield Calculator🔵 pOH Calculator🧫 Theoretical Yield Calculator🥼 Actual Yield Calculator🧬 Molecular Formula Calculator🔢 Mole Ratio Calculator🧿 Empirical Formula Calculator🧯 Henderson-Hasselbalch (Buffer) Calculator🫧 Neutralization Reaction Calculator💉 Titration Calculator🔁 Equilibrium Constant (Keq) Calculator⏳ Reaction Rate Calculator🌌 Avogadro's Number Calculator🧭 Reaction Quotient (Q) Calculator🌋 Enthalpy Calculator🥽 Calorimetry Calculator🎲 Entropy Calculator⚛️ Ka/Kb Equilibrium Constant Calculator🌬️ Dalton's Law (Partial Pressure) Calculator➡️ Gibbs Free Energy Calculator🔗 Bond Energy Calculator🔋 Nernst Equation Calculator🏔️ Arrhenius Equation Calculator☢️ Isotope Calculator🔘 Atom Calculator🔷 Electron Configuration Calculator🔌 Cell EMF Calculator🪫 Faraday's Law of Electrolysis Calculator♨️ Boiling Point Elevation Calculator❄️ Freezing Point Depression Calculator🔠 Interactive Periodic Table🔶 Atomic Mass Calculator⏱️ Rate Constant Calculator🫙 Vapor Pressure Calculator
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)