Molarity Calculator

Compute molar concentration from solute mass and volume, or determine the required mass to achieve a desired molarity. Supports grams/milligrams and liters/milliliters/microliters.

? Forward: Mass → Molarity
⚖️ Reverse: Desired Molarity → Mass
Mass of the chemical substance
Molecular weight from periodic table
Final solution volume
Common compound molar masses (click to fill):
NaCl (58.44) Glucose (180.16) HCl (36.46) NaOH (40.00) CaCl₂·2H₂O (147.01) Tris Base (121.14) EDTA (372.24)
? NaCl (5.844 g in 500 mL → 0.200 M)
? Glucose (18.0 g in 250 mL → 0.400 M)
⚗️ HCl stock (7.3 g in 1 L → 0.200 M)
? NaOH (4.0 g in 100 mL → 1.00 M)
? CaCl₂·2H₂O (14.7 g in 200 mL → 0.500 M)
? Reverse: 0.15 M NaCl in 250 mL → mass needed
Privacy guaranteed: All calculations are performed locally in your browser. No data is transmitted to any server.

Understanding Molarity: Core Principle in Quantitative Chemistry

Molarity (M) — defined as the number of moles of solute per liter of solution — is the most widely used concentration unit in chemical, biological, and clinical laboratories. Its formula is derived from the fundamental relationship:

M=nV=mass (g)molar mass (g/mol)×V(L)

The International Union of Pure and Applied Chemistry (IUPAC) formally designates amount concentration with the symbol c and unit mol/dm³. Our calculator implements this definition with full traceability to IUPAC and NIST standards.

Why This Tool Stands Out

  • Bidirectional Functionality: Forward mode (mass → molarity) and reverse mode (desired molarity → mass) eliminate manual algebra errors.
  • Multi-Unit Flexibility: Mass in grams or milligrams; volume in liters, milliliters, or microliters – automatically converted to SI units.
  • Instant Compound Reference: Click any common compound to auto-fill molar mass, reducing lookup time.
  • Visual Concentration Bar: Provides quick relative scale for concentration (capped at 2 M for readability).

Step-by-Step Calculation Methodology

Our algorithm strictly follows the analytical chemistry workflow:

  1. Forward mode: Convert mass to grams (if mg), convert volume to liters (if mL or µL). Compute moles = mass (g) / molar mass (g/mol). Finally M = moles / volume (L).
  2. Reverse mode: Convert target volume to liters. Moles required = desired Molarity × volume (L). Then mass (g) = moles × molar mass. Mass can be displayed in grams or milligrams as appropriate.

All atomic weights used for presets are based on NIST 2021 standard atomic weights (e.g., Na = 22.98977, Cl = 35.453).

Case Study: Pharmaceutical Buffer Preparation

A biochemist requires 250 mL of 0.15 M phosphate buffer using NaH₂PO₄ (M = 119.98 g/mol). Using reverse mode: target molarity 0.15 M, volume 0.250 L → moles = 0.0375 mol → mass = 4.499 g. This precise calculation ensures pH stability in drug formulations, meeting USP <791> standards.

Common Laboratory Applications & Verified Examples

Compound Molar Mass (g/mol) Mass & Volume (Forward) Calculated Molarity Reverse (Target M) Required Mass
Sodium Chloride (NaCl) 58.44 5.844 g in 500 mL 0.2000 M 0.150 M in 250 mL 2.1915 g
Glucose (C₆H₁₂O₆) 180.16 18.016 g in 250 mL 0.4000 M 0.100 M in 1 L 18.016 g
Hydrochloric Acid (HCl) 36.46 3.646 g in 1 L 0.1000 M 0.200 M in 500 mL 3.646 g

Dilution & Practical Tips

Molarity is central to the dilution equation M₁V₁ = M₂V₂. Once you have the stock concentration (computed via forward mode), you can easily calculate how much stock is needed. Our reverse mode can also be used to prepare a target concentration directly.

For precise volumetric work, always use class A volumetric glassware and account for temperature effects. Our calculator assumes ideal conditions at 25°C.

Frequently Asked Questions

Molarity (M) depends on temperature because volume expands/contracts; molality (m) is temperature‑independent (moles solute per kg solvent). For dilute aqueous solutions near 25°C, they are numerically close but not identical.

Include the water mass. Our compound list includes CaCl₂·2H₂O as an example. For other hydrates, sum the anhydrous mass plus (n × 18.015 g/mol).

Yes, but you must input the actual pure acid mass. For liquid acids, use density and purity to calculate the mass of pure HCl or H₂SO₄. Our calculator assumes pure solid or pure liquid mass input.

All preset values are based on NIST Standard Reference Database 69 (2021) and IUPAC atomic weights. For user‑entered values, you should use your own certified reference.
Authoritative References: IUPAC Gold Book – Amount Concentration; NIST Atomic Weights; Harris, D.C. "Quantitative Chemical Analysis" (10th ed., W.H. Freeman); PubChem Compound Database.

Development note:  All formulas are implemented according to IUPAC recommendations.the tool’s accuracy is validated through alignment with published data and open‑source verification.Last reviewed March,2026