Science & Electronics · Formula v1.0

Molarity Calculator

Use the Molarity Calculator to calculate the molar concentration of a solution from moles and volume.

Molarity changes with temperature because liquid volume expands or contracts. At the worked-example inputs, the molarity is 0.5 mol/L. Molarity is the concentration in moles of solute per liter of solution. On the example, 0.5 moles in 1 liter is a 0.5 molar solution, or 500 millimolar. Use it to prepare solutions for reactions, to compare concentrations and to plan dilutions. Higher molarity means more solute particles per liter, which matters for reaction rates, osmotic pressure and pH of acids and bases. Molarity changes with temperature because volume expands or contracts, and molality, based on mass of solvent, does not. It returns molarity (mol/l), millimolar (mmol/l).

FreeNo sign-upInputs stay in-browserCSV exportReviewed August 28, 2026
LAST REVIEWEDAugust 28, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Molarity (mol/L)0.5
Millimolar (mmol/L)500
Sensitivity check

What if moles of solute changes?

-10% input0.45
0% input0.5
+10% input0.55

Transparent method

The formula

Molarity = moles of solute ÷ liters of solution

Worked example

Molarity (mol/L)0.5
Millimolar (mmol/L)500

Example inputs

Moles of solute0.5
Solution volume (L)1

How to interpret the result

Molarity is defined against a specific solution volume, and because liquids expand and contract with temperature, the identical mass of dissolved solute in the identical container can measure as a slightly different molarity depending on the temperature at which the volume was measured, a real effect, not a calculation error.

Before you rely on it

What to check

Note the temperature at which a solution's volume was measured when precision matters, since molarity is technically temperature-dependent even though the mass of solute hasn't changed.

The common error

Where people go wrong with molarity calculator

Treating molarity as a temperature-independent fixed property of a solution. The volume it's calculated against shifts slightly with temperature, so precise work needs to account for that rather than assuming the figure holds at any temperature.

Sensitivity evidence

How moles of solute changes the molarity (mol/l)

Molarity Calculator: molarity (mol/l) and millimolar (mmol/l) across a range of moles of solute, every other input held at the worked-example value.
Moles of soluteMolarity (mol/L)Millimolar (mmol/L)
0.40.4400
0.450.45450
0.5worked example0.5500
0.550.55550
0.60.6600

Every input, tested

Which input moves the molarity (mol/l) most

Molarity Calculator: molarity (mol/l) with each input moved on its own, every other input held at the worked-example value.
InputTested fromToMolarity (mol/L) at each endSwing
Solution volume (L)0.91.10.556 to 0.4550.101 (20%)
Moles of solute0.450.550.45 to 0.550.1 (20%)

Two variables at once

Molarity (mol/L) by moles of solute and solution volume (l)

Molarity Calculator: molarity (mol/l) at each combination of moles of solute (rows) and solution volume (l) (columns).
Moles of solute \ Solution volume (L)0.811.2
0.40.50.40.333
0.450.5630.450.375
0.50.6250.50.417
0.550.6880.550.458
0.60.750.60.5

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the molarity calculator.
InputValue used
Moles of solute0.5
Solution volume (L)1
Molarity (mol/L)0.5
Millimolar (mmol/L)500

Where the inputs come from

Enter the moles of solute and the volume of the solution in liters. Moles are the mass of the substance divided by its molar mass, which you can find from the periodic table. The volume is the total volume of the final solution, not the volume of solvent added. If you have milliliters, divide by 1,000. Use a volumetric flask for accurate preparation.

When the result stops applying

The formula assumes complete dissolution. For strong acids and bases, molarity of the solution differs from the concentration of ions, and weak acids only partly ionize. Always follow safety rules when handling chemicals.

What to compare it with

Prepare dilutions on the dilution calculator, express concentrations as parts per million on the ppm page, find pH on the pH calculator and mass on the weight converter. The density and percent yield calculators are used in the same laboratory work.

People also ask

Frequently asked questions

What does molarity measure exactly?

The number of moles of solute dissolved per liter of solution, written as mol/L or M.

How do I find moles from grams?

Divide the mass in grams by the molar mass of the substance, from the periodic table.

Why use the volume of the solution and not the solvent?

Because dissolving the solute changes the total volume, and molarity is defined per liter of the final solution.

Common science & electronics questions

Sources and evidence