Molarity Calculator
How it Works
01Enter Molecular Weight
Look up M (g/mol) on PubChem or compute from the molecular formula and atomic weights.
02Provide Any 3 of 4
Mass, volume, mass concentration — enter the 3 you know; the calculator solves for the 4th.
03Apply n = m / M
Moles = mass / molar mass. Mass concentration = mass / volume (works in any consistent unit).
04Get Molarity M = n / V_L
Output in M / mM / µM / nM with mass concentration cross-check in g/L, mg/mL, µg/mL.
What is a Molarity Calculator?
The 4 input fields are linked by the constraint mass concentration = mass / volume, so they have only 3 independent values. If all 4 are entered, the calculator verifies consistency (warns if there's a > 5% mismatch). Mass inputs accept g / mg / µg / kg / lb / oz; molecular weight in g/mol (= Da); volume in L / mL / µL / cm³ / dL / cL; mass concentration in 7 standard units including g/mL, mg/mL, µg/mL, ng/mL, g/L, mg/L, µg/L. Output: molarity in M / mM / µM / nM / pM with simultaneous display in all 5 units, plus moles, mass in g and mg, volume in L and mL, and mass concentration in g/L and mg/mL for cross-checking against any reference protocol.
Designed for chemistry students learning solution stoichiometry, analytical chemists preparing standards and reagents, biochemists making buffers and enzyme assays, pharmacists compounding solutions, and any researcher working with quantitative aqueous chemistry, the tool runs entirely in your browser — no account, no data stored.
Pro Tip: Pair this with our Grams to Moles Calculator for stoichiometry, our Dilution Factor Calculator for serial dilution, or our Serial Dilution Calculator for standard-curve preparation.
How to Use the Molarity Calculator?
How is molarity calculated?
Molarity is the foundational quantitative-chemistry concept — every titration calculation, every buffer prep, every quantitative assay starts from a molarity. The math is simple but the unit conventions (mol vs mmol, L vs mL, hydrate vs anhydrous) cause more bench errors than almost any other piece of chemistry.
Standard analytical chemistry; IUPAC Compendium of Chemical Terminology (Gold Book): "molarity = amount-of-substance concentration"; SI base unit definition.
Core Formula
Molarity M (mol/L) = moles of solute n / volume of solution V (L)
Combined with the mole definition n = m / M (mass over molar mass):
M = m / (MW · V_L)
Equivalently using mass concentration C_mass = m / V (in any consistent unit):
M = C_mass / MW (when C_mass is in g/L and MW is in g/mol)
Worked Example — Sodium Chloride Stock
Make 1 L of 1 M NaCl solution. NaCl MW = 58.44 g/mol.
- Required mass m = M × MW × V = 1 mol/L × 58.44 g/mol × 1 L = 58.44 g.
- Procedure: weigh 58.44 g NaCl into a volumetric flask; add water to ~80% of the final volume; mix to dissolve; top up to the 1.000 L mark; mix.
- Verification: mass concentration C = 58.44 g / 1 L = 58.44 g/L = 5.844% w/v.
Worked Example — Standard Buffer
Make 500 mL of 50 mM Tris-HCl buffer. Tris MW = 121.14 g/mol; you need 25 mmol of Tris.
- Required moles n = 0.050 mol/L × 0.500 L = 0.025 mol = 25 mmol.
- Required mass m = n × MW = 0.025 × 121.14 = 3.029 g Tris base.
- Dissolve in ~400 mL of distilled water; adjust pH to 7.4 (or your target) with concentrated HCl; top up to 500 mL with water in a volumetric flask.
- Final molarity verification: 3.029 g / 121.14 g/mol / 0.500 L = 0.0500 M = 50 mM ✓.
Common Molarities You Should Know
- 0.9% NaCl saline: 0.154 M (= 9 g/L ÷ 58.44 g/mol). Physiological isotonic.
- 1× PBS (phosphate buffered saline): ~0.137 M NaCl + 2.7 mM KCl + 10 mM phosphate; pH 7.4.
- Concentrated HCl (37% w/w): ~12 M (density 1.19 g/mL, MW 36.46).
- Concentrated H₂SO₄ (98% w/w): ~18 M (density 1.84 g/mL, MW 98.08).
- Concentrated HNO₃ (70% w/w): ~16 M (density 1.42 g/mL, MW 63.01).
- Glacial acetic acid (≥ 99% w/w): ~17.4 M (density 1.05 g/mL, MW 60.05).
- Pure water at 25 °C: 55.5 M (1000 g/L ÷ 18.015 g/mol). The reference for solvent vs solute.
- Atmospheric O₂ in water (saturated, 25 °C): ~0.26 mM (8.3 mg/L).
Molarity vs Other Concentration Units
- Molarity (M): mol of solute per L of SOLUTION. Temperature-dependent (volume changes with T).
- Molality (m): mol of solute per kg of SOLVENT. Temperature-independent. Used in colligative-property calculations (boiling-point elevation, freezing-point depression).
- Mass concentration (C_mass): mass of solute per volume of solution (g/L, mg/mL, etc.). Doesn't require knowing MW.
- Mass fraction (% w/w): mass of solute / mass of solution × 100. Temperature-independent. Used in industrial chemistry, food labeling.
- Volume fraction (% v/v): volume of solute / volume of solution × 100. Used for liquid-liquid mixtures (alcohol in water).
- Mole fraction (x): mol of solute / total mol. Dimensionless. Used in physical chemistry, vapor-liquid equilibrium.
- Normality (N): equivalents per liter. For monoprotic acids/bases, N = M; for polyprotic, N = M × n (where n is the number of equivalents per mole).
- ppm / ppb: parts per million / billion by mass. For dilute aqueous solutions, 1 ppm ≈ 1 mg/L, 1 ppb ≈ 1 µg/L.
Molarity – Worked Examples
- Required mass = 1 × 58.44 × 1 = 58.44 g NaCl.
- Mass concentration = 58.44 g / 1 L = 58.44 g/L = 5.844% w/v.
- Procedure: weigh, dissolve in < 1 L water in volumetric flask, top up to 1.000 L mark.
Example 2 — Glucose Standard for Blood-Glucose Calibration. 100 mg/dL = ? in mol/L. Glucose MW = 180.16 g/mol.
- 100 mg/dL = 1000 mg/L = 1.0 g/L mass concentration.
- Molarity M = C_mass / MW = 1.0 / 180.16 = 5.55 × 10⁻³ M = 5.55 mM.
- Reference: normal fasting blood glucose 70-100 mg/dL = 3.9-5.6 mM; diabetic threshold ≥ 7.0 mM (= 126 mg/dL).
Example 3 — Antibody Stock Concentration. Manufacturer label says 1 mg/mL. Antibody MW ~150,000 Da = 150,000 g/mol (typical IgG).
- Mass concentration = 1 mg/mL = 1 g/L.
- Molarity M = 1 g/L / 150,000 g/mol = 6.67 × 10⁻⁶ M = 6.67 µM.
- For a typical 1:1000 antibody dilution: working concentration = 6.67 nM ≈ 1 µg/mL — common Western blot working range.
Example 4 — Solve for Mass Given Target Molarity. Want 50 mL of 200 mM Tris buffer. MW = 121.14 g/mol. Solve for mass.
- Moles needed n = 0.200 × 0.050 = 0.010 mol = 10 mmol.
- Mass needed m = n × MW = 0.010 × 121.14 = 1.211 g Tris base.
- Verification: 1.211 g / 121.14 g/mol = 0.01 mol; 0.01 / 0.050 L = 0.200 M = 200 mM ✓.
Example 5 — Hydrate Trap. Make 100 mL of 0.5 M CuSO₄ solution.
- If your bottle is anhydrous CuSO₄ (MW 159.61): mass = 0.5 × 159.61 × 0.1 = 7.98 g.
- If your bottle is CuSO₄·5H₂O pentahydrate (MW 249.69, the BLUE crystals — most common commercial form): mass = 0.5 × 249.69 × 0.1 = 12.48 g.
- Difference: 56% more mass needed for the hydrate to achieve the same molarity. Using the wrong M gives 36% concentration error.
- ALWAYS check the bottle label and Certificate of Analysis.
Who Should Use the Molarity Calculator?
Technical Reference
IUPAC Definition. The IUPAC Compendium of Chemical Terminology (Gold Book) recommends the term "amount-of-substance concentration" with units mol/L, abbreviated symbol c. The historical term "molarity" with symbol M (capital, italic) is still universally used in practice. SI consistency: 1 M = 1 mol/L = 1 mol/dm³ = 1000 mol/m³. The SI-preferred unit is mol/m³, but mol/L is the practical lab standard worldwide.
Molarity vs Molality vs Mass Fraction — When to Use Which:
- Molarity (M, mol/L): standard for analytical and bench chemistry. Easy to measure (volumetric flask). Drawback: temperature-dependent (volume changes with T).
- Molality (m, mol/kg solvent): standard for physical chemistry colligative properties. Temperature-independent. Drawback: requires weighing solvent (less convenient for routine work).
- Mass fraction (w/w%, g/100g): standard for industrial chemistry, food labeling, pharmaceutical formulations. Temperature-independent. Often used for concentrated solutions where molarity calc would require density data.
- Mole fraction (x): dimensionless; standard for vapor-liquid equilibrium, ideal-solution thermodynamics. x = mol_solute / mol_total. For dilute aqueous solutions x ≈ M / 55.5 (where 55.5 M is the molarity of pure water).
Volume of Solution vs Volume of Solvent. The molarity definition uses VOLUME OF SOLUTION, not solvent. For dilute aqueous solutions (< 0.1 M), the dissolved solute occupies negligible volume relative to water, so V_solution ≈ V_water added — the simple "weigh solute, add water to N L" approach gives the correct molarity. For concentrated solutions (> 0.5 M of typical solutes; > 0.1 M of dense solutes like sucrose, glycerol), the dissolved solute changes solution density and total volume by 1-5%. To get accurate molarity in this regime: (1) weigh solute in a volumetric flask, (2) add solvent to ~80% of the target volume and mix to dissolve, (3) top up to the calibration mark. The volumetric flask's calibration mark gives the true V_solution; the simple approach overestimates V (and underestimates molarity) at high concentrations.
Common Reference Molarities (Aqueous Solutions at 25 °C):
- Pure water: 55.5 M (1000 g/L ÷ 18.015 g/mol). The "solvent reference".
- Physiological saline 0.9%: 0.154 M NaCl. Isotonic.
- Phosphate-buffered saline (1× PBS): 137 mM NaCl + 2.7 mM KCl + 10 mM Na₂HPO₄ + 1.8 mM KH₂PO₄. pH 7.4.
- TBS (Tris-buffered saline): 50 mM Tris + 150 mM NaCl. pH 7.4.
- HEPES buffer (50 mM): 50 mM HEPES, pH 7.4. Common cell culture buffer.
- Concentrated HCl: ~12.1 M (37% w/w, density 1.19 g/mL, MW 36.46).
- Concentrated H₂SO₄: ~17.8 M (98% w/w, density 1.84 g/mL, MW 98.08).
- Concentrated HNO₃: ~15.7 M (70% w/w, density 1.42 g/mL, MW 63.01).
- Glacial acetic acid: ~17.4 M (≥99% w/w, density 1.05 g/mL, MW 60.05).
- Concentrated NH₄OH (ammonia): ~14.8 M (28% w/w as NH₃, density 0.90 g/mL, MW 17.03).
- Concentrated KOH: typically supplied as 50% w/w solution = ~13 M.
- Concentrated NaOH: typically supplied as 50% w/w solution = ~19 M (very dense, 1.52 g/mL).
Hydrates — A Major Error Source. Many laboratory salts crystallize with water of hydration that is part of the molar mass. Common examples and their MWs:
- CuSO₄·5H₂O (copper sulfate pentahydrate, blue): 249.69 g/mol vs anhydrous CuSO₄ 159.61.
- FeSO₄·7H₂O: 278.02 g/mol.
- MgSO₄·7H₂O (Epsom salt): 246.47 g/mol vs anhydrous 120.37.
- Na₂CO₃·10H₂O (washing soda): 286.14 g/mol vs anhydrous 105.99.
- Na₂SO₄·10H₂O (Glauber's salt): 322.20 g/mol vs anhydrous 142.04.
- CaCl₂·2H₂O: 147.01 g/mol; CaCl₂·6H₂O: 219.08 vs anhydrous 110.98.
- Ni SO₄·6H₂O: 262.85 g/mol vs anhydrous 154.75.
- Co(NO₃)₂·6H₂O: 291.03 g/mol.
- Na₂B₄O₇·10H₂O (borax): 381.37 g/mol.
Practical rule: ALWAYS check the bottle label for "·nH₂O" notation. Anhydrous salts are usually labeled "anhydrous" or "(A)". Using anhydrous MW for a hydrate sample gives 30-100% concentration errors.
Density-Based Conversions for Concentrated Liquids. Concentrated acids and bases are sold as % w/w (mass fraction); converting to molarity requires density:
M = (% w/w / 100) × density (g/mL) × 1000 (mL/L) / MW (g/mol)
Example: concentrated HCl (37% w/w, density 1.19 g/mL, MW 36.46) → M = 0.37 × 1.19 × 1000 / 36.46 = 12.07 M ≈ 12 M HCl. Same calculation works for H₂SO₄, HNO₃, NH₄OH, NaOH solutions etc.
Temperature Effects on Molarity. Molarity is defined per liter of SOLUTION; the volume of solution changes with temperature due to thermal expansion. For pure water, the volumetric thermal expansion coefficient is ~0.0001 K⁻¹ at 25 °C, increasing to ~0.0004 K⁻¹ at 80 °C. Practical implication: a 1 M solution at 25 °C becomes ~0.998 M at 35 °C (0.2% drop) — usually negligible for routine work. For high-precision analytical chemistry (calibration standards traceable to NIST, certified reference materials), specify molarity at the temperature of use, or use molality instead. For colligative properties (freezing-point depression in cold-preservation, boiling-point elevation), always use molality (which is temperature-independent).
Conversion Cheat Sheet (Aqueous Dilute Solutions, ~25 °C, density ≈ 1 g/mL):
- 1 mg/mL ≈ 1 g/L (density of water ≈ 1).
- 1 ppm (mass) ≈ 1 mg/L = 1 µg/mL in dilute aqueous solutions.
- 1 ppb (mass) ≈ 1 µg/L = 1 ng/mL in dilute aqueous solutions.
- 1 mol/m³ = 1 mM = 0.001 M.
- 1% w/v = 10 mg/mL = 10 g/L (e.g. 0.9% saline = 9 mg/mL = 9 g/L = 0.154 M NaCl).
- For dilute aqueous solutions: M (mol/L) ≈ ppm × MW⁻¹ × 10⁻³. For 100 ppm of MW 100 g/mol: M ≈ 0.001 M = 1 mM.
Volumetric Flask Best Practice. For accurate molarity preparation: (1) Use a Class A volumetric flask (calibrated to ±0.1% tolerance; e.g. 100 mL Class A is 100.00 ± 0.08 mL at 20 °C). (2) Weigh solute on an analytical balance (±0.1 mg precision). (3) Transfer solid quantitatively into the flask using a dry funnel; rinse the funnel with solvent into the flask. (4) Add solvent to ~70-80% of the calibration volume; gently swirl or invert to dissolve completely (warming may be needed for poorly soluble compounds). (5) Adjust pH if needed BEFORE final volume adjustment. (6) Top up to the calibration mark with solvent at the calibration temperature (usually 20 or 25 °C). (7) Stopper, invert 10-20 times to mix completely. (8) Label with concentration, date, prepared-by initials, and any safety hazards.
Key Takeaways
Frequently Asked Questions
What is the Molarity Calculator?
Pro Tip: Pair this with our Dilution Factor Calculator for serial dilution.
What's the formula for molarity?
What's the difference between molarity and mass concentration?
How do I make a 1 M solution?
What about hydrates like CuSO₄·5H₂O?
How do I convert mg/mL to mM?
What's the molarity of pure water?
What's the molarity of concentrated HCl?
How does molarity change with temperature?
What units should I use for molarity?
Why is my prepared solution's molarity slightly off?
Disclaimer
Molarity (mol/L) and mass concentration (g/L) depend on the volume of SOLUTION (not solvent). For dilute aqueous solutions (< 0.1 M), V_solution ≈ V_solvent. For concentrated solutions or dense solutes, the dissolved solute changes density and the simple V_solution ≈ V_solvent approximation breaks down by 1-5%; use a volumetric flask to measure the FINAL solution volume. Hydrate forms (CuSO₄·5H₂O = 249.69 vs CuSO₄ = 159.61) are a major error source — always verify the form on the supplier's Certificate of Analysis. Molarity is temperature-dependent (~0.5% drift per 10 °C); use molality (mol/kg solvent) for high-precision colligative-property calculations. References: IUPAC Compendium of Chemical Terminology, CRC Handbook of Chemistry and Physics.