Molarity Calculator
Calculate the molarity of a solution, the mass of solute required, or the volume of solvent needed. Enter any two of the three quantities (plus molecular weight) to solve for the third.
Local context
Molarity, moles of solute per litre of solution, is the concentration most reagent recipes are written in. Getting from a mass on the balance to a molar concentration needs the compound's molecular weight, and a slip in that conversion is invisible until the assay fails. The core relation is M = n / V = (mass / MW) / V, where M is molarity, n is amount of substance, V is solution volume, mass is the weighed mass, and MW is the molecular weight.
Enter the mass, the molecular weight, and the final volume, and the calculator returns the molar concentration (and the reverse: the mass needed for a target concentration). It assumes the solute fully dissolves and does not change the solution volume. That is the same assumption the reagent recipes it feeds assume. The calculator also supports amount-of-substance output (µmol, nmol) for downstream stoichiometry.
When NOT to use: if your concentration unit is mass-per-volume (µg/mL, mg/L) and you need molarity, this tool bridges that, but you must know the molecular weight. For dilutions of an existing molar stock, use the Dilution Calculator instead (C1V1 = C2V2). For nucleic acid concentration from A260, use the Nucleic Acid Concentration tool which uses published extinction coefficients.
Key formula: M = mass / (MW × V). Reference: SI Brochure 9th ed. (mol, kg, m); NIST SP 811.
Calculator
Solve for
Enter values and calculate to see the result
Result
Bench note
c = m / (Mw × V)
Molarity (c) equals mass (m) divided by the product of molecular weight (Mw) and volume (V). Rearrange to solve for any unknown.
c (mg/mL) = c (M) × Mw
Related guides
About this calculation
What this is
Molarity is the amount of solute per litre of solution (M = mol/L). Combined with the mole–mass relationship (n = mass ÷ molecular weight), it lets you convert between what you weigh on a balance and the concentration your protocol needs.
Why it is used
Buffers, media, and reagent stocks are specified in molar units, but solutes are dispensed by mass. Every solution preparation is a molarity calculation in one direction or another.
Worked example
Make 250 mL of 50 mM Tris. Tris has a molecular weight of 121.14 g/mol, so the mass is 0.05 mol/L × 121.14 g/mol × 0.25 L = 1.514 g. Weigh 1.514 g, dissolve it in less than 250 mL of water, then top up to 250 mL.
The table gives the mass for 1 L at 1 M for reagents you weigh often. That mass in grams is the molecular weight, so check the bottle: a hydrate has a different molecular weight from the anhydrous form, and the table assumes the form listed.
| Reagent | Molecular weight (g/mol) | Mass for 1 L at 1 M |
|---|---|---|
| Tris base | 121.14 | 121.14 g |
| Sodium chloride (NaCl) | 58.44 | 58.44 g |
| Potassium chloride (KCl) | 74.55 | 74.55 g |
| Sodium hydroxide (NaOH) | 40.00 | 40.00 g |
| D-Glucose | 180.16 | 180.16 g |
Common mistakes
- Adding the full solvent volume to the solid instead of filling to the final mark. Weigh the solute, dissolve it in part of the solvent, then top up to the final volume.
- Filling to volume before the solute has dissolved. Wait until the solute is fully dissolved. Dissolved material changes the solution level, so the final amount comes out off.
- Using the wrong molecular weight for the form on the bottle. Use the exact molecular weight printed on the bottle or the certificate of analysis. A hydrate differs from the anhydrous form, and Tris hydrochloride differs from Tris base.
- Mixing up mass and molarity units. Convert through the molecular weight first. 1 M = 1,000 mM = 1,000,000 µM, and 1 g = 1,000 mg = 1,000,000 µg.
- Ignoring a purity below 100%. Divide the calculated mass by the purity as a decimal to get the mass to weigh.
- Trusting the calculated mass without checking the result. Check the pH and the final volume after preparation. The calculator gives the required mass, but the true concentration depends on the final total volume.
Key assumptions
- The molecular weight is for the form you are actually weighing (anhydrous vs hydrated salts differ).
- The entered volume is the final solution volume, not the solvent volume added.
- The solute fully dissolves and behaves ideally at the target concentration.
How to use it
Start by choosing which quantity you need: molarity, mass, or volume. Then enter the two values you know plus the molecular weight of the solute. Concentrations with a prefix such as mM or µM are accepted directly, and the result follows the unit you selected for each field.
The volume you enter is the final solution volume, the mark on the volumetric flask or graduated cylinder. It is not the volume of solvent you add, whether you are preparing a stock or a working solution.
Use the molecular weight of the form you actually weigh. Anhydrous and hydrated salts differ by the mass of their water of crystallisation, so the same compound name can give a different mass depending on which form you weigh. Check the formula weight on the reagent bottle before entering it.
Dissolve the weighed solute in a little solvent first, then bring the solution to the final volume. Dissolving before adjusting the volume keeps the error in the total amount small, which matters most for viscous solutions such as sugars or polymers.
Read the result to the significant figures you entered. Carrying every displayed digit into a weighing does not help if your balance and glassware cannot deliver that precision. Review the assumptions and limitations in this section as well.
Convert prefixes before you start: 1 M is 1000 mM and 1 mM is 1000 µM. If the result is off by a factor of 1000, check the prefix conversion and the molecular weight first; these two account for most slips.
Pick a common compound to fill in its molecular weight, then check the bottle for the hydrate form before you trust it. If the reagent is less than 100% pure, enter the purity and the calculator adjusts the mass to weigh. Every result also shows the concentration in mg/mL, which is the molarity multiplied by the molecular weight.
Limitations
- At high concentrations, solution volume is not strictly additive and molarity deviates from the ideal calculation.
- It does not adjust for hydrate water or counterions: enter the correct molecular weight for your bottle.
- Temperature-dependent volume changes (significant above ~1 M or outside room temperature) are not modelled.
What this calculates
- Molarity
- Molar concentration of the solution.
- Mass of solute
- Mass of solute required.
- Volume
- Volume of solution.
- Moles of solute mol
- Number of moles of solute in the solution.
- Concentration (mg/mL)
- Molar concentration expressed as mg/mL (molarity × molecular weight), shown with every result.
Sources
- Atkins 2010 Atkins, P. & de Paula, J. (2010). Physical Chemistry (9th ed.). Oxford University Press. Chapter 5.
- Molarity formula Molarity (M) = moles of solute / volume of solution (L). Moles = mass (g) / molecular weight (g/mol).
Frequently asked questions
How do I use the molarity calculator?
First choose what to solve for (molarity, mass of solute, or volume) under "Solve for". Enter the molecular weight of your solute in g/mol, then fill in any two of the remaining three fields (mass, molarity, volume) with their units. The calculator computes the third quantity and also reports the number of moles of solute.
What is the molarity formula this calculator uses?
Molarity is moles of solute per litre of solution (M = mol/L), and moles come from mass divided by molecular weight (n = mass / MW). Combining them gives M = mass / (MW x volume in L), which the tool rearranges depending on your mode: mass = M x MW x volume, or volume = mass / (MW x M). For example, 58.44 g NaCl (MW 58.44) made up to 1 L gives 1 M.
Which mass, concentration, and volume units are supported?
Mass can be entered in g, mg, or µg; molarity in M, mM, µM, or nM; volume in L, mL, or µL. Each field has its own unit selector, and the calculator reconciles the prefixes internally, so you can weigh in milligrams and target a micromolar concentration without manual conversion.
Why does the calculator always ask for the molecular weight?
Any conversion between mass and molar amount runs through the moles bridge n = mass / MW, so molecular weight is required in every mode. Enter the value for the chemical form you are actually weighing: anhydrous and hydrated salts differ, and the calculator does not adjust for hydrate water or counterions. Using the wrong bottle form is the most common source of concentrated or under-concentrated buffers.
Is the volume the solvent I add or the final solution volume?
The volume field is the final volume of the solution, not the amount of solvent to add. In practice you dissolve the solute in less solvent and then top up to the target volume, since the dissolved solute itself takes up space. The calculator also assumes the solute fully dissolves and behaves ideally. At high concentrations, real volumes deviate from the calculation.
For research and educational use only. Not for clinical or diagnostic decisions. Always verify calculations independently before use in critical applications.