Molarity Calculator Online
Find grams needed, molarity, volume or dilution volume, convert mg/mL to µM and % stock to M – with every step shown.
How many grams of solute do you need to make a solution? mass = M × V × MW
Don’t know the molecular weight? Pick a chemical, type a formula, or enter DNA length
Molecular weight: —
Atomic weights from IUPAC. Use “·” or “.” for hydrates (CuSO4.5H2O). dsDNA: MW = bp × 617.96 + 36.04 g/mol.
Quick answer
Molarity = moles of solute ÷ liters of solution (mol/L, written M). From grams: M = grams ÷ (molar mass × liters). To make a solution, weigh M × liters × molar mass grams – e.g. 1 L of 1 M NaCl needs 58.44 g.
What Is Molarity?
Molarity (M), also called molar concentration, tells you how many moles of solute are dissolved in one liter of solution. A 1 M solution of table salt has 1 mole of NaCl (58.44 g) in every liter of the finished solution.
What is a mole?
A mole is a counting unit: exactly 6.02214076 × 10²³ particles (the Avogadro constant). One mole of any substance weighs its molar mass in grams, which you read from the periodic table or the reagent label – so moles let you turn “how many particles” into “how many grams”.

Molarity Formula and Equations
| To find | Formula | Units |
|---|---|---|
| Molarity | M = n ÷ V = mass ÷ (MW × V) | mol/L |
| Mass needed | mass = M × V × MW | g |
| Volume | V = mass ÷ (M × MW) = n ÷ M | L |
| Moles | n = M × V = mass ÷ MW | mol |
| Dilution | C₁V₁ = C₂V₂ → V₁ = C₂V₂ ÷ C₁ | any matching units |
| mg/mL to molarity | M = (mg/mL) ÷ MW | mol/L |
| Molarity of % stock | M = (% ÷ 100 × density × 1000) ÷ MW | mol/L |
| Mass concentration | g/L = M × MW | g/L |
MW = molar mass (molecular or formula weight) in g/mol; V = volume of the solution in liters; density in g/mL.
How to Use This Molarity Calculator
- Pick what you want to find: Choose Mass (grams needed), Volume, Molarity, Dilution, mg/mL ↔ M, or % stock → M.
- Enter the known values: Type the values you know and pick their units (M, mM, µM, nM; g, mg; L, mL, µL).
- Add the molecular weight: Enter the molecular weight in g/mol, or open the molar mass helper to pick a common chemical, type a formula like CuSO4·5H2O, or enter a DNA length in bp.
- Read the answer and steps: The result updates as you type, with the working shown step by step. Copy it with one click.
| Mode | You enter | You get |
|---|---|---|
| Mass (g) | Concentration, volume, MW | Grams (or mg, µg) to weigh |
| Volume | Mass, concentration, MW | Volume of solution |
| Molarity | Mass, volume, MW | M, mM, moles and g/L |
| Dilution | Any three of C₁, V₁, C₂, V₂ | The fourth, diluent to add, dilution factor |
| Serial dilution | Stock, step volume, target list | Volume to transfer at each step |
| mg/mL ↔ M | Mass or molar concentration, MW | All units: M, mM, µM, nM, mg/mL, µg/mL |
| % stock → M | % w/w, density, MW | Stock molarity and volume to dilute |
How Many Grams Do I Need? (Mass from Molarity)
Multiply the molarity by the volume in liters to get moles, then multiply by the molar mass to get grams:
grams = M × V (L) × MW (g/mol)
| Solution to make | Working | Weigh |
|---|---|---|
| 1,500 mL of 0.2 M NaCl | 0.2 × 1.5 × 58.44 | 17.53 g |
| 250 mL of 0.3 M CaCl₂ | 0.3 × 0.250 × 110.98 | 8.324 g |
| 1 L of 100 mM, MW 110 | 0.1 × 1 × 110 | 11 g |
| 10 mL of 1 mM, MW 635.14 | 0.001 × 0.010 × 635.14 | 6.351 mg |
| 150 L of 0.003 M NaCl | 0.003 × 150 × 58.44 | 26.3 g |
| 2.5 mol of NaCl | 2.5 × 58.44 | 146.1 g |
Dissolve the solid in less water than you need, then top up to the final volume in a volumetric flask – molarity is per liter of solution, not per liter of water added. If a recipe uses a different volume, scale the mass in the same ratio: 2 g for 10 L becomes 2 × 12.5 ÷ 10 = 2.5 g for 12.5 L.
mg/mL to Molarity (Proteins, Antibodies, DNA)
Because 1 mg/mL equals 1 g/L, you divide by the molar mass to get molarity:
M = (mg/mL) ÷ MW (g/mol) · mg/mL = M × MW
| Sample | Molar mass | Concentration | Molarity |
|---|---|---|---|
| IgG antibody | 145.8 kDa | 0.85 mg/mL | 5.83 µM |
| IgG antibody | 150 kDa | 30 µg/mL | 200 nM |
| BSA | 66.4 kDa | 1 mg/mL | 15.1 µM |
| Plasmid, 3,000 bp dsDNA | 1,853,916 g/mol | 100 ng/µL | 53.9 nM |
| Retrorsine (drug) | 351.4 g/mol | 7.2 mg/mL | 20.5 mM |
| NaCl | 58.44 g/mol | 11.69 g/L | 0.2 M |
dsDNA molar mass = bp × 617.96 + 36.04 g/mol (NEB). For a specific protein, use the mass from its sequence or the datasheet.
Molarity of Concentrated Acids and Bases
Bottles of concentrated reagents list mass percent and density, not molarity. Convert with:
M = (% ÷ 100) × density (g/mL) × 1000 ÷ MW
| Reagent | % w/w | Density (g/mL) | Molarity | mL for 1 L of 1 M |
|---|---|---|---|---|
| Hydrochloric acid 37% | 37 | 1.19 | 12.1 M | 82.8 |
| Sulfuric acid 96% | 96 | 1.84 | 18 M | 55.5 |
| Nitric acid 70% | 70 | 1.41 | 15.7 M | 63.8 |
| Phosphoric acid 85% | 85 | 1.685 | 14.6 M | 68.4 |
| Acetic acid, glacial | 99.7 | 1.049 | 17.4 M | 57.4 |
| Ammonia solution 28% | 28 | 0.9 | 14.8 M | 67.6 |
| Hydrogen peroxide 30% | 30 | 1.11 | 9.79 M | 102 |
| Sodium hydroxide 50% | 50 | 1.52 | 19 M | 52.6 |
| Formic acid 88% | 88 | 1.2 | 22.9 M | 43.6 |
Typical values at 20–25 °C; check your bottle’s label. Example: 500 mL of 1 M HCl needs about 41.4 mL of 37% HCl.
Dilution and Serial Dilution (C₁V₁ = C₂V₂)
The moles of solute do not change when you add solvent, so C₁ × V₁ = C₂ × V₂. Solve for the stock volume with V₁ = C₂ × V₂ ÷ C₁, then add diluent up to V₂. Use the same units on both sides (convert mM, µM and nM first).
For large dilutions, go in steps (serial dilution) so you never have to pipette tiny volumes. Example: 225 mL at each step from a 1 M stock:
| Step | Target | Take of previous | Add diluent | Dilution factor |
|---|---|---|---|---|
| 1 | 0.75 M | 168.8 mL | 56.25 mL | 1.333× |
| 2 | 250 mM | 75 mL | 150 mL | 3× |
| 3 | 125 µM | 112.5 µL | 224.9 mL | 2,000× |
| 4 | 100 nM | 180 µL | 224.8 mL | 1,250× |
A 1:10 dilution means 1 part stock + 9 parts diluent (dilution factor 10).
Molarity Units
| Symbol | Name | Equal to |
|---|---|---|
| M or mol/L | Molar | 1 mol/L |
| mol dm⁻³ | Moles per cubic decimeter | 1 M |
| mM | Millimolar | 10⁻³ M |
| µM | Micromolar | 10⁻⁶ M |
| nM | Nanomolar | 10⁻⁹ M |
| pM | Picomolar | 10⁻¹² M |
| mmol/L | Millimoles per liter | 1 mM |
Molar Masses of Common Lab Chemicals
| Chemical | Formula | Molar mass (g/mol) | g for 1 L of 1 M |
|---|---|---|---|
| Sodium chloride (NaCl) | NaCl | 58.44 | 58.44 g |
| Potassium chloride (KCl) | KCl | 74.55 | 74.55 g |
| Sodium hydroxide (NaOH) | NaOH | 40.00 | 40.00 g |
| Hydrochloric acid (HCl) | HCl | 36.46 | 36.46 g |
| Sulfuric acid (H₂SO₄) | H2SO4 | 98.07 | 98.07 g |
| Nitric acid (HNO₃) | HNO3 | 63.01 | 63.01 g |
| Acetic acid (CH₃COOH) | C2H4O2 | 60.05 | 60.05 g |
| Ammonia (NH₃) | NH3 | 17.03 | 17.03 g |
| Phosphoric acid (H₃PO₄) | H3PO4 | 97.99 | 97.99 g |
| Calcium chloride (CaCl₂) | CaCl2 | 110.98 | 110.98 g |
| Calcium chloride dihydrate | CaCl2·2H2O | 147.01 | 147.01 g |
| Magnesium chloride hexahydrate | MgCl2·6H2O | 203.30 | 203.30 g |
| Magnesium sulfate heptahydrate | MgSO4·7H2O | 246.47 | 246.47 g |
| Copper(II) sulfate pentahydrate | CuSO4·5H2O | 249.68 | 249.68 g |
| Sodium bicarbonate (NaHCO₃) | NaHCO3 | 84.01 | 84.01 g |
| Sodium carbonate (Na₂CO₃) | Na2CO3 | 105.99 | 105.99 g |
| Potassium phosphate monobasic (KH₂PO₄) | KH2PO4 | 136.08 | 136.08 g |
| Sodium phosphate dibasic (Na₂HPO₄) | Na2HPO4 | 141.96 | 141.96 g |
| Potassium permanganate (KMnO₄) | KMnO4 | 158.03 | 158.03 g |
| Silver nitrate (AgNO₃) | AgNO3 | 169.87 | 169.87 g |
| Glucose (C₆H₁₂O₆) | C6H12O6 | 180.16 | 180.16 g |
| Sucrose (C₁₂H₂₂O₁₁) | C12H22O11 | 342.30 | 342.30 g |
| Urea | CH4N2O | 60.06 | 60.06 g |
| Ethanol | C2H6O | 46.07 | 46.07 g |
| Glycine | C2H5NO2 | 75.07 | 75.07 g |
| Tris base | C4H11NO3 | 121.14 | 121.14 g |
| Tris-HCl | C4H11NO3·HCl | 157.59 | 157.59 g |
| HEPES | C8H18N2O4S | 238.30 | 238.30 g |
| EDTA disodium dihydrate | C10H14N2Na2O8·2H2O | 372.24 | 372.24 g |
| SDS (sodium dodecyl sulfate) | C12H25NaO4S | 288.38 | 288.38 g |
| DMSO | C2H6OS | 78.13 | 78.13 g |
| L-Glutamine | C5H10N2O3 | 146.15 | 146.15 g |
Calculated from IUPAC standard atomic weights. Hydrates include their water – CuSO₄·5H₂O is not the same as anhydrous CuSO₄.
Worked Examples
1. Molarity from mass and volume
5 g of KCl (74.55 g/mol) is dissolved to make 500 mL of solution.
moles = 5 ÷ 74.55 = 0.06707 mol
M = 0.06707 ÷ 0.500 L = 0.134 M
2. Mass needed for a target molarity
How many grams of CaCl₂ (110.98 g/mol) for 250 mL of 0.3 M?
mass = 0.3 × 0.250 × 110.98 = 8.3235 g
3. Dilution with C₁V₁ = C₂V₂
You have 2 M H₂SO₄. How much do you need for 100 mL of 0.25 M?
V₁ = 0.25 × 100 ÷ 2 = 12.5 mL → make up to 100 mL
4. Molar concentration of a stock in mM
0.072 g of retrorsine (C₁₈H₂₅NO₆, 351.4 g/mol) in 10 mL.
M = 0.072 ÷ (351.4 × 0.010) = 0.0205 M = 20.5 mM
5. Volume from moles
What volume of 4.00 M KCl contains 0.100 mol?
V = 0.100 ÷ 4.00 = 0.0250 L = 25.0 mL
Common Mistakes When Calculating Molarity
- Using mL instead of L: divide mL by 1,000 before using M = n ÷ V by hand.
- Solvent volume vs solution volume: molarity uses the final solution volume. Dissolve, then fill to the mark.
- Wrong molar mass for hydrates: use the weight on your bottle, including water of crystallisation.
- Mixing units in C₁V₁ = C₂V₂: 1 M and 100 mM must be in the same unit before you divide.
- Confusing molarity and molality: molality is per kilogram of solvent, not per liter of solution.
- Treating % as molarity: 37% HCl is about 12 M, not 37 M or 0.37 M – you need the density.
Molarity and pH
pH measures the hydrogen ion concentration: pH = −log[H⁺]. For strong acids that release one H⁺ (like HCl), [H⁺] equals the acid’s molarity.
| Solution | [H⁺] or [OH⁻] | pH |
|---|---|---|
| 0.1 M HCl | [H⁺] = 0.1 M | 1 |
| 0.01 M HCl | [H⁺] = 0.01 M | 2 |
| 0.001 M HNO₃ | [H⁺] = 0.001 M | 3 |
| 0.01 M NaOH | [OH⁻] = 0.01 M | 12 |
| 0.1 M NaOH | [OH⁻] = 0.1 M | 13 |
For bases, pH = 14 − pOH at 25 °C. Weak acids (acetic acid) need the Ka value, and very dilute solutions need water’s own H⁺ taken into account.
Molarity vs Molality vs Normality
| Unit | Definition | Changes with temperature? |
|---|---|---|
| Molarity (M) | Moles of solute per liter of solution | Yes (volume changes) |
| Molality (m) | Moles of solute per kg of solvent | No |
| Normality (N) | Equivalents per liter (N = M × n, e.g. 1 M H₂SO₄ = 2 N) | Yes |
| % w/v | Grams of solute per 100 mL of solution | Yes |
| ppm (in water) | mg of solute per liter (approx.) | Slightly |
Where Molarity Is Used
- Labs and buffers: 1 M Tris, 0.5 M EDTA and PBS stocks are all made by molarity.
- Medicine: normal saline (0.9% NaCl) is about 154 mM NaCl; lab results such as blood glucose are often reported in mmol/L.
- Biology: drugs, antibodies and primers are dosed in µM and nM.
- Titration: the molarity of the titrant gives the moles that react.
- Water treatment and food: chlorine, fluoride and acid levels are set by concentration.
Why I Built This Tool
Himanshu Grewal, Founder
Most molarity questions people search for are practical: how many grams to weigh, how much concentrated acid to take, or how to get from a 1 M stock down to 100 nM without pipetting a fraction of a microliter. A single M = n ÷ V box does not answer those.
So this calculator shows the working for every answer, picks sensible units (mg, µL, µM) automatically, and works out molar mass from the formula. If you find a result that looks wrong, please let me know.
Related Calculators
Frequently Asked Questions
How do you calculate molarity?
Divide the moles of solute by the volume of solution in liters: M = n ÷ V. If you have grams, first divide by the molar mass: M = mass (g) ÷ (molar mass (g/mol) × volume (L)). Example: 5 g KCl in 500 mL is 5 ÷ (74.55 × 0.5) = 0.134 M.
How do you calculate the mass needed from molarity and volume?
Multiply molarity × volume in liters × molar mass: mass = M × V × MW. For 1,500 mL of 0.2 M NaCl: 0.2 × 1.5 × 58.44 = 17.53 g.
How do you find moles from molarity and volume?
Multiply molarity by volume in liters: n = M × V. For example, 250 mL of 0.4 M solution contains 0.4 × 0.250 = 0.1 mol.
How do you calculate volume from molarity?
Volume (L) = moles ÷ molarity, or mass ÷ (molar mass × molarity). To get 0.100 mol of KCl from a 4.00 M solution you need 0.100 ÷ 4.00 = 0.0250 L (25.0 mL).
What is a 1 M solution?
A 1 M (1 molar) solution has 1 mole of solute in 1 liter of solution. For NaCl that is 58.44 g dissolved and made up to 1 L.
How do I convert mg/mL to molarity?
Molarity (M) = mg/mL ÷ molar mass (g/mol), because 1 mg/mL = 1 g/L. For an antibody at 0.85 mg/mL with a mass of 145.8 kDa (145,800 g/mol): 0.85 ÷ 145,800 = 5.83 µM.
How do you calculate molarity from density and mass percent?
M = (mass % ÷ 100 × density in g/mL × 1000) ÷ molar mass. For 37% HCl with density 1.19 g/mL: 0.37 × 1.19 × 1000 ÷ 36.46 = 12.1 M.
How much 37% HCl do I need to make 500 mL of 1 M HCl?
Concentrated 37% HCl is about 12.1 M, so V₁ = 1 M × 500 mL ÷ 12.1 M ≈ 41.4 mL. Add the acid slowly to about 400 mL of water, then make up to 500 mL.
How do you calculate a dilution?
Use C₁V₁ = C₂V₂. The stock volume needed is V₁ = C₂ × V₂ ÷ C₁. Example: 100 mL of 0.25 M from a 2 M stock needs 0.25 × 100 ÷ 2 = 12.5 mL of stock made up to 100 mL.
How do you calculate pH from molarity?
For a strong acid, [H⁺] equals the acid’s molarity, so pH = −log[H⁺]. 0.01 M HCl has pH 2. For weak acids you also need the Ka value.
How do I convert mM to M?
Divide by 1,000. 500 mM = 0.5 M, and 1 M = 1,000 mM = 1,000,000 µM.
Is molarity the same as molar concentration?
Yes. Molarity and molar concentration are two names for the same thing: moles of solute per liter of solution (mol/L).
What is the difference between molarity and molality?
Molarity is moles per liter of solution; molality is moles per kilogram of solvent. Molality does not change with temperature, molarity does slightly.
Why is molarity temperature dependent?
Molarity uses solution volume, and liquids expand when warm and shrink when cool. So the same solution has a slightly lower molarity at higher temperature.
How do you calculate the molarity of DNA?
Find the molecular weight of double-stranded DNA as (bp × 617.96) + 36.04 g/mol, then divide the concentration in g/L by it. The calculator’s molar mass helper does this when you enter the length in base pairs.
What is formula weight and where do I find it?
Formula weight (molecular weight or molar mass) is the sum of the atomic weights in the formula, in g/mol. It is printed on the reagent label; for hydrates such as CuSO₄·5H₂O use the weight that includes the water. You can also type the formula into the molar mass helper.
Can molarity be negative?
No. Mass and volume cannot be negative, so molarity is always zero or positive.
Can I use this calculator for any chemical compound?
Yes, as long as you know its molecular weight or formula. It works for salts, acids, buffers, drugs, proteins and DNA.
Cite this page:
Himanshu Grewal, "Molarity Calculator", Free AI Calculator, https://freeaicalculator.com/education/molarity-calculator/