Molarity Calculator
- Moles of solute = mass / molar mass = 29.22 g / 58.44 g/mol = 0.5000 mol.
- Volume of solution = 500 mL = 0.50 L — the volume of the finished solution, not of the solvent you started with.
- Molarity = 0.5000 mol / 0.50 L = 1.0000 mol/L, which is 1,000.0 mmol/L.
Our molarity calculator helps you find the molar concentration of any solution quickly and accurately. Enter the mass of your solute in grams, its molar mass, and the solution volume in millilitres, and the tool returns your result in moles per litre (mol/L). The calculator uses two straightforward relationships: Molarity (M) equals moles of solute divided by litres of solution, and moles equals mass divided by molar mass. For instance, 29.22 g of NaCl (molar mass 58.44 g/mol) is 0.5000 mol; made up to 500 mL that is 1.00 mol/L. Similarly, 18.02 g of glucose (molar mass 180.16 g/mol) is 0.1000 mol; in 250 mL that is 0.40 mol/L.
Molarity is the accepted standard for expressing concentration in chemistry because it directly relates moles of solute to the final solution volume. This matters because molarity counts litres of solution, not litres of solvent added, so always make the solution up to the final volume. Note that molarity is temperature-dependent since solution volume changes with temperature, whereas molality is not. For example, 4.00 g of NaOH (molar mass 40.00 g/mol) is exactly 0.1000 mol; in 1,000 mL that is 0.10 mol/L. This page shows the formula, step-by-step workings, worked examples and sources.
Worked examples
Exactly one molar
Primary result: 1.00 mol/L — 0.5000 mol of sodium chloride made up to 0.50 L. (29.22 g · 58.44 g/mol · 500 mL)
| Molarity | 1.00 mol/L |
| Amount of solute | 0.5000 mol |
| In millimoles per litre | 1,000.0 mmol/L |
A glucose standard
Primary result: 0.40 mol/L — 0.1000 mol in 0.25 L, or 400.1 mmol/L. (18.02 g · 180.16 g/mol · 250 mL)
| Molarity | 0.40 mol/L |
| Amount of solute | 0.1000 mol |
| In millimoles per litre | 400.1 mmol/L |
Dilute sodium hydroxide
Primary result: 0.10 mol/L — 4.00 g at 40.00 g/mol is exactly 0.1000 mol in a litre. (4 g · 40 g/mol · 1000 mL)
| Molarity | 0.10 mol/L |
| Amount of solute | 0.1000 mol |
| In millimoles per litre | 100.0 mmol/L |
How to calculate molarity
Molarity follows a simple three-step chain: convert the mass of your solute to moles, convert the solution volume from millilitres to litres, then divide moles by litres. The core formulas are molarity (M) = moles of solute / litres of solution, and moles = mass / molar mass. This molarity calculator takes mass in grams and volume in millilitres, so the millilitre-to-litre conversion is handled for you — but understanding each step helps you check your work.
Start with the mass-to-moles step. If you have 29.22 g of NaCl, divide by its molar mass of 58.44 g/mol: 29.22 / 58.44 = 0.5000 mol. Next, convert the solution volume to litres. If the solution is made up to 500 mL, divide by 1,000 to get 0.500 L. Finally, divide moles by litres: 0.5000 mol / 0.500 L = 1.00 mol/L. That is your molarity.
The same chain works for any solute. For glucose, 18.02 g divided by a molar mass of 180.16 g/mol gives 0.1000 mol; in 250 mL (0.250 L) the molarity is 0.40 mol/L. For NaOH, 4.00 g divided by 40.00 g/mol is exactly 0.1000 mol; in 1,000 mL (1.000 L) the molarity is 0.10 mol/L. In each case the structure is identical: grams become moles, millilitres become litres, and moles per litre is the answer.
Two details matter for accuracy. First, always make the solution up to the final volume rather than adding a fixed volume of solvent — molarity counts litres of solution, not litres of solvent added. Dissolving 29.22 g of NaCl in 500 mL of water will not give a 1.00 mol/L solution, because the solute itself adds volume. Dissolve the salt first, then add water until the total reaches 500 mL.
Second, remember that molarity is temperature-dependent because solution volume changes with temperature; molality is not. A solution measured as 1.00 mol/L at 20 °C may read slightly differently at 30 °C. For most routine work the change is small, but it matters in precise analytical chemistry.
Rearranging the formula
The molarity formula M = moles / litres gives you the concentration when you already know how much solute is present. But a molarity calculator is often used the other way around: you decide on a target concentration and need to find the mass or volume to prepare it. Two rearrangements cover most of these situations.
Solving for required mass: Start with M = (mass / molar mass) / litres, then multiply both sides by litres and molar mass to get mass = M × molar mass × litres. Example: You need 250 mL of a 0.40 mol/L glucose solution. The molar mass of glucose is 180.16 g/mol, and 250 mL equals 0.250 L. Mass = 0.40 × 180.16 × 0.250 = 18.02 g. That matches the reference example: 18.02 g of glucose is 0.1000 mol, and in 250 mL that is 0.40 mol/L.
Solving for required volume: Rearrange M = moles / litres to get litres = moles / M, then convert to millilitres by multiplying by 1,000. Example: You have 0.1000 mol of NaOH (which is 4.00 g at a molar mass of 40.00 g/mol) and you want a 0.10 mol/L solution. Volume in litres = 0.1000 / 0.10 = 1.000 L, which is 1,000 mL. Again this matches the reference: 4.00 g of NaOH made up to 1,000 mL gives 0.10 mol/L.
In both cases the key step is making the solution up to the final volume rather than adding that volume of solvent. Molarity counts litres of solution, not litres of solvent added, so you dissolve the solute first and then add solvent until you reach the target volume. Also remember that molarity is temperature-dependent because solution volume changes with temperature; molality is not. For precise work, note the temperature at which the solution is prepared.
Molar masses of common reagents
A molarity calculator needs one key input you may not remember off the top of your head: the molar mass of your reagent. Molar mass, expressed in grams per mole (g/mol), lets you convert between the mass you weigh on a balance and the moles of solute your solution actually contains. Because the relationship moles = mass / molar mass sits at the heart of every molarity calculation, using the wrong value will throw off your result before you even reach for a volumetric flask. The table below lists molar masses for five reagents that show up frequently in labs, kitchens, and classrooms.
These numbers make the worked examples elsewhere on this page easy to follow. Take NaCl: 29.22 g divided by 58.44 g/mol gives 0.5000 mol, and when that amount is made up to 500 mL the result is 1.00 mol/L. Glucose works the same way. 18.02 g of glucose (molar mass 180.16 g/mol) is 0.1000 mol; in 250 mL that is 0.40 mol/L. Sodium hydroxide is even cleaner: 4.00 g of NaOH (molar mass 40.00 g/mol) is exactly 0.1000 mol, and in 1,000 mL that gives 0.10 mol/L. Each example depends on starting with the correct molar mass.
Two practical points keep these calculations honest. First, always make the solution up to the final volume rather than adding a set volume of solvent. Molarity counts litres of solution, not litres of solvent added, so dissolving 4.00 g of NaOH in 1,000 mL of water is not the same as dissolving it and then diluting to the 1,000 mL mark. Second, remember that molarity is temperature-dependent because solution volume changes with temperature; molality is not. A solution labeled 0.10 mol/L at room temperature will not be exactly 0.10 mol/L at a very different temperature. For precise work, record the temperature at which you measured the volume.
| Reagent | Molar mass (g/mol) |
|---|---|
| NaCl | 58.44 |
| Glucose | 180.16 |
| NaOH | 40.00 |
| HCl | 36.46 |
| Sucrose | 342.30 |
Preparing a solution in the lab
Once your molarity calculator tells you the mass of solute you need, the next step is preparing the solution correctly in the lab. Start by weighing the solute precisely on a calibrated balance. For example, if the calculator indicates you need 29.22 g of NaCl, weigh that amount carefully and record the actual mass used. Accuracy at this stage matters, because any error in weighing carries directly into the final concentration.
Next, transfer the weighed solute into a clean beaker and add a portion of the solvent, but not the full final volume. Stir or swirl until the solute is completely dissolved. Using only part of the solvent first makes dissolving easier and avoids the risk of overshooting the final volume. Once dissolved, transfer the solution into a volumetric flask of the appropriate size, rinsing the beaker several times with small amounts of solvent to ensure every bit of solute is carried over.
Finally, add solvent to the volumetric flask until the bottom of the meniscus sits exactly on the calibration mark. This step is critical because molarity is defined as moles of solute per litres of solution, not litres of solvent added. Making the solution up to the mark ensures the total volume is correct. Remember that molarity is temperature-dependent, since solution volume changes with temperature, so perform this step at the temperature specified for your work.
- Weigh the solute accurately using a calibrated balance.
- Dissolve the solute in a portion of the solvent before transferring to the flask.
- Use a volumetric flask and add solvent until the meniscus reaches the mark.
- Never assume that adding a set volume of solvent equals the final solution volume.
Common mistakes
When using a molarity calculator, three errors come up again and again. The first is using the volume of the solvent instead of the volume of the solution. Molarity is defined as moles of solute divided by litres of solution, and the two are not the same. If you dissolve 29.22 g of NaCl (molar mass 58.44 g/mol) in 500 mL of water, you do not have a 1.00 mol/L solution — the final volume will be slightly more than 500 mL because the salt adds volume of its own. To get 1.00 mol/L, you must dissolve the 0.5000 mol of NaCl and then make the solution up to 500 mL. Always make the solution up to the final volume, because molarity counts litres of solution, not litres of solvent added.
The second mistake is entering millilitres where the calculator expects litres. The formula M = moles / litres only works when volume is in litres, so 500 mL must be entered as 0.5 L. Mixing units silently inflates the result by a factor of 1,000. The same applies to the mass side: moles equal mass in grams divided by molar mass in g/mol, so 18.02 g of glucose (molar mass 180.16 g/mol) gives 0.1000 mol, and in 250 mL — that is, 0.25 L — the concentration is 0.40 mol/L. If you left the volume at 250, the calculator would give 40 mol/L, which is wrong by three orders of magnitude.
The third mistake is forgetting waters of hydration when you look up a molar mass. Hydrated solids carry water molecules in their crystal structure, and those waters are part of the formula weight. If a compound is written with waters, include them in the molar mass you enter. Skipping them makes the molar mass too small, so the calculated moles come out too high and the final molarity is overstated. The same care applies to anhydrous forms: check the label so you use the molar mass that matches the solid you actually weighed.
A related point is temperature. Molarity is temperature-dependent because solution volume changes with temperature, so a solution that is 0.10 mol/L at one temperature may read slightly differently at another. The example of 4.00 g of NaOH (molar mass 40.00 g/mol), which is exactly 0.1000 mol, made up to 1,000 mL for 0.10 mol/L, holds only at the temperature at which you measure the final volume. If temperature stability matters for your work, molality is not temperature-dependent and may be the better choice.
- Use the final solution volume, not the volume of solvent added.
- Convert millilitres to litres before entering volume: 500 mL = 0.5 L.
- Include waters of hydration in the molar mass when the solid is hydrated.
FAQs
What is molarity?
Molarity is the concentration of a solution expressed in moles of solute per litre of solution. It is symbolized by M or mol/L. For example, a 1 M solution contains one mole of solute dissolved in enough solvent to make one litre of final solution.
How do you calculate molarity?
First convert the mass of solute to moles using the molar mass, then divide by the volume in litres. For example, 29.22 g NaCl equals 0.5000 mol. Dissolved and made up to 0.500 L, that gives a molarity of 1.00 M.
How much NaCl makes 500 mL of 1 M solution?
You need 29.22 g of NaCl, which is half a mole. Dissolve the NaCl first, then make the solution up to 500 mL. This gives you a 1 M solution, meaning one mole per litre, so half a litre contains half a mole.
How do I find the mass needed for a target molarity?
Use the formula: mass equals molarity multiplied by molar mass multiplied by volume in litres. This gives the grams of solute needed. For example, to prepare a known molarity solution, plug in the desired molarity, the compound's molar mass, and the final volume.
Molarity vs molality: what is the difference?
Molarity uses litres of solution, while molality uses kilograms of solvent. Because molarity depends on the solution volume, it can shift with temperature changes. Molality, based on solvent mass, does not shift with temperature, making it useful when temperature varies during experiments.
Why fill to the mark after dissolving?
Molarity is defined per litre of final solution, not per litre of solvent added. Dissolving solute can change the total volume, so you must dissolve first and then fill to the mark. This ensures the solution reaches the correct concentration and volume.