Calculate concentration in mol/L from moles and volume, or from a weighed mass and molar mass — for example, 58.44 g/mol for sodium chloride.

Molarity Calculator

Get solution concentration in mol/L from moles — or straight from the grams you weighed and the solute molar mass.

Free to use Moles or mass input Millimolar detail Instant results

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for input method.

mol

Enter a valid value for moles of solute.

g

Enter a valid value for mass of solute.

g/mol

Enter a valid value for molar mass.

L

Enter a valid value for solution volume.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Molarity Calculator tinyexe.comFree online calculators

TinyExe · Molarity Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Input method

—

Moles of solute

—

Mass of solute

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Molarity Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      Molarity is moles of solute divided by litres of finished solution. Half a mole made up to one litre gives a 0.5 molar solution. From a solid, divide mass by molar mass first: 29.22 grams of sodium chloride divided by 58.44 grams per mole is half a mole, the same result.

      • M = n / V with V in litres
      • n = mass / molar mass
      • 1 M NaCl needs 58.44 g per litre

      Molar masses of common solutes

      Reference values for this calculator.

      SoluteMolar mass (g/mol)
      NaCl (table salt)58.44
      Glucose C6H12O6180.16
      NaOH40.00
      HCl36.46
      Sucrose342.30

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Molarity M = moles of solute / litres of solution; moles = mass / molar mass when starting from a weighed solid

      Enhancement: accepts either moles directly or a weighed mass plus molar mass (for example NaCl at 58.44 g/mol), and also reports millimolar for dilute lab work.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Half-molar salt

      0.5 mol NaCl made up to 1 L

      CalculationSteps
      M = 0.5 / 1 = 0.5 mol/L.0.5 M sodium chloride.

      Result

      Example 2

      Weighed solid

      29.22 g NaCl, molar mass 58.44, in 1 L

      CalculationSteps
      Moles = 29.22 / 58.44 = 0.5 mol; M = 0.5 / 1 = 0.5 M.Same 0.5 M from the balance alone.

      Result

      Example 3

      Dilute standard

      0.01 mol in 0.25 L

      CalculationSteps
      M = 0.01 / 0.25 = 0.04 mol/L = 40 mmol/L.0.04 M, a dilute working standard.

      Result

      How to use this calculator

      Step 1

      Choose moles directly, or mass plus molar mass if you weighed a solid.

      Step 2

      Enter the amount and the final solution volume in litres (millilitres divided by 1,000).

      Step 3

      Read molarity in mol/L, with millimolar shown for dilute solutions.

      Step 4

      Sanity-check against the molar-mass table below: common solutes run from 40 to about 342 g/mol.

      In short: Molarity (M) is a concentration unit: the amount of dissolved substance, in moles, contained in one litre of solution.

      Frequently asked questions

      What is molarity?

      Molarity is the concentration of a solution in moles of solute per litre of finished solution, symbol M. A 1 M solution contains one mole of solute in every litre.

      How do I get moles from grams?

      Divide the mass by the molar mass: moles = grams / (g/mol). For NaCl, 29.22 g / 58.44 g/mol = 0.5 mol.

      Is volume the solvent or the solution?

      The final solution. Dissolve the solute, then top up to the target volume — the solute itself changes the volume slightly, which is why volumetric flasks are filled to the mark after dissolving.

      How is molarity different from molality?

      Molality uses kilograms of solvent instead of litres of solution, so it does not change with temperature; molarity does, slightly, because liquids expand.

      What does 0.5 M mean in grams per litre for NaCl?

      Multiply molarity by molar mass: 0.5 x 58.44 = 29.22 g of NaCl per litre of solution.

      About this calculator

      A molarity calculator turns a recipe for a chemical solution — so many moles, or so many grams of a known compound — into its concentration in moles per litre, the unit nearly all solution chemistry is written in.

      Concentration is a ratio, and molarity picks the two units chemists can measure most directly: amount of substance, counted in moles via a balance and a molar mass, and volume, read off glassware. Because a mole counts particles (6.022 x 10^23 of them), molarity lets reactions be planned particle-for-particle.

      The commonest mistakes are using the volume of solvent added instead of the final solution volume, and forgetting the grams-to-moles step. A weighed solid is never entered as moles directly: 58.44 g of NaCl is one mole, but 58.44 g of glucose is only about a third of a mole, because their molar masses differ.

      Use it when preparing lab solutions, checking a students dilution homework, scaling a buffer recipe, or converting a products grams-per-bottle label into the molar terms a protocol expects.

      How to calculate it yourself

      Step 1

      Find the amount of solute in moles — directly, or as mass divided by molar mass.

      Step 2

      Measure or set the final solution volume and convert it to litres.

      Step 3

      Divide moles by litres.

      Step 4

      Optionally multiply by the molar mass to restate the recipe as grams per litre.

      Real-life examples

      Making saline for a school lab

      A teacher needs a litre of roughly 0.5 M sodium chloride for an osmosis practical and only has a balance.

      Moles needed = 0.5; mass = 0.5 x 58.44 = 29.22 g, dissolved and topped up to 1.00 L.

      Weighing 29.22 g and making up to a litre gives the 0.5 M solution the worksheet assumes.

      Checking a glucose drip concentration

      A trainee converts a 5% glucose label: 50 g per litre, molar mass 180.16 g/mol.

      Moles per litre = 50 / 180.16 = 0.2775 mol, so concentration is about 0.28 M.

      The drip is roughly 0.28 M glucose — the figure needed for the osmolarity comparison in training.

      Ideas & use cases

      • Recipe scaling: halve or double a protocol by rerunning the same molarity at a new volume to get the new mass.
      • Label translation: convert household grams-per-litre figures into molarity to compare with published lab values.
      • Dilution planning: pair the result with M1V1 = M2V2 to work out how much stock solution a bench experiment needs.

      Limitations & sources

      • Reports concentration only; it does not handle dilution chains (use M1V1 = M2V2 separately), activity coefficients, or temperature volume correction.

      Sources: Standard definition of molarity, SI Brochure / IUPAC Gold Book · Molar masses from standard atomic weights (CIAAW)

      Molarity Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results