ThisCalculator

Chemistry

Density Molarity Calculator: Convert & Calculate

Updated · Standard formula, shown below

Molarity 5.048 mol/L
Mass concentration
295.0 g/L
Result
Solution density
1.18 g/mL
You entered
Solute molar mass
58.44 g/mol
You entered

Density Molarity Calculator: Convert & Calculate

This calculator converts between density, molarity, and concentration for solutions. You enter the density of the solution, the molar mass of the solute, and either the mass fraction (weight percent) or the molarity, and it computes the missing value. The tool uses the standard formula that links these quantities, giving you a fast, accurate result for lab work or homework.

Formula

The core relationship is:

Molarity (mol/L) = (mass fraction × density × 1000) / molar mass

Where:

  • Mass fraction (w) – the weight percent of solute divided by 100 (e.g., 25% becomes 0.25). It is dimensionless.
  • Density (d) – the density of the entire solution in g/mL (which equals g/cm³).
  • 1000 – converts g/mL to g/L (since 1 mL = 0.001 L).
  • Molar mass (MW) – the mass of one mole of solute in g/mol.

The result is molarity in mol/L (often written as M). The calculator also outputs mass concentration in g/L, which is simply density × mass fraction × 1000.

Worked Example

Using the default values: density = 1.18 g/mL, molar mass = 58.44 g/mol (NaCl), mass fraction = 25%.

  1. Convert mass fraction: 25% → 0.25.
  2. Compute mass concentration: 0.25 × 1.18 g/mL × 1000 = 295 g/L.
  3. Divide by molar mass: 295 g/L ÷ 58.44 g/mol = 5.048 mol/L.

The calculator shows 5.048 M, matching the steps. If you instead enter molarity and want mass fraction, rearrange the formula: mass fraction (%) = (molarity × molar mass) / (density × 1000) × 100.

Why This Relationship Works

Molarity is moles of solute per liter of solution. Density gives you the mass of one liter of solution (in grams). The mass fraction tells you what portion of that mass is solute. Multiply them to get grams of solute per liter, then divide by molar mass to get moles per liter. This works for any single solute dissolved in a solvent, as long as the density is the solution’s density (not the solvent’s) and the mass fraction is accurate.

Note that this formula assumes the solute does not react with the solvent and that the density is measured at the same temperature as your experiment. Density changes with temperature, so a density measured at 20°C will give a slightly different molarity at 25°C.

How to Use the Calculator

  • Enter solution density – usually measured with a hydrometer or given on the bottle label. Units are g/mL.
  • Enter solute molar mass – from the periodic table. For NaCl it is 58.44 g/mol; for HCl it is 36.46 g/mol; for Hâ‚‚SOâ‚„ it is 98.08 g/mol.
  • Enter either mass fraction or molarity – this calculator takes mass fraction. If you have molarity, use the rearranged formula to find the mass fraction first.

For common acids and bases, you often see labels like “37% HCl, density 1.19 g/mL�. That means 37 g of HCl per 100 g of solution. Using the calculator: (0.37 × 1.19 × 1000) / 36.46 = 12.1 M. This is the “concentrated� HCl you buy for lab use.

Common Mistakes and Pitfalls

  • Using solvent density instead of solution density – pure water is 1.00 g/mL, but a 25% NaCl solution is about 1.18 g/mL. Using water will understate molarity.
  • Forgetting to convert percent to fraction – always divide by 100 before multiplying.
  • Unit mix-ups – density must be g/mL, not kg/L or g/cm³ (they are numerically equal, but g/L requires the 1000 factor). Molar mass must be g/mol, not kg/mol.
  • Temperature drift – density changes with temperature. If you measure density at 20°C but the solution is at 30°C, the molarity will be slightly off.
  • Rounding too early – keep intermediate values to at least 3 significant figures to avoid final errors.

When to Use This vs. Other Concentration Measures

Molarity is the standard for stoichiometry and reactions because it ties directly to moles. But for titrations or dilutions, you might also need normality (for acids/bases) or molality (which is temperature-independent). This calculator gives molarity and mass concentration; it does not compute molality or normality. For molality, you would need the solvent mass, not just the solution density.

If you have a dilute solution (below ~1%), density is often close to 1 g/mL, so you can approximate molarity as (mass fraction × 1000) / molar mass. But for concentrated solutions, always use the actual density.

Limitations of the Formula

This formula assumes the solute is a single, non-dissociating species for molar mass purposes. For electrolytes like NaCl, the molar mass is for the formula unit, and the molarity refers to the concentration of NaCl formula units, not individual ions. If you need the concentration of Na� or Cl�, multiply by the number of ions per formula unit (here, 1 each).

It also assumes the solution is ideal enough that density and mass fraction are independent. In practice, density is measured empirically, so the formula is as accurate as your density measurement. For highly concentrated solutions, density tables are more reliable than the ideal mixing assumption.

Frequently Asked Questions

How do I convert molarity to density?

Rearrange the formula: density (g/mL) = (molarity × molar mass) / (mass fraction × 1000). You need the mass fraction. If you only have molarity and molar mass, you cannot find density without knowing the mass fraction or the solvent mass.

What is the difference between molarity and molality?

Molarity is moles of solute per liter of solution, which depends on temperature because volume changes. Molality is moles of solute per kilogram of solvent, which does not depend on temperature. This calculator gives molarity, not molality.

Can I use this for any solute?

Yes, as long as you know the molar mass and the solution density. It works for solids, liquids, or gases dissolved in a solvent, provided the solute does not react with the solvent.

Why does the calculator ask for mass fraction instead of molarity?

Because mass fraction is the most common way to express concentration on reagent bottles (e.g., “37% HCl�). If you have molarity, you can convert it to mass fraction using the formula above, then enter that.

What if I only know the density and molarity?

You can still find the mass fraction: mass fraction (%) = (molarity × molar mass) / (density × 1000) × 100. This calculator does not do that directly, but you can use the formula manually.

Related

Formula used
in d | Solution density | g/mL | 1.18 | 0
in mw | Solute molar mass | g/mol | 58.44 | 0
in w | Mass fraction (weight %) | % | 25 | 0
out molarity | Molarity | mol/L | (w / 100 * d * 1000) / mw | 3
out mass_conc | Mass concentration | g/L | w / 100 * d * 1000 | 1

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, rounded as each result states. See how the calculators work or report an error.