Science & lab
Molarity Calculator
This calculator solves for molarity, mass, volume, or molecular weight (MW) from the other three. Calculate For toggles the unknown; Common Compounds presets (NaCl, HCl, NaOH, glucose) fill MW. Units include M, mM, g/L, ppm, g, mL, L, and more. Decimal places 2–6 (default 4). Ideal solution only; not molality or dilution.
By Jeff Beem
Updated
Settings
Calculate For
Common Compounds
Select a compound to auto-fill molecular weight, or enter manually below.
Molecular Weight (MW)
Mass of Solute
Volume of Solution
Enter the known values to calculate
How to use this calculator
Set Decimal places, pick Calculate For, then fill molecular weight (MW) and the three known fields. Common Compounds can auto-fill MW for NaCl, HCl, NaOH, or glucose. The dark Results card shows the solved value; Unit conversions list related concentration, mass, or volume units. The Information hub below explains the core formula and how molarity differs from molality.
Information hub
At high concentrations, molarity and molality diverge because solution volume grows with solute mass, molality stays independent of temperature.
The core formula
M = molarity (mol/L), m = mass of solute (g), MW = molecular weight (g/mol), V = volume of solution (L).
Common units
- M = mol/L
- mM = mmol/L
- µM = µmol/L
Volume in L; mass in g; MW in g/mol.
Molarity vs molality: don’t mix them up
Molarity is moles of solute per liter of solution. It depends on the total volume of the mixture (solute + solvent). When you add more solute or change temperature, the volume can change, so molarity can change.
Molality is moles of solute per kilogram of solvent only. It ignores the volume of the solute. Molality is temperature-independent and preferred for colligative properties (boiling-point elevation, freezing-point depression).
This calculator uses molarity. For dilute aqueous solutions near room temperature, molarity and molality are often close, but they are not the same.
Reading your molarity result
The dark Results card shows the solved variable in your chosen unit. Unit conversions appear below when applicable. Match decimal places in Settings before copying numbers.
Example: Mass for 0.5 M in 250 mL
Molarity calculator
Solve M = m/(MW × V) for concentration, mass, volume, or molecular weight. Fields start empty until you enter values; runs locally.
What this calculator does
- Limits:Ideal-solution model; no activity coefficients, temperature correction, or solvent-only volume. Mass concentration via ppm assumes dilute aqueous ≈ mg/L.
How the math works
Limits
Molarity Calculator FAQ
Which unit conversions appear for molarity results?
What does each Calculate For mode need?
Which concentration units work besides molar (M)?
How many compounds are in Common Compounds?
What do decimal places control?
How is molarity different from molality?
Why not add solid to exactly 1 L of water for a 1 M stock?
How is this different from the molecular weight calculator?
Sources & citations
References used for the calculation method and definitions. Links open in a new tab when available.
IUPAC definition of amount-of-substance concentration (molarity).
Science & Lab Reference Note
Educational Use: These tools use standard scientific formulas and accepted constants. Results are intended for learning, homework, and general reference, not for regulated lab work, industrial processes, or clinical applications.
Verification Recommended: Real-world conditions (purity, temperature, pressure, humidity) affect outcomes. For research, manufacturing, or safety-critical work, confirm with a qualified professional or calibrated lab equipment.
Not Professional Advice: This site does not provide chemical, medical, or engineering advice. All calculations run locally in your browser; no data is stored or transmitted.