A molarity calculator from density estimates a solution’s molarity from its density, the solute’s molar mass, and the solute’s mass fraction or percentage. Enter those values to get moles of solute per liter of solution; density alone is not enough because it does not reveal how much solute is present.
Formula
The formula is: molarity equals solution density multiplied by 1,000 milliliters per liter, multiplied by solute mass fraction, then divided by solute molar mass.
C = (d × 1,000 × w) / M
- C is molarity in mol/L.
- d is solution density in g/mL.
- 1,000 converts one liter to 1,000 mL.
- w is solute mass fraction, a unitless ratio. For example, 10% by mass is 0.10.
- M is the solute’s molar mass in g/mol.
The calculation treats one liter of solution as having a mass of d × 1,000 grams. Multiplying that mass by w gives the solute mass in the liter; dividing by molar mass converts grams to moles. The result is therefore moles per liter of solution.
Worked Example
Using the calculator’s default values—density 1.05 g/mL, solute mass fraction 0.10, and molar mass 58.44 g/mol:
- Mass of one liter of solution: 1.05 g/mL × 1,000 mL/L = 1,050 g/L.
- Solute mass in that liter: 1,050 g/L × 0.10 = 105 g/L.
- Convert solute mass to moles: 105 g/L ÷ 58.44 g/mol = 1.7974 mol/L.
The calculator displays 1.7974 mol/L, or 1797.40 mM. The example values are illustrative, not a claim that every solution with these inputs has a density of 1.05 g/mL.
Assumptions
- The density and mass fraction describe the same solution composition and temperature.
- The input is a mass fraction, not a volume fraction or a percentage entered as a whole number. Enter 0.10 for 10% by mass.
- The solution is homogeneous, and the volume used is the final solution volume.
- The solute’s molar mass is appropriate for its chemical form, including any hydrate or salt form relevant to the substance.
When Density Can Be Used to Find Molarity
Density becomes useful when a concentration is reported by mass but a calculation needs molarity. Reagent labels and reference tables may give a mass percentage, such as a stated number of grams of solute per 100 grams of solution, alongside density. Together, these quantities let you infer how many moles are contained in a known volume.
For example, a 10% mass fraction means 10 g of solute in every 100 g of solution—not 10 g in 100 mL. Density converts the solution’s volume into its total mass, making the mass-based concentration usable in a volume-based molarity calculation.
Use density for the solution, not the pure solute. The density of a pure liquid reagent cannot substitute for the density of a diluted solution unless the problem explicitly concerns the pure liquid and its composition is known. Also check that the density applies at the temperature of interest: liquids expand or contract with temperature, changing density and therefore the calculated molarity per liter.
How to Enter the Values
- Solution density: enter a value in g/mL. Convert from other units before entering; for instance, 1.20 g/cm³ has the same numerical value as 1.20 g/mL.
- Mass fraction: divide a mass percentage by 100. A solution labeled 35% by mass has w = 0.35. If the concentration is given as grams per 100 grams, divide the solute grams by 100.
- Molar mass: enter the value in g/mol for the exact solute. For a compound, calculate it from its chemical formula and suitable atomic weights, accounting for waters of crystallization when applicable.
Mass fraction must be between zero and one for an ordinary mixture. This calculator’s input validation treats the entered value as nonnegative; make sure you do not enter “10” for 10%. Molar mass and density must be positive. A zero value would make the result meaningless or cause division by zero.
Limits and Common Mistakes
- Density alone cannot determine molarity. Many solutions with different concentrations can have the same density, and density also varies with temperature and composition. You need a known mass fraction or another reliable composition measure.
- Do not confuse mass percent with volume percent. A volume percentage cannot be put directly into this formula. It needs suitable component density and composition information to convert it into mass fraction.
- Use solution mass, not solvent mass. A stated mass percentage is normally solute mass divided by total solution mass. Treating it as solute per mass of solvent gives a different answer.
- Keep units consistent. The formula’s factor of 1,000 specifically converts g/mL to g/L. If density is already in g/L, multiplying by 1,000 again would be an error.
- Do not overstate precision. The output is only as reliable as the density, concentration, temperature, and molar-mass inputs. Extra calculator digits do not make rounded label data more precise.
The formula calculates molarity for the stated composition and conditions; it does not account for chemical reactions, dissociation, or a change in composition over time. In particular, molarity counts formula units or molecules using the chosen solute molar mass. It is not automatically the concentration of individual ions after a salt dissolves.
Frequently Asked Questions
Can I calculate molarity from density alone?
No. Density gives mass per volume, but not what fraction of that mass is the solute. You also need a known mass fraction, mass percentage, or equivalent composition information, plus the solute’s molar mass.
How do I convert weight percent to mass fraction?
Divide the percentage by 100. For example, 25% by mass becomes 0.25. This assumes the percentage is explicitly a mass percentage, not a volume percentage.
What if density is listed in g/cm³?
Use the same numerical value as g/mL, because one cubic centimeter equals one milliliter. For other density units, convert to g/mL before using this calculator.
Why does the temperature of the density matter?
Density is mass per unit volume, and a liquid’s volume can change with temperature. Since molarity is moles per liter, using a density measured at a different temperature can shift the calculated concentration.
Is molarity the same as molality?
No. Molarity is moles of solute per liter of solution; molality is moles per kilogram of solvent. Density can help convert between concentration descriptions when the composition and relevant conditions are known, but the units and definitions are different.
For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor. Treat this result as a calculation from stated inputs, and verify that the source values and temperature match the solution you are describing.
Related
Formula used
in d | Solution density | g/mL | 1.05 | 0 in w | Solute mass fraction | fraction | 0.10 | 0 in mm | Solute molar mass | g/mol | 58.44 | 0.001 out c | Molarity | mol/L | d * 1000 * w / mm | 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
- Serial Dilution Calculation Examples0.2000 mol/L
- Serial Dilution: How It Works & Why It Matters1.000 × 10−5 mol/L
- Serial Dilution A Level Biology: How To Do It30
- Serial vs Simple Dilution: Key Differences0.2000 mol/L
- Milton Tablet Dilution: Mixing Guide0.2000 mol/L
- qPCR Serial Dilution Standard Curve: How to Build One100,000 copies/µL