Skip to main content
numora.
numora.

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

ChemistryBy Numora Chemistry TeamPublished by Numora Editorial Team

Try the calculator

Math runs in your browser. No sign-up.

Assumptions
oz
g/mol
mL
Molar concentration
Enter your values

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.

Embed this calculator on your own site — drop in a one-line iframe.
Try a scenario
Quick takeaway

**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 = m / (M × V) where V is in litres
  • 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

Inputs
mass: 5.85volume: 500molarMass: 58.44
Walkthrough

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

Inputs
mass: 40volume: 1000molarMass: 40
Walkthrough

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

Inputs
mass: 1.802volume: 100molarMass: 180.16
Walkthrough

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

  1. Mass of solute — The mass of the substance you are dissolving — read directly from your analytical balance in grams.
  2. 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.
  3. Volume of solution — Total volume of the final solution — not the volume of solvent added. Measure with a volumetric flask for best accuracy.
  4. Read the result. Use the worked examples below to sanity-check against a known scenario.

What your result means and what to do next

Typical range
Laboratory solutions run from 0.001 mol/L (1 mM, typical for enzyme substrates) up to 10–18 mol/L for concentrated mineral acids. Most bench-top reagent solutions fall between 0.1 and 2 mol/L. Physiological saline is 0.154 mol/L NaCl; blood plasma is roughly 0.14 mol/L in total osmolarity.
If above solubility
Every solute has a temperature-dependent solubility limit. If your calculated molarity exceeds the published solubility (e.g., NaCl saturates at about 6.1 mol/L at 25 °C), the solute will not fully dissolve. The calculator has no access to solubility data — confirm against the NIST Chemistry WebBook or the CRC Handbook of Chemistry and Physics before preparing the solution.
If unexpectedly low
A result much lower than expected usually means the mass entered is in milligrams but the field expects grams, or the volume is in litres but the field expects millilitres. Recheck units before proceeding.
When to escalate
For primary standard solutions used in titration or regulatory analysis, a calculated molarity is not sufficient. Standardise by titration against a certified reference material, and report the concentration with its associated uncertainty in accordance with ISO/IEC 17025:2017 requirements.
Common misreading
A molarity of 1 mol/L does not mean 1 gram per litre. It means one mole per litre — which is 58.44 g/L for NaCl, 180.16 g/L for glucose, and 40.00 g/L for NaOH. Always multiply by the molar mass to recover mass per litre.

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):

+1 g mass (6.85 g total)
** c rises to 0.2343 mol/L — a 17% increase proportional to the mass change.
−1 g mass (4.85 g total)
** c falls to 0.1660 mol/L — a 17% decrease.
Volume doubled (1000 mL)
** c halves to 0.1001 mol/L.
Volume halved (250 mL)
** c doubles to 0.4004 mol/L.
Molar mass error of +1 g/mol (59.44 g/mol)
** c falls from 0.2002 to 0.1968 mol/L — a 1.7% drop. For a compound with M = 100 g/mol, the same ±1 g/mol error shifts c by only 1%.
Balance precision
** A 0.01 g error on a 5.85 g sample is 0.17% of the mass, translating directly to a 0.17% error in molarity — typically smaller than volumetric flask tolerances.
Volumetric flask tolerance
** A Class A 100 mL flask is accurate to ±0.08 mL (0.08%), and a 1000 mL flask to ±0.30 mL (0.03%). These tolerances set the practical floor on achievable accuracy.

Concentration quantities compared — molarity, molality, and mass concentration

QuantitySymbolFormulaUnitTemperature-dependent?Use case
Molar concentration (molarity)cn / V_solutionmol/LYes — volume changes with TMost solution preparation, titration
Molalityb or mn / m_solventmol/kgNo — mass is constantColligative properties, thermodynamics
Mass concentrationρ or γm_solute / V_solutiong/LYes — volume changes with TClinical chemistry (e.g., g/dL haemoglobin)
Mole fractionxn_solute / n_totaldimensionlessNoVapour pressure, partition coefficients
Mass fractionwm_solute / m_solutionkg/kg (or %)NoPercentage 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?
Molarity is the number of moles of solute dissolved per litre of solution. Its SI unit is mol/L (also written mol L⁻¹). The symbol is c. IUPAC formally calls it 'molar concentration' and defines it in the Green Book (3rd ed., 2007), but 'molarity' is universally understood in lab practice.
How do I find the molar mass of a compound?
Add the standard atomic weights of every atom in the molecular formula. Use the IUPAC 2021 Standard Atomic Weights table as the authoritative source. For NaCl: Na = 22.990 + Cl = 35.45 = 58.44 g/mol. Many periodic tables print these values; always use the most recent IUPAC-recommended values for high-precision work.
Why do I divide by the volume of solution, not the volume of solvent?
Molarity is defined as moles per litre of final solution. When a solute dissolves it displaces some volume, so the final solution volume is usually larger than the solvent volume alone. To ensure accuracy, dissolve the solute partially, transfer to a volumetric flask, then make up to the mark — that volume is V in the formula.
What is the difference between molarity and molality?
Molarity (c) is moles of solute per litre of solution; it changes with temperature because liquid volume expands. Molality (b or m) is moles of solute per kilogram of solvent; it is temperature-independent. For most room-temperature work the difference is negligible, but colligative properties (boiling-point elevation, freezing-point depression) use molality.
How do I convert between molarity and percentage concentration?
Percent concentration (w/v) is grams per 100 mL. To convert: c (mol/L) = (10 × % w/v) ÷ M, where M is the molar mass in g/mol and the factor 10 converts g/100 mL to g/L. For a 36% w/v HCl solution with M = 36.458 g/mol: c = (10 × 36) ÷ 36.458 ≈ 9.87 mol/L.
What is a standard solution and why does it matter?
A standard solution has an accurately known concentration, usually verified by titration against a primary standard (a stable, pure substance of known composition). A calculated molarity is only as accurate as your mass and volume measurements — typical laboratory uncertainty is ±0.1–0.5% when using calibrated equipment.
Can I use this calculator for gases or only for solutions?
The formula c = n/V applies to any phase, but the practical meaning differs. For dissolved solutes in liquid solution, V is the solution volume in litres. For gases, the equivalent is molar density, usually handled via the ideal gas law (PV = nRT). This calculator is designed for solution preparation — enter liquid-phase data only.
How accurate is the molarity I prepare in the lab?
A Class A 100 mL volumetric flask has a tolerance of ±0.08 mL (±0.08%). A calibrated analytical balance with 0.1 mg resolution introduces ±0.002% error on a 5 g sample. Combined, your prepared molarity is typically accurate to ±0.1–0.3%. For higher accuracy, standardise by titration.

Molarity glossary

Molarity
The amount of solute (in moles) per litre of solution. Defined formally by IUPAC as 'molar concentration', symbol c, unit mol L⁻¹. The older term 'molarity' remains in widespread practical use.
Also called: molar concentration · amount-of-substance concentration
Mole
The SI base unit for amount of substance. Since the 2019 revision of the SI (SI Brochure, 9th ed., BIPM 2019), one mole is exactly 6.02214076 × 10²³ elementary entities.
Also called: mol
Molar mass
The mass per mole of a substance, in g/mol. Numerically equal to the relative molecular mass (molecular weight) but carrying the unit g/mol. Calculated by summing the standard atomic weights of each atom in the formula.
Also called: molecular weight · formula weight
Amount of substance
A fundamental physical quantity (SI quantity symbol n) that counts how many specified elementary entities (atoms, molecules, ions, etc.) are present, expressed in moles.
Also called: chemical amount
Volumetric flask
A glass flask calibrated to contain a precise volume at a stated temperature (typically 20 °C). Using one is the standard way to prepare a solution of known molarity.
Also called: measuring flask
Standard atomic weight
The recommended atomic mass of a naturally occurring element in its normal terrestrial form, as published periodically by the IUPAC Commission on Isotopic Abundances and Atomic Weights.
Also called: atomic weight · relative atomic mass

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).

Formula source
IUPAC molar concentration definition c = n / V; derived mass-to-moles step n = m / M
Last updated
2026-04-23
Calculation runs
Client-side only
NC
WRITTEN BY
Numora Chemistry Team
NE
PUBLISHED BY
Numora Editorial Team

Reviewed on 2026-04-23 · Next review: 2027-04-23

See editorial policy

Sources & references

Every numeric assumption traces to a primary source.

  1. IUPAC Green Book — Quantities, Units and Symbols in Physical Chemistry, 3rd edition (2007), Section 2.10 (amount-of-substance concentration)INT
  2. BIPM SI Brochure, 9th edition (2019) — Definition of the mole, Section 2.3.4INT
  3. IUPAC Commission on Isotopic Abundances and Atomic Weights — Standard Atomic Weights 2021INT
  4. CODATA 2018 Recommended Values of the Fundamental Physical Constants — Avogadro constant NₐUSA
  5. NIST Chemistry WebBook — thermophysical and solubility data for common compoundsUSA
  6. CRC Handbook of Chemistry and Physics, 104th edition — solubility and molar mass tablesINT
  7. ISO/IEC 17025:2017 — General requirements for the competence of testing and calibration laboratoriesINT
  8. USP <1> Injections and Implanted Drug Products — solution concentration requirementsUSA
  9. Numora Editorial Policy. numora.net/editorial-policy