Monday, July 6, 2026

Pharmaceutical Calculators · Lab & GMP Formulation

Molarity Calculator

Calculate solution molarity (mol/L), mass needed, volume, or moles from molecular weight. Built for pharma lab prep, buffer design, reference standards, and GMP batch documentation — with COA MW and multi-unit output.

Quick Answer

Molarity (M) is moles of solute per litre of solution — the standard concentration unit for pharmaceutical lab prep, buffer design, and GMP batch records. Use Mass (g) = M × V (L) × MW (g/mol) with batch-specific molecular weight from the certificate of analysis. This calculator solves for molarity, mass, volume, or moles across mol/L, mM, μM, and mg/mL for formulation and analytical workflows.

Formula
M = n / V    n = mass (g) / MW    V in Litres
M = Molarity in mol/L    n = moles    V = volume in Litres    MW = molecular weight g/mol
Mass (g) = M × V × MW     Volume (L) = mass / (MW × M)

Molarity Calculator

Select a mode to calculate molarity, mass needed, volume, or moles from molecular weight.

Mass, molecular weight, and volume
Molarity
mol/L
Millimolar
mM
Micromolar
μM
mg/mL
mg/mL
Target concentration and volume
Mass (g)
g
Mass (mg)
mg
Mass (μg)
μg
Mass and target concentration
Volume (L)
L
Volume (mL)
mL
Volume (μL)
μL
Mass and molecular weight
Moles
mol
Millimoles
mmol
Micromoles
μmol

Common Pharmaceutical Chemicals — MW Reference

Click any row to auto-populate the molecular weight field in the calculator above.

Compound MW (g/mol) Common Use
NaCl (Sodium chloride) 58.44 IV saline, isotonicity
Glucose (anhydrous) 180.16 IV dextrose
Mannitol 182.17 Osmotic agent, lyophilization
Sucrose 342.30 Lyophilization stabilizer
Sodium phosphate (dibasic) 141.96 Buffer
Potassium phosphate (monobasic) 136.09 Buffer
Sodium acetate (anhydrous) 82.03 Buffer
Acetic acid 60.05 Buffer (glacial)
Tris base 121.14 Buffer
EDTA (disodium) 372.24 Chelating agent
Citric acid (anhydrous) 192.12 Buffer
Sodium citrate 294.10 Buffer
Polysorbate 80 ~1310 Solubilizer/surfactant
HCl (hydrochloric acid) 36.46 pH adjustment
NaOH (sodium hydroxide) 40.00 pH adjustment

How to Use

1
Select what to calculate: Molarity, Mass needed, Volume, or Moles.
2
Enter molecular weight from the COA for the material lot, or click a row in the pharma MW reference table to auto-fill MW.
3
Enter the known mass, volume, or target concentration using consistent units (g/mg, L/mL/μL, M/mM/μM).
4
Click Calculate — results appear in mol/L, mM, μM, and mg/mL as applicable.
5
Document the calculation in your batch record. For dilution, buffer pH, or LOD/LOQ checks, use the Dilution Calculator, Buffer pH Calculator, or LOD/LOQ Calculator.

Worked Example

Preparing 500 mL of 150 mM NaCl

MW of NaCl = 58.44 g/mol

Mass = M × V × MW = 0.150 mol/L × 0.500 L × 58.44 g/mol = 4.383 g

Dissolve 4.383 g NaCl in water and adjust volume to exactly 500 mL.

Pharma & laboratory context

GMP solution preparation requires traceable calculations tied to the approved raw-material COA — lot number, molecular weight, and target concentration documented in the batch record. QC and analytical labs use molarity to prepare reference standards, mobile-phase components, and system suitability solutions where ICH Q2(R2) precision and accuracy limits apply.

Formulation and stability teams convert between mg/mL and mM when designing buffers, excipient compatibility screens, and lyophilization cycles. After calculating stock concentration here, dilute with the Dilution Calculator or Serial Dilution Calculator, estimate buffer pH with the Buffer pH Calculator, and confirm analytical range with the LOD/LOQ Calculator. Step-by-step prep workflows are available in the Solution Preparation Calculator.

Volumetric flask prep and gravimetric prep are both acceptable when equipment is calibrated and methods validated — choose the technique specified in your SOP. For biologics, confirm whether the COA MW reflects the active form used in the calculation; salt and hydrate forms change the mass required for the same molar concentration.

Evidence & sources

Frequently Asked Questions

Molarity (M) is the number of moles of solute per litre of solution. A 1 M solution contains 1 mole dissolved in enough solvent to make exactly 1 L. It is the default concentration unit for pharmaceutical buffers, HPLC mobile phases, reference standards, and GMP solution preparation because volumes are measured in litres or millilitres.
Molarity (mol/L) depends on solution volume, which changes with temperature — so a 150 mM buffer prepared hot may read slightly different at room temperature. Molality (mol/kg solvent) is temperature-independent and preferred for thermodynamic activity coefficients, osmotic pressure, and some biologics stability studies. Most pharma SOPs specify molarity for routine prep; use molality when stability protocols or pharmacopeial monographs require solvent-mass basis.
Divide mg/mL by molecular weight (g/mol), then multiply by 1000 to get mM: mM = (mg/mL ÷ MW) × 1000. Example: 10 mg/mL of a 50 kDa protein (MW 50,000 g/mol) ≈ 0.2 mM. For antibodies and biologics, confirm whether MW on the COA is monomer, dimer, or conjugate form — using the wrong MW shifts calculated molarity and downstream dilution steps.
GMP batch records and analytical methods must trace calculations to the approved certificate of analysis (COA) for each raw material lot. Hydrate vs anhydrous form, salt stoichiometry, and supplier-reported MW can differ from textbook values. Document the COA MW, lot number, and calculation in the batch record; do not rely on generic reference tables for release testing or compounding of patient-facing solutions.
Gravimetric prep (weigh solute on a calibrated balance, add solvent to target mass) often gives lower uncertainty for small batches and is preferred in many QC labs. Volumetric flask prep (dissolve solute, dilute to the mark) is standard when SOPs specify a fixed final volume — typical for reference standards and compendial solutions. Either approach is valid when equipment is qualified and the method is validated; record which technique the batch record requires.
M = n / V, where n = mass (g) / MW (g/mol) and V is volume in litres. Rearranged: Mass (g) = M × V × MW; Volume (L) = mass / (MW × M). All three forms are equivalent. This calculator applies the same relationship as USP and ICH analytical references — enter any three known values to solve for the fourth.
1 mM = 0.001 mol/L = 10⁻³ M. Millimolar is standard for buffer components, enzyme assays, and many API stock solutions because working concentrations often fall between 1 mM and 500 mM. Micromolar (μM) and nanomolar (nM) apply to potent compounds, receptor binding studies, and LC-MS calibrators at trace levels.
Calculate the mass needed for your stock concentration and volume using Mass = M × V × MW, dissolve in the appropriate solvent, and verify volume or mass per SOP. For large dilution factors, prepare an intermediate stock rather than a single ultra-dilute working solution. Chain to the Serial Dilution Calculator for step-wise factors and to the Dilution Calculator for single C1V1=C2V2 steps from stock to working concentration.
Buffer pH depends on the ratio of conjugate base to acid (Henderson–Hasselbalch), not molarity alone — but you need correct molarity to weigh each buffer component. After calculating mM concentrations here, use the Buffer pH Calculator to estimate pH from pKa and the base/acid ratio, or to find how much acid or base to add for a target pH.
After preparing a standard or sample at calculated molarity, confirm the analyte response falls between the limit of detection (LOD) and limit of quantitation (LOQ) for your validated HPLC or LC-MS method. Use the LOD/LOQ Calculator with calibration slope and residual standard deviation per ICH Q2(R2). Concentrations below LOQ should not be reported quantitatively even if the molarity math is correct.
Yes. Molarity uses solution volume, which expands or contracts with temperature. A solution prepared at 25 °C and measured in a warm water bath may appear slightly more or less concentrated if volume is remeasured at another temperature. For critical formulations, prepare and measure at the temperature specified in the monograph or method. Molality avoids this issue because it is based on solvent mass, not volume.
Use this molarity calculator when you know molecular weight and need to convert between mass, volume, and concentration (M, mM, mg/mL). Use the Dilution Calculator when you already have a stock solution at concentration C1 and need the volume V1 to reach target C2 in final volume V2 (C1V1 = C2V2). Typical workflow: calculate stock molarity here, then dilute with the Dilution Calculator or Serial Dilution Calculator for working standards.

Related Calculators