HomeLab, Chemistry & Measurement ToolsMolarity Calculator with Steps | Mass, Dilution & pH

Molarity Calculator with Steps | Mass, Dilution & pH

Molarity Calculator

Calculate molarity from grams, moles, mg/mL, a reagent label, pH or a titration, with every step, the uncertainty, a figure and four charts. Also does dilution (C1V1 = C2V2), protein and DNA molarity, molality and normality.

LabSolution PrepStep by StepWith UncertaintyAP Chemistry LabGen Chem LabFree

⚡ 0. Quick Answer

A molarity calculator divides moles of solute by liters of solution: M = n ÷ V, where n = mass ÷ molar mass. 2.922 g of NaCl (58.44 g/mol) made up to 250.0 mL gives 0.05000 mol ÷ 0.2500 L = 0.20000 ± 0.00011 M (k = 2).

M = n ÷ V = m ÷ (MW × V)

Rule of thumb: volume is the final solution volume in liters, not the water you add. 250 mL is 0.2500 L, so 0.05000 mol in it is 0.2000 M, not 0.0002 M.

⭐ Key Takeaways

  • A molarity calculator uses M = n ÷ V; 2.922 g of NaCl in 250.0 mL is 0.2000 M.
  • To find grams from molarity, multiply: m = M × V × MW, so 1.000 M Tris in 500 mL needs 60.69 g at 99.8% purity.
  • Dilution keeps moles constant: C1V1 = C2V2, so 5.00 µL of 10.0 mM stock makes 1.000 mL of 50.0 µM.
  • Concentrated HCl at 37.3% and 1.18 g/mL is about 12.1 M; take 82.8 mL for 1 L of 1.00 M, adding acid to water.
  • For a weak acid, pH depends on Ka as well as molarity: 0.100 M acetic acid has pH 2.875, not 1.

📚 1. What Is a Molarity Calculator?

Molarity (symbol M or c) is the amount of solute, in moles, in one liter of solution. Its unit is mol/L, written M and read "molar". A molarity calculator does the conversions that sit around that one definition: grams to moles with the molar mass, milliliters to liters, purity and hydrate corrections, dilution of a stock, label percent to molarity for concentrated acids, mg/mL to molarity for proteins and DNA, pH to molarity, and the average molarity from a set of titrations.

A worked one-liner: 2.922 g of NaCl ÷ 58.44 g/mol = 0.05000 mol; 0.05000 mol ÷ 0.2500 L = 0.2000 M. With a balance good to ±0.2 mg and a Class A 250 mL flask (±0.12 mL, ASTM E288), the expanded uncertainty is ±0.00011 M at k = 2, about 0.06%.

Who uses it: AP Chemistry, NGSS and IB students writing lab reports; college general chemistry and quantitative analysis students; pharmacy, nursing and pre-med students; biology and biotech labs making buffers, media and DNA or protein solutions; QC analysts in FDA-regulated pharma; EPA environmental labs, water utilities, food and clinical labs; and lab technicians who prepare reagents every day. It replaces the separate "mass molarity", "dilution", "reconstitution" and "concentration" calculators that supplier sites offer one at a time.

Quick answers to the questions people ask most

Is molarity the same as concentration?

Molarity is one kind of concentration: moles of solute per liter of solution. Concentration is the wider word and also covers mass per volume (mg/mL), percent (w/w, w/v), molality (mol/kg) and ppm. To turn mg/mL into molarity, divide by the molar mass; 5.844 mg/mL of NaCl is 0.1000 M.

What is the molarity of water?

Pure water at 25 °C is about 55.35 M. One liter weighs 997.05 g (Tanaka et al., 2001), and 997.05 g ÷ 18.015 g/mol = 55.35 mol. At 4 °C, where water is densest, the value rises to 55.51 M. That is why water is left out of most equilibrium expressions.

How do I make a 1 M solution?

Weigh one molar mass in grams per liter, dissolve it in less water than you need, then make up to the mark. For 1 M NaCl, weigh 58.44 g and make up to 1.000 L, or 5.844 g in a 100.0 mL flask. For a hydrate or an impure reagent, use the hydrate molar mass and divide by the purity.

How much solvent do I add to a vial to reconstitute it to a set molarity?

Volume = mass ÷ (molarity × molar mass). A vial holding 10.0 mg of a compound with MW 500.0 g/mol needs 0.0100 g ÷ (0.0100 M × 500.0 g/mol) = 0.00200 L, so add 2.00 mL for a 10.0 mM stock. Use Molarity from mass mode and solve for Volume.

What are the units of molarity?

Molarity is measured in moles per liter, mol/L, written M. Smaller units follow the metric prefixes: 1 M = 1000 mM = 106 µM = 109 nM. Millimoles per milliliter (mmol/mL) is numerically the same as mol/L, which makes titration arithmetic faster.

Why do chemists use molarity?

Reactions happen mole to mole, but in the lab you measure volumes with pipettes, burettes and flasks. Molarity links the two: moles = molarity × liters. That one step drives titrations, buffer recipes, dilutions and every solution stoichiometry problem from AP Chemistry to an FDA-regulated QC lab.

Bench note from the StatsUnlock Team: on a 250 mL Class A flask, the flask tolerance carries about 98% of the uncertainty in a weighed molarity, and the 0.1 mg balance only 2%. Weighing 10 times more solid into the same flask barely improves the result; preparing the solution by mass, or using a calibrated flask, does. The most common lab error is not the arithmetic at all: it is using the anhydrous molar mass for a hydrate bottle, which makes CuSO4·5H2O solutions 36% weak. Studies of first-year students find that about half cannot reason correctly with molarity even after instruction (Raviolo et al., 2021), which is why this molarity calculator shows every step.

How a molarity calculator links grams, moles and liters 2.922 g NaCl divided by 58.44 g/mol gives 0.05000 mol; divided by 0.2500 L gives 0.2000 M. Mass 2.922 g NaCl weighed Moles 0.05000 mol n = m ÷ MW Molarity 0.2000 M M = n ÷ V ÷ 58.44 ÷ 0.2500 L Reverse the arrows (×) to get grams from molarity: m = M × V × MW
The two steps every molarity calculation uses. Going left to right gives molarity from grams; right to left gives the mass to weigh.
Concentration unitDefinitionChanges with temperature?Use it for
Molarity (M)mol solute per L of solutionYes, slightly (volume expands)Bench solutions, titrations, stoichiometry
Molality (m)mol solute per kg of solventNoFreezing point and boiling point problems
Normality (N)equivalents per L (N = n × M)YesOlder titration and water-testing methods
Mass concentrationg/L, mg/mL, µg/mLYesProteins, antibodies, drugs, reconstitution
Percent (w/w, w/v, v/v)g per 100 g, g per 100 mL, mL per 100 mLw/w: no; w/v and v/v: yesReagent labels, saline, ethanol

Since the 2019 revision of the SI, one mole is exactly 6.022 140 76 × 1023 entities (Tiesinga et al., 2021). Molar masses on this page use the IUPAC standard atomic weights (Prohaska et al., 2022).

🧮 2. Enter Your Problem

Type it like this: NaCl, NaOH, C6H12O6, CuSO4.5H2O, Ca(OH)2. Capitals matter.

Use the form on the bottle, hydrate included. Protein? 66.5 kDa = 66500 g/mol.

⚖️ Uncertainty inputs (tolerances, ±)

Weighing by difference on a 0.1 mg balance: about ±0.2 mg.

Usually negligible next to the glassware.

Each ±a is treated as a rectangular distribution, u = a/√3, and combined in quadrature; U = 2u (JCGM 100:2008). Tolerances in Section 12.

📊 3. Results and Step-by-Step Working

Load a sample or type your values above, then press Calculate Molarity. The answer with its uncertainty, the working, every step, a figure, four charts and the exports will appear here.

🧠 4. Understanding Your Molarity Result, In Detail

4.1 What the number means

___

4.2 How sure you can be

___

4.3 Is it a sensible size?

___

4.4 The detail that changes the answer

___

4.5 What to do next

___

4.6 Molarity is per liter of solution, not of solvent

Every result the molarity calculator gives assumes the solution was made up to a known final volume.

Dissolving 0.05000 mol of NaCl in 250.0 mL of water gives a little more than 250.0 mL of solution, so the molarity is slightly below 0.2000 M. That is why the method is "dissolve, then make up to the mark" in a volumetric flask. For very dilute water solutions the difference is tiny; for 1 M and above, or for solvents other than water, it matters.

4.7 Which input usually dominates the uncertainty

For the headline solution the flask tolerance (±0.12 mL on 250 mL) carries about 98% of the variance and the balance (±0.2 mg on 2.922 g) only 2%. Weighing more solid barely helps; a larger flask, a calibrated flask, or preparing the solution by mass (gravimetrically) helps most. For small masses (under about 50 mg) the balance takes over. Purity often dominates for reagents sold as "≥98%".

4.8 Temperature

Class A glassware is calibrated at 20 °C (68 °F). Water expands by about 0.02% per °C near room temperature, so a solution made up at 25 °C (77 °F) is about 0.1% weaker than one made at 20 °C. Molality, which uses mass, does not change with temperature.

✍ 5. How to Write the Molarity Result

Press Calculate above to fill all five examples with your result.

1. Lab report results sentence
___
📌 Conventions
  • Give the value with its uncertainty and k: 0.20000 ± 0.00011 M (k = 2).
  • Round U to 2 significant figures and the value to the same decimal place.
  • State the temperature (20 °C) and the glassware class.
  • Write M with a space after the number: 0.2000 M, not 0.2000M.
2. QC record line
___
📌 Conventions
  • Fill in the sample ID, analyst and date by hand or in the LIMS.
  • Record the lot number of the solid and the balance and flask IDs.
  • Under FDA 21 CFR Part 211 and GLP, every reagent label carries name, concentration, date made, expiry and initials.
3. Method or validation report line
___
📌 Conventions
  • Name the uncertainty guide (JCGM 100:2008) and the glassware standard (ASTM E288 or ISO 1042).
  • Say whether tolerances were treated as rectangular or triangular.
  • For primary standards, give the certificate purity and its uncertainty.
4. Exam or practical answer
___
📌 Conventions
  • Show the formula, the substitution with units, and the answer with units.
  • Keep the same number of significant figures as the least precise measurement.
  • Convert mL to L before dividing.
5. Plain text for chat or a forum
___
📌 Conventions
  • Write subscripts as plain numbers when the platform cannot show them (H2SO4).
  • Say what was solved for so readers can check it.

∑ 6. What Is the Molarity Formula? All Formulas Used

①
Molarity, the definition
M = n ÷ V
MMolarity, mol/L (M)
nAmount of solute, mol
VVolume of the final solution, L (not the volume of water added)
Example0.05000 mol ÷ 0.2500 L = 0.2000 M
②
Molarity from mass, and mass from molarity
M = (m × p) ÷ (MW × V)  ·  m = (M × V × MW) ÷ p
mMass weighed, g
MWMolar mass of the form weighed, g/mol (hydrate water included)
pPurity as a fraction (99.8% = 0.998); 1 for pure solids
Example2.922 g ÷ (58.44 g/mol × 0.2500 L) = 0.2000 M
③
Dilution
C1V1 = C2V2  ·  dilution factor = C1 ÷ C2 = V2 ÷ V1
C1, V1Stock concentration and the volume taken
C2, V2Final concentration and final volume (same units as C1, V1)
RuleC2 must be less than C1; dilution cannot concentrate
ExampleV1 = 50.0 µM × 1.000 mL ÷ 10.0 mM = 5.00 µL
④
mg/mL to molarity (proteins and DNA too)
M = (mass concentration in g/L) ÷ MW  ·  MW(dsDNA) = bp × 617.96 + 36.04
g/LSame number as mg/mL; µg/mL ÷ 1000 = g/L
ProteinMW in g/mol = kDa × 1000. BSA 66.5 kDa at 2.00 mg/mL = 30.1 µM
ssDNAMW = nt × 308.97 + 18.02 g/mol
ppm1 ppm = 1 mg/L only in dilute water solutions (density about 1 g/mL)
⑤
Concentrated reagent, normality and molality
M = (w × ρ × 10) ÷ MW  ·  N = neq × M  ·  m = 1000M ÷ (1000ρ − M·MW)
wAssay, % w/w from the label
ρDensity of the solution, g/mL
neqReacting H+, OH− or electrons per formula unit (2 for H2SO4)
Example37.3% HCl, 1.18 g/mL: 37.3 × 1.18 × 10 ÷ 36.458 = 12.07 M
⑥
pH from molarity
Strong: [H+] = (nC + √((nC)2 + 4Kw)) ÷ 2  ·  Weak: [H+] = (−Ka + √(Ka2 + 4KaC)) ÷ 2
pH−log10[H+]; pOH = pKw − pH
Kw1.0 × 10−14 at 25 °C; larger when warmer
Example0.100 M acetic acid, Ka = 1.8 × 10−5: [H+] = 1.33 × 10−3 M, pH 2.875
Molarity from pHStrong acid: C = ([H+] − [OH−]) ÷ n. Weak acid: C = x + x2 ÷ Ka
⑦
Titration, average molarity and uncertainty
Ma = CtVt(a/b) ÷ Va  ·  mean ± t·s/√n  ·  u(M)/M = √Σ(ui/xi)2
a, bCoefficients of analyte and titrant in the balanced equation
sStandard deviation with n − 1; t with n − 1 degrees of freedom
uiStandard uncertainty of each input; a tolerance ±a gives u = a/√3 (rectangular)
ExampleFlask 0.12/√3/250 and balance 0.0002/√3/2.922 give u/M = 0.028%; U = 2u = 0.00011 M

🔀 7. How Is Molarity Calculated? Flowchart, Step by Step

This flowchart shows how to calculate molarity from a weighed solid, using the same worked problem as Sections 0, 9, 10, 11 and 14: 2.922 g of NaCl made up to 250.0 mL in a Class A flask.

Start or result Data step Calculation step Yes or no check
StartA solid solute and a volumetric flaskNaCl, analytical balance (0.1 mg), Class A 250 mL flask
CheckIs the bottle a hydrate, or is the solid wet or impure?
NoNaCl is anhydrous and 99%+ pure. Use MW = 58.44 g/mol.
YesUse the hydrate MW (CuSO4·5H2O 249.68), dry hygroscopic solids, and enter the purity.
1
Weigh by differencem = 2.922 g (±0.2 mg)
2
Dissolve, transfer, make up to the mark at 20 °CV = 250.0 mL = 0.2500 L (±0.12 mL, ASTM E288)
3
Convert grams to molesn = m ÷ MW2.922 ÷ 58.44 = 0.05000 mol
4
Divide by liters of solutionM = n ÷ V0.05000 ÷ 0.2500 = 0.2000 M
CheckDid you divide by liters, not milliliters?
Yes0.2000 M is a normal bench molarity. Carry on.
No, stop0.05000 ÷ 250 = 0.0002 is 1000 times too small. Redo with 0.2500 L.
5
Combine the uncertaintiesu/M = √((0.0002/√3/2.922)2 + (0.12/√3/250)2)u/M = 0.0280%, U = 2u = 0.00011 M
CheckDoes n ÷ V give the molarity back?
Yes0.05000 ÷ 0.2500 = 0.2000 M. Verified.
NoA unit was mixed (mg with g, mL with L). Recheck step 2.
Result0.20000 ± 0.00011 M NaClk = 2, about 95% coverage; label the flask with name, molarity, date, initials

📝 8. How to Use This Molarity Calculator

  1. Pick what you want to calculate. Choose a mode at the top of Section 2: molarity from mass, moles, dilution, mg/mL, a concentrated acid, pH, titration, or molality and normality.
  2. Load a sample or start from your own numbers. The sample menu has ten worked problems. Sample 1 is the NaCl headline problem. Nothing is calculated until you press Calculate.
  3. Choose what to solve for. In mass, moles, dilution and pH modes, tick the unknown. Its box turns purple and dashed, and the other boxes are the knowns.
  4. Type the formula or the molar mass. Type a formula such as NaCl or CuSO4.5H2O and the molar mass fills in from IUPAC atomic weights. For a hydrate, type the hydrate formula.
  5. Enter values with their units. Pick g, mg, mL, L, mM or µM from the unit menus. The calculator converts everything to grams, liters and mol/L.
  6. Add the tolerances. Enter the balance tolerance and pick your Class A flask. The page treats each ± value as a rectangular distribution and combines them by the GUM rule.
  7. Press Calculate Molarity. Press the button or Enter. The answer appears with its uncertainty, a Verified badge, the working, every step and a results table.
  8. Read the figure and the four charts. The figure is drawn from your numbers. The charts show the relationship, a comparison and the uncertainty budget or limits.
  9. Copy the write-up. Section 5 fills five ready sentences: lab report, QC record, method line, exam answer and plain text. Section 20 fills a methods sentence.
  10. Export or run a batch. Download Doc or PDF to keep a record. For many solutions, use the Batch tab: one line per solution, or upload a CSV or Excel file.

📈 9. How to Calculate Molarity in Excel

Excel has no MOLARITY function, but you can rebuild this molarity calculator in one row of cells. The sheet below repeats the headline problem (2.922 g NaCl in 250.0 mL) and adds the uncertainty, so the numbers match Sections 0, 7, 10, 11 and 14.

The whole thing in one cell: with mass in A2, molar mass in B2 and volume in mL in C2, type =A2/B2/(C2/1000). It returns 0.2.

9.1 The functions you need

You wantExcel formulaNote
Moles from grams=A2/B2Mass ÷ molar mass
Molarity=D2/(C2/1000)Divide by liters, not mL
Grams to weigh=E2*(C2/1000)*B2/(H2/100)H2 = purity %
Dilution V1=K2*L2/J2C2 in K2, V2 in L2, C1 in J2; same units for both concentrations
Molarity from % and density=W2*RHO2*10/MW237.3% HCl gives 12.07 M
pH of a strong acid=-LOG10(E2)LOG10, not LN
pH of a weak acid=-LOG10((-Ka+SQRT(Ka^2+4*Ka*C))/2)Exact quadratic
Average molarity of trials=AVERAGE(M2:M5)Plus STDEV.S, never STDEV.P
95% half-width=CONFIDENCE.T(0.05,STDEV.S(M2:M5),COUNT(M2:M5))t-based, right for 3 or 4 trials
Uncertainty (u)=E2*SQRT((0.0002/SQRT(3)/A2)^2+(0.12/SQRT(3)/C2)^2)Kragten-style; U = 2u

9.2 Step by step

1 Enter the measurements

Mass in A2, molar mass in B2, final volume in mL in C2. Numbers only, no units in the cells.

molarity.xlsxA2fx2.922ABC1Mass (g)MW (g/mol)Vol (mL)22.92258.44250.0

Row 2 holds 2.922 g, 58.44 g/mol and 250.0 mL.

2 Moles

In D2 type the mass divided by the molar mass.

molarity.xlsxD2fx=A2/B2ABCD1Mass (g)MW (g/mol)Vol (mL)Moles22.92258.44250.00.05000

D2 shows 0.05000 mol.

3 Molarity

In E2 divide the moles by the volume in liters. Format the cell to 5 decimal places.

molarity.xlsxE2fx=D2/(C2/1000)ABCDE1Mass (g)MW (g/mol)Vol (mL)MolesMolarity (M)22.92258.44250.00.050000.20000

E2 shows 0.20000 M.

4 Uncertainty

In F2 combine the balance (0.0002 g) and flask (0.12 mL) tolerances; in G2 multiply by 2.

molarity.xlsxF2fx=E2*SQRT((0.0002/SQRT(3)/A2)^2+(0.12/SQRT(3)/C2)^2)ABCDEFG1Mass (g)MW (g/mol)Vol (mL)MolesMolarity (M)u (M)U, k=222.92258.44250.00.050000.200005.60E-050.00011

F2 shows 5.60E-05 M; G2 shows U = 0.00011 M at k = 2.

9.3 Awkward cases

  • Hydrates: put the hydrate molar mass in B2 (249.68 for CuSO4·5H2O).
  • Volume in µL: divide by 1 000 000 instead of 1000, or convert with =CONVERT(C2,"ul","l"). Excel spells microliter as "ul" or "uL".
  • Scientific notation: type 1.8E-5 for 1.8 × 10−5; Excel shows small molarities as 3.01E-05.

9.4 Why Excel may differ from R or Python

SituationWhat happensFix
RoundingROUND rounds half away from zero; R and Python round half to evenRound only the final answer
Standard deviationSTDEV.P divides by nUse STDEV.S (n − 1) for trials
Displayed digitsCell format hides digits but keeps themNot an error; the stored value is full precision

9.5 Charting

Select mass and molarity columns for several solutions, insert a Scatter chart, add a linear trendline and tick "Display equation". The slope is 1 ÷ (MW × V). For titration trials, use custom error bars from a cell holding the CI half-width, not Excel's default 5%.

9.6 Errors you may see

  • #DIV/0!: the volume or molar mass cell is empty.
  • #VALUE!: a unit was typed in a number cell ("250 mL").
  • #NUM!: LOG10 of zero or a negative molarity.

📈 10. How to Calculate Molarity in R

A complete, copy-and-run script that reproduces the molarity calculator for the headline problem. It prints the molarity, its expanded uncertainty, a check and a verdict, averages four titrations with a t-based confidence interval, and saves one 300 dpi figure.

No packages needed. Base R has sd() (n − 1) and qt(). Optional: the errors or metRology packages propagate uncertainty automatically.

10.1 The complete script

R, base only, saves molarity_vs_mass.png

# Molarity with GUM uncertainty and average molarity from a titration
# StatsUnlock - https://statsunlock.com/molarity-calculator/   Base R only.

# ---- 1. Inputs (units in the comments) ----
m_g   <- 2.922    # NaCl mass, g
tol_m <- 0.0002   # balance tolerance, g (+/- 0.2 mg)
V_mL  <- 250.0    # final volume, mL
tol_V <- 0.12     # Class A 250 mL flask tolerance, mL (ASTM E288)
MW    <- 58.44    # molar mass of NaCl, g/mol

# ---- 2. Molarity ----
n <- m_g / MW               # mol
M <- n / (V_mL / 1000)      # mol/L
cat(sprintf("n = %.5f mol\n", n))
cat(sprintf("M = %.5f M\n", M))

# ---- 3. Uncertainty: rectangular tolerances, u = a / sqrt(3) ----
rel_u <- sqrt((tol_m / sqrt(3) / m_g)^2 + (tol_V / sqrt(3) / V_mL)^2)
U <- 2 * rel_u * M
cat(sprintf("U (k = 2) = %.5f M, relative %.3f%%\n", U, 200 * rel_u))

# ---- 4. Check and verdict ----
stopifnot(abs(n / (V_mL / 1000) - M) < 1e-12)
cat("Check: n / V reproduces M. Verified.\n")
cat("Verdict:", if (200 * rel_u <= 0.5) "precise enough for a bench standard (U under 0.5%)\n" else "check the glassware\n")

# ---- 5. Average molarity from four titrations (HCl vs 0.1000 M NaOH, 1:1) ----
titres <- c(24.85, 24.90, 24.80, 24.87)       # mL NaOH
Ma <- 0.1000 * titres * (1 / 1) / 25.00        # mol/L HCl, each trial
s  <- sd(Ma)                                   # n - 1
half <- qt(0.975, length(Ma) - 1) * s / sqrt(length(Ma))
cat(sprintf("Average molarity = %.5f +/- %.5f M (95%% CI), SD = %.5f M, RSD = %.2f%%\n",
            mean(Ma), half, s, 100 * s / mean(Ma)))

# ---- 6. One 300 dpi figure ----
png("molarity_vs_mass.png", width = 6, height = 4, units = "in", res = 300)
mass <- seq(0, 2 * m_g, length.out = 50)
plot(mass, mass / MW / (V_mL / 1000), type = "l", lwd = 2, col = "#2563eb",
     xlab = "Mass of NaCl (g)", ylab = "Molarity (M)", main = "Molarity vs mass, 250.0 mL flask")
points(m_g, M, pch = 19, col = "#9333ea", cex = 1.5)
dev.off()

10.2 Output

n = 0.05000 mol
M = 0.20000 M
U (k = 2) = 0.00011 M, relative 0.056%
Check: n / V reproduces M. Verified.
Verdict: precise enough for a bench standard (U under 0.5%)
Average molarity = 0.09942 +/- 0.00027 M (95% CI), SD = 0.00017 M, RSD = 0.17%

10.3 Traps

  • round() rounds half to even (0.125 becomes 0.12); format with sprintf instead.
  • log() is the natural log; pH needs log10().
  • sd() already uses n − 1; old scripts with var(x)*(n-1)/n give the population value.

10.4 What each part does

BlockPurpose
1. InputsMass, tolerances, volume and molar mass, units in the comments
2. Molarityn = m ÷ MW, then M = n ÷ V in liters
3. UncertaintyEach ± tolerance becomes a/√3, combined in quadrature; U = 2u
4 to 5Check that n ÷ V returns M, print a verdict, then average the titrations with sd() and qt()
Last blockMolarity vs mass line with your solution marked, saved at 300 dpi

10.5 Adapting it

Change the five input lines for your solute. For a hydrate, change MW. For a dilution, add V1 = C2 * V2 / C1. For a weak acid pH, use x = (-Ka + sqrt(Ka^2 + 4*Ka*C)) / 2 and pH = -log10(x).

📈 11. How to Calculate Molarity in Python

A complete, copy-and-run script that reproduces the molarity calculator for the headline problem. It prints the molarity, its expanded uncertainty, a check and a verdict, averages four titrations with a t-based confidence interval, and saves one 300 dpi figure.

numpyscipyuncertaintiesmatplotlib

Install once: pip install numpy scipy uncertainties matplotlib

11.1 The complete script

Python with NumPy, SciPy, uncertainties and Matplotlib, saves molarity_vs_mass.png

# Molarity with GUM uncertainty, a Monte Carlo check, and average molarity from a titration
# StatsUnlock - https://statsunlock.com/molarity-calculator/
import numpy as np
from scipy import stats
from uncertainties import ufloat
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt

# ---- 1. Inputs (units in the comments) ----
m_g, tol_m = 2.922, 0.0002      # NaCl mass (g) and balance tolerance (g, +/-0.2 mg)
V_mL, tol_V = 250.0, 0.12       # final volume (mL) and Class A flask tolerance (mL, ASTM E288)
MW = 58.44                      # molar mass of NaCl (g/mol)

# ---- 2. Molarity ----
n = m_g / MW                    # mol
M = n / (V_mL / 1000)           # mol/L
print(f"n = {n:.5f} mol")
print(f"M = {M:.5f} M")

# ---- 3. GUM uncertainty: rectangular tolerances, u = a/sqrt(3) ----
rel_u = np.sqrt((tol_m / np.sqrt(3) / m_g) ** 2 + (tol_V / np.sqrt(3) / V_mL) ** 2)
U = 2 * rel_u * M
print(f"U (k = 2) = {U:.5f} M, relative {100 * 2 * rel_u:.3f}%")

# same answer with the uncertainties package
Mu = ufloat(m_g, tol_m / np.sqrt(3)) / MW / (ufloat(V_mL, tol_V / np.sqrt(3)) / 1000)
print(f"uncertainties package: u = {Mu.s:.3e} M")

# ---- 4. Monte Carlo check (JCGM 101), 100 000 draws ----
rng = np.random.default_rng(1)
sim = rng.uniform(m_g - tol_m, m_g + tol_m, 100_000) / MW / (rng.uniform(V_mL - tol_V, V_mL + tol_V, 100_000) / 1000)
lo, hi = np.percentile(sim, [2.5, 97.5])
print(f"Monte Carlo: SD = {sim.std(ddof=1):.3e} M, 95% interval {lo:.5f} to {hi:.5f} M")

# ---- 5. Check and verdict ----
assert abs(n / (V_mL / 1000) - M) < 1e-12
print("Check: n / V reproduces M. Verified.")
print("Verdict:", "precise enough for a bench standard (U under 0.5%)" if 200 * rel_u <= 0.5 else "check the glassware")

# ---- 6. Average molarity from four titrations (HCl vs 0.1000 M NaOH, 1:1) ----
titres = np.array([24.85, 24.90, 24.80, 24.87])     # mL of NaOH
Ma = 0.1000 * titres * (1 / 1) / 25.00              # mol/L of HCl in each trial
s = Ma.std(ddof=1)                                  # n - 1, like Excel STDEV.S
half = stats.t.ppf(0.975, len(Ma) - 1) * s / np.sqrt(len(Ma))
print(f"Average molarity = {Ma.mean():.5f} +/- {half:.5f} M (95% CI), SD = {s:.5f} M, RSD = {100 * s / Ma.mean():.2f}%")

# ---- 7. One 300 dpi figure ----
mass = np.linspace(0, 2 * m_g, 50)
fig, ax = plt.subplots(figsize=(6, 4))
ax.plot(mass, mass / MW / (V_mL / 1000), color="#2563eb", lw=2, label="250.0 mL flask")
ax.plot(m_g, M, "o", color="#9333ea", ms=9, label=f"your solution, {M:.4f} M")
ax.set_xlabel("Mass of NaCl (g)"); ax.set_ylabel("Molarity (M)"); ax.legend(frameon=False)
fig.tight_layout(); fig.savefig("molarity_vs_mass.png", dpi=300)

11.2 Output

n = 0.05000 mol
M = 0.20000 M
U (k = 2) = 0.00011 M, relative 0.056%
uncertainties package: u = 5.599e-05 M
Monte Carlo: SD = 5.590e-05 M, 95% interval 0.19991 to 0.20009 M
Check: n / V reproduces M. Verified.
Verdict: precise enough for a bench standard (U under 0.5%)
Average molarity = 0.09942 +/- 0.00027 M (95% CI), SD = 0.00017 M, RSD = 0.17%

11.3 Traps

  • numpy.std() defaults to ddof=0 (divide by n). Use std(ddof=1) for trials.
  • round() rounds half to even; format with f-strings.
  • math.log() is natural; use math.log10() for pH.

11.4 What each part does

BlockPurpose
1. InputsMass, tolerances, volume and molar mass, units in the comments
2. Molarityn = m ÷ MW, then M = n ÷ V in liters
3. UncertaintyEach ± tolerance becomes a/√3, combined in quadrature; U = 2u
4 to 5The uncertainties package gives the same u; a 100 000-draw Monte Carlo (JCGM 101) agrees to 0.2%; then the titration average with SciPy t
Last blockMolarity vs mass line with your solution marked, saved at 300 dpi

11.5 Adapting it

Change the five input lines for your solute. For a hydrate, change MW. For a dilution, add V1 = C2 * V2 / C1. For a weak acid pH, use x = (-Ka + sqrt(Ka^2 + 4*Ka*C)) / 2 and pH = -log10(x).

📋 12. Molarity Reference Tables: Glassware, Reagents and Molar Masses

12.1 Class A volumetric flask tolerances (ASTM E288)

Capacity (mL)Tolerance (± mL)Relative toleranceStandard uncertainty a/√3 (mL)
100.020.200%0.0115
250.030.120%0.0173
500.050.100%0.0289
1000.080.080%0.0462
2500.120.048%0.0693
5000.200.040%0.1155
10000.300.030%0.1732

Source: ASTM E288 Class A, as listed by DWK Life Sciences (KIMBLE KIMAX Class A flasks, 50 to 1000 mL) and Eisco Labs ASTM listings (10 and 25 mL). ISO 1042 Class A tolerances are slightly wider for some sizes; use your flask's certificate. Calibrated to contain at 20 °C. Last checked: October 2026.

12.2 Concentrated acids and bases: molarity from the label

ReagentFormulaAssay (% w/w)Density (g/mL)Molarity (source)Molarity (this page)NormalitymL per mole
Hydrochloric acidHCl37.31.181212.0712.0782.8
Nitric acidHNO370.01.411615.6615.6663.8
Sulfuric acidH2SO496.51.841818.1136.2155.2
Acetic acid, glacialCH3COOH99.71.0617.517.6017.6056.8
Ammonia solutionNH329.00.915.315.3215.3265.3

Source: concentrated reagent table, Department of Chemistry and Biochemistry, George Mason University (S. Slayden, general chemistry lab resources). Assay and density vary by lot and supplier: read your bottle and certificate. Molarity (this page) = % × density × 10 ÷ MW with IUPAC 2021 molar masses. Last checked: October 2026.

12.3 Molar masses of common lab solutes, and grams for 1 L

CompoundFormulaMW (g/mol)g for 1 L of 1 Mg for 100 mL of 1 Mg for 250 mL of 0.1 M
Sodium chlorideNaCl58.44058.445.8441.4610
Sodium hydroxideNaOH39.99740.004.0000.9999
Potassium chlorideKCl74.54874.557.4551.8637
Hydrogen chlorideHCl36.45836.463.6460.9114
Sulfuric acidH2SO498.07298.079.8072.4518
Nitric acidHNO363.01263.016.3011.5753
Acetic acidCH3COOH60.05260.056.0051.5013
AmmoniaNH317.03117.031.7030.4258
Copper(II) sulfate, anhydrousCuSO4159.602159.6015.9603.9901
Copper(II) sulfate pentahydrateCuSO4·5H2O249.677249.6824.9686.2419
Tris baseC4H11NO3121.136121.1412.1143.0284
GlucoseC6H12O6180.156180.1618.0164.5039
SucroseC12H22O11342.297342.3034.2308.5574
Potassium hydrogen phthalate (KHP)KHC8H4O4204.222204.2220.4225.1056
Sodium carbonateNa2CO3105.988105.9910.5992.6497
Sodium bicarbonateNaHCO384.00684.018.4012.1002
Calcium chloride dihydrateCaCl2·2H2O147.008147.0114.7013.6752
Magnesium chloride hexahydrateMgCl2·6H2O203.295203.2920.3295.0824
Potassium dihydrogen phosphateKH2PO4136.084136.0813.6083.4021
Disodium EDTA dihydrateNa2H2EDTA·2H2O372.238372.2437.2249.3059
Sodium thiosulfate pentahydrateNa2S2O3·5H2O248.172248.1724.8176.2043
Potassium permanganateKMnO4158.032158.0315.8033.9508
Silver nitrateAgNO3169.874169.8716.9874.2469

Molar masses calculated from the IUPAC standard atomic weights (Prohaska et al., 2022, reference 14), conventional values for H, C, N, O, Cl, S, Mg. Last checked: October 2026.

12.4 Concentration unit conversions

FromToMultiply byExample
MmM10000.050 M = 50 mM
mMµM10000.050 mM = 50 µM
mg/mLg/L1 (same number)2.00 mg/mL = 2.00 g/L
µg/mLmg/L1 (same number)5 µg/mL = 5 mg/L
ng/µLµg/mL1 (same number)50 ng/µL = 50 µg/mL
g/LM1 ÷ MW5.844 g/L NaCl = 0.1000 M
Mg/LMW0.1000 M NaCl = 5.844 g/L
% w/vg/L100.9% saline = 9 g/L = 0.154 M
mg/dLmg/L1090 mg/dL glucose = 900 mg/L = 5.0 mM
ppm (dilute water)mg/L1 (density about 1 g/mL)2 ppm = 2 mg/L
US gallonL3.785 411 784 (exact)1 gal of 0.1 M NaCl needs 22.12 g (0.780 oz)
US fluid ouncemL29.573 529 5625 (exact)8 fl oz = 236.6 mL

Exact US customary factors from NIST Handbook 44, Appendix C. Last checked: October 2026.

12.5 Two-sided t critical values for average molarity

Trials ndf = n − 190%95%99%
216.31412.70663.657
322.9204.3039.925
432.3533.1825.841
542.1322.7764.604
652.0152.5714.032
761.9432.4473.707
871.8952.3653.499
981.8602.3063.355
1091.8332.2623.250
11101.8122.2283.169

Computed with SciPy stats.t.ppf; match Excel T.INV.2T and R qt. Last checked: October 2026.

12.6 Dixon's Q critical values (95%, r10) for a suspect titre

n345678910
Qcrit0.9700.8290.7100.6250.5680.5260.4930.466

Source: Rorabacher (1991), Analytical Chemistry 63(2), 139–146 (reference 16), r10 at 95% confidence. Last checked: October 2026.

📈 13. Molarity Example Results: Worked Problems

Eight worked problems that cover the range a molarity calculator meets: textbook, AP lab, clinical, US units, real-world, a limit case, an impossible request and a classic trap. Each number was checked in Python.

1
TEXTBOOK CASE

Glucose solution for a biology practical

Grams to moles to molarity, the classic two-step.

A student dissolves 10.0 g of glucose (C6H12O6, 180.156 g/mol) and makes it up to 500.0 mL.

m = 10.0 gMW = 180.156V = 0.5000 Ln = 0.0555 molM = 0.111 M
QuantityValueNote
Moles0.05551 mol10.0 ÷ 180.156
Molarity0.1110 M÷ 0.5000 L
Reported (3 s.f.)0.111 Mmass has 3 s.f.
Glucose: moles and molarity55.51 moles (mmol)111.0 molarity (mM)mapping: bars scaled to the larger value
55.5 mmol of glucose in 0.5000 L gives 111 mM.

What it means: The solution is 0.111 M glucose, about 20 times the glucose level of fasting blood (about 5 mM).

How to write it: "Glucose was 0.111 M (10.0 g in 500.0 mL)."

2
AP CHEMISTRY LAB

Molarity of NaOH from a weighed pellet mass

Right on paper, but NaOH is not a primary standard.

4.00 g of NaOH pellets dissolved and made up to 500.0 mL in a volumetric flask.

m = 4.00 gMW = 39.997V = 0.5000 LM = 0.200 Mstandardize
QuantityValueNote
Moles0.1000 mol4.00 ÷ 39.997
Molarity0.200 M3 s.f. from 4.00 g
True valuelowerpellets carry water and carbonate
NaOH molarity if the pellets are not pure NaOH0.2000 M100% NaOH0.1960 M98% NaOH0.1900 M95% NaOHmapping: M = 4.00 × purity ÷ 39.997 ÷ 0.5000; what-if values, not measurements
Each percent of water or carbonate in the pellets lowers the real molarity by about 1%.

What it means: The calculation gives 0.200 M, but NaOH absorbs water and CO2. Titrate it against KHP to find the true molarity before using it as a titrant.

How to write it: "NaOH (nominal 0.200 M) was standardized against KHP before use."

3
PHARMA AND CLINICAL

Normal saline: 0.9% w/v to molarity

Percent on the bag, millimolar in the textbook.

An IV bag of 0.9% w/v sodium chloride contains 9.0 g of NaCl per liter.

0.9% w/v9.0 g/LMW = 58.44154 mMabout 308 mOsm/L
QuantityValueNote
Mass concentration9.0 g/L0.9 g per 100 mL × 10
Molarity0.154 M9.0 ÷ 58.44
Millimolar154 mMNa⁺ and Cl⁻ each 154 mM
Saline: Na+ and Cl- concentrations154.0 mMNaCl154.0 mMNa⁺154.0 mMCl⁻mapping: each ion equals the NaCl molarity (full dissociation)
Each mole of NaCl gives one Na⁺ and one Cl⁻.

What it means: Normal saline is 154 mM NaCl, the textbook "154 mM" figure.

How to write it: "0.9% w/v NaCl corresponds to 0.154 M (154 mM)."

4
US UNITS

One US gallon of 0.100 M salt solution

Gallons in, grams and ounces out.

A water-treatment trainer needs 1.000 US gallon of 0.100 M NaCl.

V = 1 gal= 3.785 LM = 0.100m = 22.1 g0.780 oz
QuantityValueNote
Volume3.785 L1 US gal × 3.785 411 784
Mass of NaCl22.12 g0.100 × 3.785 × 58.44
In ounces0.780 oz÷ 28.3495 g/oz
Grams of NaCl for 0.100 M at different volumes5.844 g1 L22.12 g1 gal110.6 g5 galmapping: mass = 0.100 × V(L) × 58.44
The gallon bar is 3.785 times the liter bar.

What it means: Weigh 22.1 g (about 0.78 oz) and make up to 1 gallon. Kitchen scales are not precise enough for 3 significant figures.

How to write it: "0.100 M NaCl (1.000 US gal) needed 22.1 g of NaCl."

5
REAL WORLD

Molarity and pH of household vinegar

A 5% label becomes 0.83 M and pH 2.4.

White vinegar is labeled 5% acidity, taken as 5.0 g acetic acid per 100 mL (50 g/L). Ka = 1.8 × 10⁻⁵.

5% w/v50 g/L0.833 MpH 2.41weak acid
QuantityValueNote
Molarity0.833 M50 ÷ 60.052
[H⁺]3.86e-03 Mexact quadratic
pH2.41measured vinegar is often 2.4 to 2.6
pH 2.41 on the pH scale02468101214vinegar pH 2.41
Mapping: x = 40 + 40 × pH. A strong acid at 0.833 M would be pH 0.08; acetic acid is only 0.5% ionized.

What it means: Vinegar is about 0.83 M acetic acid with a calculated pH of 2.41.

How to write it: "5% vinegar = 0.833 M acetic acid; calculated pH 2.41 (Ka 1.8 × 10⁻⁵)."

6
LIMIT CASE

pH of 1.0 × 10⁻⁸ M HCl

The answer is not 8.

A very dilute strong acid: 1.0 × 10⁻⁸ M HCl in pure water at 25 °C.

C = 1.0e-8 MKw = 1.0e-14water dominatespH 6.98acidic, just
QuantityValueNote
Naive pH8.00−log(1.0 × 10⁻⁸): wrong, an acid cannot be basic
Exact [H⁺]1.051e-07 M(C + √(C² + 4Kw)) ÷ 2
pH6.98just below 7
pH 6.98 on the pH scale02468101214pH 6.98
Mapping: x = 40 + 40 × pH. Water's own 10⁻⁷ M H⁺ is ten times the acid's.

What it means: Below about 10⁻⁶ M, include water. The calculator does this automatically.

How to write it: "The pH of 1.0 × 10⁻⁸ M HCl is 6.98, not 8."

7
IMPOSSIBLE

Make 20 M HCl from 37% acid

You cannot dilute your way up.

A student asks for 1.00 L of 20 M HCl from the 37.3% bottle (12.07 M).

stock 12.07 Mtarget 20 MC₂ > C₁not possibleflagged
QuantityValueNote
Stock molarity12.07 M37.3 × 1.18 × 10 ÷ 36.458
Target20 Mhigher than the stock
VerdictImpossibledilution only lowers concentration
Stock vs requested molarity12.07 M37.3% stock20.00 Mrequestedmapping: fuchsia = impossible target
The requested bar is above the stock bar: no water can fix that.

What it means: HCl gas saturates near 12 M in water at room temperature. The calculator returns a fuchsia "Impossible" verdict.

How to write it: "A 20 M HCl solution cannot be prepared by diluting 12.07 M stock."

8
TRAP

Titrating sulfuric acid with the wrong mole ratio

A 1 : 1 habit doubles the answer.

25.00 mL of H2SO4 needs 21.40 mL of 0.1000 M NaOH. H2SO4 + 2 NaOH → Na2SO4 + 2 H2O.

titre 21.40 mLCt = 0.1000 Mratio 1 : 2right 0.04280 Mwrong 0.08560 M
QuantityValueNote
Moles NaOH2.140 × 10⁻³ mol0.1000 × 0.02140
Moles H₂SO₄1.070 × 10⁻³ mol÷ 2 from the equation
Molarity0.04280 M÷ 0.02500 L
If 1 : 1 used0.08560 Mtwice too high
Correct vs 1:1 answer0.04280 Mcorrect (1 : 2)0.08560 Mwrong (1 : 1)mapping: bar height proportional to molarity
The wrong bar is exactly twice the right one.

What it means: Always read the coefficients from the balanced equation. Set a = 1 and b = 2 in the titration mode.

How to write it: "H₂SO₄ was 0.04280 M (titration with 0.1000 M NaOH, 1 : 2)."

✏️ 14. How Do You Make a Molar Solution? Lab Steps (SOP)

The written method, calculator keys and a short standard operating procedure for the headline problem: prepare 250.0 mL of 0.2000 M sodium chloride. School students do this under a teacher's supervision and the school's own risk assessment.

14.1 The written method

  1. Write the formula. M = n ÷ V, n = m ÷ MW, so m = M × V × MW.
  2. Convert the volume. 250.0 mL = 0.2500 L.
  3. Moles needed. n = 0.2000 mol/L × 0.2500 L = 0.05000 mol.
  4. Mass to weigh. m = 0.05000 mol × 58.44 g/mol = 2.922 g.
  5. After weighing, recalculate from the real mass: 2.922 g ÷ 58.44 ÷ 0.2500 = 0.2000 M.
  6. Check: n ÷ V = 0.05000 ÷ 0.2500 = 0.2000 M. Units: g ÷ (g/mol) ÷ L = mol/L. ✓

14.2 On a scientific calculator

StepCasio fx-991EX / fx-82 and TI-30XS keysDisplay
Molarity from grams2.922÷58.44÷0.25=0.2
Grams from molarity0.2×0.25×58.44=2.922
Dilution V₁50×1÷10000= (µM × mL ÷ µM)0.005 mL
pH of 0.0250 M HCl(−)log0.025)=1.602059991
Uncertainty u/M√ ( (0.0002 ÷ √3 ÷ 2.922)x² + (0.12 ÷ √3 ÷ 250)x² ) =2.799 × 10⁻⁴

Use log (base 10), not ln, for pH. Key sequences checked against the Casio fx-991EX user guide layout; TI-30XS uses the same order.

14.3 The lab SOP

Purpose

Prepare 250.0 mL of 0.2000 M NaCl as a standard solution and record its molarity with uncertainty.

Equipment

Analytical balance reading to 0.1 mg; weighing boat; Class A 250 mL volumetric flask (±0.12 mL, ASTM E288) with stopper; funnel; 100 mL beaker; wash bottle; dropper.

Reagents

Sodium chloride, ACS reagent grade (≥99.0%), dried at 110 °C for 1 hour and cooled in a desiccator; deionized water (ASTM Type II or better).

Hazards and controls

Sodium chloride is not classified as hazardous under OSHA HazCom 2012 on typical supplier safety data sheets; read the current SDS for your lot. Wear safety goggles. If you use NaOH or concentrated acids in the same session, those are corrosive (GHS skin corrosion category 1): gloves, goggles, fume hood for concentrated acid, and always add acid to water. Never pipette by mouth. Dilute NaCl may go down the drain with water where local rules allow.

Procedure

  1. Rinse the flask with deionized water. It need not be dry.
  2. Tare the balance; weigh about 2.92 g NaCl into the boat by difference and record the mass to 0.1 mg.
  3. Dissolve in about 100 mL of water in the beaker.
  4. Transfer through the funnel into the flask. Rinse the beaker, funnel and boat three times into the flask.
  5. Fill to about 1 cm below the mark, let it reach room temperature (20 °C is the calibration temperature).
  6. Add water dropwise until the bottom of the meniscus sits on the mark at eye level.
  7. Stopper and invert 15 to 20 times.
  8. Calculate the molarity from the actual mass; label with name, molarity, date and initials.

Record sheet

ItemValueUnit
Mass of boat + NaCl4.6817g
Mass of boat after transfer1.7597g
Mass of NaCl transferred2.9220g
Flask volume and ID250.0 (VF-07)mL
Temperature20.5°C
Molarity0.20000 ± 0.00011M (k = 2)

Calculation

M = m ÷ (MW × V) = 2.9220 ÷ (58.44 × 0.2500) = 0.20000 M; u/M = √((0.0002/√3/2.922)² + (0.12/√3/250)²) = 0.028%; U = 0.00011 M.

Acceptance criteria

Mass within ±0.5% of the target (2.907 to 2.937 g) for a "0.2000 M" label, otherwise label the actual molarity; relative expanded uncertainty under 0.5%; solution clear with no solid. These are teaching-lab criteria; follow your course or SOP limits where they differ. Flask tolerance per ASTM E288 Class A (Section 12.1).

Sources of error and their direction

  • Solid left in the beaker or funnel: molarity lower than calculated.
  • Overshooting the mark: molarity lower.
  • Undissolved or wet NaCl: molarity lower.
  • Making up while warm, then cooling: volume shrinks, molarity higher than labeled.
  • Reading the meniscus from above (parallax): volume below the mark, molarity higher.

14.4 Practice problems

1. 5.85 g of NaCl is made up to 500.0 mL. What is the molarity?

5.85 ÷ 58.44 = 0.1001 mol; ÷ 0.5000 L = 0.200 M

2. How many grams of KCl make 250.0 mL of 0.150 M?

0.150 × 0.2500 × 74.548 = 2.80 g

3. How many moles are in 35.0 mL of 0.250 M HCl?

0.250 × 0.0350 = 8.75 × 10⁻³ mol

4. 25.0 mL of 6.00 M HCl is diluted to 500.0 mL. Final molarity?

6.00 × 25.0 ÷ 500.0 = 0.300 M

5. What volume of 12.1 M HCl makes 250.0 mL of 2.00 M?

2.00 × 250.0 ÷ 12.1 = 41.3 mL

6. Lysozyme (14.3 kDa) is at 1.25 mg/mL. Molarity in µM?

1.25 ÷ 14 300 = 8.74 × 10⁻⁵ M = 87.4 µM

7. What is the pH of 0.0250 M HCl?

pH = −log(0.0250) = 1.602

8. What is the pH of 0.050 M NH₃ (Kb 1.8 × 10⁻⁵)?

[OH⁻] = 9.4 × 10⁻⁴ M; pOH 3.03; pH 10.97

9. 20.00 mL of H₂SO₄ is neutralized by 18.40 mL of 0.1000 M NaOH. Molarity of the acid?

0.1000 × 0.01840 ÷ 2 ÷ 0.02000 = 0.04600 M

10. 2.00 M NaCl has a density of 1.07 g/mL. What is its molality?

2000 ÷ (1070 − 2.00 × 58.44) = 2.10 mol/kg

14.5 Mistakes that lose marks or fail an audit

  • Dividing by mL instead of L (answer 1000 times too small).
  • Using the anhydrous molar mass for a hydrate bottle.
  • Adding a fixed volume of water instead of making up to the mark.
  • Reporting more significant figures than the balance or glassware supports.
  • Treating NaOH or diluted acid as a primary standard without titrating it.
  • Forgetting the mole ratio in a titration (H2SO4 with NaOH is 1 : 2).
  • No label, or a label without date and initials (an audit finding under GLP and 21 CFR 211).

14.6 Pre-Lab and Post-Lab Questions

Pre-lab: Why do you make up to the mark instead of adding 250.0 mL of water?

Molarity is per liter of solution. The solid takes up volume, so adding 250.0 mL of water gives more than 250.0 mL of solution and a lower molarity.

Pre-lab: What mass of NaCl is needed for 250.0 mL of 0.2000 M?

0.2000 × 0.2500 × 58.44 = 2.922 g.

Pre-lab: Why weigh by difference?

It removes the error from solid left on the weighing boat, so the mass recorded is the mass that went into the flask.

Pre-lab: Which glassware gives the smallest volume uncertainty, a beaker, a graduated cylinder or a volumetric flask?

The Class A volumetric flask (±0.12 mL at 250 mL). A beaker is only good to about 5%.

Post-lab: You weighed 2.931 g instead of 2.922 g. What is your molarity?

2.931 ÷ 58.44 ÷ 0.2500 = 0.2006 M. Label the flask with the real value.

Post-lab: You overshot the mark by about 0.5 mL. Is the solution stronger or weaker, and by how much?

Weaker: 0.05000 mol ÷ 0.2505 L = 0.1996 M, about 0.2% low. Remake it if four figures matter.

Post-lab: Which input dominated the uncertainty and how would you reduce it?

The flask (98% of the variance). Use a calibrated flask, a larger volume, or prepare the solution by mass.

Post-lab: Your partner used CuSO4 (anhydrous) molar mass for the blue pentahydrate. Effect on the molarity?

They weighed 3.990 g instead of 6.242 g, so the solution is 0.0639 M, 36% below the 0.1000 M target.

✅ 15. When Should You Use Molarity, Molality or Normality?

Use molarity when
  • You measure volumes of solution (pipettes, burettes, flasks).
  • You do stoichiometry in solution: titrations, reactions, precipitations.
  • You make bench reagents, buffers and media.
  • You report enzyme, drug or DNA concentrations in µM or nM.
Use something else when
  • Temperature changes a lot (use molality, mol/kg).
  • You need colligative properties: freezing and boiling point (molality).
  • The solution is a mixture by mass, like a reagent bottle (% w/w).
  • Trace levels in water testing are reported in mg/L or ppm by method.

Which molarity calculator mode for which job

You haveYou wantModeReal example
Grams of a solid and a flaskMolarityMolarity from massAP Chemistry: 4.00 g NaOH in 500.0 mL = 0.200 M
A target molarityGrams to weighMolarity from mass, solve for mass1.000 M Tris, 500 mL: 60.69 g at 99.8%
A stock solutionA weaker working solutionDilution10.0 mM drug to 50.0 µM: 5.00 µL in 1.000 mL
A protein or DNA in mg/mL or ng/µLµM or nMmg/mL, protein, DNA3000 bp plasmid at 50.0 ng/µL = 27.0 nM
A reagent bottle labelMolarity and the volume to diluteConcentrated acid37.3% HCl = 12.07 M; 82.8 mL per liter of 1.00 M
A molaritypH (or the reverse)pH and molarity0.100 M acetic acid = pH 2.875
Titre volumesMolarity and the averageTitrationFour titres: 0.09942 ± 0.00027 M (95% CI)

Decision tree for pH from molarity

  • pH here follows the IUPAC definition, pH = −log a(H+), with activity taken as concentration in dilute solution (Buck et al., 2002).
  • Strong acid or base above 10−6 M → pH = −log(nC) or 14 + log(nC).
  • Strong acid or base below 10−6 M → include water (the exact formula, card ⑥).
  • Weak acid or base → solve K = x2/(C − x); the √(KC) shortcut only if x < 5% of C.
  • Buffer (weak acid plus its salt) → Henderson-Hasselbalch, not this page.
  • At the equivalence point → hydrolysis of the salt formed.

🔧 16. Common Mistakes and Troubleshooting

These are the errors that show up again and again in lab reports and exam scripts. Research on chemistry students finds the same pattern: most mistakes come from misusing C1V1 = C2V2 and from mixing up moles with molarity, not from the arithmetic (Chong, 2016; Rusek et al., 2026). The molarity calculator flags each one below.

SymptomCauseFix
Answer is 1000 times too small (0.0002 M)Divided by mL instead of L250.0 mL = 0.2500 L. Or use mmol ÷ mL.
Copper sulfate solution is 36% weakUsed anhydrous MW (159.60) for the pentahydrate bottleUse 249.68 g/mol for CuSO4·5H2O.
NaOH solution titrates lowNaOH absorbs water and CO2 from airTreat NaOH as approximate; standardize it against KHP.
"C2 is larger than C1"Target stronger than stock, or units mixed (mM vs µM)Check units; you cannot concentrate by dilution.
Molarity a little low at 1 M and aboveAdded solvent to a fixed volume instead of making up to the markDissolve, then fill to the mark in a volumetric flask.
pH of 10−8 M HCl comes out as 8Ignored water's own H+Use the exact formula: pH 6.98.
Titration molarity is double or halfWrong mole ratio (H2SO4 needs 2 NaOH)Set a = 1, b = 2 from the balanced equation.
Excel gives #VALUE!Typed "250 mL" with the unit in the cellNumbers only in cells; units in the header.
SD differs from ExcelSTDEV.P (n) used instead of STDEV.S (n − 1)Use STDEV.S for replicate titrations.
Protein molarity looks 1000 times offUsed kDa as g/mol66.5 kDa = 66 500 g/mol.

⚠️ 17. Assumptions and Limitations

AssumptionHow to checkIf it fails, the error goes
Solute fully dissolved and stableNo solid left; clear solutionMolarity too high on paper (real value lower)
Molar mass is for the form weighedRead the label (hydrate, salt form, counter-ion)Anhydrous MW for a hydrate: calculated mass too low, solution weak
Solid is dry and pureCertificate of analysis; dry hygroscopic solidsReal molarity lower than calculated
Glassware at 20 °C, within toleranceThermometer; Class A markWarmer solution: real molarity about 0.02% per °C lower
Tolerances are rectangular and independentEurachem QUAM uses triangular for glasswareRectangular gives a larger (safer) U; triangular (a/√6) is about 29% smaller
Linear (GUM) propagationRelative uncertainties under a few percentFine here; the Python Monte Carlo agrees to 0.2%
Strong electrolytes fully ionized; activity = concentrationIonic strength below about 0.01 M for pH workReal pH differs from the calculated value at high ionic strength
Volumes add when making a dilutionMake up to the mark instead of addingEthanol and acids shrink on mixing: real volume smaller, molarity higher
Label density and assay are exactSupplier certificate; titrateStock molarity can be 1 to 2% off: standardize

Better methods: prepare primary standards gravimetrically (by mass of solution) for the smallest uncertainty; use a pH meter calibrated with NIST-traceable buffers for real pH; use activity coefficients (Debye-Hückel) above about 0.01 M ionic strength.

🎯 18. Conclusion

Your result

___

What the molarity calculator does for the measurement

A molarity calculator turns a weighing and a flask into a number you can use in a reaction, a titration or an assay. This one keeps the units straight, catches the hydrate and mL-for-L errors, shows every step, and puts an honest uncertainty on the answer, so you know whether the fourth figure means anything.

Watch out for

  • Final solution volume in liters, never the volume of water added.
  • The molar mass of the exact form on the bottle.
  • Dilution can only lower the concentration.
  • Weak acids need Ka for pH; very dilute strong acids need water's own ions.
  • Standardize NaOH and diluted acids by titration before you rely on four figures.

Next steps

Make working solutions with the dilution mode, check them by titration, and report the mean with its confidence interval. To average several runs, the mean calculator gives the average with the median as a check. For the spread of replicate results, the standard deviation calculator and the standard error of the mean calculator do the statistics in depth. Whatever you are making, start and finish with the molarity calculator.

❓ 19. Frequently Asked Questions

Q1. How do you calculate molarity?

Divide the moles of solute by the liters of solution: M = n ÷ V. If you start with grams, divide by the molar mass first to get moles. For example, 2.922 g of NaCl is 0.05000 mol, and in 0.2500 L of solution that is 0.2000 M. Always use the final solution volume, not the volume of water you added.

Q2. What is the formula for molarity?

The molarity formula is M = n ÷ V, where n is moles of solute and V is liters of solution. Written with mass, it becomes M = m ÷ (MW × V), with m in grams and MW in g/mol. The unit is mol/L, written M and read "molar". A 1 M solution holds one mole of solute in every liter.

Q3. How do you calculate molarity from grams?

Divide grams by the molar mass to get moles, then divide moles by liters of solution. For 4.00 g of NaOH (39.997 g/mol) made up to 500.0 mL: 4.00 ÷ 39.997 = 0.1000 mol, and 0.1000 mol ÷ 0.5000 L = 0.200 M. Use the molar mass of the exact form on the bottle, hydrate water included.

Q4. How do you calculate grams from molarity?

Multiply molarity by volume in liters and by molar mass: m = M × V × MW. For 250.0 mL of 0.1000 M copper sulfate pentahydrate: 0.1000 × 0.2500 × 249.68 = 6.242 g. If the solid is not 100% pure, divide by the purity fraction, so a 99.8% reagent needs the mass divided by 0.998.

Q5. How do you calculate moles from molarity and volume?

Multiply molarity by volume in liters: n = M × V. For 35.0 mL of 0.250 M HCl: 0.250 mol/L × 0.0350 L = 8.75 × 10⁻³ mol. A quick shortcut is millimoles = M × mL, which gives 8.75 mmol directly. This is the first step of every titration and solution stoichiometry problem.

Q6. How do you calculate the molarity of a solution after dilution?

Use C1V1 = C2V2 and solve for the final concentration: C2 = C1V1 ÷ V2. Diluting 25.0 mL of 6.00 M HCl to 500.0 mL gives 6.00 × 25.0 ÷ 500.0 = 0.300 M. Keep both volumes in the same unit and both concentrations in the same unit. Dilution can only lower the molarity, never raise it.

Q7. How do you calculate pH from molarity?

For a strong acid, pH is the negative log of the H⁺ molarity, so 0.0250 M HCl has pH 1.602. For a weak acid, first solve Ka = x² ÷ (C − x) for x, the H⁺ concentration; 0.100 M acetic acid with Ka 1.8 × 10⁻⁵ has pH 2.875. Below about 10⁻⁶ M, include the H⁺ from water itself.

Q8. How do you calculate molarity from pH?

Find the hydrogen ion concentration first: [H⁺] = 10^(−pH). For a strong acid, that is the molarity, divided by the number of H⁺ each formula unit releases. For a weak acid, molarity = x + x² ÷ Ka, where x = [H⁺]. A pH of 3.00 from hydrochloric acid therefore means 1.0 × 10⁻³ M HCl.

Q9. How do you calculate molarity in a titration?

Find the moles of titrant (molarity × liters delivered), convert to moles of analyte with the mole ratio from the balanced equation, then divide by the analyte volume in liters. If 18.40 mL of 0.1000 M NaOH neutralizes 20.00 mL of H2SO4, the 1 : 2 ratio gives 0.1000 × 0.01840 ÷ 2 ÷ 0.02000 = 0.04600 M.

Q10. How do you calculate average molarity?

Calculate the molarity from each trial, add them, and divide by the number of trials. Then report the standard deviation with n − 1 and a confidence interval using t, not 1.96. Four titrations of HCl against 0.1000 M NaOH here give an average molarity of 0.09942 ± 0.00027 M at 95% confidence, with an RSD of 0.17%.

Q11. How do you convert mg/mL to molarity?

Divide the concentration in mg/mL, which is the same number as g/L, by the molar mass in g/mol. The answer is in mol/L. For 5.844 mg/mL sodium chloride: 5.844 ÷ 58.44 = 0.1000 M. To get micromolar, multiply the molarity by 1 000 000; to get millimolar, multiply by 1000.

Q12. How do you calculate protein molarity?

Divide the protein concentration in mg/mL (equal to g/L) by its molar mass in g/mol, which is the size in kDa multiplied by 1000. Bovine serum albumin at 2.00 mg/mL and 66.5 kDa is 2.00 ÷ 66 500 = 3.01 × 10⁻⁵ M, or 30.1 µM. Use the molar mass of the exact construct, including any tags.

Q13. How do you calculate DNA molarity?

Work out the molar mass from the length, then divide the mass concentration by it. For double-stranded DNA, MW = base pairs × 617.96 + 36.04 g/mol; for single-stranded DNA, MW = nucleotides × 308.97 + 18.02 g/mol. A 3000 bp plasmid at 50.0 ng/µL has MW 1 853 916 g/mol and a molarity of 27.0 nM.

Q14. What is the molarity of concentrated HCl?

Concentrated hydrochloric acid at 37.3% w/w and a density of 1.18 g/mL is about 12.1 M. The formula is M = (% × density × 10) ÷ molar mass, so 37.3 × 1.18 × 10 ÷ 36.458 = 12.07 M. Assay and density vary by lot, so read your bottle, and standardize any dilution by titration.

Q15. How do you calculate the molarity of NaOH?

Divide grams of sodium hydroxide by 39.997 g/mol, then divide by liters of solution: 4.00 g in 500.0 mL is 0.200 M. Solid NaOH absorbs water and carbon dioxide from air, so its true molarity is usually a little lower. Find the exact value by titrating it against potassium hydrogen phthalate (KHP).

Q16. What is the difference between molarity and molality?

Molarity is moles of solute per liter of solution; molality is moles of solute per kilogram of solvent. Molarity changes slightly with temperature because liquids expand, while molality does not. In dilute water solutions they are nearly equal, but 1.000 M NaCl at a density of 1.0369 g/mL is 1.022 mol/kg.

Q17. How do you convert normality to molarity?

Divide normality by the number of equivalents per mole: M = N ÷ n. Sulfuric acid releases 2 H⁺, so 2.0 N H2SO4 is 1.0 M. For HCl, HNO3 and NaOH, n is 1, so normality and molarity are the same number. Going the other way, multiply molarity by n to get normality.

Q18. How do you calculate molarity in Excel or on a calculator?

In Excel, put mass in A2, molar mass in B2 and volume in mL in C2, then type =A2/B2/(C2/1000). On a scientific calculator, key 2.922 ÷ 58.44 ÷ 0.25 = and read 0.2. Both give 0.2000 M for the NaCl example. Keep units out of Excel cells, or you will see #VALUE!.

Q19. How do you calculate molarity in Python or R?

In Python, M = m / MW / (V_mL / 1000); in R, M <- m / MW / (V_mL / 1000). Both give 0.2 for 2.922 g of NaCl in 250.0 mL. The complete scripts in Sections 10 and 11 also print the expanded uncertainty, a Monte Carlo check, the titration average with a t interval, and save a 300 dpi figure.

Q20. Does temperature change molarity?

Yes, slightly. Solutions expand when warmed, so molarity falls by about 0.02% for each degree Celsius near room temperature. Volumetric glassware is calibrated at 20 °C (68 °F), so a solution made up at 25 °C is about 0.1% weaker. Use molality, which is based on mass, when temperature changes a lot.

📑 20. Cite This Tool

APA 7th edition
StatsUnlock. (2026). Molarity calculator [Interactive laboratory tool]. https://statsunlock.com/molarity-calculator/
BibTeX
@misc{statsunlock_molarity_2026, title={Molarity Calculator}, author={{StatsUnlock Team}}, year={2026}, note={Interactive laboratory tool}, url={https://statsunlock.com/molarity-calculator/}}
Methods sentence (fills from your last calculation)
A 0.2000 M solution of NaCl was prepared by dissolving 2.922 g and making up to 250.0 mL in a Class A volumetric flask at 20 °C. Molarity was calculated as M = m/(MW × V) with MW = 58.44 g/mol using the StatsUnlock Molarity Calculator (2026); the expanded uncertainty (k = 2) was 0.00011 M, combining balance and flask tolerances as rectangular distributions (JCGM 100:2008).

🔗 21. Related Tools

📖 22. Glossary of Terms

TermPlain-English meaning
AliquotA measured portion of a solution taken for analysis or dilution.
Assay (% w/w)The mass percent of the named substance in a reagent, from the label or certificate.
C1V1 = C2V2The dilution equation: moles before dilution equal moles after.
Class A glasswareGlassware made to the tightest tolerance class (ASTM E288 for flasks).
Concordant titresTitre volumes that agree within a set limit, often 0.10 mL.
Coverage factor (k)The multiplier from standard to expanded uncertainty; k = 2 gives about 95%.
Density (ρ)Mass per volume, g/mL; needed to turn % w/w into molarity.
Dilution factorC1 ÷ C2; a factor of 10 is a 1 in 10 dilution.
Expanded uncertainty (U)k × the combined standard uncertainty; the ± on a reported result.
HydrateA crystal containing water in its formula, such as CuSO4·5H2O; the water counts in the molar mass.
Ka, KbAcid and base dissociation constants; set how much a weak acid or base ionizes.
KwIon product of water, [H+][OH−] = 1.0 × 10−14 at 25 °C.
Molality (m)Moles of solute per kilogram of solvent, mol/kg.
Molar mass (MW)Mass of one mole of a substance, g/mol; for proteins, kDa × 1000.
Molarity (M)Moles of solute per liter of solution, mol/L.
Mole (mol)Exactly 6.022 140 76 × 1023 entities (SI, 2019).
Normality (N)Equivalents per liter; N = n × M.
pH−log10 of the hydrogen ion concentration in mol/L.
Primary standardA pure, stable, non-hygroscopic solid (KHP, Na2CO3) used to fix a solution’s molarity.
PurityFraction of the weighed solid that is the named compound.
StandardizationFinding the exact molarity of a solution by titration against a primary standard.
Stock solutionA concentrated solution diluted to make working solutions.
TitreThe volume of titrant delivered from the burette to reach the end point.
Volumetric flaskA flask calibrated to contain one exact volume at 20 °C, up to its mark.

📚 23. References

Peer-reviewed sources behind this molarity calculator: the mole and atomic weights, pH and water ionization, protein and DNA quantitation, uncertainty and outlier statistics, and research on how students learn molarity. Standards (JCGM 100:2008, ASTM E288, OSHA HazCom) are named where they are used. Every DOI checked October 2026.

  1. Altman, D. G., & Bland, J. M. (2005). Standard deviations and standard errors. BMJ, 331(7521), 903. https://doi.org/10.1136/bmj.331.7521.903
  2. Bandura, A. V., & Lvov, S. N. (2006). The ionization constant of water over wide ranges of temperature and density. Journal of Physical and Chemical Reference Data, 35(1), 15–30. https://doi.org/10.1063/1.1928231
  3. Buck, R. P., Rondinini, S., Covington, A. K., Baucke, F. G. K., Brett, C. M. A., Camoes, M. F., Milton, M. J. T., Mussini, T., Naumann, R., Pratt, K. W., Spitzer, P., & Wilson, G. S. (2002). Measurement of pH. Definition, standards, and procedures (IUPAC Recommendations 2002). Pure and Applied Chemistry, 74(11), 2169–2200. https://doi.org/10.1351/pac200274112169
  4. Chong, S. H. (2016). Wither the concepts of mole and concentration: Conceptual confusion in applying M1V1 = M2V2. Universal Journal of Educational Research, 4(5), 1158–1162. https://doi.org/10.13189/ujer.2016.040527
  5. Cumming, G., Fidler, F., & Vaux, D. L. (2007). Error bars in experimental biology. Journal of Cell Biology, 177(1), 7–11. https://doi.org/10.1083/jcb.200611141
  6. de Levie, R. (1993). Explicit expressions of the general form of the titration curve in terms of concentration: Writing a single closed-form expression for the titration curve for a variety of titrations without using approximations or segmentation. Journal of Chemical Education, 70(3), 209. https://doi.org/10.1021/ed070p209
  7. Desjardins, P., & Conklin, D. (2010). NanoDrop microvolume quantitation of nucleic acids. Journal of Visualized Experiments, (45), e2565. https://doi.org/10.3791/2565
  8. Gill, S. C., & von Hippel, P. H. (1989). Calculation of protein extinction coefficients from amino acid sequence data. Analytical Biochemistry, 182(2), 319–326. https://doi.org/10.1016/0003-2697(89)90602-7
  9. Gültepe, N., & Erdem, A. R. (2026). Diagnosing teacher candidates’ reasoning on solution concentration: A theoretical analysis of definitional and procedural difficulties. Chemistry Education Research and Practice, 27(3), 1073–1088. https://doi.org/10.1039/d5rp00422e
  10. Kragten, J. (1994). Calculating standard deviations and confidence intervals with a universally applicable spreadsheet technique. Analyst, 119(10), 2161–2165. https://doi.org/10.1039/AN9941902161
  11. McGlashan, M. L. (1995). Amount of substance and the mole. Metrologia, 31(6), 447–455. https://doi.org/10.1088/0026-1394/31/6/004
  12. Meija, J., Coplen, T. B., Berglund, M., Brand, W. A., De Bièvre, P., Gröning, M., Holden, N. E., Irrgeher, J., Loss, R. D., Walczyk, T., & Prohaska, T. (2016). Atomic weights of the elements 2013 (IUPAC Technical Report). Pure and Applied Chemistry, 88(3), 265–291. https://doi.org/10.1515/pac-2015-0305
  13. Pace, C. N., Vajdos, F., Fee, L., Grimsley, G., & Gray, T. (1995). How to measure and predict the molar absorption coefficient of a protein. Protein Science, 4(11), 2411–2423. https://doi.org/10.1002/pro.5560041120
  14. Prohaska, T., Irrgeher, J., Benefield, J., Böhlke, J. K., Chesson, L. A., Coplen, T. B., Ding, T., Dunn, P. J. H., Gröning, M., Holden, N. E., Meijer, H. A. J., Moossen, H., Possolo, A., Takahashi, Y., Vogl, J., Walczyk, T., Wang, J., Wieser, M. E., Yoneda, S., Zhu, X.-K., & Meija, J. (2022). Standard atomic weights of the elements 2021 (IUPAC Technical Report). Pure and Applied Chemistry, 94(5), 573–600. https://doi.org/10.1515/pac-2019-0603
  15. Raviolo, A., Farré, A. S., & Traiman Schroh, N. (2021). Students’ understanding of molar concentration. Chemistry Education Research and Practice, 22(2), 486–497. https://doi.org/10.1039/d0rp00344a
  16. Rorabacher, D. B. (1991). Statistical treatment for rejection of deviant values: Critical values of Dixon’s “Q” parameter and related subrange ratios at the 95% confidence level. Analytical Chemistry, 63(2), 139–146. https://doi.org/10.1021/ac00002a010
  17. Rusek, M., Koperová, D., Bártová, I., Machková, V., Chytrý, V., Sirotek, V., Štrofová, J., & Šmejkal, P. (2026). Challenges in chemistry calculations at university entry: Evidence from a multi-institutional study. Journal of Chemical Education, 103(4), 1826–1834. https://doi.org/10.1021/acs.jchemed.6c00022
  18. Tanaka, M., Girard, G., Davis, R., Peuto, A., & Bignell, N. (2001). Recommended table for the density of water between 0 °C and 40 °C based on recent experimental reports. Metrologia, 38(4), 301–309. https://doi.org/10.1088/0026-1394/38/4/3
  19. Tiesinga, E., Mohr, P. J., Newell, D. B., & Taylor, B. N. (2021). CODATA recommended values of the fundamental physical constants: 2018. Reviews of Modern Physics, 93(2), 025010. https://doi.org/10.1103/RevModPhys.93.025010
  20. Vaccaro, E., Stella, C., & Alonso, M. (2022). Difficulties of novice students in solving the final concentration value of a mixture of solutions. Chemistry Teacher International, 4(4), 297–305. https://doi.org/10.1515/cti-2021-0026
STATS UNLOCK · statsunlock.com · Molarity Calculator · StatsUnlock Team
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Statistical Models

Important Plots & Charts

Calculators and Converters