FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova ยท Lab & chemistry calculators

Molarity Calculator Online

Work out the molarity of a solution from the mass of solute, its molar mass and the final volume. Also shows moles and g/L.

Molarity Calculator

Free molarity calculator that runs in your browser. Nothing is uploaded.

M = (g รท MW) รท L
Calculator inputs
โ€”
Molarityโ€”
Molesโ€”
g/Lโ€”
Final volumeโ€”
โœ“ Free โ€ข โœ“ No signup โ€ข โœ“ Mobile friendly

Use the exact chemical form, concentration basis, reaction factor, and source values required by your method.

Use the final volume of the whole solution after mixing, not the volume of solvent added.

How to calculate molarity from mass

1Enter solute mass

Type the grams of solute you dissolved.

2Add molar mass and volume

Enter g/mol and the final solution volume in litres.

3Read molarity

See M, moles of solute and g/L.

Molarity from mass examples

Molarity = (mass รท molar mass) รท final volume in litres.

For volumes in mL, divide by 1000 before entering.

SoluteMassFinal volumeMolarity
NaCl5.844 g1 L0.100 M
NaCl2.922 g0.5 L0.100 M
NaCl9 g1 L0.154 M
Tris base12.114 g0.5 L0.200 M

Making solutions to a target molarity

This short guide explains what the molarity calculator does, how to get the best result and when another tool is a better fit.

What the Mass Molarity Calculator Solves

The calculator converts a known solute mass into molarity when molar mass and final solution volume are known. It first converts grams to moles, then divides those moles by liters of final solution.

Molarity Calculator โ€“ g + L to M
How the molarity calculator works: g + L in, M out.

Core Formula

M = mass(g) รท [molar mass(g/mol) ร— volume(L)]. This is the same as moles/volume after substituting moles = mass/molar mass.

Worked Example

If 5.85 g of a 58.5 g/mol compound are present in 0.500 L final solution, moles = 0.100 mol and molarity = 0.200 M.

Final Volume Is Essential

The volume in the denominator is final solution volume, not solvent volume added. Preparing a 500 mL solution generally means bringing the dissolved solute to 500 mL final volume according to the method.

Molar Mass Must Match Chemical Form

An anhydrous compound and its hydrate have different formula masses. If the wrong molar mass is entered, the calculated moles and molarity will both be wrong. Use the Molecular Weight Calculator with the exact formula.

Mass Concentration Connection

Mass concentration in g/L can be divided by molar mass in g/mol to obtain mol/L. The Mass Concentration Calculator can establish g/L first when that is the natural source data.

Purity and Assay

If the weighed material is not 100% active or the method specifies an assay correction, effective solute mass may differ from gross weighed mass. Apply only corrections required by the validated method.

mg and mL Inputs

Mass and volume can be converted before the formula. Milligrams must be divided by 1,000 to obtain grams; milliliters must be divided by 1,000 to obtain liters. The two conversions often cancel numerically when using mg/mL as g/L, but the unit reasoning should remain explicit.

Reverse Calculation

Required mass can be found from mass = M ร— molar mass ร— volume. The Stock Solution Calculator is useful when the target molarity and final volume are known.

Record Both Theoretical and Actual Values

A calculated molarity is theoretical unless the preparation and material meet the stated assumptions. Record actual weighed mass and final volume so the concentration can be reconstructed.

Using g/L as an Independent Check

A useful alternate route is to calculate mass concentration first: grams divided by liters gives g/L. Then divide g/L by molar mass in g/mol to obtain mol/L. This two-stage route should agree with the direct formula and can make unit cancellation more intuitive. The Mass Concentration Calculator can provide the first step independently.

Further reading: Molar concentration explained. It explains the format behind this molarity calculator in more detail.

Where itโ€™s used

Stock prep

Check the molarity you made.

Recipes

Verify protocol amounts.

QC

Record concentrations accurately.

Teaching

Check molarity homework.

Quick fixes

Volume entered in mL

Divide by 1000; the box expects litres.

Molarity lower than expected

Use final solution volume, not solvent volume.

Hydrate weighed

Molar mass must be for the exact form you weigh, including any water of crystallisation.

Need grams for a target M

Rearrange: grams = M ร— L ร— molar mass, or use Molarity to mg/mL.

Frequently asked questions

What is the formula?

Molarity = (mass รท molar mass) รท volume in L.

Which volume do I use?

The final volume of the solution.

How do I enter 250 mL?

Enter 0.25 L.

What is 5.844 g NaCl in 1 L?

0.100 M.

Does it show moles?

Yes, moles and g/L are shown too.

Is molarity the same as molality?

No; molality uses kg of solvent.

Is my data uploaded?

No. The molarity calculator works entirely in your browser, so your file stays on your device.

Does temperature matter?

Volume changes slightly with temperature.

How do I hit an exact molarity?

Dissolve, then make up to the mark in a volumetric flask.

Can I dilute afterwards?

Use the C1V1 Dilution Calculator.