Molarity Calculator

Calculate molarity from moles and volume, or moles from molarity and volume.

By Konstantin Iakovlev · Updated September 2026 · Source: Khan Academy

Solve For
mol
L

Molarity

0.5000 M

Moles

0.5000 mol

Solution Details

Concentration0.5000 mol/L
Moles of Solute0.5000 mol
Volume1.000 L
FormulaM = n / V

Use the Molarity Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

Anyone preparing solutions, whether in chemistry, biology, or industry, needs a fast and accurate way to express concentration, and molarity is the standard. Getting concentration right underpins both reliable experiments and consistent product quality, and solving for molarity or moles on demand cuts the bench time that manual calculation would otherwise eat up.

Molarity (M) is the number of moles of solute dissolved in one liter of solution, captured by the core relationship Molarity = Moles / Volume (in Liters). The calculator solves it two ways: for molarity from moles and volume, or for Moles = Molarity x Volume when you need an amount of solute. It has no volume mode; to find how much solution to make, divide by hand: Volume = Moles / Molarity.

Convert your volume to liters before plugging it into the formula, since dropping milliliters in unconverted is the error that throws off the most results. Temperature shifts molarity too, because solutions expand and contract, though for most aqueous solutions at ordinary lab temperatures the change is small enough to ignore. Pay attention to significant figures in what you enter as well, because the precision of your inputs sets a ceiling on the precision of the answer.

Example: Weighing Out Potassium Permanganate

  1. 1 A chemist needs 200 mL of 0.25 M potassium permanganate (KMnO4) solution and wants to know how much solute that takes.
  2. 2 Choose Solve For: Moles (n), then enter Molarity = 0.25 M and Volume of Solution = 0.2 L (200 mL ÷ 1,000).
  3. 3 Moles = 0.25 × 0.2 = 0.0500 mol, which is what the calculator shows.
  4. 4 To weigh it out, multiply by the molar mass of KMnO4: 39.098 (K) + 54.938 (Mn) + 4 × 15.999 (O) = 158.032 g/mol, so 0.05 × 158.032 = 7.90 g, dissolved and then made up to 200 mL of solution.

Source: Khan Academy · Last updated: September 2026

Frequently Asked Questions

How do you calculate molarity?
Molarity (M) = moles of solute / liters of solution. For 0.5 moles of NaCl dissolved in 2 liters of solution: M = 0.5/2 = 0.25 M.
How do you convert grams to moles for molarity?
Divide the mass in grams by the molar mass (g/mol) from the periodic table. For example, 58.44g of NaCl (molar mass 58.44 g/mol) = 1 mole. Then divide by solution volume in liters to get molarity.
What is the difference between molarity and molality?
Molarity (M) is moles per liter of solution. Molality (m) is moles per kilogram of solvent. Molality does not change with temperature since it is based on mass, while molarity changes because volume expands with heat.