What Is Molarity?
Molarity is a measure of the concentration of a solute in a solution. It tells you how many moles of a substance are dissolved in one liter of solution. It is the most commonly used concentration unit in chemistry because it directly relates to the number of molecules involved in a reaction.
Molarity is expressed in units of mol/L, also written as M (molar). A 1 M solution contains exactly 1 mole of solute per liter of solution. A 0.5 M solution contains half a mole per liter. The mole is an SI base unit defined as exactly 6.02214076 x 10 to the 23rd elementary entities, a value known as the Avogadro constant. This definition was established by the 26th General Conference on Weights and Measures in 2018 and took effect on May 20, 2019. The BIPM updated its mise en pratique for the mole in May 2025, providing refined guidance for laboratory realizations. For related scientific calculations, see our Matrix Calculator or Exponent Calculator.
What This Calculator Does
This calculator solves the molarity equation for any of its three variables:
- Molarity (M): given moles and volume
- Moles (n): given molarity and volume
- Volume (V): given molarity and moles
An optional tool converts mass and molar mass to moles, which you can then use as input for the main calculation.
How the Calculation Works
Molarity (M) = Moles of solute (n) / Volume of solution (V in liters)
Moles (n) = Molarity (M) x Volume (V)
Volume (V) = Moles (n) / Molarity (M)
When you know the mass of a substance and its molar mass, you can find the number of moles using: Moles = Mass (g) / Molar Mass (g/mol). For example, sodium chloride (NaCl) has a molar mass of 58.44 g/mol. Dissolving 29.22 g of NaCl in enough water to make 1 liter gives a 0.5 M NaCl solution.
How to Use the Calculator
- Select what you want to solve for using the tabs
- Enter the two known values with appropriate units
- Optionally enter mass and molar mass at the bottom to find moles
- The result appears instantly in the right panel
Example Calculations
Example 1: Preparing 1 L of 0.5 M NaCl Solution
Dr. Chen, a biochemistry researcher at Stanford, needs to prepare 1 liter of 0.5 M NaCl solution for a buffer. Molar mass of NaCl = 58.44 g/mol. Moles needed = 0.5 M x 1 L = 0.5 mol. Mass needed = 0.5 x 58.44 = 29.22 g. She dissolves 29.22 g of NaCl in distilled water and makes up to exactly 1 liter in a volumetric flask.
Example 2: Finding the Molarity of a Glucose Solution
A graduate student at MIT has 36.03 g of glucose (C6H12O6, molar mass 180.16 g/mol) dissolved in 500 mL (0.5 L) of solution. Moles = 36.03 / 180.16 = 0.2 mol. Molarity = 0.2 / 0.5 = 0.4 M. She uses this concentration for a cell culture experiment and verifies her calculation with this tool.
Example 3: Dilution from Stock Solution
A pharmacy technician at Mayo Clinic needs to prepare 250 mL of 0.1 M HCl from a 12 M stock solution. Using the dilution formula M1V1 = M2V2: V1 = (0.1 x 250) / 12 = 2.08 mL. She measures 2.08 mL of the 12 M stock and dilutes it to 250 mL with distilled water. The final molarity is 0.1 M, verified by the calculator.
Real-World Scenarios
Laboratory Solutions and Buffer Preparation
Scientists prepare buffer solutions, reagents, and standard solutions using molarity every day. Phosphate-buffered saline (PBS), used extensively in biology labs, is typically prepared at specific molar concentrations of each salt component: 137 mM NaCl, 2.7 mM KCl, 10 mM Na2HPO4, and 1.8 mM KH2PO4. A research lab at Johns Hopkins uses this calculator to prepare PBS solutions daily, ensuring consistent experimental conditions across all experiments.
Pharmaceutical Formulation and IV Medications
Drug concentrations in intravenous medications are expressed in molar terms. Knowing the molarity helps pharmacists calculate the exact dosage in milligrams from the volume drawn from a vial. For example, a 2 M solution of potassium chloride (KCl, molar mass 74.55 g/mol) contains 149.1 g/L. A pharmacist drawing 5 mL of this solution delivers 0.01 mol or 0.7455 g of KCl to the patient. Precision in these calculations is critical for patient safety.
Environmental Water Testing
Environmental scientists measure pollutant concentrations in water using molarity. The EPA sets maximum contaminant levels for drinking water in parts per million (ppm), which can be converted to molarity. For example, the EPA action level for lead in drinking water is 15 ppb (0.015 ppm). Converting to molarity: 0.015 mg/L divided by (207.2 g/mol x 1000) = 7.24 x 10 to the -8 M, or 72.4 nanomolar. A water quality analyst in Denver uses this calculator to convert between ppm and molarity for compliance reporting.
Why This Calculation Matters
Incorrect molarity in a laboratory or medical setting can invalidate experimental results, ruin chemical reactions, or harm patients. Accurate molarity calculations are a basic competency for chemists, pharmacists, and laboratory technicians. The SI definition of the mole, based on the exact Avogadro constant of 6.02214076 x 10 to the 23rd, ensures that molarity calculations are traceable to an internationally recognized standard. The BIPM's May 2025 update to the mole's mise en pratique provides refined guidance for primary realizations of the mole using silicon-28 single crystals, achieving relative uncertainties below 2 x 10 to the -8.
Common Mistakes to Avoid
- Using mL instead of L: Molarity requires volume in liters. If your volume is in mL, divide by 1000 before calculating. This is the most common error in molarity calculations
- Confusing molarity and molality: Molarity (M) uses volume of solution in liters. Molality (m) uses mass of solvent in kilograms. They are not interchangeable. Molality is preferred for calculations involving boiling point elevation and freezing point depression because it does not change with temperature
- Using molar mass of the wrong form: Molar mass must match the actual substance being dissolved. Hydrated salts like CuSO4-5H2O have a higher molar mass (249.69 g/mol) than anhydrous CuSO4 (159.61 g/mol). Using the wrong form leads to significant errors
- Adding solute to the full volume of water: The correct procedure is to dissolve the solute in a smaller volume of solvent, then add solvent to reach the final volume. Adding solute to the full volume can change the total volume slightly
- Forgetting to account for hydration water: When weighing hydrated salts, the water of crystallization contributes to the mass but not to the solute concentration. Always use the molar mass of the specific form you are weighing
Limitations of This Calculator
This calculator assumes ideal behavior and does not account for temperature effects on volume, solute-solvent interactions, or activity coefficients. For concentrated solutions (above approximately 1 M), the actual concentration may differ from the calculated molarity due to non-ideal behavior. The calculator does not handle normality, formality, or mole fraction conversions. For advanced analytical chemistry work, consult specialized software or reference tables.
Authoritative Research & Resources
- BIPM: Mise en pratique for the Mole (May 2025) - The International Bureau of Weights and Measures provides the official guidance for realizing the SI mole. The May 2025 update (Version 2) describes primary realizations using silicon-28 single crystals with relative uncertainties below 2 x 10 to the -8. The mole is defined as exactly 6.02214076 x 10 to the 23rd elementary entities.
- Particle Data Group: Physical Constants (2026) - The 2026 Review of Particle Physics, revised May 2026, lists the Avogadro constant as exactly 6.02214076 x 10 to the 23rd per mol. This is the authoritative source for physical constants used in chemistry and physics calculations.
- Metrologia: Amount of Substance and the Mole in the SI - Peer-reviewed paper explaining the 2019 redefinition of the mole, the experimental work that enabled it, and the continuity of measurement results before and after the definition change. Essential reading for understanding the theoretical basis of molarity calculations.
- Analytical Chemistry: Redefinition of the Mole - American Chemical Society publication highlighting the role of metrology in maintaining accurate chemical measurements and explaining the practical impact of the mole's redefinition on laboratory work.