Molarity Calculator

Molarity Calculator

This molarity calculator converts the mass concentration of any solution to molar concentration (M), and recalculates grams per milliliter (g/mL) to moles. The molarity calculator computes the mass of a substance needed to achieve a desired molarity. This article covers the molarity definition, the molarity formula, molarity units, a step-by-step guide on how to calculate molarity, worked example calculations, a live molarity conversion chart, and a comparison of the molarity formula vs molality formula.

Try an example:
Live View

Virtual Beaker

100% 50%
💧
Volume -- L
⚖️
Solute Added -- g
🧪
Concentration -- M

Formula Used

M = (mass ÷ MW) ÷ volume

Enter 3 values above to see the step-by-step solution

What is Molarity?

Molarity expresses the concentration of a solution. Molarity is the number of moles of a substance (solute) dissolved per liter of solution (not per liter of solvent).

Molarity means exactly the same as molar concentration (M). Chemists use many different units for describing concentration, but molarity is the most common way.

The mole (mol) is the SI unit for the amount of substance. One mole contains exactly 6.02214076 × 10²³ particles (atoms, molecules, ions). That number is Avogadro's constant, and its symbol is NA. Moles allow reading weight directly from the periodic table — 1 mole of NaCl weighs 58.5 g, 1 mole of N₂ weighs 28 g.

concentration = number of moles ÷ volume

When reactants are expressed in mole units, writing chemical reactions with integer coefficients is straightforward. Concentration measures how much of a substance is dissolved in a given volume of solution — molarity standardizes this measurement in moles per liter (mol/L).

Interactive

Molarity Concept Visualizer

1.0 L 0.5 L
Molarity 1.00 M
0.15.0 mol
0.13.0 L
M = 1.0 mol ÷ 1.0 L = 1.00 M

Molarity Formula

The molarity formula calculates the molar concentration of a solution:

molarity = concentration ÷ molar mass

Concentration refers to the mass concentration of the solution, expressed in density units (g/L or g/mL). Molar mass is the mass of 1 mole of the solute, expressed in grams per mole (g/mol). Molar mass is a constant property — the molar mass of water is 18 g/mol.

The calculator finds the mass of substance needed to reach a target molar concentration:

mass ÷ volume = concentration = molarity × molar mass

Where mass is the mass of solute in grams (g), and volume is the total volume of solution in liters (L).

Try the molarity formula

Enter values below to see the molarity formula in action. The calculator supports 2 modes: calculating from concentration (g/mL) and from mass + volume.

molarity = concentration molar mass
g/mL
g/mol
Enter concentration and molar mass to calculate molarity
molarity = mass volume × molar mass
g
L
g/mol
Enter mass, volume, and molar mass to calculate molarity
Try:

Molarity Units

The units of molar concentration are moles per cubic decimeter, written as mol/dm³ or M (pronounced "molar"). 1 cubic decimeter (1 dm³) equals 1 liter (1 L), so mol/dm³ and mol/L represent identical numeric values.

The molar concentration of a solute is sometimes written with square brackets around the chemical formula. For example, the concentration of hydroxide anions is written as [OH⁻].

Older references use moles per liter (mol/L) notation. Modern conventions favor the M notation. The mole has become the standard way of quoting the quantity of a chemical substance, so molarity replaced the older weight-of-solute-per-volume format. This calculator supports 7 molarity units: M, mM, µM, nM, pM, fM, and aM.

Molarity (uppercase M) should not be confused with molality (lowercase m). The difference between these 2 terms is explained in the molarity vs. molality section below.

Molarity SI Prefix Value Example
10⁻¹⁵ fM 2 fM Bacteria in surface seawater (1×10⁹/L)
10⁻¹⁴ 50–100 fM Gold in seawater
10⁻¹² pM 7.51–9.80 pM Erythrocytes in blood (adult male)
10⁻⁷ 101 nM H₃O⁺ and OH⁻ ions in pure water at 25 °C
10⁻⁴ 180–480 µM Uric acid in blood
10⁻³ mM 7.8 mM Upper bound for healthy blood glucose (2h post-meal)
10⁻² cM 44.6 mM Pure ideal gas at 0 °C and 101.325 kPa
10⁻¹ dM 140 mM Sodium ions in blood plasma
10² hM 118.8 M Pure osmium at 20 °C (22.587 g/cm³)
10⁴ myM 24 kM Helium in solar core (150 g/cm³ × 65%)
Click any row to see more details

How to Calculate Molarity

To calculate the molarity of a solution, follow these 6 steps:

  1. Choose the substance. This example uses hydrochloric acid (HCl).
  2. Find the molar mass of the substance. The molar mass of HCl is 36.46 g/mol.
  3. Determine the mass and volume. This example uses 5 g of HCl in a 1.2 liter (L) solution.
  4. Convert: mass / volume = molarity × molar mass → mass / (volume × molar mass) = molarity.
  5. Substitute: molarity = 5 ÷ (1.2 × 36.46) = 0.114 mol/L = 0.114 M.
  6. Use the molarity calculator above to verify the result. Enter mass, volume, and molecular weight to get the molarity instantly.
Interactive

Step-by-Step Molarity Calculator

Enter your own values or use the HCl example to see each calculation step

Step 1
Choose the substance and identify its molar mass
Molar mass = 36.46 g/mol
Step 2
Determine the mass and volume
Mass = 5 g in 1.2 L solution
Step 3
Calculate moles of solute
moles = mass ÷ molar mass = 5 ÷ 36.46
= 0.1371 mol
Step 4
Apply the molarity formula
molarity = moles ÷ volume = 0.1371 ÷ 1.2
= 0.1143 M
Final Result
0.114 M
Molarity of the solution is 0.114 mol/L

Invention of the Molarity Calculator

This molarity calculator was built to make molarity calculations fast and accessible. Molarity calculations require unit conversions and multi-step arithmetic that are tedious to perform by hand. The calculator handles all conversions — from micrograms (µg) to kilograms (kg), milliliters (mL) to gallons (gal), and molars (M) to attomolars (aM) — in a single step.

The calculator serves 3 main audiences: students learning solution chemistry, researchers preparing molar solutions in the laboratory, and professionals in the food and pharmaceutical industries who need precise concentration measurements for quality control and regulatory compliance.

The tool supports over 30 unit combinations across 5 variables (mass, molecular weight, volume, concentration, molarity). Each calculation includes a step-by-step formula breakdown, calculation history, and one-click copy and share functions.

Interactive

Timeline of Concentration History

Click the milestones to explore the evolution of chemical measurement.

1800s

Early Stoichiometry

Jeremias Benjamin Richter establishes the principles of stoichiometry, laying the groundwork for precise chemical proportions.

⚖️
1811

Avogadro's Concept

Amedeo Avogadro proposes that equal volumes of gases contain identical numbers of molecules, introducing the concept of the mole.

💡
1850s

Volumetric Analysis

Karl Friedrich Mohr standardizes volumetric titration, creating the need for exact "normal" and "molar" concentration expressions.

🧪
1900s

Defining Molarity

The term "molarity" becomes widely standardized in chemistry textbooks to mean "moles per liter of solution."

📚
2000s

Digital Era

The rise of online molarity calculators, enabling instant complex chemical solution computations for researchers and students.

💻

How to Use the Molarity Calculator

The molarity calculator is straightforward. Determining the molarity of specific compounds or additives is required for product quality and safety compliance in the food, beverage, and pharmaceutical industries.

  1. Enter the concentration of the solution into the 4th field, if known. The mass concentration equals the density for a pure substance. The default unit is g/mL (grams per milliliter). Change the unit from the dropdown before entering the value.
  2. Enter the molecular weight (molar mass) of the substance. The default unit is grams per mole (g/mol). Other unit options include kg/mol, kg/kmol, and lb/lbmol.
  3. The calculator computes the molarity instantly. The default unit is molars (M). Change the unit to mM, µM, nM, pM, fM, or aM from the dropdown.
  4. Leave the mass concentration empty, if the mass concentration is unknown. Enter the mass of the substance in grams (g) (or change the unit to mg, kg, oz, lb) and enter the volume of the solution in liters (L) (or mL, µL, gallons).
  5. The calculator determines the mass concentration and molarity from the mass and volume values.
Interactive

See How It Works

Use the steps below to watch the calculator in action.

g
L
g/mol
g
L
g/mol
g
L
g/mol
g
L
g/mol
Molarity (M)
1.000 M
M = m / (MW × V)

Example Calculations

The 4 examples below show how to calculate molarity from mass concentration, from mass and volume, and by titration. Click any tab to see the full step-by-step breakdown.

Example 1: Sulphuric acid (H₂SO₄) has a molar mass of 98 g/mol and a mass concentration of 10 g/mL. The molarity is 102.0408 M.

Example 2: 5 g of hydrochloric acid (HCl) in 1.2 L of solution. Molar mass of HCl is 36.46 g/mol. The molarity is 0.114 M.

Example 3: 35 mL of 1.25 M HCl titrates a 25 mL NaOH solution (1:1 ratio). The NaOH molarity is 1.75 M.

Example 4: 970 g of H₂SO₄ in 2.1 L of solution. The molarity is 4.71331 M and the mass concentration is 0.461905 g/mL.

Interactive

Worked Molarity Examples

Select an example:

Problem

Sulphuric acid (H₂SO₄) has a molar mass of 98 g/mol and a mass concentration of 10 g/mL. Find the molarity.

1
Identify values
concentration = 10 g/mL = 10,000 g/L  |  molar mass = 98 g/mol
2
Apply molarity formula
molarity = concentration ÷ molar mass = 10,000 ÷ 98
3
Result
= 102.0408 M
Problem

5 g of hydrochloric acid (HCl) is dissolved in 1.2 L of solution. The molar mass of HCl is 36.46 g/mol. Find the molarity.

1
Calculate moles
moles = mass ÷ molar mass = 5 ÷ 36.46 = 0.1371 mol
2
Apply molarity formula
molarity = moles ÷ volume = 0.1371 ÷ 1.2
3
Result
= 0.114 M
Problem

35 mL of 1.25 M HCl titrates a 25 mL NaOH solution. HCl and NaOH react in a 1:1 mole ratio. Find the molarity of NaOH.

1
Use the titration formula (1:1 ratio)
acid molarity × acid volume = base molarity × base volume
2
Substitute values
1.25 × 35 = base molarity × 25 → 43.75 = base molarity × 25
3
Solve for base molarity
base molarity = 43.75 ÷ 25 = 1.75 M
Problem

970 g of H₂SO₄ is dissolved in a 2.1 L solution. The molar mass of H₂SO₄ is 98 g/mol. Find the molarity and mass concentration.

1
Calculate moles
moles = 970 ÷ 98 = 9.8980 mol
2
Calculate molarity
molarity = 9.8980 ÷ 2.1
3
Calculate mass concentration
concentration = 970 g ÷ 2100 mL

Molarity Conversion Chart

The molarity conversion chart below converts any molarity value across 7 standard units: M, mM, µM, nM, pM, fM, and aM. Enter an optional molar mass to see the equivalent g/L, g/mL, and mg/mL values.

The reference values section shows 6 common molar concentrations found in nature, the human body, and the laboratory.

Unit Symbol Factor (relative to 1 M) Example
MolarM11 M NaCl
MillimolarmM10⁻³5 mM glucose
MicromolarµM10⁻⁶50 µM drug
NanomolarnM10⁻⁹10 nM hormone
PicomolarpM10⁻¹²100 pM cytokine
FemtomolarfM10⁻¹⁵1 fM biomarker
AttomolaraM10⁻¹⁸DNA detection
Water55.5 M
Blood glucose (max)5.6 mM
Blood Na⁺145 mM
Pure H₂SO₄18.4 M
Seawater gold25 pM
Lab HCl (conc.)12.1 M

Molarity vs. Molality

Both molarity and molality express solution concentration, but there is 1 significant difference. Molarity measures the amount of substance per unit volume of solution. Molality measures the amount of substance per unit mass of the solvent. Molality is the number of moles of solute per kilogram (kg) of solvent.

Converting between molarity and molality uses this formula:

molarity = (molality × solution mass density) ÷ (1 + molality × solute molar mass)

The molarity vs molality table below shows 5 key differences between these 2 terms:

Property Molarity Molality
Definition Moles of solute ÷ liters of solution Moles of solute ÷ kilograms of solvent
Symbol M m or b
Unit mol/L mol/kg
Temperature & Pressure Dependent Independent
Usage More popular, practical in the lab, faster Accurate but rarely used
Interactive

Molarity vs. Molality Comparison

Select a solute and adjust temperature to see how molarity changes while molality stays constant

0 °C100 °C
Molarity (M)
1.00 M
Volume-based · Temperature dependent
Molality (m)
1.02 m
Mass-based · Temperature independent
At 25 °C, molarity and molality of NaCl are close (1.00 M vs 1.02 m). Heating a solution increases volume, which decreases molarity. Molality stays constant because mass does not change with temperature.

Molarity Calculator Tools

Explore our collection of 20 specialized molarity calculators. Each tool is designed for a specific type of calculation with its own unique input fields and formulas.

FAQs

What is a Molarity Calculator?

A molarity calculator is a tool that computes the molar concentration of a solution from mass, molecular weight, volume, and concentration inputs. Enter any 3 of the 5 variables and the calculator determines the remaining values. The result is expressed in molars (M), which equals moles per liter (mol/L).

What is the Formula for Molarity?

The formula for molarity is: molarity = concentration ÷ molar mass (when starting from mass concentration in g/L). An equivalent form is: molarity = moles of solute ÷ volume of solution in liters. For example, 5 g of HCl (molar mass 36.46 g/mol) in 1.2 L gives molarity = 5 ÷ (1.2 × 36.46) = 0.114 M.

How Do You Calculate Molarity of a Solution?

To calculate molarity of a solution, follow 3 steps. First, find the moles of solute by dividing the mass (g) by the molar mass (g/mol). Second, measure the total volume of the solution in liters (L). Third, divide the moles by the volume: molarity = moles ÷ volume. The result is in mol/L or M.

How Do I Find Moles From Molarity?

Multiply the molarity (M) by the volume (L) of the solution. The formula is: moles = molarity × volume. For example, 0.5 M NaCl in 2 L contains 0.5 × 2 = 1.0 mole of NaCl.

Is Molarity the Same as Concentration?

No, molarity is not the same as concentration. Concentration is a broad measure of how much of a substance is dissolved in a given amount of liquid — concentration can use any mass and volume units (mg/mL, g/L, lb/gal). Molarity is a specific type of concentration measured in moles per liter (mol/L) of solution.

What is the Molarity of Water?

Water has a molarity of 55.5 M. 1 liter of water weighs 1000 g. The molar mass of water (H₂O) is 18.02 g/mol. Dividing 1000 g by 18.02 g/mol gives 55.49 mol/L, which rounds to 55.5 M.

Why Do We Use Molarity?

Molarity provides a standard metric for comparing solution concentrations without unit conversions. Concentration units range from nanograms per milliliter (ng/mL) to tons per gallon (t/gal). Molarity (M), measured in moles per liter (mol/L), offers a single consistent unit for quick comparison across all chemical solutions.

What is the Difference Between Molarity and Molality?

Molarity (M) is the number of moles of solute per liter of solution. Molality (m) is the number of moles of solute per kilogram of solvent. The key difference: molarity changes with temperature because volume expands or contracts with heat. Molality stays constant because mass does not change with temperature.

Can Molarity Be Converted to Mg/ml?

Yes, molarity can be converted to mg/mL using the formula: mg/mL = molarity (M) × molar mass (g/mol). For example, a 0.5 M NaCl solution (molar mass 58.5 g/mol) has a concentration of 0.5 × 58.5 = 29.25 g/L = 29.25 mg/mL. The molarity conversion chart above performs this calculation automatically.