Math calculator

Free molarity calculator

Calculate the molarity of a solution — enter moles of solute and volume of solution in litres to see the concentration in mol/L, updated live, as you type.

InputsLive
Moles of Solute
mol
Volume of Solution
L
Result
Molarity
0.25 M
0.5 mol ÷ 2 L = 0.25 M
Moles0.5 mol
Volume2 L
Molarity0.25 M
Molarity (mmol/L)250 mmol/L

Molarity = moles of solute per liter of solution (M = mol/L).

Results are estimates. Consult a professional.

How it's calculated

How the molarity calculator works

Molarity (M) is the amount of solute in moles divided by the volume of solution in litres. To use the calculator, provide the mass of the solute and its molar mass (from the periodic table or a formula weight lookup), then enter the volume of solution. The calculator converts mass to moles, then divides by volume. For dilution problems, the dilution equation M₁V₁ = M₂V₂ finds any one unknown given the other three.

Molarity (M) = moles of solute / volume of solution (L)
moles = mass (g) / molar mass (g/mol)
Dilution: M₁V₁ = M₂V₂
Molarity is defined in IUPAC Green Book (Quantities, Units and Symbols in Physical Chemistry, 3rd ed., 2007) as amount-of-substance concentration.
Example

Worked example: NaCl solution

Example: 5.85 g NaCl dissolved in 500 mL of water

A student dissolves 5.85 g of NaCl (table salt, molar mass = 58.44 g/mol) in enough water to make 500 mL of solution. What is the molarity?

Step 1 — moles of NaCl:
moles = 5.85 g / 58.44 g/mol = 0.1001 mol
Step 2 — convert volume to litres:
500 mL / 1,000 = 0.500 L
Step 3 — molarity:
M = 0.1001 mol / 0.500 L = 0.200 mol/L
0.200 mol/L
5.85 g of NaCl in 500 mL of solution gives a molarity of 0.200 M (0.200 mol/L).
Quick reference

Common solution concentrations

Standard reagent concentrations are used across chemistry, biology, and medicine. These benchmarks help you prepare solutions and interpret concentration values at a glance.

SolutionConcentrationTypical use
Normal saline (NaCl)0.154 M (0.9% w/v)IV fluids, contact lens solution
Phosphate-buffered saline (PBS)0.137 M NaClBiological buffer for cell work
Acetic acid (vinegar)≈ 0.83 M (5% w/v)Food preservative, cleaning
Hydrochloric acid (conc.)≈ 12 MLaboratory acid digestion
Sodium hydroxide (1 M)1.000 MStandard base for titrations
Glucose (blood, fasting)≈ 5.0 mmol/LNormal blood glucose reference
Hydrogen peroxide (3%)≈ 0.88 MHousehold antiseptic
Ethanol (70%)≈ 12.1 MDisinfectant / hand sanitiser

Source: Sigma-Aldrich reagent specifications and WHO guidelines. Concentrations are approximate and vary by supplier and temperature.

Practical tips

Tips for molarity calculations

Lab errors in solution preparation usually trace back to unit confusion or molar-mass mistakes. These habits keep your calculations reliable.

  • Look up, don't guess, molar mass — Sum atomic weights from the periodic table for each element, accounting for subscripts. H₂O = 2(1.008) + 15.999 = 18.015 g/mol.
  • Volume of solution, not solvent — Molarity uses the final solution volume, not the volume of water added. Dissolve the solute first, then add water to the target volume mark.
  • Dilution law shortcut — To dilute a 5 M stock to 0.1 M in 1 L: V₁ = M₂V₂/M₁ = (0.1)(1)/(5) = 0.02 L = 20 mL of stock, then top up to 1 L.
  • Molarity vs. molality — Molarity (M) is moles per litre of solution; molality (m) is moles per kilogram of solvent. They differ when solute significantly changes solution volume or at non-ambient temperatures.
  • Check with dimensional analysis — Track units through every step: g / (g/mol) = mol; mol / L = mol/L (M). If the units don't cancel correctly, the setup is wrong.
Accuracy & limits

Accuracy and limitations

Molarity calculations are arithmetically exact. Practical accuracy depends on the precision of your mass measurement (balance accuracy), volume measurement (volumetric glassware vs. graduated cylinder), and the purity of the solute. The molar masses used here are based on 2021 IUPAC standard atomic weights and are accurate to four decimal places for common elements. Temperature affects solution volume and therefore molarity; concentrations reported without temperature are assumed at 25 °C.

Glossary

Key terms

Amount-of-substance concentration: moles of solute per litre of solution. Unit: mol/L, also written as M.
The SI base unit for amount of substance. One mole contains exactly 6.022 × 10²³ (Avogadro's number) of elementary entities (atoms, molecules, ions, etc.).
The mass of one mole of a substance, in grams per mole (g/mol). Numerically equal to the molecular weight in atomic mass units (u).
The substance dissolved in the solution. For NaCl in water, NaCl is the solute.
The substance that dissolves the solute. Usually the component present in the largest amount — water in aqueous solutions.
States that the number of moles of solute is conserved during dilution. M₁ and V₁ are the initial concentration and volume; M₂ and V₂ are the final values.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free molarity calculator

A molarity calculator is a free online tool that helps you calculate molarity (mol/L) of a solution. Solute concentration. It runs entirely in your browser with instant results and no sign-up.
JavaScript double-precision floating-point — accurate to about 15-17 significant digits. For arbitrary precision, use the Big Number calculator.
The statistics calculator computes population variance (divides by n). For sample variance, multiply variance by n/(n-1).

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.