Molarity Calculator: Calculate Molar Concentration from Mass and Volume
Calculate molar concentration from mass, molar mass, and volume — with IUPAC-cited definitions and step-by-step worked examples
Try the calculator
Math runs in your browser. No sign-up.
Fill in the 3 fields above to see your result.
This calculator assumes the solute fully dissolves and that the stated volume is the volume of the final solution, not the solvent alone.
Molarity (c) is the amount of solute in moles divided by the volume of solution in litres: c = n / V. Convert a mass to moles first using n = m / M, where M is the molar mass in g/mol. For 5.85 g of NaCl in 500 mL, the result is exactly 0.2001 mol/L. Volume must be the total solution volume, not the solvent volume alone.
**Molarity equals moles of solute divided by litres of solution.** To get moles from a mass, divide by the molar mass: n = m / M. Then divide by the solution volume in litres: c = n / V. For 5.85 g of NaCl (M = 58.44 g/mol) in 500 mL, the molarity is 0.2001 mol/L. The most common error is using the volume of solvent rather than the volume of the final solution.
What is a molarity?
Molarity — formally called molar concentration — is the number of moles of solute in each litre of solution, expressed in mol/L and defined in the IUPAC Green Book (3rd ed., 2007, Section 2.10). To calculate it from a lab measurement, convert the solute's mass to moles using n = m / M, then divide by the solution volume in litres: c = n / V. This calculator combines both steps. Enter a mass in grams, the molar mass of your compound (from the IUPAC 2021 Standard Atomic Weights), and the total solution volume in millilitres. The result is instantly calculated using the IUPAC-defined formula without rounding intermediate values. Atomic weights and the definition of the mole used here are traceable to the BIPM SI Brochure (9th ed., 2019) and the CODATA 2018 fundamental constants.
The formula
- c — molar concentration in mol L⁻¹ (molarity)
- m — mass of solute in grams
- M — molar mass of the solute in g mol⁻¹
- V — volume of the final solution in litres (mL ÷ 1000)
- n — amount of substance in moles; n = m / M
Source: IUPAC molar concentration definition c = n / V; derived mass-to-moles step n = m / M.
Worked examples
10.2 M sodium chloride (NaCl) saline solution
NaCl is the textbook solute for demonstrating solution preparation. Its molar mass is derived from the 2021 IUPAC Standard Atomic Weights: Na = 22.990 g/mol and Cl = 35.45 g/mol, giving M = 58.44 g/mol. Step 1 — convert mass to moles: n = m / M = 5.85 g ÷ 58.44 g/mol = 0.10009 mol. Step 2 — convert volume to litres: V = 500 mL ÷ 1000 = 0.500 L. Step 3 — apply the molarity definition (IUPAC Green Book, 3rd ed., 2007, Eq. 2.10.1): c = n / V = 0.10009 mol ÷ 0.500 L = 0.20018 mol/L, rounded to 0.2002 mol/L at four significant figures. This is the standard concentration of physiological saline used as a reference solution in many analytical protocols. The small deviation from exactly 0.2000 M reflects the precision of the stated mass (3 significant figures).
21.000 M sodium hydroxide (NaOH) stock solution
NaOH has M = 40.00 g/mol (Na = 22.990, O = 15.999, H = 1.008 from IUPAC 2021 atomic weights; sum = 39.997 ≈ 40.00 g/mol to four significant figures). Dissolving exactly 40.00 g in a 1000 mL volumetric flask produces exactly 1.000 mol/L. Step 1: n = 40.00 g ÷ 40.00 g/mol = 1.000 mol. Step 2: V = 1000 mL ÷ 1000 = 1.000 L. Step 3: c = 1.000 mol ÷ 1.000 L = 1.000 mol/L. This is an exact definitional anchor: when mass in grams equals the molar mass and volume is exactly 1 L, molarity equals 1.000 mol/L by definition. It is a useful sanity-check for the calculator engine. In practice, NaOH is hygroscopic and absorbs CO₂; stock solutions should be standardised by titration before use.
30.1 M glucose (C₆H₁₂O₆) for a cell culture medium
Glucose (dextrose) has M = 180.16 g/mol, calculated from IUPAC 2021 atomic weights: C = 12.011, H = 1.008, O = 15.999. Formula C₆H₁₂O₆: (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 72.066 + 12.096 + 95.994 = 180.156 ≈ 180.16 g/mol. Step 1: n = 1.802 g ÷ 180.16 g/mol = 0.010002 mol. Step 2: V = 100 mL ÷ 1000 = 0.1000 L. Step 3: c = 0.010002 mol ÷ 0.1000 L = 0.10002 mol/L. Rounded to four significant figures: 0.1000 mol/L. This confirms that 1.802 g in 100 mL is a reliable way to prepare a 0.1 M glucose standard. For cell culture, use endotoxin-tested, cell-culture grade glucose and a sterile volumetric flask.
How to use this calculator
- Mass of solute — The mass of the substance you are dissolving — read directly from your analytical balance in grams.
- Molar mass of solute — Sum of atomic masses for one formula unit, in g/mol. For NaCl: 22.990 + 35.45 = 58.44 g/mol. IUPAC atomic weights are listed in the 2021 IUPAC table.
- Volume of solution — Total volume of the final solution — not the volume of solvent added. Measure with a volumetric flask for best accuracy.
- Read the result. Use the worked examples below to sanity-check against a known scenario.
What your result means and what to do next
Common mistakes and edge cases
Using the Volume of Solvent Instead of the Volume of Solution
This is the most frequent error in solution preparation. Molarity is defined as moles per litre of final solution, not per litre of water added. When you dissolve 40 g of NaOH in 1 L of water, the resulting solution occupies slightly more than 1 L — the solute displaces volume. Preparing a 1 M NaOH solution correctly means dissolving the solid in a small amount of water, then making up to exactly 1000 mL in a volumetric flask. Using 1 L of water as the denominator gives a concentration slightly lower than intended.
Using an Outdated or Incorrect Molar Mass
Molar masses must be calculated from the current IUPAC Standard Atomic Weights. For elements with significant isotopic variation (e.g., boron: 10.81 g/mol, not 10 or 11), using an integer approximation introduces real error. For NaCl, using 58.5 g/mol instead of the IUPAC 2021 value of 58.44 g/mol introduces a 0.1% systematic error — small for a rough dilution, meaningful for a primary standard. Always retrieve values from the IUPAC 2021 table or a periodic table that cites that source.
Confusing Molarity with Molality
Molarity (c, mol/L) uses the volume of solution; molality (b, mol/kg) uses the mass of solvent. At room temperature and low concentrations in dilute aqueous solution the numerical difference is small, but for concentrated solutions, non-aqueous solvents, or work spanning a temperature range, they diverge significantly. Colligative property calculations (osmotic pressure, boiling-point elevation, freezing-point depression) use molality, not molarity. Plugging a molarity value into a molality formula is a category error.
Not Accounting for Purity or Hydration
Reagent-grade chemicals are rarely 100% pure. A bottle labelled 'sodium carbonate' may actually be the decahydrate Na₂CO₃·10H₂O (M = 286.14 g/mol), not the anhydrous form (M = 105.99 g/mol). Using the wrong form inflates the calculated molarity by a factor of 2.7. Always read the full chemical name, the assay percentage, and any hydration state on the certificate of analysis before entering a molar mass.
How small changes affect your result
The molarity formula c = m / (M × V) has a simple proportional structure: doubling the mass doubles the molarity; doubling the volume halves it. Using the NaCl example (5.85 g, M = 58.44 g/mol, 500 mL, baseline c = 0.2002 mol/L):
Concentration quantities compared — molarity, molality, and mass concentration
| Quantity | Symbol | Formula | Unit | Temperature-dependent? | Use case |
|---|---|---|---|---|---|
| Molar concentration (molarity) | c | n / V_solution | mol/L | Yes — volume changes with T | Most solution preparation, titration |
| Molality | b or m | n / m_solvent | mol/kg | No — mass is constant | Colligative properties, thermodynamics |
| Mass concentration | ρ or γ | m_solute / V_solution | g/L | Yes — volume changes with T | Clinical chemistry (e.g., g/dL haemoglobin) |
| Mole fraction | x | n_solute / n_total | dimensionless | No | Vapour pressure, partition coefficients |
| Mass fraction | w | m_solute / m_solution | kg/kg (or %) | No | Percentage composition, formulation |
IUPAC Green Book (3rd ed., 2007), Table 2.10 defines all five quantities. Molar concentration is the most common in preparative and analytical chemistry.
Frequently asked questions
What is molarity and what are its units?
How do I find the molar mass of a compound?
Why do I divide by the volume of solution, not the volume of solvent?
What is the difference between molarity and molality?
How do I convert between molarity and percentage concentration?
What is a standard solution and why does it matter?
Can I use this calculator for gases or only for solutions?
How accurate is the molarity I prepare in the lab?
Molarity glossary
How we built this calculator
Methodology
Molarity is defined by IUPAC (Green Book, 3rd edition, 2007, Section 2.10) as the amount of substance of solute divided by the volume of the solution: c = n / V. The amount of substance n is itself derived from the mass m and the molar mass M via n = m / M, following from the definition of the mole as it appears in the SI Brochure (9th edition, BIPM 2019, Section 2.3.4). Combining both steps gives the single expression c = m / (M × V).
Sources & references
Every numeric assumption traces to a primary source.
- IUPAC Green Book — Quantities, Units and Symbols in Physical Chemistry, 3rd edition (2007), Section 2.10 (amount-of-substance concentration)INT
- BIPM SI Brochure, 9th edition (2019) — Definition of the mole, Section 2.3.4INT
- IUPAC Commission on Isotopic Abundances and Atomic Weights — Standard Atomic Weights 2021INT
- CODATA 2018 Recommended Values of the Fundamental Physical Constants — Avogadro constant NₐUSA
- NIST Chemistry WebBook — thermophysical and solubility data for common compoundsUSA
- CRC Handbook of Chemistry and Physics, 104th edition — solubility and molar mass tablesINT
- ISO/IEC 17025:2017 — General requirements for the competence of testing and calibration laboratoriesINT
- USP <1> Injections and Implanted Drug Products — solution concentration requirementsUSA
- Numora Editorial Policy. numora.net/editorial-policy