FreeAICalculator

Molarity Calculator Online

By • Updated

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.

Formula
M = n ÷ V
mol/L
1 M =
1,000 mM
millimolar
1 M =
10⁶ µM
micromolar
Dilution
C₁V₁ = C₂V₂
stock formula

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 calculator showing grams of solute needed from concentration, volume and molecular weight

Molarity Formula and Equations

To findFormulaUnits
MolarityM = n ÷ V = mass ÷ (MW × V)mol/L
Mass neededmass = M × V × MWg
VolumeV = mass ÷ (M × MW) = n ÷ ML
Molesn = M × V = mass ÷ MWmol
DilutionC₁V₁ = C₂V₂ → V₁ = C₂V₂ ÷ C₁any matching units
mg/mL to molarityM = (mg/mL) ÷ MWmol/L
Molarity of % stockM = (% ÷ 100 × density × 1000) ÷ MWmol/L
Mass concentrationg/L = M × MWg/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

  1. Pick what you want to find: Choose Mass (grams needed), Volume, Molarity, Dilution, mg/mL ↔ M, or % stock → M.
  2. Enter the known values: Type the values you know and pick their units (M, mM, µM, nM; g, mg; L, mL, µL).
  3. 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.
  4. Read the answer and steps: The result updates as you type, with the working shown step by step. Copy it with one click.
ModeYou enterYou get
Mass (g)Concentration, volume, MWGrams (or mg, µg) to weigh
VolumeMass, concentration, MWVolume of solution
MolarityMass, volume, MWM, mM, moles and g/L
DilutionAny three of C₁, V₁, C₂, V₂The fourth, diluent to add, dilution factor
Serial dilutionStock, step volume, target listVolume to transfer at each step
mg/mL ↔ MMass or molar concentration, MWAll units: M, mM, µM, nM, mg/mL, µg/mL
% stock → M% w/w, density, MWStock 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 makeWorkingWeigh
1,500 mL of 0.2 M NaCl0.2 × 1.5 × 58.4417.53 g
250 mL of 0.3 M CaCl₂0.3 × 0.250 × 110.988.324 g
1 L of 100 mM, MW 1100.1 × 1 × 11011 g
10 mL of 1 mM, MW 635.140.001 × 0.010 × 635.146.351 mg
150 L of 0.003 M NaCl0.003 × 150 × 58.4426.3 g
2.5 mol of NaCl2.5 × 58.44146.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

SampleMolar massConcentrationMolarity
IgG antibody145.8 kDa0.85 mg/mL5.83 µM
IgG antibody150 kDa30 µg/mL200 nM
BSA66.4 kDa1 mg/mL15.1 µM
Plasmid, 3,000 bp dsDNA1,853,916 g/mol100 ng/µL53.9 nM
Retrorsine (drug)351.4 g/mol7.2 mg/mL20.5 mM
NaCl58.44 g/mol11.69 g/L0.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/wDensity (g/mL)MolaritymL for 1 L of 1 M
Hydrochloric acid 37%371.1912.1 M82.8
Sulfuric acid 96%961.8418 M55.5
Nitric acid 70%701.4115.7 M63.8
Phosphoric acid 85%851.68514.6 M68.4
Acetic acid, glacial99.71.04917.4 M57.4
Ammonia solution 28%280.914.8 M67.6
Hydrogen peroxide 30%301.119.79 M102
Sodium hydroxide 50%501.5219 M52.6
Formic acid 88%881.222.9 M43.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:

StepTargetTake of previousAdd diluentDilution factor
10.75 M168.8 mL56.25 mL1.333×
2250 mM75 mL150 mL3×
3125 µM112.5 µL224.9 mL2,000×
4100 nM180 µL224.8 mL1,250×

A 1:10 dilution means 1 part stock + 9 parts diluent (dilution factor 10).

Molarity Units

SymbolNameEqual to
M or mol/LMolar1 mol/L
mol dm⁻³Moles per cubic decimeter1 M
mMMillimolar10⁻³ M
µMMicromolar10⁻⁶ M
nMNanomolar10⁻⁹ M
pMPicomolar10⁻¹² M
mmol/LMillimoles per liter1 mM

Molar Masses of Common Lab Chemicals

ChemicalFormulaMolar mass (g/mol)g for 1 L of 1 M
Sodium chloride (NaCl)NaCl58.4458.44 g
Potassium chloride (KCl)KCl74.5574.55 g
Sodium hydroxide (NaOH)NaOH40.0040.00 g
Hydrochloric acid (HCl)HCl36.4636.46 g
Sulfuric acid (H₂SO₄)H2SO498.0798.07 g
Nitric acid (HNO₃)HNO363.0163.01 g
Acetic acid (CH₃COOH)C2H4O260.0560.05 g
Ammonia (NH₃)NH317.0317.03 g
Phosphoric acid (H₃PO₄)H3PO497.9997.99 g
Calcium chloride (CaCl₂)CaCl2110.98110.98 g
Calcium chloride dihydrateCaCl2·2H2O147.01147.01 g
Magnesium chloride hexahydrateMgCl2·6H2O203.30203.30 g
Magnesium sulfate heptahydrateMgSO4·7H2O246.47246.47 g
Copper(II) sulfate pentahydrateCuSO4·5H2O249.68249.68 g
Sodium bicarbonate (NaHCO₃)NaHCO384.0184.01 g
Sodium carbonate (Na₂CO₃)Na2CO3105.99105.99 g
Potassium phosphate monobasic (KH₂PO₄)KH2PO4136.08136.08 g
Sodium phosphate dibasic (Na₂HPO₄)Na2HPO4141.96141.96 g
Potassium permanganate (KMnO₄)KMnO4158.03158.03 g
Silver nitrate (AgNO₃)AgNO3169.87169.87 g
Glucose (C₆H₁₂O₆)C6H12O6180.16180.16 g
Sucrose (C₁₂H₂₂O₁₁)C12H22O11342.30342.30 g
UreaCH4N2O60.0660.06 g
EthanolC2H6O46.0746.07 g
GlycineC2H5NO275.0775.07 g
Tris baseC4H11NO3121.14121.14 g
Tris-HClC4H11NO3·HCl157.59157.59 g
HEPESC8H18N2O4S238.30238.30 g
EDTA disodium dihydrateC10H14N2Na2O8·2H2O372.24372.24 g
SDS (sodium dodecyl sulfate)C12H25NaO4S288.38288.38 g
DMSOC2H6OS78.1378.13 g
L-GlutamineC5H10N2O3146.15146.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 M1
0.01 M HCl[H⁺] = 0.01 M2
0.001 M HNO₃[H⁺] = 0.001 M3
0.01 M NaOH[OH⁻] = 0.01 M12
0.1 M NaOH[OH⁻] = 0.1 M13

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

UnitDefinitionChanges with temperature?
Molarity (M)Moles of solute per liter of solutionYes (volume changes)
Molality (m)Moles of solute per kg of solventNo
Normality (N)Equivalents per liter (N = M × n, e.g. 1 M H₂SO₄ = 2 N)Yes
% w/vGrams of solute per 100 mL of solutionYes
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.
Himanshu Grewal

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.

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/