The molarity equation
Molarity (M) is moles of solute per litre of solution. Because moles equal mass divided by molecular weight, the four quantities are tied together by one relation: mass (g) = molarity (mol/L) × volume (L) × molecular weight (g/mol).
Fill in any three values and leave the fourth empty; the calculator solves for it. This covers the common bench questions: how much powder to weigh for a stock solution, what concentration a weighed amount gives, or how large a volume you can make.
Worked example
A 1 M NaCl stock (molecular weight 58.44 g/mol) in 100 mL needs 1 × 0.1 × 58.44 = 5.844 g. Weigh the salt, dissolve it in less than the final volume, then make up to 100 mL in a volumetric flask so that the volume is the volume of the solution, not of the solvent added.
Common sources of error
Use the molecular weight on the bottle, not the anhydrous value, for hydrated salts: CaCl₂·2H₂O and anhydrous CaCl₂ differ by about 25%. Check the units, because mM, µM and mg are easy to confuse by a factor of 1000. For proteins and nucleic acids the molecular weight may itself be an estimate.