Molarity Calculator

Last updated: 2026-09-01

Molarity Calculator — Molarity Calculator. Free online calculator with formula, examples and step-by-step guide.
Inputs
mol
Result
Enter values and press Calculate
Common Examples — Click to Fill
Moles (mol)Volume (m³)Mass Solvente
Caso 1 0.40.4400
Caso 2 0.70.7700
Caso 3 111000
Caso 4 1.51.51000
Caso 5 2.52.51000

TL;DR: To calculate molarity, divide the number of moles of solute by the volume of the solution in liters (M = mol/L); our calculator automates this by taking your mass in grams, molar mass, and solution volume, converting units where necessary, and instantly returning both the molarity (mol/L) and the number of moles of solute.

What Is the Molarity Calculator?

The Molarity Calculator is a free online tool designed to compute the concentration of a solution in moles per liter (mol/L), which is the standard unit for molarity in chemistry. It eliminates the need for manual arithmetic and reduces the risk of unit conversion errors, which are the most common source of mistakes in stoichiometric calculations. Whether you are preparing a buffer for a biology lab, standardizing a titrant for an analytical chemistry procedure, or simply completing a homework problem, this calculator provides immediate and reliable results.

This tool is essential for students, laboratory technicians, and research scientists. Preparing accurate chemical solutions is a foundational skill in any scientific discipline, and a miscalculated molarity can ruin an experiment or compromise a manufacturing process. By automating the two-step process (mass to moles, then moles to concentration), the calculator allows you to focus on the experimental design rather than the arithmetic. It also provides a clear breakdown of the intermediate value (moles), so you can verify each step of the calculation and understand the relationship between mass, molar mass, volume, and concentration.

How to Use the Calculator

Using the calculator requires only three inputs. Follow the steps below to get your result instantly.

  1. Enter the Mass of Solute (grams): Input the precise mass of the chemical substance you dissolved or plan to dissolve. This value must be in grams. If you have the mass in milligrams, divide it by 1000 first.
  2. Enter the Molar Mass (g/mol): Input the molar mass of the solute. This is the mass of one mole of the substance, expressed in grams per mole. You can find this value on the periodic table (for elements) or by summing the atomic masses of all atoms in the compound (for molecules). For example, the molar mass of NaCl is approximately 58.44 g/mol.
  3. Enter the Volume of Solution (mL): Input the total volume of the final solution in milliliters. This is the volume of the solution after the solute has been fully dissolved, not the initial volume of the solvent. The calculator will automatically convert this to liters for the final calculation.

Once you click the calculate button, the tool performs the calculation and presents two outputs: the Molarity (in mol/L) and the Number of Moles of solute present in the solution.

Formula and Calculation Method

The calculator uses the fundamental definition of molarity. Molarity (M) is defined as the number of moles of solute (n) divided by the volume of the solution (V) in liters. The formula is:

Molarity (M) = Number of Moles (mol) / Volume of Solution (L)

However, since the initial input is mass in grams, the calculator performs a two-step process. First, it converts the mass of the solute into moles using the provided molar mass:

Number of Moles (n) = Mass of Solute (g) / Molar Mass (g/mol)

Second, it takes that result and divides it by the volume of the solution in liters. Since your volume is entered in milliliters, the calculator first converts it by dividing by 1000 (because 1 L = 1000 mL).

Worked Example with Real Numbers

Let us calculate the molarity of a solution prepared by dissolving 29.22 grams of sodium chloride (NaCl) in enough water to make 500 mL of solution.

  1. Step 1: Calculate the moles of NaCl. The molar mass of NaCl is 58.44 g/mol. Using the formula: n = mass / molar mass = 29.22 g / 58.44 g/mol = 0.5 moles.
  2. Step 2: Convert volume to liters. The volume is 500 mL. Since 1 L = 1000 mL, we divide: 500 mL / 1000 = 0.5 L.
  3. Step 3: Calculate molarity. M = n / V = 0.5 moles / 0.5 L = 1.0 mol/L.

The final solution is a 1.0 M (one molar) sodium chloride solution. This step-by-step logic is exactly what the calculator runs in the background, ensuring accuracy.

Practical Examples

Here are two realistic scenarios demonstrating how the calculator outputs are used in different contexts.

Scenario Inputs (Mass, Molar Mass, Volume) Outputs (Moles & Molarity) Interpretation
Preparing a glucose solution for a cell culture experiment Mass = 18.02 g; Molar Mass = 180.16 g/mol; Volume = 250 mL Moles = 0.10 mol; Molarity = 0.40 mol/L You have a 0.40 M glucose solution. This is the concentration of glucose available to the cells. You can dilute this stock solution to reach a lower working concentration if needed.
Creating a potassium permanganate (KMnO₄) titrant for a redox titration Mass = 3.16 g; Molar Mass = 158.03 g/mol; Volume = 1000 mL Moles = 0.02 mol; Molarity = 0.02 mol/L The titrant concentration is exactly 0.020 M. Knowing this exact molarity is critical for calculating the unknown concentration of the analyte being titrated.
Dissolving calcium chloride (CaCl₂) for a biochemistry buffer Mass = 5.55 g; Molar Mass = 110.98 g/mol; Volume = 100 mL Moles = 0.05 mol; Molarity = 0.50 mol/L This yields a 0.50 M CaCl₂ solution. This value is used to calculate the ionic strength or specific ion concentrations in the buffer system.

Tips for Accurate Results

To obtain the most accurate molarity from this calculator, pay close attention to the details of your preparation and inputs.

  • Use the volume of solution, not solvent. The most common mistake is entering the volume of water used. The volume in the formula must be the final total volume of the solution after the solute is dissolved. If you dissolve a solid in 100 mL of water, the final volume may be slightly more than 100 mL. Always use a volumetric flask to bring the solution to the exact final volume.
  • Convert units meticulously. The calculator expects mass in grams and volume in milliliters. Double-check your units before entering them. If you are using a mass in milligrams or kilograms, convert to grams first. If your volume is in liters, multiply by 1000 to get milliliters for the input field.
  • Distinguish between moles and grams. Ensure the molar mass value you enter is correct. A common pitfall is using the atomic mass in place of the molar mass for a compound. For diatomic elements (like O₂ or Cl₂), remember to double the atomic mass. Always verify the molar mass by summing the atomic masses of each element in the chemical formula.
  • Account for hydrated salts. If you are using a hydrated salt (e.g., CuSO₄·5H₂O), the molar mass must include the mass of the water molecules bound within the crystal structure. Using the anhydrous (without water) molar mass will result in a significant error.
  • Check significant figures. When performing the calculations, follow standard significant figure rules. The precision of your final molarity is limited by the precision of your mass measurement, your molar mass value, and your volume measurement.

Frequently Asked Questions

1. How do I calculate the molarity if I only know the grams of solute and the volume in milliliters?

You must first convert the mass (in grams) to moles by dividing by the molar mass. Then, convert the volume to liters by dividing the milliliters by 1000. Finally, divide the number of moles by the volume in liters. For example, 10 grams of NaOH (Molar mass 40 g/mol) in 500 mL of solution: Moles = 10 / 40 = 0.25 mol. Volume = 500 / 1000 = 0.5 L. Molarity = 0.25 / 0.5 = 0.5 mol/L. This is the exact sequence the calculator follows automatically.

2. What is the difference between molarity (M) and molality (m)?

Molarity (M) is the concentration expressed as moles of solute per liter of solution. Molality (m) is concentration expressed as moles of solute per kilogram of solvent. The critical difference is that molarity depends on the total volume of the solution, which can change slightly with temperature due to thermal expansion. Molality is based on the mass of the solvent, which does not change with temperature, making it useful for experiments involving temperature variations. Our calculator specifically computes molarity (mol/L).

3. Can I use this calculator to find the mass of solute needed to make a specific molarity?

This specific calculator is designed to find the molarity and moles from a given mass and volume. To determine the mass of solute needed, you would need to rearrange the formula. First, calculate the moles required (Molarity × Volume in L), then multiply that by the molar mass to get the grams required. For instance, to make 0.5 L of a 2 M solution of NaCl (58.44 g/mol): Moles needed = 2 × 0.5 = 1 mole. Mass needed = 1 × 58.44 = 58.44 grams. While our tool currently outputs molarity and moles, you can use the moles output to verify your manual calculations or perform a quick reverse calculation.

FAQ

How do I use the Molarity Calculator to find the mass of a solute needed for a solution?

Enter the desired molarity, the volume of the solution in liters, and the molecular weight of the solute. The calculator will multiply molarity by volume to get moles, then multiply by molecular weight to give you the required mass in grams.

What units should I input for volume and molarity?

You should input volume in liters (L) for direct calculation, but the calculator accepts milliliters (mL) as well and automatically converts them to liters. Molarity should be entered in moles per liter (mol/L), which is the standard unit for concentration.

Can this calculator work backwards to find molarity if I know the mass and volume?

Yes, the Molarity Calculator has a reverse mode where you can input the solute mass, its molecular weight, and the solution volume. It will then output the resulting molarity by dividing the moles of solute by the volume in liters.

Does the calculator account for the density of the solvent or the final solution volume?

No, the calculator assumes that the solute mass is added to a solvent to a final total volume, not that the solvent volume alone is measured beforehand. For accurate results, you should prepare the solution by dissolving the solute and then adjusting the final volume with solvent to your target volume.