Molarity Calculator
Calculate molarity, moles, and solute mass for aqueous solutions. Perform dilution calculations using M1V1 = M2V2 with our easy-to-use Molarity Calculator.
Molarity Calculator
Molarity is one of the most widely used measures of concentration in chemistry. Defined as the number of moles of solute per liter of solution, molarity (symbol M, units mol/L) quantifies how much of a dissolved substance is present in a given volume of solution. This Molarity Calculator handles four common scenarios: calculating molarity from known moles and volume, finding moles from molarity and volume, determining the mass of solute needed to prepare a solution of a given concentration, and performing dilution calculations using the M₁V₁ = M₂V₂ relationship.
Molarity is fundamental to solution chemistry. When you prepare a buffer, run a titration, perform a reaction in aqueous solution, or analyze a sample, the concentration of your reagents determines the reaction stoichiometry and the outcome of the experiment. Understanding how to calculate and manipulate molarity is essential for laboratory work in chemistry, biochemistry, molecular biology, and environmental science. The concept of molarity connects the macroscopic world of weighing and measuring to the microscopic world of molecules and chemical reactions, serving as a bridge between the mass of a substance and the number of particles it contains.
Solution chemistry draws on the other lab calculators. The Ideal Gas Law Calculator models the gases that many titrations produce or consume, the pH Calculator measures the acidity of the solutions prepared here, and the Specific Heat Capacity Calculator quantifies the thermal behavior of the same solutions in the calorimetry lab.
Calculate Molarity Mode. Enter the number of moles of solute and the total volume of the solution. The calculator divides moles by volume to give the molarity. Use this mode when you have dissolved a known mass of a substance in a known volume of water and need to determine the resulting concentration.
Example: You dissolve 0.5 mol of sodium chloride in enough water to make 1.0 L of solution. Enter 0.5 as moles and 1.0 as volume. The calculator returns 0.5000 M NaCl.
Calculate Moles Mode. Enter the molarity of a solution and the volume you are working with. The calculator multiplies these values to give the number of moles of solute present. This mode is useful when you need to know how many moles of a reagent are in a given volume of a stock solution.
Example: A 0.100 M solution of HCl is used in a titration. You measure out 2.0 L of this solution. Enter 0.1 as molarity and 2.0 as volume. The calculator returns 0.2000 mol of HCl.
Calculate Mass of Solute Mode. Enter the desired molarity, the final volume, and the molar mass of the solute. The calculator determines how many grams of solid solute you need to weigh out to prepare the solution. This is the most practical mode for everyday laboratory work.
Example: To prepare 500 mL of 0.5 M NaCl solution, enter 0.5 as desired molarity, 0.5 as volume, and 58.44 g/mol as the molar mass of NaCl. The calculator first determines that you need 0.25 mol of NaCl, which corresponds to 14.61 g. Weigh out 14.61 g of NaCl, dissolve it in about 400 mL of water, and then dilute to a final volume of 500 mL in a volumetric flask. This process is the most common way to prepare solutions in a chemistry laboratory, and understanding the relationship between mass, molar mass, and moles is essential for accurate solution preparation.
Dilution Mode. Enter three of the four values in M₁V₁ = M₂V₂ (leave one blank). The calculator solves for the missing value. Use this mode when you have a concentrated stock solution and need to dilute it to a working concentration.
Example: You have a 1.0 M stock solution of Tris buffer and need 400 mL of 0.25 M working solution. Enter M₁ = 1.0, M₂ = 0.25, V₂ = 0.4, leave V₁ blank. The calculator determines that you need 0.1 L (100 mL) of stock solution, which you then dilute to a final volume of 400 mL with water. This one-to-four dilution (1:4) is typical of many laboratory protocols where a concentrated stock is prepared once and then diluted for daily use, saving time and reducing measurement errors.
The core definition is straightforward: molarity expresses the number of moles of solute dissolved in each liter of solution, not per liter of solvent. This distinction is important because the final volume of a solution is typically larger than the volume of solvent used, especially when the solute occupies significant volume. Molarity is defined by the number of moles of solute per liter of solution:[libretexts-molarity]
Where M is the molarity in mol/L, n is the number of moles of solute, and V is the volume of the solution in liters.
The relationship between mass, moles, and molar mass:
Combining these gives the mass of solute required to prepare a solution of a given molarity:
The dilution equation (M₁V₁ = M₂V₂) is derived from the principle that the number of moles of solute does not change during dilution — only the volume of the solution changes:[purdue-molarity]
This relationship holds because adding solvent does not change the amount of solute present, it only spreads the same number of moles over a larger volume. The dilution equation is valid as long as the volumes are in the same units on both sides — the calculator handles the conversion.
| Hydrochloric Acid | HCl | 36.46 | 12 M (conc.) | Acid-base titrations, pH adjustment |
| Sodium Hydroxide | NaOH | 40.00 | 6 M (conc.) | Base titrations, pH adjustment |
| Sulfuric Acid | H₂SO₄ | 98.08 | 18 M (conc.) | Industrial chemistry, battery acid |
| Ammonia Solution | NH₃ | 17.03 | 14.8 M (conc.) | Cleaning, laboratory reagent |
| Acetic Acid | CH₃COOH | 60.05 | 17.4 M (glacial) | Biochemical buffers, vinegar |
| Sodium Chloride | NaCl | 58.44 | 5 M (saturated) | Physiological saline, buffers |
| Phosphate Buffer | NaH₂PO₄/Na₂HPO₄ | 120.0/142.0 | 0.1 M | Biological pH buffer |
| Tris Buffer | C₄H₁₁NO₃ | 121.14 | 1 M | Molecular biology, electrophoresis |
| EDTA | C₁₀H₁₆N₂O₈ | 292.24 | 0.5 M | Chelating agent, metal ion sequestration |
| Glucose | C₆H₁₂O₆ | 180.16 | 1 M | Cell culture media |
Use volumetric flasks for accurate solution preparation. To prepare a solution of precise molarity, dissolve the weighed solute in a small volume of solvent (typically 60-80% of the final volume), swirl to dissolve completely, and then fill to the calibration mark.[sigma-molarity] This ensures the final volume is exact. Using a beaker or graduated cylinder introduces uncertainty because their volume markings are less accurate.
Always add acid to water, never water to acid. When preparing acidic solutions, especially from concentrated stock, always add the acid slowly to the water while stirring. Adding water to concentrated acid generates so much heat that the solution can boil violently and splash.[acs-molarity] This safety rule is fundamental to safe laboratory practice.
Account for temperature changes. Molarity is temperature-dependent because volume changes with temperature. A solution that is 1.000 M at 20°C may be measurably different at 30°C.[nist-concentration] For the most precise work, prepare and use solutions at a controlled temperature. Molality (moles per kilogram of solvent) avoids this issue because mass does not change with temperature, but molarity remains the standard for most laboratory applications. The coefficient of thermal expansion for water is approximately 0.000214 per °C, meaning that a 1 L solution at 20°C will expand to about 1.002 L at 30°C, reducing the molarity by roughly 0.2%.
Use the dilution mode for serial dilutions. When preparing a series of decreasing concentrations from a stock solution, calculate the first dilution and then use the result as the new stock for the next step. Each dilution step should be calculated independently using M₁V₁ = M₂V₂. For example, to prepare 10 mL each of 0.1 M, 0.01 M, and 0.001 M solutions from a 1 M stock, first calculate the 0.1 M dilution from the stock, then treat the 0.1 M solution as the new stock for the 0.01 M dilution, and continue the series.
Label everything with concentration and date. Prepared solutions should be labeled with the compound name, molarity, date of preparation, and initials. This practice prevents confusion and ensures that degraded or contaminated solutions can be identified and discarded promptly. Many laboratories use color-coded labels for different types of solutions, such as blue for buffers, red for acids, and green for bases, as an additional safety measure.
This calculator assumes ideal solution behavior, meaning that volumes are additive and that there is no volume change upon mixing solute with solvent. For concentrated solutions, this assumption may introduce small errors because solute molecules occupy space and can cause the solution volume to differ from the sum of the individual component volumes. The dilution equation (M₁V₁ = M₂V₂) is valid only for dilutions — it does not apply to chemical reactions where solute is consumed or produced. The calculator does not account for temperature effects on solution volume, activity coefficients in non-ideal solutions, or the density of concentrated solutions. For highly concentrated solutions, consider using molality or mass/volume percent instead. Molarity also does not account for the dissociation of ionic compounds in solution — 1 M NaCl produces approximately 2 M of ions (Na⁺ and Cl⁻), which affects colligative properties such as osmotic pressure and boiling point elevation. This calculator complements our Solution Dilution Calculator for percent-based dilutions and our Stoichiometry Calculator for reaction-based mole calculations.
- ❓ What is the difference between molarity and molality?
- ✅ Molarity (M) is moles of solute per liter of solution, which varies with temperature because volume changes. Molality (m) is moles of solute per kilogram of solvent, which is temperature-independent because mass does not change. Molality is preferred for experiments involving temperature changes, such as freezing point depression or boiling point elevation studies.
- ❓ How do I convert between molarity and percent concentration?
- ✅ To convert from molarity to percent concentration by mass, multiply the molarity by the molar mass and divide by the solution density. Percent concentration is mass of solute divided by mass of solution times 100%. The conversion requires knowing the density of the solution at the working temperature.
- ❓ Why does the M1V1 = M2V2 formula work for dilutions?
- ✅ The formula works because the number of moles of solute remains constant during a dilution — you are only adding solvent. Since moles = M × V, and moles before dilution equals moles after dilution, the product M × V must be equal on both sides of the equation.
- ❓ How do I prepare a solution from a solid reagent?
- ✅ Calculate the required mass using the molarity, volume, and molar mass. Weigh the solid on an analytical balance, transfer it to a volumetric flask, add about 60% of the final volume of solvent, swirl to dissolve completely, then fill to the calibration mark and mix thoroughly.
- ❓ What is the maximum possible molarity of a solution?
- ✅ Each compound has a solubility limit that determines the maximum molarity achievable at a given temperature. For example, NaCl has a solubility of about 359 g/L at 20°C, corresponding to approximately 6.1 M. Above this concentration, the solution becomes saturated and additional solute will not dissolve.
References
Last updated: July 26, 2026
UnByte — Independent Software Engineering
Every calculator references authoritative sources — Editorial policy
