Skip to content
CalculatorGeek

Molarity Calculator

Updated Apr 2026 Used 1 times
Choose whether the amount is known as mass or moles.
Enter the amount of solute in moles or a supported submultiple.
Enter the mass of the exact solute form used.
Use the molar mass for the exact chemical form, including hydration where applicable.
Enter completed solution volume, not starting solvent volume.

Guest calculations stay on this device. Signed-in results sync privately.

Your result

Amount concentration

Enter your values, then calculate to see a verified result.

Molarity calculation pathThe result keeps the amount-to-volume sequence visible.
Amount of substanceEntered or calculated from mass
Amount concentrationMoles divided by final volume
Mass concentrationShown for mass-based input
FormulaVersioned calculationv2.5.0

What is calculated

Molarity and, when mass is entered, mass concentration from the exact solute amount and final solution volume.

Supported inputs

Mass
g, mg or kg
Amount
mol, mmol or µmol
Volume
L, mL or µL

Important limitation

The denominator is final solution volume. The result does not determine safety, solubility, pH, activity, or reaction yield.

Result actions Compare
1
Normalize inputsConvert the entered units to mol, g, and L500.0 mL = 0.5000 L
2
Find molesUse entered moles or divide mass by molar massn = m / Mr
3
Divide by volumeUse completed solution volumec = n / V

Interpretation

The amount concentration is .

Moles are calculated from the entered amount before division by final volume.

Displayed decimals do not establish laboratory measurement accuracy.

Use this result

Public verification recordFormula v2.5.0
Review scope
Formula, Units, Labels, Validation, Content Package, And Internal-route Implementation
Review team
CalculatorGeek Algorithmic Team
Verified
Next source review
Automated fixtures
6 cases

Review method

Formula identities, unit normalization, supplied acceptance cases, invalid boundaries, links, and rendered output are checked separately.

Known limitations

  • Final solution volume, not starting solvent volume, is the denominator.
  • Molar mass must match the exact chemical form used.
  • Purity, solubility, pH, activity, reaction yield, and chemical safety are outside this calculation.

Primary sources

Latest update

2026-09-09 · Rebuilt only the Molarity calculator and approved cluster from the dedicated package.

Published calculation checks

CaseInputsExpected result
Main sodium chloride reference{"basis":{"value":"mass"},"mass":{"value":5,"unit":"g"},"molar_mass":{"value":58.44,"unit":"g/mol"},"volume":{"value":500,"unit":"mL"}}{"molarity":0.1711156742,"mass_concentration":10}
Mass and volume unit equivalence{"basis":{"value":"mass"},"mass":{"value":500,"unit":"mg"},"molar_mass":{"value":58.44,"unit":"g/mol"},"volume":{"value":50,"unit":"mL"}}{"molarity":0.1711156742,"mass_concentration":10}
Known moles reference{"basis":{"value":"moles"},"moles_input":{"value":0.5,"unit":"mol"},"volume":{"value":2,"unit":"L"}}{"molarity":0.25}
On this page

Molarity formula

Molarity, more formally called amount concentration, is the amount of a constituent divided by the volume of the mixture. In common laboratory units:

c = n / V

where:

  • c is molarity in moles per liter, mol/L;
  • n is amount of solute in moles, mol;
  • V is final solution volume in liters, L.

When solute mass and molar mass are known:

n = m / M_r

Therefore:

c = m / (M_r × V)

Here m is solute mass in grams and M_r is the entered molar mass in grams per mole. The interface may use “molecular weight,” but molar mass is the dimensioned quantity used in the calculation.

How to use the calculator

  1. Enter the mass of the solute and select its unit.
  2. Enter the molar mass for the exact chemical form used, including waters of hydration where applicable.
  3. Enter the final volume of the completed solution and select its unit.
  4. Calculate the result.
  5. Check the normalized grams, liters, and formula substitution before using the displayed value.

Do not enter the volume of solvent added at the beginning unless it is also the measured final solution volume. Dissolving a solute can change the total volume.

Worked example using sodium chloride

Suppose 5.00 g of sodium chloride is brought to a final solution volume of 500.0 mL. PubChem lists a molecular weight of 58.44 g/mol for sodium chloride.

Convert the final volume:

500.0 mL = 0.5000 L

Calculate moles:

n = 5.00 g / 58.44 g/mol = 0.08556 mol

Calculate molarity:

c = 0.08556 mol / 0.5000 L = 0.1711 mol/L

With the significant figures supported by these inputs, report the result as approximately 0.171 M.

The corresponding mass concentration is:

5.00 g / 0.5000 L = 10.0 g/L

Molarity and mass concentration are different outputs. Molarity uses amount of substance per volume; mass concentration uses mass per volume.

How the calculator should process inputs

The implementation should normalize each input before calculation:

  • mass to grams;
  • molar mass to grams per mole;
  • final solution volume to liters.

It should retain adequate internal precision, calculate moles, calculate molarity, and round only the displayed result. If the page offers M, mM, micromolar, or nanomolar output, convert from the unrounded base result.

The secondary output currently labelled “Concentration” should be labelled Mass concentration. Its help text should state that it is solute mass divided by final solution volume. Remove the existing comparison with density.

Molarity units

UnitEquivalent in mol/LSymbol
molar1M
millimolar10^-3mM
micromolar10^-6µM
nanomolar10^-9nM
picomolar10^-12pM

For example, 0.00250 M = 2.50 mM = 2,500 µM.

Assumptions and limitations

  • The denominator is final solution volume, not solvent volume.
  • The molar mass must match the material used. An anhydrous compound and a hydrate have different molar masses.
  • Purity or assay is not applied unless the calculator has a separate, verified purity input.
  • The result is an analytical amount concentration for the entered chemical entity. It does not automatically calculate the concentrations of ions after dissociation.
  • Molarity is volume-based and can change when temperature changes solution volume.
  • Displayed decimals do not prove measurement accuracy. The balance, glassware, reagent, and inputs determine practical uncertainty.
  • The calculator does not determine solubility, reaction yield, pH, chemical activity, compatibility, or safe handling.

Common mistakes

  • Entering milliliters as liters without converting.
  • Using starting water volume instead of final solution volume.
  • Using the molar mass of the wrong hydrate, salt, or reagent form.
  • Confusing molarity with molality, mass percent, normality, or mass concentration.
  • Rounding moles before the final division.
  • Treating 0.1 M and 0.1 mM as equivalent; they differ by a factor of 1,000.

Frequently asked questions

How do I calculate molarity from grams?

Divide solute mass in grams by molar mass in grams per mole to obtain moles. Divide those moles by final solution volume in liters. In one expression, c = m / (M_r × V).

Is molarity based on solution volume or solvent volume?

Molarity is based on the final volume of the solution. Adding solute to a measured volume of solvent does not necessarily leave the total volume unchanged.

What is the difference between M and mM?

1 M = 1,000 mM. A value of 0.025 M is therefore 25 mM.

Can molarity be negative?

A physical amount concentration is not negative. The interface should reject negative mass, molar mass, or volume values.

Does temperature affect molarity?

Molarity can change with temperature because it is defined using solution volume. Molality uses solvent mass and is not affected by thermal expansion in the same way.

Can this calculator prepare a safe laboratory solution?

It performs concentration arithmetic only. It does not evaluate hazards, incompatibilities, exothermic mixing, solubility, purity, equipment, or laboratory procedure. Follow the reagent's safety data and an approved protocol.

Sources