Free to Use

Molarity Calculator

Calculate molarity, moles, and solution concentrations for chemical solutions. Perfect for lab work, chemistry homework, and solution preparation.

Enter values for any two known variables to calculate the missing ones. Use either Moles & Volume directly, or Mass & Molecular Weight & Volume.

Real-World Chemistry Examples

🧂 Sodium Chloride Solution (NaCl)

You dissolve 58.44 g of NaCl (MW = 58.44 g/mol) in enough water to make 1.0 L of solution.

Moles = 58.44 ÷ 58.44 = 1.0000 mol

Molarity = 1.0000 mol ÷ 1.0 L = 1.0000 M NaCl

This is a 1 Molar (1 M) sodium chloride solution, commonly used in labs and biological applications.

🍬 Glucose Solution (C₆H₁₂O₆)

You need to prepare 500 mL (0.5 L) of a 0.5 M glucose solution. MW of glucose = 180.16 g/mol.

Moles needed = 0.5 M × 0.5 L = 0.2500 mol

Mass needed = 0.2500 mol × 180.16 g/mol = 45.04 g glucose

Dissolve 45.04 g of glucose in enough water to make 500 mL of solution for a 0.5 M concentration.

🧪 Hydrochloric Acid Dilution

You have 0.25 mol of HCl dissolved in 2.0 L of solution.

Molarity = 0.25 mol ÷ 2.0 L = 0.1250 M HCl

This dilute hydrochloric acid solution contains 0.125 moles of HCl per liter. It contains approximately 1.505 × 10²³ HCl molecules.

⚗️ Lab Stock Solution

You dissolve 40.0 g of NaOH (MW = 40.00 g/mol) in water to make 250 mL (0.25 L) of solution.

Moles = 40.0 g ÷ 40.00 g/mol = 1.0000 mol

Molarity = 1.0000 mol ÷ 0.25 L = 4.0000 M NaOH

This is a 4 M sodium hydroxide stock solution. Always add acid to water, never water to acid when handling concentrated solutions.

Understanding the Molarity Formula

M = n / V
Molarity (M) = Moles of solute (n) ÷ Volume of solution in liters (V)
n = m / MW
Moles (n) = Mass of solute (m) ÷ Molecular Weight (MW)

How to Calculate Molarity Step by Step

1
Determine the moles (n): If you have mass and molecular weight, use n = m ÷ MW. If you already know moles, proceed to step 2.
2
Measure the volume (V): Ensure the volume is in liters (L). Convert mL to L by dividing by 1000.
3
Calculate molarity (M): Divide the moles by the volume in liters: M = n ÷ V
4
Find molecules: Multiply moles by Avogadro's number (6.022 × 10²³) to find the number of molecules.

Quick Tips

📌 Always Use Liters

Volume must be in liters (L). If your volume is in mL, divide by 1000 before calculating molarity.

🎯 Know Your Molecular Weight

Molecular weight (g/mol) comes from the periodic table. Sum the atomic masses of all atoms in the compound formula.

🔄 Molarity vs Molality

Molarity (M) is moles per liter of solution, while molality (m) is moles per kilogram of solvent. Don't confuse them!

🔬 Temperature Matters

Molarity changes with temperature because volume expands or contracts. For precise work, note the temperature of your solution.

Instant Molarity
Calculate concentration immediately from moles and volume, or from mass and molecular weight with step-by-step solutions.
🧪
Mass to Molarity
Convert grams of solute to molar concentration using molecular weight — perfect for preparing lab solutions.
📊
Volume or Moles
Calculate any missing variable — molarity, moles, volume, or mass — from the other known values.
🔬
Molecular Math
Includes Avogadro's number for calculating the number of molecules in your solution.

What is Molarity?

Molarity (M) is a measure of the concentration of a solute in a solution. It is defined as the number of moles of solute dissolved per liter of solution. Molarity is one of the most commonly used concentration units in chemistry because it directly relates the amount of substance to the volume of the solution, making it easy to use in stoichiometric calculations and laboratory procedures.

The molarity formula is M = n / V, where n is the number of moles of solute and V is the volume of the solution in liters. A solution with a concentration of 1 M (read as "one molar") contains one mole of solute per liter of solution. Molarity is temperature-dependent because the volume of a solution can expand or contract with temperature changes.

Why Is Molarity Important?

Molarity is fundamental to virtually all areas of chemistry. It allows chemists to precisely describe solution concentrations, perform quantitative chemical analysis, prepare solutions with exact concentrations for experiments, and calculate reaction yields. Understanding molarity is essential for anyone studying or working with chemistry, from high school students to professional researchers.

When to Use the Molarity Calculator

Our Molarity Calculator is useful in countless real-world chemistry scenarios. Here are some of the most common applications:

🧪 Lab Work

Prepare solutions with exact molar concentrations for experiments, titrations, and biochemical assays.

📚 Chemistry Homework

Solve molarity problems quickly and check your work with detailed step-by-step solutions.

🏭 Industrial Applications

Calculate concentrations for manufacturing processes, quality control, and chemical production.

💊 Pharmaceutical

Determine concentrations of active ingredients in drug formulations and buffer solutions.

🌿 Environmental Science

Measure pollutant concentrations in water samples and analyze solution chemistry in environmental studies.

🔬 Research

Calculate precise concentrations for biological buffers, cell culture media, and chemical reagents.

Frequently Asked Questions

What is the difference between molarity and molality?
Molarity (M) is moles of solute per liter of solution, while molality (m) is moles of solute per kilogram of solvent. Molarity depends on temperature (because volume changes with temperature), whereas molality is temperature-independent (because mass doesn't change). For dilute aqueous solutions at room temperature, they are approximately equal, but they differ for concentrated solutions or at extreme temperatures.
How do I convert molarity to moles or volume?
To find moles from molarity: n = M × V (moles = molarity × volume in liters).
To find volume from molarity: V = n ÷ M (volume in liters = moles ÷ molarity).
To find mass from molarity: First find moles (n = M × V), then mass = n × MW (molecular weight).
These relationships are all derived from the fundamental formula M = n / V.
What is Avogadro's number and how is it used?
Avogadro's number (6.022 × 10²³) is the number of particles (atoms, molecules, ions, etc.) in one mole of a substance. To find the number of molecules in a solution, multiply the number of moles by Avogadro's number: Number of molecules = n × 6.022 × 10²³. For example, 0.5 moles of NaCl contains approximately 3.011 × 10²³ formula units of NaCl.
How do I prepare a solution of a specific molarity?
To prepare a solution of a specific molarity: (1) Calculate the mass of solute needed using mass = M × V × MW. (2) Weigh the calculated mass of the solute accurately. (3) Dissolve the solute in a small amount of solvent (usually distilled water). (4) Transfer to a volumetric flask and add solvent up to the calibration mark. (5) Mix thoroughly. Always add solute to solvent, not the reverse, especially with concentrated acids.
Does temperature affect molarity?
Yes, molarity is temperature-dependent. As temperature increases, the volume of the solution typically expands, which decreases the molarity (fewer moles per liter). Conversely, cooling a solution contracts the volume and increases molarity. For most laboratory work at room temperature (20-25°C), the change is negligible, but for precise analytical chemistry, temperature must be controlled or accounted for.
What units can I use for volume in molarity calculations?
Volume must be in liters (L) for molarity calculations using the formula M = n / V. If your volume is in milliliters (mL), divide by 1000 to convert to liters. For example, 250 mL = 0.250 L, 500 mL = 0.500 L, and 100 mL = 0.100 L. Our calculator automatically handles conversions — just enter the volume in liters or choose your preferred unit.

⚠️ Important Note: Molarity calculations assume ideal behavior and uniform solution preparation. Always use appropriate safety equipment (gloves, goggles, lab coat) when handling chemicals in the lab. Verify critical calculations, especially when working with concentrated acids, bases, or toxic substances. This calculator is a tool to assist with calculations — always follow proper laboratory procedures and safety protocols.