Molarity Calculator
Calculate the molarity (molar concentration) of a solution — moles of solute per litre. Enter mass of solute, its molar mass, and volume of solution.
Molarity (M)
—
Moles of Solute
—
Concentration
—
Calculation Details
Embed This Calculator
Copy the code and paste it into any webpage to embed this calculator.
WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.
Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.
How to use this calculator
There are 4 inputs.
Mass of Solute is the mass of the substance you’re dissolving, in grams. If you weighed out 58.44 g of NaCl on a balance, enter 58.44. This is the mass of the solute only, not the final solution.
Molar Mass of Solute is the molar mass of that substance in g/mol. For NaCl it’s 58.44 g/mol. For glucose (C₆H₁₂O₆) it’s 180.16 g/mol. Look this up from a periodic table or use the reference table below. Don’t confuse this with the mass of your sample. They can be equal by coincidence (as in the default example), but they’re different quantities.
Volume of Solution is the total volume of the final solution, not the volume of solvent you added. Enter the number and select your unit from the dropdown.
Volume Unit lets you choose between Litres (L), Millilitres (mL), and other common options. The calculator converts to litres automatically before dividing.
Click Calculate and you get 3 outputs:
- Molarity (M): moles of solute per litre of solution. This is the main result.
- Moles of Solute: how many moles are dissolved. Intermediate step, shown explicitly so you can use it elsewhere.
- Concentration (g/L): mass of solute per litre of solution. Useful when you need to describe concentration by mass rather than by moles.
Example: preparing 1M NaCl solution
Mass of NaCl = 58.44 g Molar Mass of NaCl = 58.44 g/mol Volume = 1 L
Moles = 58.44 / 58.44 = 1.000 mol Molarity = 1.000 / 1 = 1.000 mol/L Concentration = 58.44 / 1 = 58.44 g/L
Volume of solution is not the same as volume of water added. When you dissolve a solid, the total volume changes. Always make up the final solution to the target volume in a volumetric flask, then read that volume as your input, not the volume of water you poured in beforehand.
What problem this calculator solves
Lab protocols run on molar concentrations. Reaction rates, buffer recipes, titration calculations, enzyme assays: all of them specify concentration in mol/L. To actually make the solution, you need to work backward from a target molarity to a mass you can weigh.
The calculation isn’t difficult, but it has 2 steps (grams to moles, then moles to molarity) and a unit conversion hidden inside the volume step. In a busy lab, that’s exactly where transcription errors land. You enter 250 mL but forget to convert to 0.250 L, and your molarity is off by a factor of 1000.
The calculator handles the unit conversion automatically and shows intermediate steps, so you can verify each part of the chain before trusting the final number.
The concept explained simply
Imagine you’re making lemonade. The “concentration” of lemon is how much juice you put in per litre of drink. More juice, same total volume: higher concentration. Same juice, more water: lower concentration.
Molarity is that same idea, but instead of measuring juice by volume, you measure solute by moles. Moles capture the actual number of particles dissolved, which is what determines most of the chemistry: how acidic the solution is, how it behaves in a reaction, what its osmotic pressure does.
Two solutions can have the same mass of solute but completely different molarities if the solutes have different molar masses. 58.44 g of NaCl and 58.44 g of glucose dissolved in 1 L give you 1.000 M and 0.324 M respectively. Same mass, very different particle counts.
Molarity measures how crowded the solute particles are in a given volume of solution. It's a particle density, counted in moles rather than individual molecules.
The formula explained
M is molarity in mol/L, n is moles of solute, V is volume of solution in litres.
Since moles aren’t usually your starting point, you first calculate n from mass:
m is mass in grams, M_r is molar mass in g/mol.
Combining them:
This is what the calculator evaluates. Mass divided by molar mass gives moles. Moles divided by volume gives molarity. The two steps collapse into one expression.
The mass concentration output uses:
That’s just grams of solute divided by litres of solution, no moles involved. It answers “how many grams per litre” rather than “how many moles per litre.”
The symbol M is doing double duty in chemistry: it means molarity (mol/L) as a unit, and it’s also sometimes used for molar mass. In this calculator, M in the output means molarity. Molar mass is labeled M_r or listed as g/mol. Read the labels, not just the letters.
Reference table: molar masses for common lab solutes
| Substance | Formula | Molar mass (g/mol) |
|---|---|---|
| Sodium chloride | NaCl | 58.443 |
| Hydrochloric acid | HCl | 36.461 |
| Sodium hydroxide | NaOH | 39.997 |
| Sulfuric acid | H₂SO₄ | 98.079 |
| Acetic acid | CH₃COOH | 60.052 |
| Glucose | C₆H₁₂O₆ | 180.156 |
| Sucrose | C₁₂H₂₂O₁₁ | 342.297 |
| Potassium chloride | KCl | 74.551 |
| Calcium chloride | CaCl₂ | 110.983 |
| Sodium bicarbonate | NaHCO₃ | 84.007 |
| Ethanol | C₂H₅OH | 46.068 |
| Ammonium sulfate | (NH₄)₂SO₄ | 132.140 |
Real-world examples
The buffer preparation
A biochemistry lab needs 500 mL of 0.1 M phosphate buffer. They’re using sodium phosphate dibasic (Na₂HPO₄, molar mass = 141.96 g/mol). How much do they weigh out?
Working backward from target molarity
Target: 0.1 mol/L in 0.500 L
n = 0.1 × 0.500 = 0.050 mol
Mass = n × M_r = 0.050 × 141.96 = 7.098 g
Verification: enter 7.098 g, 141.96 g/mol, 500 mL into the calculator. Molarity = (7.098 / 141.96) / 0.500 = 0.1000 mol/L ✓
The acid dilution check
A student dissolves 3.65 g of HCl (molar mass = 36.46 g/mol) in water and makes up to 200 mL total volume. What’s the molarity?
Finding molarity from a dissolved mass
n = 3.65 / 36.46 = 0.1001 mol
M = 0.1001 / 0.200 = 0.500 mol/L
This is a standard 0.5 M HCl solution, commonly used in titrations.
The stock solution dilution
A lab has a 5 M NaCl stock solution and needs to prepare 100 mL of 0.9% saline. Saline is 0.154 M NaCl. How many mL of stock do they need?
Using the dilution equation C₁V₁ = C₂V₂
C₁ = 5 M, C₂ = 0.154 M, V₂ = 100 mL
V₁ = (C₂ × V₂) / C₁ = (0.154 × 100) / 5 = 3.08 mL
Take 3.08 mL of the 5 M stock, dilute to 100 mL total volume.
To verify the stock: 29.22 g NaCl in 1 L gives 29.22 / 58.44 = 0.500 mol / 0.1 L = 5.00 M ✓
Common mistakes people make
Entering volume of solvent instead of volume of solution. If you add 250 mL of water to a solid, the final solution volume is more than 250 mL. It might be 253 mL. Molarity is defined using the total solution volume. Always transfer to a volumetric flask and fill to the mark, then use that volume.
Forgetting to convert mL to L. Molarity is mol per litre. If your volume is 250 mL and you enter 250 without switching the unit dropdown to mL, the calculator will treat it as 250 L and give you a molarity 1000 times smaller than reality. The volume unit selector exists for exactly this reason.
Using the wrong molar mass for hydrated salts. CuSO₄ has a molar mass of 159.61 g/mol, but CuSO₄·5H₂O (the form commonly sold in labs) is 249.68 g/mol. If you weigh out the blue hydrated crystals and use 159.61, your molarity is wrong by a factor of 249.68/159.61 = 1.56.
Treating molarity and molality as the same thing. Molarity (mol/L) uses volume of solution as the denominator. Molality (mol/kg) uses mass of solvent. They’re equal only in very dilute aqueous solutions where the solvent density is close to 1 kg/L. For anything concentrated, they diverge. This calculator gives molarity.
Rounding molar mass too aggressively. Using 18 for water instead of 18.015 introduces a 0.08% error. For a 1 M solution made to 4 significant figures, that matters. Use at least 4 significant figures in the molar mass input.
For strong acids like H₂SO₄ or HNO₃ supplied as concentrated liquids, “mass of solute” isn’t the mass of the liquid you pour. It’s the mass of pure acid in that liquid. A bottle of concentrated H₂SO₄ is typically 98% pure by mass. You need to account for the density and purity to get actual grams of H₂SO₄. The calculator doesn’t know you’re using a concentrated acid reagent.
Molarity vs. other concentration units
Molarity is the most common concentration unit in solution chemistry, but it’s not the only one. Knowing where molarity works well and where other units make more sense saves a lot of confusion.
Molality (mol/kg solvent) doesn’t change with temperature because it’s based on mass, not volume. Liquids expand when heated, so a 1 M solution at 20°C is slightly less than 1 M at 80°C. For colligative properties (boiling point elevation, freezing point depression) and anything involving temperature changes, molality is the better unit.
Mass percent (% w/w) is just grams of solute per 100 g of solution. Simpler to prepare without a volumetric flask. Used heavily in industrial and food chemistry where volume precision is less critical than mass precision.
Parts per million (ppm) is the go-to for very dilute solutions like trace contaminants in water. 1 ppm in aqueous solution is approximately 1 mg/L, which is about 0.000001 M for a solute with molar mass of 1000 g/mol. Reporting a concentration of 0.00000034 M is awkward. Reporting 0.34 ppm is not.
Normality (N) was common in older analytical chemistry. It’s like molarity but counts equivalents rather than moles. For H₂SO₄ in a neutralization, 1 mole provides 2 moles of H⁺, so a 1 M solution is 2 N. Most modern chemistry has moved away from normality, but you’ll still encounter it in older protocols.
Molarity is the right unit when the reaction happens in solution at a controlled temperature and you need to track moles directly. For everything else, check which concentration unit the formula or protocol actually requires.
What to do with the result
For reaction stoichiometry in solution: multiply molarity by volume (in litres) to recover moles. Moles × molar ratio from the balanced equation = moles of product or other reactant. Then convert to grams or back to a volume of solution as needed.
For titration calculations: at the equivalence point, moles of titrant = moles of analyte (adjusted for stoichiometry). M_titrant × V_titrant = M_analyte × V_analyte for a 1:1 reaction. Plug in 3 knowns, solve for the 4th.
For dilution: use C₁V₁ = C₂V₂. Your calculated molarity is C₁. Set the target concentration as C₂ and the target volume as V₂. Solve for V₁, which is how much of your stock solution to take.
For pH calculations: for strong acids, molarity equals hydrogen ion concentration directly. A 0.01 M HCl solution has [H⁺] = 0.01 mol/L, giving pH = 2. For weak acids, you’ll need the Ka and an equilibrium calculation, but molarity is still the starting point.
Your result is ready to use when the molarity is positive, the moles of solute value matches what you’d expect from the mass you weighed, and the g/L concentration is simply mass divided by volume with no unit conversion surprises. If any of those feel off, recheck your volume unit selection first.
The bottom line
Molarity is what connects a mass on a balance to a reaction in a flask. Once you have it, everything else in solution chemistry follows: stoichiometry, dilution, titration, pH.
The formula is two steps compressed into one. Grams to moles via molar mass, then moles per litre. The calculator runs both steps and shows you the intermediate moles so you can catch any errors before they carry forward.
The one thing to get right every time: volume of solution, not volume of solvent, in the correct unit. Everything else is arithmetic.
Frequently Asked Questions
What does "M" mean in chemistry?
"M" stands for molar or molarity — 1 M = 1 mol/L. A 0.1 M solution contains 0.1 moles of solute per litre of solution.
What is the difference between molarity and normality?
Molarity counts moles of solute; normality counts moles of reactive units (equivalents). For HCl, they are the same. For H₂SO₄, normality = 2 × molarity because each molecule provides two H⁺ ions.
Can I use this for any solute?
Yes — enter the correct molar mass for your compound. For NaCl: 58.44 g/mol. For glucose (C₆H₁₂O₆): 180.16 g/mol. Use the Molar Mass Calculator to find the molar mass from a chemical formula.
How do I prepare a 0.1 M NaCl solution?
Molar mass of NaCl = 58.44 g/mol. For 1 litre of 0.1 M: mass = 0.1 mol × 58.44 g/mol = 5.844 g. Dissolve 5.844 g of NaCl in approximately 900 mL of distilled water, then add water to exactly 1,000 mL (1 L) in a volumetric flask. Always add water to solute, not solute to water, to avoid splashing in concentrated solutions.
What is the molarity of concentrated hydrochloric acid?
Concentrated (37%) HCl has a density of ~1.19 g/mL. Molarity = (% × density × 1000) / molar mass = (37 × 1.19 × 1000) / 36.461 = 12.08 M. This is why lab protocols specify dilution ratios when preparing working solutions from concentrated HCl.
What is the molarity of concentrated sulfuric acid?
Concentrated H₂SO₄ (98%) has a density of ~1.84 g/mL. Molarity = (98 × 1.84 × 1000) / 98.072 = 18.38 M. This is extremely concentrated. Always add concentrated H₂SO₄ to water (never water to acid) to prevent violent exothermic spattering.
How do I dilute a solution using the dilution formula?
M₁V₁ = M₂V₂ (the dilution equation). To make 500 mL of 0.1 M HCl from 12 M concentrated HCl: V₁ = M₂ × V₂ / M₁ = 0.1 × 500 / 12 = 4.17 mL. Add 4.17 mL of concentrated HCl to a flask, then add water to reach a total volume of 500 mL.
How does temperature affect molarity?
Molarity depends on solution volume, which changes with temperature (liquids expand when heated). A 1.000 M solution at 20 °C becomes approximately 0.997 M at 25 °C due to volume expansion. For precise work in thermodynamics, use molality (mol/kg solvent) which is temperature-independent. For routine lab work, the difference is usually negligible.
What is a standard solution and how is it prepared?
A standard solution has a precisely known concentration, used as a reference in titrations. Primary standard solutions are prepared by dissolving a known mass of a pure, stable solid (e.g. potassium hydrogen phthalate, Na₂CO₃) in a precise volume. Secondary standards (like NaOH solution) cannot be prepared directly because NaOH absorbs CO₂ from air and must be standardised against a primary standard.
What is the molarity of blood plasma?
Blood plasma has a total solute concentration (osmolarity) of approximately 285–295 mOsm/L (milliosmoles per litre). The major contributor is NaCl at about 140 mM (0.140 M). Isotonic saline (0.9% NaCl = 0.154 M) approximates blood osmolarity. Hypotonic solutions cause cells to swell; hypertonic solutions cause cells to shrink.
Related Calculators
Molality Calculator
Calculate the molality of a solution — moles of solute per kilogram of solvent. Enter mass of solute, its molar mass, and mass of solvent.
Mole Calculator
Calculate moles from mass and molar mass, number of atoms/molecules, or gas volume at STP. Three modes via the "Calculate From" selector.
Molar Mass Calculator
Calculate the molar mass of any chemical compound by entering its formula. Shows atomic mass breakdown for each element.
Liters to Moles Calculator
Convert gas volume (liters) to moles using the ideal gas law. Choose STP, SATP, or enter custom pressure and temperature.
Grams to Moles Calculator
Convert grams of a substance to moles using molar mass. Supports any compound by entering its molar mass manually.
Theoretical Yield Calculator
Calculate the theoretical yield of a product from reactant mass, molar masses, and the stoichiometric molar ratio.