Molarity Calculator

Calculate molarity (M), mass, volume, or moles of a solution. Enter any three values to find the fourth. Formula: M = mass ÷ (molar mass × volume).

Grams (g)
g/mol — see common values. Also called "molecular weight" informally.
Solution total volume
Result
Enter values above

Enter mass, molar mass, and volume to calculate molarity.

Common Molar Masses

Quick reference for frequently-used compounds. Values in g/mol (from IUPAC 2021 atomic weights). "Molar mass" is the IUPAC-preferred term; "molecular weight" is an older informal synonym.

CompoundFormulaMolar mass (g/mol)
WaterH₂O18.015
Sodium chlorideNaCl58.44
Sodium hydroxideNaOH40.00
Hydrochloric acidHCl36.46
Sulfuric acidH₂SO₄98.08
Nitric acidHNO₃63.01
GlucoseC₆H₁₂O₆180.16
SucroseC₁₂H₂₂O₁₁342.30
EthanolC₂H₅OH46.07
Acetic acidCH₃COOH60.05
Calcium carbonateCaCO₃100.09
Potassium permanganateKMnO₄158.03
Potassium chlorideKCl74.55
Ammonium chlorideNH₄Cl53.49

How to Calculate Molarity

  1. Measure the mass of solute in grams.
  2. Find the molar mass (M) of the solute in g/mol. For common compounds, see the table above. "Molar mass" is the IUPAC term; "molecular weight" (Mr) is the older informal name and is strictly dimensionless.
  3. Calculate moles: n = mass ÷ molar mass
  4. Measure the volume of the total solution in liters.
  5. Apply the molarity formula: M = n ÷ V

Example: Dissolve 5.84 g of NaCl (molar mass = 58.44 g/mol) in water to make 0.5 L of solution.
n = 5.84 ÷ 58.44 = 0.1 mol
M = 0.1 ÷ 0.5 = 0.2 mol/L (0.2 M)

Molarity Formulas

The four rearrangements of the molarity equation, one per calculation mode. Below, M (italic) is molar mass in g/mol and V is volume in L:

  • Find Molarity: Molarity = mass ÷ (M × V)
  • Find Mass: mass = Molarity × M × V
  • Find Volume: V = mass ÷ (Molarity × M)
  • Find Moles: n = Molarity × V

Frequently Asked Questions

What is molarity?

Molarity (M) measures concentration as moles of solute per liter of solution. A 1 M solution contains 1 mole of solute in 1 liter of total solution. Also called molar concentration, it is the most common concentration unit in chemistry.

How do you calculate molarity?

Formula: Molarity = mass ÷ (molar mass × volume)

Example: 5.84 g NaCl (molar mass 58.44 g/mol) in 0.5 L → M = 5.84 ÷ (58.44 × 0.5) = 0.2 M.

What is the difference between molarity and molality?

Molarity (M) = moles per liter of solution — volume-based and temperature-dependent (volume changes with temperature).

Molality (m) = moles per kilogram of solvent — mass-based and temperature-independent.

For dilute aqueous solutions near room temperature, molarity and molality are approximately equal.

What units is molarity measured in?

Molarity is measured in mol/L, abbreviated M (molar). Common sub-units:

  • mM (millimolar) = 10⁻³ M
  • µM (micromolar) = 10⁻⁶ M
  • nM (nanomolar) = 10⁻⁹ M

How do I convert grams to moles?

Formula: moles = mass (g) ÷ molar mass (g/mol)

Example: 10 g NaCl ÷ 58.44 g/mol = 0.171 mol. The molar mass is the sum of the atomic masses of all atoms in one molecule (or formula unit) of the substance, expressed in g/mol. "Molar mass" is the IUPAC term; "molecular weight" is the older informal synonym.

Related Chemistry Tools

All calculations on CoolConversion use formulas and constants documented by internationally recognised standards bodies (such as IUPAC and NIST).

Conversion factors verified against NIST, BIPM Based on SI definitions (BIPM). Last reviewed: March 2026
Tiago Fernandes Reviewed by Tiago Fernandes