The molarity formula is M = n/V: divide the amount of dissolved substance in moles by the final solution volume in liters. This calculator works out molarity from a solute’s mass, its molar mass, and the solution’s final volume, and also reports the concentration in millimolar (mM).
Formula
Molarity is the number of moles of solute divided by the final volume of the solution in liters:
M = n / V
- M is molarity, measured in moles per liter (mol/L), also written as M.
- n is the amount of solute, in moles (mol).
- V is the total, final solution volume, in liters (L).
When the solute amount is given as mass instead of moles, first calculate n = m / MM, where m is mass in grams and MM is molar mass in grams per mole. If volume is entered in milliliters, convert it to liters by dividing by 1,000. Combining those steps gives the calculator’s expression: M = m / MM / (VmL / 1,000). The factor 1,000 is the milliliter-to-liter conversion.
Worked Example
Using the calculator’s default values—2.922 g solute, a molar mass of 58.44 g/mol, and a final solution volume of 250 mL—first find the amount in moles:
n = 2.922 g / 58.44 g/mol = 0.050000 mol
Convert the final volume to liters:
V = 250 mL / 1,000 = 0.250 L
Then divide moles by volume:
M = 0.050000 mol / 0.250 L = 0.2000 mol/L
To express this as millimolar, multiply mol/L by 1,000:
0.2000 mol/L × 1,000 = 200.00 mM
The calculator displays molarity to four decimal places and millimolar concentration to two, so the answers are 0.2000 mol/L and 200.00 mM.
Assumptions
- The entered mass is the mass of the solute, and the molar mass matches its chemical form and composition.
- The entered volume is the final solution volume, not the volume of solvent used before dissolving the solute.
- The calculation reports analytical concentration; it does not account for chemical reactions, incomplete dissolution, or changes in speciation.
- The basic formula does not require an ideal-gas or complete-dissociation assumption.
What Molarity Measures
Molarity describes how many moles of a substance are present in each liter of solution. A 1 M solution contains 1 mole of solute per liter of final solution; a 0.2 M solution contains 0.2 mole per liter. It is a concentration measure, not a direct statement about how much solute is in a particular container: the total amount also depends on the solution volume.
For example, 100 mL of a 0.2 M solution contains 0.020 mol of solute, because n = M × V = 0.2 mol/L × 0.100 L. The concentration is still 0.2 M; the smaller container simply holds fewer total moles.
Molarity is commonly used in solution chemistry, reaction calculations, and laboratory planning because it connects an amount of substance with a measurable volume. A molar concentration can also be written with prefixes: 1 mM equals 0.001 mol/L, and 1 µM equals 0.000001 mol/L. Keep the prefix attached to the unit; mM and M differ by a factor of 1,000.
Using the Calculator and Choosing Inputs
Enter the solute mass, its molar mass, and the final solution volume. The calculator converts mass to moles, converts milliliters to liters, and then divides. Its second output is the same concentration expressed in millimolar.
- Mass: Use the mass of the solute itself, not the mass of the whole solution. The calculator accepts grams.
- Molar mass: Use the value in g/mol for the exact compound, including its hydrate or salt form where relevant. For instance, an anhydrous compound and its hydrated form have different molar masses.
- Final volume: Use the total volume after the solute is dissolved and the solution has been brought to its intended volume. Do not substitute the volume of solvent added.
For a solid solute, dissolving it can change the volume, so adding a stated amount of water is not generally equivalent to preparing a stated final solution volume. In a laboratory, follow your lab method, the safety data sheet (SDS) and your supervisor.
Common Mistakes and Limits
The most frequent arithmetic error is mixing milliliters and liters. If you divide moles by a volume entered in milliliters without converting it, the numerical answer is 1,000 times too large. Another common error is using the solvent volume rather than the final solution volume. Check both units and what the stated volume represents before accepting a result.
Do not round intermediate values too aggressively. Retain useful digits through the mole and volume calculations, then round the final answer to a precision justified by the measurements. A calculator can show extra decimal places, but those digits do not make an imprecise mass, molar mass, or volume measurement more precise.
Molarity is based on solution volume, which can vary with temperature as a solution expands or contracts. Consequently, a solution’s molarity can change slightly with temperature even when the amount of solute is unchanged. The formula also calculates the formal concentration from the supplied quantities; it does not predict how much of a substance is present as free ions, whether a reaction consumes it, or whether the solution is saturated.
Molarity Compared with Related Concentration Units
Molarity (mol/L) uses liters of solution. Molality (mol/kg) instead divides moles of solute by kilograms of solvent. Since solvent mass is less affected by temperature-related volume changes, molality is useful in contexts where that distinction matters, but it cannot be substituted directly for molarity without the necessary density and composition information.
Mass concentration, such as grams per liter, reports mass rather than moles. Convert between mass concentration and molarity using the compound’s molar mass. For example, a concentration of 1 g/L corresponds to 1/MM mol/L when MM is expressed in g/mol. These units answer different questions, so always check the requested unit before comparing values.
Frequently Asked Questions
What is the formula for molarity?
Molarity is M = n/V: moles of solute divided by final solution volume in liters. If mass is supplied, use M = m/MM/V, with volume expressed in liters.
How do I calculate molarity from grams?
Divide the mass in grams by the compound’s molar mass in g/mol to find moles, convert the final volume to liters, and divide moles by liters.
Does molarity use the volume of solvent or solution?
It uses the final volume of the complete solution. The volume of solvent added may differ from the final solution volume.
How do I convert molarity to millimolar?
Multiply mol/L by 1,000. For example, 0.2 mol/L is 200 mM; to convert mM to mol/L, divide by 1,000.
Can molarity be negative?
No. A negative amount or volume is not physically meaningful for this calculation. The calculator requires nonnegative mass and a positive molar mass and final volume.
Related
Formula used
in m | Mass of solute | g | 2.922 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 in v | Final solution volume | mL | 250 | 0.001 out c | Molarity | mol/L | m / mm / (v / 1000) | 4 out cmm | Concentration in millimolar | mM | c * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Liters to Cubic Meters: Conversion and Examples0.001000 m³
- Normal Cubic Meter to Liters Calculator1,000.00 L
- Qt to Liters Conversion: US and Imperial Quarts0.946353 L
- Meters to Liters Formula: Convert Length to Volume?1,000.000 L
- Meters to Litres: Why Length Alone Is Not Enough1,000.00 L
- Cubic Meters per Hour to Liters per Second0.2778 L/s