Convert molarity (M, mM or µM) to mg/L using the solute’s molar mass, convert mg/L, g/L, mg/mL or % w/v back to molarity, or solve for molar mass.

Use the exact analyte, salt, hydrate or formula unit.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Molarity to mg/L (mass concentration)Converts a molar concentration to mg/L, g/L, µg/L, mg/mL or % w/vRequires the molarity in M, mM, µM or nM and the molar mass of the solute
mg/L to molarityConverts a mass concentration to M, mM, µM or nMRequires the mass concentration in mg/L, g/L, µg/L, mg/mL or % w/v and the molar mass of the solute
Molar mass from both concentrationsFinds the molar mass that links a mass concentration to a molarity of the same solutionRequires the mass concentration and the molarity

Molar mass is entered in g/mol or kg/mol and must be the molar mass of the exact solute, including any salt or hydrate form. Each function has a result unit list, and the two conversions also show the answer in the neighboring units.

M To mg/L Formulas

mg/L = M × MW × 1,000 [1]
mg/LMass concentration, the mass of solute per liter of solution
MMolarity, the amount of solute per liter of solution (mol/L) [1]
MWMolar mass of the solute (g/mol)

Molar mass is the mass of a substance divided by its amount in moles [1], so mol/L times g/mol gives g/L. The factor of 1,000 turns grams into milligrams.

Molarity to mg/L (mass concentration)

A 0.5 M solution of a solute with a molar mass of 100 g/mol holds 0.5 × 100 × 1,000 = 50,000 mg/L. A 0.1 M sodium chloride solution, at 58.44 g/mol, holds 0.1 × 58.44 × 1,000 = 5,844 mg/L. For a molarity in mM the factor of 1,000 cancels: 1 mM glucose at 180.156 g/mol is 180.156 mg/L.

Molarity to mg/mL

mg/mL = M × MW

One mg/mL is the same concentration as one g/L, so no extra factor is needed: 0.1 M sodium chloride is 0.1 × 58.44 = 5.844 mg/mL. Going the other way, M = mg/mL ÷ MW, so 9 mg/mL of sodium chloride is 9 ÷ 58.44 = 0.154 M. Both directions are in the calculator: the first function has mg/mL in its result unit list, and mg/L to molarity accepts a concentration in mg/mL.

UnitEqual to
1 g/L1,000 mg/L
1 mg/mL1 g/L, or 1,000 mg/L
1 µg/L0.001 mg/L
1 % w/v (1 g per 100 mL)10 g/L, or 10,000 mg/L
1 M1 mol/L, or 1,000 mM
1 mM0.001 mol/L, or 1,000 µM

mg/L to molarity

M = mg/L ÷ (MW × 1,000)

This is the main formula rearranged. A sodium chloride solution of 5,844 mg/L is 5,844 ÷ (58.44 × 1,000) = 0.1 M, or 100 mM.

Molar mass from both concentrations

MW = mg/L ÷ (M × 1,000)

A solution that is both 5,844 mg/L and 0.1 M has a solute molar mass of 5,844 ÷ (0.1 × 1,000) = 58.44 g/mol. The molarity must be greater than zero.

What mg/L Means

mg/L is milligrams per liter: the mass of a dissolved substance, in milligrams, in each liter of solution. It is a mass concentration, the mass of the substance divided by the volume of the mixture [1]. M stands for mol/L, which counts the substance in moles in place of milligrams, and the molar mass is what connects the two.

Limits of This Estimate

  • The answer is only as good as the molar mass. A hydrate, a salt and its free acid or base have different molar masses, so the value entered has to match the form the concentration is stated for.
  • Both concentrations are per liter of finished solution, not per liter of solvent added.
  • % w/v is taken as grams per 100 mL of solution, so 1 % w/v is 10 g/L. It is not a percent by mass.

Sources

  1. NIST, Guide for the Use of the International System of Units (SP 811), Sections 8.6.4 and 8.6.5: molar mass as mass divided by amount of substance, amount concentration in mol/L, and mass concentration as mass divided by volume