Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Molarity Formula: Step-by-Step Calculation Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Molarity (M) is the number of moles of solute per liter of solution, and you calculate it with M = moles of solute ÷ liters of solution. To use the formula, convert your solute mass to moles using its molar mass, convert your solution volume to liters, then divide. The steps below walk through that process, including how to handle the common case where you are given grams and milliliters instead of moles and liters.

What You'll Need

  • The chemical formula of the solute, so you can look up its molar mass
  • A periodic table or a reliable molar mass reference
  • The mass of solute in grams, or the number of moles if already known
  • The total volume of the final solution in milliliters or liters (not the volume of solvent added)
  • A calculator
  • A graduated cylinder or volumetric flask if you are preparing the solution yourself

Step-by-Step

  1. Write down what you know. Identify the solute, its mass in grams, and the final solution volume. If the problem gives you moles directly, skip to step 4. If it gives you volume in milliliters, note that you will convert to liters later.
  2. Find the molar mass of the solute. Add the atomic masses of every atom in the formula. For sodium chloride (NaCl), sodium is about 22.99 g/mol and chlorine is about 35.45 g/mol, so the molar mass is about 58.44 g/mol. For glucose (C6H12O6), six carbons at 12.01, twelve hydrogens at 1.008, and six oxygens at 16.00 give about 180.16 g/mol. Use the values from your course's periodic table, since rounding can shift the last digit.
  3. Convert grams to moles. Divide the mass of solute by the molar mass: moles = grams ÷ g/mol. For example, 5.85 g of NaCl ÷ 58.44 g/mol = 0.100 mol. Keep at least three significant figures through the calculation and round only at the end.
  4. Convert the solution volume to liters. If you have milliliters, divide by 1,000. For example, 250 mL = 0.250 L. If you have cubic centimeters, they are the same as milliliters, so 250 cm³ = 0.250 L. If you have deciliters, divide by 10.
  5. Divide moles by liters. M = moles ÷ L. Using the numbers above: 0.100 mol ÷ 0.250 L = 0.400 M. That is the molarity of the solution.
  6. Check the units and the reasonableness. The answer should be in mol/L, which is written as M. A molarity of 0.400 M means 0.400 moles of solute per liter of solution. If your answer is wildly large or small, recheck whether you divided by the molar mass or multiplied, and whether you converted milliliters to liters.
  7. Reverse the formula when you need to prepare a solution. If you want a specific volume and molarity, rearrange to moles = M × L, then multiply by molar mass to get grams. For 500 mL of 0.200 M NaCl: 0.200 mol/L × 0.500 L = 0.100 mol, and 0.100 mol × 58.44 g/mol = 5.84 g. Weigh that mass, dissolve it, and dilute to the final volume in a volumetric flask rather than adding 500 mL of water to the solid.

Common Mistakes

  • Using solvent volume instead of solution volume. Molarity is defined per liter of final solution. If you add 1 liter of water to a solid, the final volume is usually not exactly 1 liter, so the molarity will be slightly off. Always dilute to the mark in a volumetric flask when precision matters.
  • Forgetting to convert milliliters to liters. Dividing by 250 instead of 0.250 L gives an answer that is 1,000 times too large.
  • Multiplying by molar mass instead of dividing. Grams ÷ (g/mol) gives moles; grams × (g/mol) gives a meaningless unit.
  • Using the wrong molar mass. Hydrated salts include water in the formula, so the molar mass must include the water molecules. For example, copper(II) sulfate pentahydrate (CuSO4·5H2O) has a larger molar mass than anhydrous CuSO4.
  • Rounding too early. Rounding intermediate moles to one decimal place can change the final molarity noticeably.
  • Confusing molarity with molality. Molality is moles of solute per kilogram of solvent, not per liter of solution. They are close in dilute aqueous solutions but not interchangeable.

Tips

  • Write the formula triangle or rearrange M = n/V once and keep it handy: n = M × V and V = n ÷ M.
  • Carry units through every step. If the units cancel to mol/L, you have set the calculation up correctly.
  • For dilutions, use M1V1 = M2V2. The number of moles stays the same when you add solvent, so the product of molarity and volume is constant.
  • When preparing a solution, add the solid to less solvent than the final volume, dissolve completely, then top up to the mark. This avoids volume changes from dissolving.
  • Record molarity with the correct number of significant figures, usually matching the least precise measurement you used.

Troubleshooting

  • The answer looks 1,000 times too big or too small. Check the milliliter-to-liter conversion. This is the most common cause.
  • The units do not cancel. You likely used the molar mass upside down. Moles = grams ÷ (g/mol); the grams cancel and moles remain.
  • You cannot find the molar mass. Confirm the formula, including any hydrate water, and add atomic masses from a periodic table. If the substance is a mixture or a commercial product with unknown purity, you cannot calculate an exact molarity from its mass alone.
  • The prepared solution's molarity is off. Check that the volumetric flask was filled to the calibration mark at eye level, that the solid dissolved fully before topping up, and that the balance was tared and the mass recorded correctly.
  • You are given density instead of volume. Volume = mass ÷ density. Convert the solution mass to volume first, then proceed with the formula.
  • You need molarity from a percentage concentration. Convert the percentage to grams of solute per 100 g of solution, use density to get the volume of that solution, then apply M = moles ÷ liters.

Frequently Asked Questions

What is the molarity formula?

Molarity equals moles of solute divided by liters of solution: M = n ÷ V. Rearranged, n = M × V and V = n ÷ M.

How do I calculate molarity from grams?

Divide the mass in grams by the solute's molar mass to get moles, convert the solution volume to liters, then divide moles by liters.

Is molarity the same as molality?

No. Molarity is moles per liter of solution; molality is moles per kilogram of solvent. They differ because solution volume changes with temperature while solvent mass does not.

What volume do I use in the formula?

Use the final volume of the solution after the solute has dissolved, not the volume of solvent you started with.

How do I dilute a solution to a lower molarity?

Use M1V1 = M2V2. Measure the volume of stock solution needed, then add solvent to reach the target final volume.

Can molarity be used for gases?

Molarity describes solutions, so it applies to dissolved gases in a liquid. For gases alone, concentration is usually expressed differently.