This calculator converts the mass concentration of a solute into molarity, the amount of substance per liter of solution. Enter the concentration in g/L and the solute’s molar mass in g/mol to get mol/L and mM. You will need the chemical formula or another reliable source for the molar mass.
Formula
For mass concentration in grams per liter, divide by molar mass in grams per mole:
M = ρ / MW
- M is molarity, in mol/L.
- ρ is mass concentration, in g/L.
- MW is molar mass, in g/mol.
The units cancel as (g/L) ÷ (g/mol) = mol/L. To express molarity in millimolar, multiply mol/L by 1,000 because 1 mol/L = 1,000 mM. This calculator assumes the concentration is already stated as grams of solute per liter of final solution.
Worked Example
Using the calculator’s default values, the mass concentration is 10 g/L and the molar mass is 58.44 g/mol.
- Divide concentration by molar mass: M = 10 g/L ÷ 58.44 g/mol.
- Calculate: M = 0.1711157 mol/L, which rounds to 0.1711 mol/L at four decimal places.
- Convert to millimolar: 0.1711157 mol/L × 1,000 = 171.1157 mM, which rounds to 171.12 mM.
Assumptions
- The input concentration is mass of solute per liter of final solution, not per liter of solvent.
- The entered molar mass matches the exact substance and chemical form represented by the concentration.
- The calculation reports formal molarity; it does not adjust for dissociation, reaction, purity, temperature, or volume changes.
What You’ll Need
- The mass concentration and its units. The calculator accepts g/L; convert other units before entering them.
- The solute’s molar mass in g/mol. Calculate it from the chemical formula and appropriate atomic weights, or use a reliable reference.
- A calculator or the calculator above. For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.
Step-by-Step
- Identify what “concentration” means. This method applies to mass concentration, such as 5 g/L. It does not directly convert a percentage, volume fraction, or amount-per-volume value unless you first convert that value to g/L or use the appropriate formula. Check whether the stated volume is the final solution volume.
- Convert the mass concentration to g/L. For example, 250 mg/L is 0.250 g/L because 1,000 mg = 1 g. For a concentration in g/mL, multiply by 1,000 to get g/L. Keep the conversion visible so you do not mix units.
- Find the molar mass. Add the atomic masses for every atom in the compound’s formula, accounting for subscripts and parentheses. For a substance with a stated hydrate or salt form, include the waters of hydration or counterions as appropriate. Use g/mol, not kg/mol or a value for a different chemical form.
- Divide concentration by molar mass. Use M = ρ / MW. If your concentration is in g/L and molar mass is in g/mol, the result is mol/L. Keep extra digits during the calculation, then round the final result to match the precision of your inputs.
- Convert units if needed. Multiply mol/L by 1,000 for mM, by 1,000,000 for µM, or divide by 1,000 for mmol/L? Note that 1 mmol/L is exactly 1 mM, so no additional conversion is needed between those two units. Make sure the label on your result matches the number.
- Check that the result is plausible. A larger mass concentration should give a larger molarity for the same substance. A larger molar mass should give a smaller molarity at the same mass concentration. Use units to verify the calculation and compare with an independent calculation if the value matters for a lab plan.
Common Mistakes
- Using the wrong kind of concentration. “10%” is ambiguous: it could mean mass/volume, mass/mass, or volume/volume. Do not enter 10 as g/L unless the value really is 10 g/L. Convert using the definition and any necessary density information.
- Using solvent volume instead of solution volume. Molarity is moles per liter of final solution. If a recipe describes solute added to a measured volume of solvent, the final volume may differ; the concentration calculation needs the actual final solution volume or a stated mass concentration.
- Entering the wrong molar mass. A hydrate, salt, or different protonation form can have a different molar mass from the compound name you first recognize. Check the formula and chemical form on the source label or reference.
- Leaving a unit conversion out. mg/L is not g/L, and mL is not L. Convert units explicitly before dividing; otherwise the answer may be wrong by factors of 1,000 or more.
- Rounding too early. Keep several significant figures through the division and round only the final answer. Reporting many decimals does not make an imprecise input more accurate.
Tips
- Write the units beside each value before calculating. The cancellation of grams shows why g/L divided by g/mol yields mol/L.
- For a known mass of solute in a known final volume, calculate mass concentration first: ρ = mass in g ÷ final volume in L. Then use M = ρ / MW. Equivalently, calculate moles as mass ÷ molar mass and divide by final volume in liters.
- Keep a record of the molar-mass source and chemical form when the calculation will be reused. This is especially useful for salts, hydrates, and mixtures.
- Remember that molarity is volume-dependent. Temperature-related volume changes can affect molarity, although this simple conversion does not apply a temperature correction.
Troubleshooting
The answer seems 1,000 times too large or small: check whether the mass concentration was entered in mg/L rather than g/L, or whether a volume was entered in mL instead of L. Convert to the units shown in the calculator.
The result looks chemically unreasonable: verify the compound’s formula, molar mass, and whether the concentration is mass per final solution volume. Also check whether a percentage was interpreted correctly. A percent concentration may need a density or a clearly defined mass/volume convention before it can be converted.
You do not know the molar mass: obtain the correct chemical formula first, including any counterions or waters of hydration. Add the atomic masses for that formula, or consult a dependable chemical reference. Do not guess from a familiar but different form.
Your concentration is given in mol/L already: it is already molarity; no mass-to-moles conversion is needed. If it is given in mmol/L, the numerical value is the same in mM.
The concentration is given as a percentage or volume ratio: identify the exact convention and obtain any needed density or composition data. The formula on this page is for g/L and cannot safely interpret an unspecified percentage on its own.
Frequently Asked Questions
What is the formula to convert g/L to molarity?
Divide the mass concentration in g/L by the solute’s molar mass in g/mol: M = ρ / MW.
Can I convert mg/mL to mol/L?
Yes. Since 1 mg/mL equals 1 g/L, enter the numerical value as g/L, then divide by molar mass in g/mol.
Is molarity the same as molality?
No. Molarity is moles of solute per liter of final solution. Molality is moles of solute per kilogram of solvent, so it requires different information and a different calculation.
How do I convert mol/L to mM?
Multiply by 1,000. For example, 0.025 mol/L equals 25 mM.
Can I convert a percentage concentration directly?
Not without knowing what the percentage means. Mass/volume percent, mass/mass percent, and volume/volume percent are different; some conversions also require density.
Does this calculation account for dissociation?
No. It gives the formal molarity based on the stated amount of substance. It does not calculate the concentration of individual ions or account for reactions in solution.
Related
Formula used
in conc | Mass concentration | g/L | 10 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 out mol | Molarity | mol/L | conc / mm | 4 out milli | Concentration in millimolar | mM | mol * 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
- MD Calc I:T Ratio Calculator and Explanation0.0500 ratio
- Oxygen Mass Number: Isotope Values Explained16 nucleons
- Mass-to-Light Ratio: Meaning and Calculation1.000 M☉/L☉
- M/z Ratio in Mass Spectrometry: Meaning and Calculation1,000.00 Th
- Mass Fraction to Molar Fraction Calculator
- K2 Molar Mass Calculator and Calculation78.1966 g/mol