# Molarity Calculator

URL: https://hifreetools.com/science/molarity-calculator

> Calculate molar concentration (mol/L) from moles and volume, or rearrange the formula to solve for moles or volume when you know the molarity.

## Quick answer

Molarity is the number of moles of solute divided by the volume of solution in liters: M = moles ÷ volume(L). Enter any two of the three quantities — moles, volume, or molarity — and the calculator solves for the missing one. For example, 0.5 mol of solute dissolved in 2 L of solution gives a molarity of 0.25 mol/L.

## Formula

- Molar concentration: M = n ÷ V

## Examples

- Find molarity from moles and volume: 0.5 mol of NaCl dissolved in 2 L of solution → 0.25 mol/L
- Find moles from molarity and volume: Molarity = 0.1 mol/L, Volume = 0.5 L → 0.05 mol
- Find volume from moles and molarity: 2 mol of solute at a target concentration of 0.5 mol/L → 4 L
- Convert milliliters before solving: 0.25 mol of glucose in 250 mL of solution → 1 mol/L

## FAQ

**What is the formula for molarity?**
Molarity equals moles of solute divided by the volume of solution in liters: M = moles ÷ liters. Rearranged, moles = molarity × liters and liters = moles ÷ molarity.

**What units does molarity use?**
Molarity is measured in moles per liter (mol/L), abbreviated M and read as 'molar'. A 1 M solution contains 1 mole of solute per liter of solution. Always convert volumes to liters before calculating.

**How do I calculate molarity from grams?**
First convert grams to moles by dividing the mass by the substance's molar mass (g/mol), then divide the moles by the volume in liters. For example, 58.44 g of NaCl is 1 mol, so 58.44 g in 2 L is 0.5 mol/L.

**What is the difference between molarity and molality?**
Molarity is moles of solute per liter of solution (mol/L), while molality is moles of solute per kilogram of solvent (mol/kg). Molarity changes slightly with temperature because volume expands; molality does not.

**Is molarity the same as concentration?**
Molarity is one specific type of concentration — the molar concentration in mol/L. 'Concentration' is a broader term that also covers mass/volume, percent, molality, and parts per million, so molarity is a subset of concentration.

**How do I find the volume needed for a given molarity?**
Rearrange the formula to volume = moles ÷ molarity. For example, to dissolve 2 mol of solute at 0.5 mol/L you need 2 ÷ 0.5 = 4 liters of total solution. This calculator does the rearrangement for you: enter the moles and the molarity, and it solves for the volume.


## Sources

- [Molar concentration — Wikipedia](https://en.wikipedia.org/wiki/Molar_concentration)
- [Mole (unit) — Wikipedia](https://en.wikipedia.org/wiki/Mole_(unit))
- [SI base unit: mole — NIST](https://www.nist.gov/si-redefinition/mole)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Molarity Calculator", https://hifreetools.com/science/molarity-calculator
