The Calc Guide › Calculator

Molarity Calculator

A molarity calculator solves M = n / V for any one of molarity, moles, volume or mass: 0.5 mol in 2 L is 0.25 M, and a mass joins through the molar mass, since 5.844 g of sodium chloride at 58.44 g/mol is exactly 0.1 mol. Volumes take liters or milliliters. Checked November 2026.

Last updated: November 26, 2026

Solve molarity, moles, volume or mass from M = n / V, with grams bridged by the molar mass

Solve for
The amount is given as

Molarity is moles per liter of the finished solution, so the volume is the final volume after mixing, not the water you started with. The molar mass is an input here, never a preset: read it off the periodic table for your compound, for example 58.44 g/mol for sodium chloride.

How this is worked out

Molarity = moles divided by volume in liters: M = n / V.

Every other solve is the same relation rearranged.

Molarity-
Molarity-
Amount-
Volume-
Mass-

Next: work a genetics cross with the Punnett Square Calculator

Free. No sign-up. Calculated in your browser; nothing is sent to our servers.

What this calculator does

Molarity is the concentration language of the chemistry lab: moles of solute per liter of solution, written M and defined by one relation, M = n / V. This calculator solves that relation for whichever of its four quantities you do not know. Find the molarity from an amount and a volume, the moles a target molarity needs, the volume an amount makes at a chosen strength, or the mass to weigh out, with the molar mass bridging grams and moles wherever mass enters. The amount can be given as moles directly or as a mass with its molar mass, and volumes take liters or milliliters; a milliliter entry is divided by 1,000 to get liters.

The molar mass is an entry you supply for your compound. A zero or negative volume, molarity or molar mass is not divided by: the calculator returns an error instead of a number. The limits are listed under Limits and edge cases below. Figures are as of November 2026; see Sources and method.

Worked example: 0.5 mol in 2 L, then the same solution by mass

Start with the amount in moles: M = 0.5 / 2 = 0.25 M exactly. Now start from grams instead. Set The amount is given as to Mass (g), then enter 5.844 g with a molar mass of 58.44 g/mol, the molar mass of sodium chloride. The moles come first: 5.844 / 58.44 = 0.1 mol exactly. In a volume of 500 mL, which is 0.5 L, the molarity is 0.1 / 0.5 = 0.2 M. Every mode below works the same way: the given quantities in, the missing one out.

The four solves, one verified state each

Each row gives the answer the relation produces for its givens. These four states were recomputed in November 2026 (see 08).

Scroll sideways to see all columns →

Solve for Given Answer
Molarity 0.5 mol in 2 L 0.25 M
Moles 0.25 M in 2 L, molar mass 58.44 g/mol 0.5 mol, which is 29.22 g
Volume 0.1 mol at 0.2 M 0.5 L, which is 500 mL
Mass 0.10 M in 250 mL, molar mass 58.44 g/mol 1.461 g

The mass row is the weigh-out question: 0.10 mol/L x 0.25 L is 0.025 mol, and 0.025 mol x 58.44 g/mol is 1.461 g of sodium chloride to weigh for 250 mL of a 0.10 M solution.

How molarity works

Molarity M = moles n / volume V in liters, and moles n = mass / molar mass

One definition and one bridge run the whole page. The definition counts solute per liter of finished solution; the bridge converts between the moles the definition wants and the grams a balance measures. Three consequences are worth carrying into the lab.

  • The volume is the finished solution: a 0.25 M solution holds 0.25 mol in each liter of the finished solution. One way to make it is to put the solute into a flask and fill to the mark, so the volume that counts is the final volume, not the solvent you added.
  • Milliliters convert before anything divides: 500 mL enters the formula as 0.5 L. Skipping that step makes an answer off by a factor of 1,000, since 1 L is 1,000 mL. The tool has a volume unit selector, so pick liters or milliliters to match your number.
  • The molar mass comes from the periodic table: add the atomic masses of the formula. Sodium chloride is 22.990 for sodium plus 35.45 for chlorine, 58.44 g/mol. A hydrate carries water in its formula, so its molar mass differs from the dry salt’s, and the compound on your bench decides which number to use.

Limits and edge cases

  • Volume must be greater than 0. A zero or negative volume returns an error, not a number.
  • When you solve for volume, molarity must be greater than 0, because the volume is moles divided by molarity. When you solve for moles or mass, a molarity of 0 gives 0.
  • Whenever a mass is involved, the molar mass must be greater than 0. A negative amount or a negative mass returns an error.
  • A zero amount is a real answer: 0 mol in 1 L is 0 M.
  • The calculator does the arithmetic and does not check that a result is possible in a real flask. For example, 1,000,000 mol in 1 L returns 1,000,000 M.
  • Scope: one relation, M = n / V. There is no dilution (C1V1 = C2V2), molality or percent solution mode.
  • Rounding: the examples on this page come out exact, so nothing was rounded. When a result does not end, such as 1 mol in 3 L, which is 0.3333… M, round only the final answer. OpenStax Chemistry 2e, section 3.3, warns that rounding intermediate results can cause errors in the final result. Its Example 3.17 shows the effect: 1.325 mol x 58.44 g/mol = 77.433 g, which is 77.4 g, but cutting the moles to 1.32 first gives 77.1408 g, which is 77.1 g.

Sources and method

Definition. OpenStax Chemistry 2e, section 3.3 (https://openstax.org/books/chemistry-2e/pages/3-3-molarity) defines molarity as the number of moles of solute in exactly 1 liter of the solution, M = moles of solute / liters of solution. The mass bridge n = m / molar mass is the standard step between grams and moles.

Atomic weights. NIST SP 966 (June 2019), Atomic Properties of the Elements (https://www.nist.gov/system/files/documents/2019/07/10/nist_periodictable_june_2019-crop.pdf), prints sodium 22.990, chlorine 35.45, hydrogen 1.008 and oxygen 15.999. Sodium chloride is 22.990 + 35.45 = 58.44 g/mol, and water is 2 x 1.008 + 15.999 = 18.015 g/mol.

A textbook check. OpenStax Example 3.17 asks for the grams of NaCl in 0.250 L of a 5.30 M solution. With this page’s relation: 5.30 mol/L x 0.250 L = 1.325 mol, and 1.325 mol x 58.44 g/mol = 77.433 g. OpenStax gives 77.4 g of NaCl. The 1.461 g answer in the table above is this page’s own worked case, computed the same two-step way.

Conventions. Calculations run in liters, moles, grams and grams per mole, with milliliter entries divided by 1,000. A zero or negative volume, molarity or molar mass, wherever one would divide, returns an error. A zero amount is a real zero answer. Figures checked November 2026.

Change log

November 19, 2026: Source notes corrected (the 1.461 g answer is this page’s own case, and the OpenStax check now uses its Example 3.17). Added the NIST atomic weight source, a limits and rounding section, and proposed error messages. Removed statements about the tool’s defaults, on-screen working and display rounding.

Related calculators

The genetics side of the same school shelf is the Punnett Square Calculator. Need the molar mass first? The Molar Mass Calculator adds up the atomic masses of a formula. The label reduction inside the mass bridge, one quantity per another, is a proportion, worked in general by the Proportion Calculator. Amounts in milligrams that need a volume through a strength belong to the Mg to Ml Calculator.

Frequently asked questions

What is the formula for molarity?

Molarity is moles divided by volume in liters: M = n / V. Half a mole dissolved and made up to 2 L of solution gives 0.5 / 2 = 0.25 M. The same relation rearranges for every other question: moles are M x V, volume is n / M, and mass enters through the molar mass, because moles are grams divided by grams per mole. This calculator solves for any one of the four.

How do I find molarity from grams?

Convert the grams to moles first, then divide by the volume in liters. For 5.844 g of sodium chloride, whose molar mass is 58.44 g/mol, the amount is 5.844 / 58.44 = 0.1 mol. Made up to 500 mL, which is 0.5 L, the molarity is 0.1 / 0.5 = 0.2 M. In the tool, set The amount is given as to Mass (g), then enter the mass, the molar mass and the volume.

How many grams of NaCl make 250 mL of 0.10 M?

1.461 g. Work it in two steps: the moles needed are 0.10 mol/L x 0.25 L = 0.025 mol, and the mass is 0.025 mol x 58.44 g/mol = 1.461 g. In the tool, choose Mass in the Solve for list, set the volume unit to mL and enter 250. The same shape of calculation, with your compound’s molar mass in place of 58.44, gives the weigh-out mass for any simple solution.

What volume does 0.1 mol make at 0.2 M?

Half a liter: V = n / M = 0.1 / 0.2 = 0.5 L, which is 500 mL. Volume mode answers this shape of question: decide the strength, weigh or measure the amount, and the volume of finished solution is fixed by the relation. The answer is the volume after mixing and making up, not the solvent you start with.

Does the volume mean the water added or the finished solution?

The finished solution. Molarity is defined per liter of solution, so one way to make a liter of 0.25 M solution is to dissolve 0.25 mol of solute in some water and then add water until the total reaches one liter. That is why this calculator asks for the volume of the finished solution, not the water you started with.

Where do I find the molar mass?

Add up the atomic masses of every atom in the formula. Sodium chloride is 22.990 + 35.45 = 58.44 g/mol, using the atomic weights NIST prints. Water of hydration counts too, at 18.015 g/mol per water (2 x 1.008 + 15.999), so a hydrate weighs more per mole than the dry salt. Check the bottle label for the form you have, then enter that molar mass in the tool; the worked examples here use 58.44 so the arithmetic can be checked.

Embed this calculator

Put this calculator on your own site or blog, free, with this snippet:

Free for any site while the attribution link under the calculator stays in place. More calculators and WordPress instructions.

Educational tool only. Results are estimates based on the numbers you enter and the assumptions explained on this page, not financial advice.