Molarity Calculator

Calculate molarity, mass, molecular weight, or solution volume using the standard molarity equation.

Solve for Molarity

Find the concentration of a solution from a known mass of solute, its molecular weight, and the total solution volume.

Quick load:

Enter any three values — the fourth is solved automatically. Units convert behind the scenes so you can mix grams with millilitres or pounds with gallons without manual conversion.

Choose what to solve for, fill in the other three values, then press Calculate to reveal the molarity, mass, volume, or molecular weight along with a full step-by-step solution.

What Is Molarity?

Molarity (symbol M, unit mol/L) is the most common way chemists describe how concentrated a solution is. It counts the moles of solute per litre of solution — that is, the number of formula units of the dissolved substance packed into every litre of the final mixture. A 1 M solution of sodium chloride therefore contains 1 mole of NaCl — roughly 6.022 × 10²³ formula units — dissolved into enough water to make a total volume of one litre.

Concentration matters in chemistry because reactions happen between particles, not between grams. Two beakers that weigh the same can react at completely different rates if they contain different numbers of reacting molecules. Expressing concentration in moles per litre is what lets a chemist predict pH, reaction rate, equilibrium position, osmotic pressure, and dilution ratios from first principles — and it lets results from one laboratory be reproduced exactly in another.

This calculator solves the molarity equation in all four directions. Enter any three of mass of solute, molecular weight, solution volume, and molarity, and it returns the fourth automatically — with unit conversion, a step-by-step explanation, equivalent concentrations (mmol/L, mol/m³, g/L, mg/mL, ppm), the number of particles via Avogadro's number, and a printable report. It is built for chemistry students, lab technicians, biology and pharmaceutical researchers, educators, and anyone who needs to prepare a solution accurately.

The Molarity Equation

M = mass ÷ (Molecular Weight × Volume)

M = molarity (mol/L)mass = grams of soluteMW = g/molV = litres of solution

Molarity Formula Explained

Moles, not grams

Molarity counts moles of solute, not grams. Grams measure mass; moles count particles. You convert between them with the substance's molecular weight, which is why MW is built into the equation.

Litres of solution

The volume in the molarity equation is the total volume of the final solution — not the volume of the solvent you started with. Adding solute changes the volume slightly, so always measure after mixing.

Why mol/L is so useful

Pipette 10 mL of a 1 M solution and you have transferred exactly 0.010 mol of solute. That direct link between volume and amount is what makes molarity the chemistry workhorse for titrations and stoichiometry.

Symbols and shorthand

M (capital, italic) is mol/L. Lowercase m is molality (mol/kg). N is normality (equivalents/L). Don't confuse them — the math is similar but the answers can be very different for polyprotic acids and bases.

How to Calculate Molarity

01

Weigh the solute

Record the mass of solute in grams. Use mg, kg, lb, or oz if that's how your balance reads — the calculator converts automatically.

02

Look up the molecular weight

Find the molar mass of the solute in g/mol. Our Molecular Weight Calculator can compute it from any formula in one click.

03

Measure the final volume

Dissolve the solute and dilute to a known total volume in litres or millilitres in a volumetric flask.

04

Apply the equation

Molarity = mass ÷ (MW × V). The calculator handles the arithmetic and the units; you read off the answer.

05

Cross-check the result

Compare the answer to typical bench ranges. A 0.1 – 1 M buffer is plausible; 50 M is not — most solutes saturate well before that.

06

Label and store

Record molarity, lot, prep date, and solvent on the bottle. Reproducibility starts with a clearly labelled stock.

How to Calculate Mass From Molarity

Re-arranging the molarity equation gives mass = molarity × MW × volume. To prepare 250 mL of a 0.5 M NaCl solution, multiply 0.5 mol/L × 58.44 g/mol × 0.250 L = 7.305 g of NaCl. Switch the calculator to the "Solve for Mass" tab and the unit converter handles millilitres, gallons, kilograms, or pounds for you. This is the most common laboratory workflow: you decide on a target molarity and volume, then the calculator tells you how much to weigh out.

The same equation underlies serial dilutions. A common technique is to weigh out a high-concentration stock — say 1 M — then dilute portions of it into working solutions of 0.1 M and 0.01 M using the dilution relationship M₁V₁ = M₂V₂. Because moles are conserved on dilution, the mass solved by the calculator is independent of how many dilution steps you take to get there.

How to Calculate Volume From Molarity

Volume comes from V = mass ÷ (M × MW). If you already have 10 g of solute and want a 0.2 M solution of glucose (MW 180.16 g/mol), the calculator returns V = 10 ÷ (0.2 × 180.16) = 0.2776 L, or about 278 mL. This direction is useful for planning when the solute is precious or when you only have a fixed amount of starting material and need to know how big a batch you can prepare.

Volume calculations are particularly relevant in pharmacology, where active drug substance is the limiting reagent. A pharmacist holding 50 mg of a research compound (MW 350 g/mol) and wanting a 100 µM stock can solve V = 0.05 ÷ (0.0001 × 350) = 1.43 L. Switch the volume unit to mL or even gal if that suits your workflow — the calculator converts automatically.

How to Calculate Molecular Weight

If the molarity, mass, and volume are known, the molecular weight follows from MW = mass ÷ (M × V). This is the classic method for characterising unknown compounds: dissolve a measured mass, determine the molarity by another technique (osmometry, freezing-point depression, light scattering), and back-calculate the molar mass. It is also how protein chemists infer subunit masses from analytical gel filtration and how polymer scientists estimate average molecular weight from solution properties.

For pure compounds, the fastest way to find a molecular weight is to add up atomic masses with our Molecular Weight Calculator, which parses any chemical formula — including hydrates like CuSO₄·5H₂O — and returns the value in g/mol. Use this Molarity Calculator when the molecular weight is the unknown and you have experimental molarity, mass, and volume data instead.

Molarity vs Molality

Molarity (M)

Moles of solute per litre of solution. Easy to prepare in a volumetric flask and ideal for titrations, but the value changes with temperature because liquids expand and contract.

M = moles ÷ L solution

Molality (m)

Moles of solute per kilogram of solvent. Independent of temperature, so used in colligative-property work (boiling-point elevation, freezing-point depression) where small accuracy matters.

m = moles ÷ kg solvent

In dilute aqueous solutions at room temperature, molarity and molality are numerically close (because 1 L of water weighs about 1 kg). They diverge for concentrated solutions, non-aqueous solvents, and any time precise temperature control is critical.

Molarity vs Normality

Normality (N) is the molarity multiplied by the number of equivalents per formula unit — that is, the number of reactive protons for an acid or hydroxides for a base, or the change in oxidation state per molecule for a redox reagent. 1 M sulfuric acid is 2 N because each H₂SO₄ delivers two protons; 1 M phosphoric acid is 3 N for the same reason. Normality matters in titrations where a single equivalence point depends on equivalents reacting one-to-one.

Modern chemistry has largely moved away from normality in favour of molarity, because molarity is unambiguous and normality requires you to know the reaction context. Older textbooks, water-treatment standards, and titration protocols still use it; treat "N" as "M times equivalents" and you can convert between the two in your head.

Concentration Units Explained

M (mol/L)

Molarity — moles of solute per litre of solution. The default unit for analytical and synthetic chemistry.

mmol/L (mM)

Millimolar — one-thousandth of a molar. Common for buffers, drug stocks, and physiological solutions.

µmol/L (µM)

Micromolar — used for enzymes, receptor ligands, and analytical trace work.

g/L, mg/mL

Mass concentration. Identical numbers (1 g/L = 1 mg/mL) and useful when molecular weight is unknown.

ppm, ppb

Parts-per-million / billion. For dilute aqueous solutions, 1 ppm ≈ 1 mg/L. Used in environmental and water chemistry.

% w/v, % w/w, % v/v

Percent solutions. w/v is grams of solute per 100 mL of solution; w/w is grams per 100 g; v/v is mL per 100 mL.

Laboratory Applications

Laboratory work runs on molarity. Acid–base titrations rely on it: knowing the molarity of a standard sodium hydroxide solution lets you determine the molarity of an unknown acid by measuring the volume required to reach the endpoint. Spectrophotometers report concentrations in molar units; the Beer–Lambert law A = εcl pins absorbance directly to the molar concentration c.

Buffer preparation depends on molarity at every step. A phosphate buffer at pH 7.4 typically contains 100 mM of total phosphate split between the conjugate acid and base forms in the ratio given by the Henderson–Hasselbalch equation. Cell-culture media are quoted in molarity. Reaction kinetics are studied in molarity. Chromatography mobile phases are described in molarity. The number on the bottle drives every downstream measurement.

Pharmaceutical Applications

In pharmaceuticals, accurate molarity calculations are a safety-critical activity. An IV infusion that is 10% over-strength because of a unit-conversion error can be fatal. Drug stock solutions are usually prepared in millimolar concentrations and diluted into micromolar working solutions for dose–response curves and IC₅₀ studies. Formulation chemists balance solubility, stability, and bioavailability against the target therapeutic molarity at the site of action.

In radiopharmacy and oncology, the active drug is often present in nanomolar quantities, where small unit-conversion mistakes can be costly. Quality control teams calculate molarity from raw weighed mass and assayed potency before releasing a batch. The molarity equation does not change between research and production — only the volumes and decimal places scale.

Biology and Research Applications

Biology lives in the millimolar and micromolar regime. Physiological saline is roughly 150 mM NaCl. Standard cell-culture media (DMEM, RPMI) are buffers built from millimolar salts and bicarbonate. Restriction-enzyme reactions are set up in micromolar substrate ranges. Protein assays report molarity in milligrams per millilitre and convert it to micromolar with the protein's molecular weight. Researchers use the molarity equation many times a day, often without writing it down — and that is precisely when arithmetic mistakes slip in.

In molecular biology, oligonucleotide stocks are typically diluted to 100 µM, PCR reactions use 200 µM dNTP mixes, and primers are added at 0.2 µM final concentration. All of these recipes ultimately come from a molarity calculation. This tool gives you a fast double-check whenever the answer matters.

Common Molarity Calculation Mistakes

Confusing solvent volume and solution volume

Volume in the molarity equation is the total final volume, measured after dissolving the solute and topping up. Using the volume of pure solvent gives an answer that is consistently too high.

Using molality when you needed molarity

Molality is moles per kg of solvent; molarity is moles per L of solution. They diverge for concentrated and non-aqueous systems. Always check whether your recipe specifies M or m.

Wrong molecular weight for hydrates

If the bottle is CuSO₄·5H₂O but you used CuSO₄, the mass is off by ~36%. Use the molecular weight that matches the form actually on the shelf.

Mixed units

Mass in mg, volume in mL, MW in kg/mol — without conversion you get nonsense. This calculator normalises every input to grams, g/mol, and litres before solving.

Forgetting solute purity

If a reagent is 95% pure, multiply your weighed mass by 0.95 before plugging it in, or weigh out the inverse to compensate.

Ignoring temperature

Aqueous volumes are sensitive to temperature. Prepare molar solutions at the temperature you will use them, especially below 5 °C or above 60 °C.

Chemistry Examples and Practice Problems

Problem 1: Calculate the molarity of a solution made by dissolving 5.844 g of NaCl in enough water to make 1 L of solution.

Solution: MW(NaCl) = 58.44 g/mol. moles = 5.844 ÷ 58.44 = 0.100 mol. M = 0.100 ÷ 1 = 0.100 M.

Problem 2: How many grams of glucose (MW 180.16 g/mol) are needed to make 500 mL of a 0.25 M solution?

Solution: mass = M × MW × V = 0.25 × 180.16 × 0.500 = 22.52 g of glucose.

Problem 3: What volume of 0.10 M HCl can be prepared from 3.65 g of HCl (MW 36.46 g/mol)?

Solution: V = mass ÷ (M × MW) = 3.65 ÷ (0.10 × 36.46) = 1.00 L.

Problem 4: An unknown solute weighs 12.0 g and dissolves in 200 mL of water to make a 0.30 M solution. What is its molecular weight?

Solution: MW = mass ÷ (M × V) = 12.0 ÷ (0.30 × 0.200) = 200 g/mol.

Problem 5: Convert 0.5 M to mmol/L and mol/m³.

Solution: 0.5 M × 1000 = 500 mmol/L. 0.5 M × 1000 = 500 mol/m³ (because 1 L = 0.001 m³).

Molarity Conversion Chart

Molarity (M)mmol/Lµmol/Lmol/m³Notes
10 M10,00010,000,00010,000Concentrated stock — near solubility limit for many salts
1 M1,0001,000,0001,000Typical laboratory stock concentration
0.1 M100100,000100Standard titration concentration
0.01 M1010,00010Common working buffer
0.001 M11,0001Millimolar — physiological range
10⁻⁶ M0.00110.001Micromolar — drug receptor work
10⁻⁹ M10⁻⁶0.00110⁻⁶Nanomolar — trace analysis, hormones

Core Molarity Formulas

Molarity = mass ÷ (MW × volume)

Solve for concentration from a known mass.

Mass = molarity × MW × volume

Solve for grams to weigh out for a target concentration.

Volume = mass ÷ (molarity × MW)

Solve for how much solution a fixed mass will make.

Molecular weight = mass ÷ (molarity × volume)

Solve for an unknown solute's molar mass.

Moles = molarity × volume

How many moles you have for a given concentration and volume.

Particles = moles × 6.022 × 10²³

Avogadro's number converts moles to formula units.

Dilution: M₁V₁ = M₂V₂

Moles are conserved when you dilute, so the product of M and V is constant.

Best Practices for Accurate Concentrations

  • Use a calibrated analytical balance for solid solutes — molarity is only as accurate as the mass measurement.
  • Always dissolve the solute completely before topping up to the final volume in a volumetric flask.
  • For hydrates, match the molecular weight to the exact form on the bottle (anhydrous vs hydrate vs different hydration states).
  • Account for solute purity. A 99% reagent is 1% less concentrated than the label implies.
  • Prepare and use solutions at a consistent temperature — molarity drifts with thermal expansion.
  • Label every stock with concentration, solvent, date, and preparer. Reproducibility lives on the label.

How We Calculate

Every result on this page is computed in your browser using the canonical molarity equation M = mass ÷ (MW × V), with all four variables solved analytically from the other three. Inputs are converted into SI base units (grams, g/mol, litres, mol/L) before the calculation runs, so you can freely mix milligrams with millilitres or pounds with gallons. Avogadro's number (6.02214076 × 10²³ mol⁻¹) is used to report the number of particles. Equivalent concentrations are derived directly from the canonical molarity result.

Nothing is sent to a server — the chemistry runs locally, instantly, and privately. Conversion factors for the imperial mass and volume units use exact NIST/ISO definitions (1 lb = 453.59237 g, 1 US gal = 3.785411784 L, 1 UK gal = 4.54609 L). Use this tool with confidence for homework, lab prep, and pharmaceutical dose checks; always verify safety-critical values against a primary reference and a colleague.

Frequently Asked Questions

Molarity (symbol M, unit mol/L) is the most common way to express the concentration of a solution. It counts the moles of solute dissolved per litre of total solution, where one mole equals Avogadro's number (6.022 × 10²³) of formula units. A 1 M solution of sodium chloride therefore contains one mole — about 58.44 g — of NaCl in enough water to make exactly one litre of solution. Molarity drives essentially every quantitative calculation in chemistry, from titrations and reaction kinetics to buffer preparation and pharmaceutical dosing.

Use the equation Molarity = mass ÷ (Molecular Weight × Volume), where mass is in grams, molecular weight in grams per mole, and volume in litres. For example, dissolving 5.844 g of NaCl (MW 58.44 g/mol) in 1 L of solution gives a molarity of 5.844 ÷ (58.44 × 1) = 0.100 M. This calculator solves the equation in all four directions, so you can also calculate the mass needed for a given molarity, the volume a fixed mass will make, or even the molecular weight of an unknown solute. Switch the unit selectors to enter your values in mg, mL, gallons, or any supported unit — the calculator converts automatically.

The standard molarity formula is M = mass ÷ (MW × V). Rearranged: mass = M × MW × V, V = mass ÷ (M × MW), and MW = mass ÷ (M × V). The four versions let you compute whichever variable is missing as long as you know the other three. In SI units, mass is grams, MW is grams per mole, V is litres, and M is mol/L. Always convert your inputs to those units before plugging into the formula by hand — or let this calculator do the conversion for you.

Rearrange the equation to mass = molarity × molecular weight × volume. To prepare 250 mL of 0.5 M sodium chloride (MW 58.44 g/mol), multiply 0.5 mol/L × 58.44 g/mol × 0.250 L = 7.305 g. Switch the calculator to the 'Solve for Mass' tab, set molarity, MW, and volume to known values, and the result appears with a step-by-step solution. This is the most common workflow in laboratory solution preparation — you decide on a target concentration and final volume, and the calculator tells you exactly how many grams to weigh out.

Volume comes from V = mass ÷ (molarity × MW). For example, dissolving 10 g of glucose (MW 180.16 g/mol) at a target concentration of 0.2 M requires V = 10 ÷ (0.2 × 180.16) ≈ 0.278 L, or about 278 mL. This calculation is useful when the solute is a precious or limited resource and you need to know how much solution it will produce at a chosen concentration. The 'Solve for Volume' tab handles it instantly with full unit conversion.

Use MW = mass ÷ (molarity × volume). If 12 g of an unknown dissolves in 200 mL of water to make a 0.30 M solution, then MW = 12 ÷ (0.30 × 0.200) = 200 g/mol. This is the classic technique for characterising unknown compounds — determine molarity by an independent measurement (osmometry, freezing-point depression, light scattering), weigh the dissolved amount, and back-calculate the molar mass. For pure named compounds, calculate MW directly from the chemical formula with our Molecular Weight Calculator instead.

Molarity (M) is moles of solute per litre of solution; molality (m) is moles per kilogram of solvent. Molarity is convenient because you can prepare it directly in a volumetric flask, but it changes slightly with temperature because liquids expand and contract. Molality is temperature-independent, so it's used in colligative-property work where boiling-point elevation and freezing-point depression matter. For dilute aqueous solutions at room temperature, the two are numerically close (because 1 L of water weighs ~1 kg); they diverge for concentrated and non-aqueous systems.

Normality (N) equals molarity multiplied by the number of equivalents per formula unit — the number of reactive protons for acids, hydroxides for bases, or the change in oxidation state per molecule for redox reagents. A 1 M solution of sulfuric acid is 2 N because each H₂SO₄ donates two protons. Modern chemistry mostly uses molarity, but normality survives in titration protocols and water-treatment standards. To convert, multiply M by the equivalent factor for the reaction you're running.

Mass: grams (g), milligrams (mg), kilograms (kg), pounds (lb), and ounces (oz). Molecular weight: grams per mole (g/mol) and kilograms per mole (kg/mol). Volume: millilitres (mL), litres (L), cubic centimetres (cm³), cubic decimetres (dm³), US gallons, and UK gallons. Concentration: molar (M = mol/L), millimolar (mmol/L), and mol/m³. Every input has its own unit selector, and the calculator converts everything to SI units (g, g/mol, L, mol/L) behind the scenes before solving so you can freely mix imperial and metric units.

The arithmetic is exact for the values you enter, using the analytical solution of M = mass ÷ (MW × V) in all four rearrangements. Unit conversions use exact NIST and ISO definitions (1 lb = 453.59237 g, 1 US gal = 3.785411784 L, 1 UK gal = 4.54609 L, 1 mole = 6.02214076 × 10²³ particles). Real-world accuracy is limited only by your input data — balance precision, volumetric flask tolerance, and reagent purity. For homework, lab prep, and analytical chemistry the calculator is more than precise enough; verify safety-critical values against a primary source.

A mole is the chemist's counting unit — analogous to a dozen but vastly larger. One mole equals exactly 6.02214076 × 10²³ formula units (atoms, molecules, or ions), a value known as Avogadro's number. The mole bridges the invisible world of atoms and the measurable world of grams: weighing out one mole of a substance lets you count its particles by mass. Molarity expresses concentration as moles per litre, which is why this calculator reports moles and molecules alongside the primary result.

Avogadro's number (NA = 6.02214076 × 10²³ mol⁻¹) is the number of particles in one mole. It is now defined exactly, fixing the kilogram and the mole to fundamental constants. This calculator uses it to report the number of solute molecules in your solution — particles = moles × NA — which is useful for biochemistry, single-molecule experiments, and any time you need to know roughly how many formula units a calculation involves.

Decide your target molarity (M) and final volume (V), look up or compute the solute's molecular weight (MW), and calculate the required mass = M × MW × V. Weigh that mass on an analytical balance, dissolve it in less than the final volume of solvent, then top up to the exact final volume in a volumetric flask. Mix thoroughly. Label the bottle with concentration, solvent, date, and your initials. This calculator's 'Solve for Mass' tab gives you the weighing target instantly with full unit conversion.

Dilutions follow M₁V₁ = M₂V₂, which says moles are conserved when you add more solvent. If you have 100 mL of 1 M stock and want 0.1 M working solution, V₂ = M₁V₁ ÷ M₂ = (1 × 100) ÷ 0.1 = 1000 mL — so dilute the 100 mL stock to 1 L total. The Molarity Calculator and the dilution formula work hand in hand: prepare the stock with this tool, then dilute it using M₁V₁ = M₂V₂ to reach any working concentration.

ppm (parts per million) is a mass-fraction unit: 1 ppm equals 1 mg of solute per kilogram of solution. For dilute aqueous solutions, where 1 kg ≈ 1 L, 1 ppm is also 1 mg/L. To convert ppm to molarity, divide by the molar mass: a 100 ppm solution of sodium chloride (MW 58.44) is about 100 ÷ 58.44 ÷ 1000 ≈ 0.00171 M. This calculator reports the mass concentration in mg/mL and ppm in the equivalent-concentrations panel for every result.

Molarity is defined as moles of solute per litre of total solution. Adding solute to water changes the final volume slightly — sometimes a lot for concentrated solutions — so 100 mL of water plus solute does not equal 100 mL of final solution. The correct technique is to dissolve the solute in less than the target volume of solvent, then top up in a volumetric flask. Using the solvent volume in the molarity equation always gives an answer that is consistently a little too high.

Yes — just use the molecular weight of the exact form on the bottle. CuSO₄·5H₂O has a molecular weight of 249.69 g/mol, while anhydrous CuSO₄ is 159.61 g/mol. If you weigh out the hydrated form but calculate with the anhydrous MW, you will end up with a less concentrated solution than expected. The Molecular Weight Calculator parses hydrate notation automatically and returns the correct MW for either form, which you can then paste into the Molarity Calculator.

Mass concentration expresses solute amount as mass per volume (typically g/L or mg/mL) instead of moles per volume. It is independent of molecular weight, so it is useful when the solute is a polymer or a complex mixture without a defined MW. Molarity counts particles; mass concentration measures weight. Both describe the same solution, and this calculator reports mass concentration alongside molarity for every result so you can switch between them at a glance.

Everywhere quantitative concentration matters. In medicine, IV drug dosing is calculated in molarity to ensure each patient receives the right number of drug molecules per kilogram of body weight. In food and beverage chemistry, fermentation, brewing, and additive levels are tracked in molar units. In environmental science, water-quality reports use molarity (or its mass-equivalent ppm) for pollutants, hardness ions, and dissolved gases. In manufacturing, electroplating baths, polymer synthesis, and analytical-instrument calibration all depend on accurately prepared molar solutions.