Molarity Calculator
Free molarity calculator: enter any two of moles, litres and molarity to solve for the third. Includes the molarity formula (M = moles ÷ litres) and worked examples.
Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser
What is a molarity calculator?
A molarity calculator finds the concentration of a solution from the amount of dissolved substance and the volume it occupies. Molarity (symbol M, units mol/L) tells you how many moles of solute sit in each litre of solution. Enter any two of the three quantities — moles, litres and molarity — and the tool returns the third. Chemistry students, lab technicians and teachers use it to prepare solutions, check homework and double-check bench calculations in seconds.
How the molarity formula works
The core relationship is M = moles ÷ litres: molar concentration equals the moles of solute divided by the volume of solution in litres. The same equation rearranges three ways depending on what you need:
- Solve for molarity:
M = moles ÷ litres - Solve for moles:
moles = M × litres - Solve for volume:
litres = moles ÷ M
The terms and their units are:
- M (molarity) — molar concentration in moles per litre (mol/L), also written M.
- moles — the amount of solute, measured in mol.
- litres — the total volume of the finished solution in litres (L), not the volume of solvent alone.
Volume and molarity must be greater than zero whenever they are used as divisors, because dividing by zero is undefined. Notice that molarity is moles per litre of solution, so the solute is dissolved and then topped up to the final volume — it is not simply added to a fixed amount of water.
Examples
Each example below reproduces exactly what the calculator returns.
Example 1 — solve for molarity. You dissolve 0.5 mol of solute and dilute to 2 L of solution.
M = moles ÷ litres = 0.5 ÷ 2 = 0.25 mol/L
Result: the solution is 0.25 mol/L (0.25 M).
Example 2 — solve for moles. You have 2 L of a 0.25 mol/L solution and want the amount of solute it contains.
moles = M × litres = 0.25 × 2 = 0.5 mol
Result: the solution contains 0.5 mol of solute.
Example 3 — solve for volume. You need 0.5 mol of solute at a target concentration of 0.25 mol/L.
litres = moles ÷ M = 0.5 ÷ 0.25 = 2 L
Result: you need 2 L of solution. These three examples are the same scenario solved from each direction, which is a quick way to confirm the tool and your own arithmetic agree.
Molarity reference table
This chart shows how molarity changes as you vary moles and volume. Every row uses M = moles ÷ litres, so you can scan it to sanity-check a result before trusting it.
| Moles (mol) | Volume (L) | Molarity (mol/L) | Read as |
|---|---|---|---|
| 0.5 | 2 | 0.25 | 0.25 M |
| 1 | 2 | 0.5 | 0.5 M |
| 1 | 1 | 1 | 1 M |
| 2 | 1 | 2 | 2 M |
| 0.5 | 0.5 | 1 | 1 M |
| 0.1 | 0.5 | 0.2 | 0.2 M |
| 3 | 1.5 | 2 | 2 M |
Halving the volume doubles the molarity, and doubling the moles doubles the molarity — concentration scales directly with solute and inversely with volume.
Common uses
- Chemistry homework and exams — solve for molarity, moles or volume and verify each step of a problem.
- Preparing solutions — work out how many moles of reagent to weigh out for a target concentration and volume.
- Titration setup — confirm the molarity of a standard or unknown when planning a titration.
- Diluting stock — combine with volume figures to plan how much concentrate and solvent you need.
- Teaching — show that molarity is just moles per litre and that the same formula answers three different questions.
Tips and common mistakes
- Use litres, not millilitres. Convert mL to L by dividing by 1000, so 250 mL becomes 0.25 L before you calculate.
- Volume of solution, not solvent. Molarity uses the final total volume after the solute is dissolved, not the water you started with.
- Keep divisors positive. A volume or molarity of zero is rejected because it would mean dividing by zero, which is undefined.
- Moles versus grams. This tool works in moles; if you have grams, divide by the molar mass first to get moles.
- Mind what you are solving for. Multiplying when you should divide is the most common slip — moles = M × litres, but volume = moles ÷ M.
- Molarity is not molality. Per litre of solution is molarity (mol/L); per kilogram of solvent is molality (mol/kg), and they are not interchangeable.
Limitations and notes
This calculator handles the direct relationship between moles, litres and molarity and does not convert grams to moles for you — work out moles from molar mass first. Molarity depends slightly on temperature because liquid volume expands and contracts as temperature changes, so a solution prepared at one temperature drifts a little when warmed or cooled; for precise work, prepare and measure at a stated temperature. The tool also assumes the solute fully dissolves and that you have measured the total solution volume rather than the solvent volume. Treat it as a study and bench aid for ideal, fully dissolved solutions rather than a substitute for careful volumetric glassware.
For more science tools, try the pH calculator, the density calculator or the combined gas law calculator, and browse the full chemistry and physics category.
Frequently asked questions
How do you calculate molarity?+
Divide the moles of solute by the volume of solution in litres: M = moles ÷ litres. For example, 0.5 mol in 2 L gives 0.5 ÷ 2 = 0.25 mol/L.
What is the molarity of 0.5 mol of solute dissolved in 2 litres?+
It is 0.25 mol/L, because 0.5 mol ÷ 2 L = 0.25 mol/L (also written 0.25 M).
How many moles are in 2 litres of a 0.25 mol/L solution?+
Multiply molarity by volume: 0.25 mol/L × 2 L = 0.5 mol of solute.
What volume do I need for 0.5 mol at 0.25 mol/L?+
Divide moles by molarity: 0.5 mol ÷ 0.25 mol/L = 2 L of solution.
What units does the molarity calculator use?+
Molarity is in moles per litre (mol/L, also written M), moles are in mol, and volume is in litres. Convert millilitres to litres by dividing by 1000.
What is the difference between molarity and molality?+
Molarity is moles of solute per litre of solution, while molality is moles of solute per kilogram of solvent. This tool calculates molarity only.
Why must volume and molarity be greater than zero?+
They are used as divisors, and dividing by zero is undefined. A solution must occupy some volume and hold some solute to have a defined concentration.