๐งช Molarity Calculator: Moles, Volume and Concentration
By ToolNimba Editorial Team ยท Updated 2026-06-21
This molarity calculator finds the molar concentration of a solution using the relationship molarity = moles of solute divided by liters of solution. Enter any two of molarity, moles, and volume to solve for the third, or switch to mass mode to get molarity directly from the grams of solute and its molar mass. Volume can be typed in mL or L, and every result comes with the moles value and the steps used to reach it.
What is the Molarity Calculator?
Molarity (symbol M, units mol/L) is the most common way chemists express how concentrated a solution is. It answers a simple question: how many moles of dissolved substance (the solute) are present in one liter of the finished solution? Because it is defined per liter of solution and not per liter of solvent, you measure the volume after the solute has been dissolved and the flask filled to the mark, not before.
The core formula is molarity = moles / liters. Rearranging it gives the two other useful forms: moles = molarity x liters, and liters = moles / molarity. With any two of the three quantities you can always find the missing one, which is exactly what this tool does in solve mode. The only requirement is that volume is expressed in liters, so if you measured in milliliters you divide by 1000 first (for example, 250 mL is 0.250 L).
Very often you do not start with moles at all. You start with a mass weighed out on a balance. To get from grams to moles you divide by the molar mass of the compound (in g/mol), which you find by adding up the atomic masses of every atom in the formula. For example sodium chloride, NaCl, has a molar mass of about 58.44 g/mol, so 58.44 g is one mole. The mass mode of this calculator chains the two steps together: moles = mass / molar mass, then molarity = moles / liters.
Molarity is temperature dependent because liquids expand and contract as they warm and cool, which slightly changes the volume of the solution. For most classroom and routine lab work this effect is small enough to ignore, but in precise analytical work chemists sometimes prefer molality (moles per kilogram of solvent), which does not change with temperature. Knowing which concentration unit a procedure calls for prevents a surprising number of mistakes.
When to use it
- Preparing a solution of a known concentration for a chemistry experiment or titration.
- Converting a measured mass of solute into the molarity of the solution you dissolved it in.
- Finding how many moles of reagent are contained in a given volume of a stock solution.
- Working out what volume of solution you need to deliver a target number of moles.
How to use the Molarity Calculator
- Choose a mode: solve for molarity, moles, or volume, or switch to From mass of solute.
- In solve mode pick what to solve for, then type the two values you already know.
- Enter the solution volume and set the unit to mL or L to match your measurement.
- Read the answer, the moles of solute, and the worked steps shown below the result.
Formula & method
Worked examples
You dissolve 0.25 mol of glucose and make the solution up to 500 mL. What is the molarity?
- Convert the volume to liters: 500 mL / 1000 = 0.5 L.
- Apply the formula: molarity = moles / liters.
- molarity = 0.25 mol / 0.5 L = 0.5 mol/L.
Result: The solution is 0.5 M (0.5 mol/L).
You weigh out 58.44 g of NaCl (molar mass 58.44 g/mol) and dissolve it to make 1 L of solution.
- Find the moles: moles = mass / molar mass = 58.44 g / 58.44 g/mol = 1 mol.
- Volume is already in liters: 1 L.
- molarity = moles / liters = 1 mol / 1 L = 1 mol/L.
Result: The solution is 1 M NaCl (1 mol/L).
The three forms of the molarity equation
| To find | Formula | You need |
|---|---|---|
| Molarity (mol/L) | moles / liters | Moles and volume |
| Moles (mol) | molarity x liters | Molarity and volume |
| Volume (L) | moles / molarity | Moles and molarity |
Molar masses of common solutes (approximate, g/mol)
| Compound | Formula | Molar mass (g/mol) |
|---|---|---|
| Sodium chloride | NaCl | 58.44 |
| Glucose | C6H12O6 | 180.16 |
| Sodium hydroxide | NaOH | 40.00 |
| Sucrose | C12H22O11 | 342.30 |
| Hydrochloric acid | HCl | 36.46 |
| Potassium permanganate | KMnO4 | 158.03 |
Common mistakes to avoid
- Using milliliters instead of liters. Molarity is moles per liter, so a volume in mL must be divided by 1000 first. Forgetting this makes the answer wrong by a factor of 1000. This tool converts for you when you select mL.
- Measuring the volume of solvent, not solution. Molarity uses the volume of the finished solution after the solute is dissolved, not the volume of pure solvent you started with. Dissolving solute changes the total volume, so fill to the mark last.
- Confusing mass with moles. You cannot put grams straight into the molarity formula. Convert mass to moles by dividing by the molar mass first, then use moles. Mass mode in this tool does both steps.
- Mixing up molarity and molality. Molarity is moles per liter of solution and changes slightly with temperature. Molality is moles per kilogram of solvent and does not. They are different quantities, so do not swap one formula for the other.
Glossary
- Molarity (M)
- The concentration of a solution measured as moles of solute per liter of solution, with units mol/L.
- Solute
- The substance that is dissolved in a solution, for example the salt dissolved in salt water.
- Mole (mol)
- The SI unit for amount of substance; one mole contains about 6.022 x 10^23 particles.
- Molar mass
- The mass of one mole of a substance in grams per mole (g/mol), found by adding the atomic masses in its formula.
- Solution
- A homogeneous mixture of a solute dissolved in a solvent, such as sugar dissolved in water.
- Molality
- A concentration unit equal to moles of solute per kilogram of solvent, used when temperature independence matters.
Frequently asked questions
What is the formula for molarity?
Molarity = moles of solute / liters of solution, in units of mol/L. To find moles instead, use moles = molarity x liters; to find volume, use liters = moles / molarity. This calculator handles all three rearrangements.
How do I calculate molarity from grams?
First convert the mass to moles by dividing the grams of solute by its molar mass in g/mol. Then divide the moles by the volume of solution in liters. The From mass of solute mode in this tool does both steps automatically.
How do I convert mL to L for molarity?
Divide the milliliter value by 1000. For example, 250 mL is 0.250 L and 500 mL is 0.5 L. Molarity must use liters, so always convert before dividing. Selecting mL in the volume field does this for you.
What is the difference between molarity and molality?
Molarity is moles of solute per liter of solution and can change slightly with temperature because volume expands and contracts. Molality is moles of solute per kilogram of solvent and stays constant with temperature.
Why is volume measured after dissolving the solute?
Molarity is defined per liter of finished solution, not per liter of pure solvent. Because dissolving a solute changes the total volume, you dissolve first and then top up the solution to the final volume mark.
What does a 1 M solution mean?
A 1 molar (1 M) solution contains one mole of solute in every liter of solution. For sodium chloride, whose molar mass is about 58.44 g/mol, that means dissolving 58.44 g of NaCl and making the solution up to one liter.