How to use the molarity calculator
- Select what you want to solve for using the Solve for dropdown.
- Enter the known values: molarity, mass, molecular weight or volume.
- Leave the field you are solving for blank.
- The result updates automatically as you type.
How the molarity formula works
Molarity (M) is defined as the number of moles of solute divided by the volume of the solution in liters. Because moles equal mass divided by molecular weight, the full working equation is:
M = (mass / MW) / V
Rearranging this gives the other two forms. To find the mass of solute needed: mass = M x V x MW. To find the required volume: V = mass / (M x MW).
For example, dissolving 58.44 g of sodium chloride (MW 58.44 g/mol) in enough water to make exactly 1 liter of solution yields a molarity of 1 mol/L. The calculation is (58.44 / 58.44) / 1 = 1.
Common molecular weights reference
Having the correct molecular weight is essential for an accurate molarity calculation. Below are values for frequently used laboratory reagents.
| Compound | Formula | MW (g/mol) |
|---|---|---|
| Sodium chloride | NaCl | 58.44 |
| Glucose | C6H12O6 | 180.156 |
| Sodium hydroxide | NaOH | 39.997 |
| Sulfuric acid | H2SO4 | 98.079 |
| Hydrochloric acid | HCl | 36.46 |
| Potassium chloride | KCl | 74.55 |
| Tris base | C4H11NO3 | 121.14 |
If you need to convert between grams and moles directly, the grams to moles tool handles that step independently.
Practical use cases in the lab
Preparing buffer solutions is one of the most common reasons to use a molarity calculator. A phosphate buffered saline recipe might call for specific molar concentrations of NaCl, KCl, Na2HPO4 and KH2PO4. You enter the target molarity, the final volume and each compound's molecular weight to get the exact mass to weigh out.
Cell culture media also rely on precise molar concentrations. Adding too much or too little of a salt can change osmolarity and harm cells. Calculating the required mass before weighing eliminates guesswork.
In analytical chemistry, preparing standard curves requires serial dilutions of a stock solution. While the dilution calculator handles the dilution ratios, you first need to know the stock concentration in mol/L, which is where this tool comes in.
Molarity versus molality and normality
Molarity measures moles of solute per liter of solution. Molality measures moles of solute per kilogram of solvent. The distinction matters because solution volume changes with temperature while solvent mass does not. For most bench work at room temperature the difference is small, but thermodynamic calculations often require molality.
Normality (N) expresses equivalents per liter rather than moles per liter. For monoprotic acids like HCl, normality equals molarity. For diprotic acids like H2SO4, a 1 M solution is 2 N. Always check whether a protocol specifies molarity or normality before preparing reagents.
Common mistakes to avoid
The most frequent error is confusing the volume of the solvent with the volume of the final solution. Molarity is defined per liter of solution, meaning you dissolve the solute first and then add solvent until the total volume reaches the mark on a volumetric flask. Adding 1 liter of water to a solid will produce slightly more than 1 liter of solution.
Another mistake is using an incorrect molecular weight. Hydrated salts have higher molecular weights than their anhydrous forms. Copper(II) sulfate pentahydrate (CuSO4 . 5H2O) has a molecular weight of 249.68 g/mol, while anhydrous CuSO4 is 159.61 g/mol. Using the wrong value throws off the entire molar concentration.
Finally, ensure all units match. If your volume is in milliliters, convert it to liters before entering it into the molarity calculator. One thousand milliliters equals one liter.
Worked examples
| Example | Input | Result |
|---|---|---|
| Molarity of NaCl solution | Solve for: molarity; Mass of solute (g): 58.44; Molecular weight (g/mol): 58.44; Volume of solution (L): 1 | Molarity: 1; Moles of solute: 1; Mass of solute: 58.44; Volume of solution: 1 |
| Mass of glucose for 0.5 M, 2 L | Solve for: mass; Molarity (mol/L): 0.5; Molecular weight (g/mol): 180.156; Volume of solution (L): 2 | Mass of solute: 180.156; Moles of solute: 1; Molarity: 0.5; Volume of solution: 2 |
| Volume from 10 g NaOH at 1 M | Solve for: volume; Molarity (mol/L): 1; Mass of solute (g): 10; Molecular weight (g/mol): 39.997 | Volume of solution: 0.250018751406; Moles of solute: 0.250018751406; Molarity: 1; Mass of solute: 10 |
| Dilute HCl preparation | Solve for: mass; Molarity (mol/L): 0.1; Molecular weight (g/mol): 36.46; Volume of solution (L): 0.5 | Mass of solute: 1.823; Moles of solute: 0.05; Molarity: 0.1; Volume of solution: 0.5 |
FAQ
What is molarity?
Molarity is the number of moles of solute dissolved in one liter of solution. It is expressed in units of mol/L, often abbreviated as M.
How do I calculate molarity from grams?
Divide the mass in grams by the molecular weight to get moles, then divide by the solution volume in liters. The formula is M = (mass / MW) / V.
Is molarity the same as concentration?
Molarity is one specific way to express concentration. Other measures include molality, mass percent and parts per million.
Does temperature affect molarity?
Yes. Because molarity depends on solution volume, and liquids expand or contract with temperature changes, molarity shifts slightly with temperature. Molality does not have this issue.
Can I use this molarity calculator for dilutions?
This tool finds the initial mass or volume needed for a target molarity. For diluting an existing solution to a lower concentration, use the dedicated dilution calculator.
Why do I need the molecular weight?
Molecular weight converts between grams and moles. Without it you cannot relate the physical mass you weigh on a balance to the number of molecules in solution.