How to Calculate Molarity (Step-by-Step Guide)

2026-05-01 5 min
How to Calculate Molarity (Step-by-Step Guide)
A step-by-step path from mass to molarity.

Molarity is one of the most fundamental concepts in chemistry and biology.Yet many students and researchers struggle with how to calculate it correctly.

What is molarity?

Molarity (M) is the concentration of a solution expressed as moles of solute per liter of solution.

M = n / V

where n is the number of moles and V is the volume in liters.

How to calculate molarity from mass

To calculate molarity from mass,you need three values:

  • Mass of the compound
  • Molecular weight (MW)
  • Volume of the solution

First,convert mass to moles using molecular weight.Then divide by the volume in liters.

Example calculation

Suppose you dissolve 5 g of a compound with a molecular weight of 100 g/mol in 1 L of solution.

Moles = 5 / 100 = 0.05 mol

Molarity = 0.05 / 1 = 0.05 M

Practical note: You cannot always weigh exact amounts

In real laboratory work,it is often difficult to weigh an exact mass such as 3.27 mg with high precision.Instead,researchers typically weigh a convenient amount (e.g., 5 mg or 10 mg) and then calculate the volume required to obtain the desired concentration.

For example,if you weigh 10 mg of a compound,you can calculate how many milliliters of solvent are needed to prepare a specific molarity.This approach is more practical and reduces measurement error.

This is why many workflows start from mass and calculate volume,rather than trying to match an exact theoretical mass.

You can use the BioChemCalc molarity calculator to perform this conversion quickly:

Molarity Calculator (Mass → Volume)

Common mistakes

  • Forgetting to convert mL to L
  • Using incorrect molecular weight
  • Confusing molarity with molality

Use an online molarity calculator

Manual calculation is useful,but can be time-consuming.You can use the BioChemCalc molarity calculator to quickly convert between mass,volume,and concentration:

Molarity Calculator (Mass, Volume, Concentration)

This allows rapid and accurate preparation of solutions in laboratory workflows.