Molarity Calculator

Science

Calculate molarity of solutions

Molarity is the standard way chemists express how concentrated a solution is — it tells you exactly how many moles of a dissolved substance (solute) are packed into each liter of solution. Every general chemistry course, from high school labs to college organic chemistry, relies on molarity to prepare solutions, run titrations, and calculate reaction yields.

The basic molarity formula, M = moles of solute ÷ liters of solution, is simple in principle but easy to get wrong when you're juggling grams, molar masses, and milliliters mid-lab. Our molarity calculator handles both directions: give it moles and volume to find concentration, or give it mass, molar mass, and volume to back into molarity directly. It also solves the dilution equation M₁V₁ = M₂V₂, which is exactly what you need when diluting a concentrated stock solution to a target concentration — one of the most common calculations in any wet lab.

Whether you're finishing a stoichiometry worksheet or preparing buffers on the bench, this tool gives fast, accurate concentration math.

Why Molarity Calculator Matters

Molarity underlies nearly every quantitative chemistry calculation students encounter after they learn the mole concept. Stoichiometry problems that ask how much of a reactant is needed, titration problems that determine an unknown acid or base concentration, and equilibrium (K) calculations all express concentration in molarity (mol/L, written M). Getting comfortable converting between mass, moles, and molarity is essential for AP Chemistry, general chemistry, and any lab-based science course, and it's a frequent stumbling block on exams because it requires chaining two formulas together (mass → moles via molar mass, then moles → molarity via volume).

In real laboratories — academic, pharmaceutical, or industrial — molarity calculations are a daily necessity. Researchers dilute concentrated stock reagents to working concentrations using M₁V₁ = M₂V₂ dozens of times per week; getting this wrong wastes expensive reagents or ruins an experiment's results. Clinical labs use molarity to prepare IV solutions and reagents at precise concentrations where an error could affect patient safety. Even brewing, water treatment, and environmental testing (measuring pollutant concentrations) rely on the same molarity math taught in introductory chemistry.

The Molarity Calculator Formula, Explained

M = mol solute / L solution and M₁V₁ = M₂V₂

Where: M = molarity in moles per liter (mol/L, symbol M), mol solute = the number of moles of the dissolved substance, and L solution = the total volume of the solution (not just the solvent) in liters.

If you're starting from mass instead of moles, first convert: moles = mass (g) ÷ molar mass (g/mol), then divide by volume in liters to get molarity.

The dilution formula M₁V₁ = M₂V₂ works because the number of moles of solute doesn't change when you add solvent — only the volume (and therefore concentration) changes. Here M₁ and V₁ are the concentration and volume of your starting (stock) solution, and M₂ and V₂ are the concentration and volume you want to end up with. Rearranged to solve for the volume of stock solution needed: V₁ = (M₂ × V₂) / M₁.

How to Use the Molarity Calculator: Step by Step

  1. Identify what you're solving for

    Decide whether you need molarity from moles/mass and volume, or a dilution volume using M₁V₁ = M₂V₂.

  2. Enter moles or mass and molar mass

    For a direct molarity calculation, enter the moles of solute directly, or enter the mass in grams plus the compound's molar mass (g/mol) so the tool can compute moles for you.

  3. Enter the solution volume

    Input the total volume of the solution in liters (convert milliliters by dividing by 1000). This must be the final solution volume, not just the solvent added.

  4. For dilutions, enter both concentrations and one volume

    To dilute a stock solution, enter the stock molarity (M₁), desired final molarity (M₂), and desired final volume (V₂). The calculator solves for the stock volume (V₁) you need to measure out.

Molarity Calculator Examples: Real-World Scenarios

1

Preparing a Sodium Chloride Solution from Scratch

A student dissolves 116.88 g of NaCl (molar mass 58.44 g/mol) in enough water to make 2.0 L of solution. What is the molarity?

Mass of NaCl:116.88 g
Molar mass of NaCl:58.44 g/mol
Volume of solution:2.0 L

Calculation

moles = 116.88 / 58.44 = 2.0 mol; M = 2.0 mol / 2.0 L

Result

Molarity = 1.0 M. This is a classic way to prepare a simple 1.0 M solution for a titration or reaction stoichiometry lab.

2

Diluting Concentrated HCl for a Titration

A lab has 5.0 M hydrochloric acid stock. A procedure calls for 250 mL of 0.5 M HCl. How much of the 5.0 M stock should be measured out?

Stock concentration (M₁):5.0 M
Desired concentration (M₂):0.5 M
Desired final volume (V₂):250 mL

Calculation

V₁ = (M₂ × V₂) / M₁ = (0.5 × 250) / 5.0

Result

V₁ = 25 mL. Measure 25 mL of the 5.0 M stock and dilute it with water up to a total volume of 250 mL to get 0.5 M HCl.

3

Molarity of a Glucose IV Solution

A solution contains 45 g of glucose (C₆H₁₂O₆, molar mass 180.16 g/mol) dissolved in 500 mL of solution. What is its molarity?

Mass of glucose:45 g
Molar mass of glucose:180.16 g/mol
Volume of solution:0.5 L

Calculation

moles = 45 / 180.16 = 0.2498 mol; M = 0.2498 mol / 0.5 L

Result

Molarity ≈ 0.4996 M, essentially 0.5 M glucose — a concentration in the same ballpark as clinical dextrose solutions used in IV therapy.

Common Mistakes to Avoid

  • Using the volume of solvent added instead of the final total solution volume — molarity is always moles per liter of the complete solution after mixing, not just the water you started with.
  • Forgetting to convert milliliters to liters before dividing — plugging in 250 (mL) instead of 0.25 (L) produces an answer 1000 times too small.
  • Mixing up molarity (M, mol/L) with molality (m, mol/kg of solvent) — they sound alike but use different denominators and give different numeric answers, especially in concentrated solutions.

Tips & Tricks

  • When diluting, always add stock solution to water (not water to concentrated acid) for safety, but do the M₁V₁ = M₂V₂ math the same way regardless of mixing order.
  • Keep at least 4 significant figures for molar masses pulled from the periodic table; rounding too early compounds errors when you later multiply by volume or use the result in stoichiometry.

Molarity connects the abstract mole concept to the real, measurable act of preparing a solution on the bench, which is why it appears on nearly every chemistry exam and in every wet lab. Use this calculator to check homework, plan reagent dilutions, and avoid costly measurement mistakes. Pair it with our molecular weight calculator to find molar masses first, and our pH calculator to see how concentration connects to acidity.

Molarity Calculator — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators