Molarity
Molarity is the amount of solute dissolved in 1 L of solution, counted in moles (mol, a unit for counting particles in groups), and its unit is mol/L (M). When you dilute a solution by adding water, the moles of solute stay the same, so concentration times volume stays constant.
Formulas
When to use it
Use it when you find a concentration from the mass or moles of solute and the volume of solution, or when you dilute a concentrated solution to a target concentration.
Worked example
You dissolve 4 g of sodium hydroxide (NaOH, molar mass 40 g/mol) in water and make the total solution 500 mL. First, mol, and the volume is 0.5 L. So the molarity is mol/L.
Common mistake
A common mistake is treating "dissolved in 500 mL of water" as the same as "made up to 500 mL of solution." Molarity uses the volume of the whole solution, not the solvent, and you must convert mL to L (500 mL = 0.5 L) before dividing.