ThisCalculator

Everyday

Molarity Calculator: How to Calculate Molarity

Updated · Standard formula, shown below

Moles of solute 1.0000 mol
Molarity
1.0000 mol/L
Result
Mass of solute
58.44 g
You entered
Molar mass of solute
58.44 g/mol
You entered

This molarity calculator works out the molar concentration of a solution from the mass of solute, its molar mass, and the volume of solvent. You enter those three values, and you get the molarity in mol/L (M) instantly, along with the number of moles of solute. The formula is the standard one used in every chemistry lab: molarity = moles of solute ÷ liters of solution.

Formula

The molarity (M) of a solution is defined as the number of moles of solute dissolved in one liter of solution. The formula is:

M = n / V

Where:

  • M = molarity (mol/L, also written as M)
  • n = amount of solute in moles (mol)
  • V = volume of the solution in liters (L)

When you start with the mass of the solute, you first convert mass to moles using the molar mass:

n = mass / molar mass

So the combined formula becomes:

M = (mass / molar mass) / V

All quantities must be in the correct units: mass in grams, molar mass in g/mol, and volume in liters. If your volume is in milliliters, divide by 1000 to get liters before using the formula.

Worked Example

Using the default values from the calculator above:

  • Mass of solute = 58.44 g
  • Molar mass of solute = 58.44 g/mol
  • Volume of solution = 1 L

Step 1: Convert mass to moles

n = 58.44 g ÷ 58.44 g/mol = 1.000 mol

Step 2: Divide moles by volume

M = 1.000 mol ÷ 1 L = 1.000 mol/L

So the molarity is 1.000 M. This matches the calculator’s output. Notice that 58.44 g/mol is the molar mass of sodium chloride (NaCl), so dissolving 58.44 g of NaCl in enough water to make 1 liter of solution gives a 1 M salt solution.

Why Molarity Matters

Molarity is one of the most common ways to express concentration in chemistry. It appears in stoichiometry calculations, reaction rate studies, and when preparing solutions for titrations or buffers. Unlike percent concentration, molarity directly relates to the number of particles (molecules or ions) in solution, which is what reacts chemically. For example, a 1 M solution of HCl contains 1 mole of HCl molecules per liter, and a 1 M solution of CaCl2 contains 1 mole of CaCl2 per liter – but because CaCl2 dissociates into three ions, it has a higher ionic strength than NaCl.

Molarity is also temperature-dependent because volume changes with temperature. A solution that is 1 M at 20°C may be slightly different at 30°C. For precise work, chemists sometimes use molality (moles per kilogram of solvent), which does not change with temperature.

How to Choose the Right Values

To use the calculator correctly, you need three pieces of information:

  • Mass of solute – the amount of solid or liquid you weigh out, in grams.
  • Molar mass – the mass of one mole of the substance. You can find this from the periodic table by adding up the atomic masses of all atoms in the formula. For example, the molar mass of NaOH is 22.99 (Na) + 16.00 (O) + 1.008 (H) = 40.00 g/mol.
  • Volume of solution – the final total volume after the solute is dissolved and the solution is made up to the mark, in liters. If you have milliliters, convert to liters by dividing by 1000.

Remember that the volume is the final solution volume, not the volume of solvent you started with. When you dissolve a solid, the final volume is usually slightly different from the solvent volume. Always use a volumetric flask and add solvent to the calibration mark.

Common Mistakes and How to Avoid Them

  • Using solvent volume instead of solution volume. The formula uses the total volume of the final solution, not the volume of water added. If you add 1 L of water to a solid, the final volume may be more than 1 L.
  • Forgetting to convert mL to L. A common error is plugging in 500 for volume when it is 500 mL, which should be 0.5 L. This makes the molarity 1000 times too small.
  • Using the wrong molar mass. Hydrates (like CuSO4·5H2O) have water molecules included in their formula mass. Use the molar mass of the entire hydrate, not just the anhydrous salt.
  • Confusing molarity with molality. Molality is moles of solute per kilogram of solvent, not per liter of solution. They are numerically close for dilute aqueous solutions but not identical.
  • Rounding too early. Keep extra significant figures during intermediate steps and round only at the end.

Limitations of the Formula

The molarity formula assumes ideal behavior – that the solute dissolves completely and that the volume is additive. In reality, some solutes dissociate partially (weak acids and bases), and the actual concentration of ions may be lower than the nominal molarity. For strong electrolytes like NaCl, the formula works well because dissociation is essentially complete. For non-electrolytes like glucose, molarity equals the actual concentration of molecules.

Molarity also changes with temperature because liquids expand when heated. If you prepare a solution at 25°C and use it at 35°C, the molarity will be slightly lower. For most educational and routine lab work, this effect is negligible, but for high-precision analytical chemistry, temperature control is essential.

Another limitation: the formula assumes you know the molar mass of the solute. For unknown compounds, you would need to determine the molar mass experimentally (e.g., by mass spectrometry or freezing point depression) before you can calculate molarity.

Frequently Asked Questions

How do I calculate molarity from grams?

First convert grams to moles by dividing by the molar mass of the solute. Then divide the number of moles by the volume of the solution in liters. For example, 10 g of NaOH (molar mass 40 g/mol) dissolved in 500 mL gives 0.25 mol ÷ 0.5 L = 0.5 M.

What is the difference between molarity and molality?

Molarity (M) is moles of solute per liter of solution, while molality (m) is moles of solute per kilogram of solvent. Molarity depends on temperature because volume changes with temperature; molality does not because mass is constant. For dilute aqueous solutions, the numerical values are close, but they are not the same.

How do I make a 1 M solution?

Weigh out the molar mass of the solute in grams (e.g., 58.44 g for NaCl). Dissolve it in a small amount of solvent, then transfer to a 1 L volumetric flask and add solvent up to the 1 L mark. Mix well. This gives exactly 1 mole of solute per liter of solution.

Can molarity be greater than 1?

Yes, molarity can be any positive number. Concentrated hydrochloric acid is about 12 M, and concentrated sulfuric acid is about 18 M. However, very high molarities are limited by solubility – you cannot dissolve more solute than the solvent can hold at a given temperature.

Why do I need to use a volumetric flask instead of a beaker?

A volumetric flask is calibrated to hold an exact volume at a specific temperature. Beakers and graduated cylinders are less precise. For accurate molarity, you need to know the final volume precisely, and a volumetric flask provides that accuracy.

What if my solute is a liquid?

For liquid solutes, you usually measure the volume of the liquid, then convert to mass using its density (mass = volume × density). Then proceed as with a solid: convert mass to moles using the molar mass, then divide by the final solution volume. For example, to make a 1 M solution of HCl from concentrated HCl (about 12 M), you would dilute it, not weigh it.

Related

Formula used
in mass | Mass of solute | g | 58.44 | 0
in molar_mass | Molar mass of solute | g/mol | 58.44 | 0
in volume | Volume of solution | L | 1 | 0
out moles | Moles of solute | mol | mass / molar_mass | 4
out molarity | Molarity | mol/L | moles / volume | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.