This g/mL to molarity calculator converts a solute’s mass concentration and molar mass into molarity, the amount of substance in moles per liter. Enter the concentration in g/mL and the compound’s molar mass in g/mol; the calculator returns mol/L and mM.
Formula
Molarity is mass concentration divided by molar mass, after converting grams per milliliter to grams per liter:
M = (ρ × 1000) / MW
- M is molarity in mol/L.
- ρ is mass concentration in g/mL: grams of the solute per milliliter of final solution.
- 1000 converts milliliters to liters, since 1 L = 1000 mL.
- MW is the solute’s molar mass in g/mol.
The units cancel as (g/mL × 1000 mL/L) ÷ (g/mol) = mol/L. To express the answer in millimolar, multiply mol/L by 1000 because 1 mol/L = 1000 mM. The calculation assumes the entered g/mL value is already a mass concentration, not the density of a pure liquid.
Worked Example
Use the calculator’s default values: 0.011688 g/mL and 58.44 g/mol.
- Convert the concentration to grams per liter: 0.011688 g/mL × 1000 mL/L = 11.688 g/L.
- Divide by molar mass: 11.688 g/L ÷ 58.44 g/mol = 0.20000 mol/L.
- Convert to millimolar: 0.20000 mol/L × 1000 = 200.00 mM.
The result is 0.2000 mol/L, or 200.00 mM at the displayed precision.
Assumptions
- The input is mass of the specified solute per volume of the final solution, rather than mass per volume of solvent.
- The molar mass matches the substance’s chemical formula and relevant form, such as an anhydrous compound versus a hydrate or salt.
- The result is a concentration conversion only; it does not assume complete dissociation or calculate the concentration of individual ions.
- For practical solution preparation, the final solution volume is the relevant volume. Solvent volume and final solution volume are not generally interchangeable.
When to Use This Conversion
Use the conversion when a concentration is reported as grams of solute per milliliter but you need molarity for a calculation involving moles, reaction ratios, or concentration comparisons. Molarity connects a measured solution volume to an amount in moles: multiplying mol/L by liters gives moles. That makes it useful in stoichiometry, where balanced equations express reacting substances in mole ratios.
For example, 0.2000 mol/L means that one liter of the solution contains 0.2000 mol of the specified solute; 100 mL contains 0.02000 mol if the solution is uniform. The calculator does not identify the substance from its concentration. You must supply the correct molar mass, including the exact chemical form named on the label or in the reference you are using.
If a problem gives a concentration in g/L instead, divide that number directly by molar mass. If it gives mg/mL, the numerical value is the same as g/L: 1 mg/mL = 1 g/L. These shortcuts follow from unit conversions, but the calculator here specifically expects g/mL.
Mass Concentration Is Not Density
A common source of error is using the density of a liquid as though it were the solute’s concentration. Density describes the mass of the entire material per volume, often in g/mL. Mass concentration describes only the mass of the dissolved solute per volume of solution. A liquid reagent’s density alone therefore does not reveal its molarity unless the material is a pure substance and its identity and molar mass are known. For a solution, its composition or a stated concentration is also needed.
Similarly, a percentage such as “10%” is incomplete without its convention. Mass/volume percent, mass fraction, and volume fraction mean different things. Convert the stated percentage into a mass concentration using its definition—and, where required, the solution density—before entering a g/mL value.
Choosing Molar Mass and Checking Results
Molar mass is the mass of one mole of a substance, in g/mol. For a pure element or compound, it can be found from the chemical formula and the standard atomic weights of its atoms. For instance, sodium chloride has a molar mass of about 58.44 g/mol using Na = 22.990 and Cl = 35.45. Hydrated salts include the water molecules in their formula and have a different molar mass from their anhydrous forms.
- Check the formula, charge state, hydration state, and salt form before choosing the molar mass.
- Keep the concentration units explicit. Entering g/L as if it were g/mL makes the result 1000 times too large.
- Do not confuse mol/L with mM: 0.001 mol/L equals 1 mM.
- Keep reasonable significant figures. A calculator can display extra digits, but they do not improve an input measured with limited precision.
Molarity describes moles per volume of solution and can vary with temperature if the solution expands or contracts. For many routine calculations this change is small, but it matters when precise concentration values are required. The formula also does not account for chemical reactions, ion pairing, activity, or non-ideal solution behavior; it converts the stated composition into a formal molar concentration.
Frequently Asked Questions
How do I convert g/mL to mol/L?
Multiply the g/mL value by 1000 to get g/L, then divide by the solute’s molar mass in g/mol. The result is mol/L.
Can I convert g/mL to molarity without molar mass?
No. The same mass concentration represents different numbers of moles for substances with different molar masses. Identify the solute and obtain its correct molar mass first.
Is g/mL the same as molarity?
No. g/mL is mass per volume, while molarity is moles per volume. Molar mass is needed to convert between them.
How do I convert g/L to molarity?
Divide g/L directly by molar mass in g/mol. The units reduce to mol/L, so no factor of 1000 is needed.
Does this calculator give the molarity of ions?
No. It gives the formal molarity of the compound entered. Calculating ion concentrations requires its dissociation behavior and the compound’s stoichiometry in solution.
Should I use solution density as g/mL?
Not by itself. Density is for the whole solution or liquid, whereas the calculator needs grams of solute per milliliter of solution. Follow your lab method, the safety data sheet (SDS), and your supervisor when bench work is involved.
Related
Formula used
in conc | Mass concentration | g/mL | 0.011688 | 0 in mm | Molar mass | g/mol | 58.44 | 0 out mol | Molarity | mol/L | conc * 1000 / 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
- Normality Calculation in Chemistry: Formula and Examples0.3997 eq/L
- Ng/µL to Molarity Calculator: Convert by Molecular Weight0.001000 mol/L
- Molarity Formula: Calculate Solution Concentration0.2000 mol/L
- Molarity Calculator From Moles: Formula and Example0.2000 mol/L
- Molarity Calculator for Titration Results0.1250 mol/L
- Anderson-Darling Normality Test Calculator