molecalculator

Moles & Molar Mass

Liters to Grams: How to Convert (Density Needed)

Calculator No. 01-7213 · Updated · Formula and assumptions shown below

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Yes, you can convert liters to grams, but only if you also know the density of the substance. Liters measure volume, and grams measure mass; the conversion factor between them is density (grams per liter). This page provides a calculator that works out the mass of a solute when you know its molar mass, the solution volume, and the desired molarity — a common lab conversion that is often confused with simple liter-to-gram conversion.

Formula

The calculator uses the definition of molarity:

Molarity (mol/L) = mass of solute (g) ÷ molar mass (g/mol) ÷ volume of solution (L)

In symbols: c = m / (M × V), where:

  • c = concentration in mol/L (molarity)
  • m = mass of solute in grams
  • M = molar mass of the solute in g/mol
  • V = final solution volume in liters (mL ÷ 1000)

This is the standard formula for preparing a solution of a given molarity. The first output (molarity) is the headline answer; the second output converts it to millimolar (mM) by multiplying by 1000.

Worked Example

Using the default values: mass = 2.922 g, molar mass = 58.44 g/mol (sodium chloride, NaCl), volume = 250 mL.

  1. Convert volume to liters: 250 mL ÷ 1000 = 0.250 L
  2. Calculate moles of solute: 2.922 g ÷ 58.44 g/mol = 0.05000 mol
  3. Divide moles by volume: 0.05000 mol ÷ 0.250 L = 0.2000 mol/L
  4. Convert to millimolar: 0.2000 mol/L × 1000 = 200.0 mM

The calculator returns 0.2000 mol/L (or 200.0 mM) for the defaults. This matches the expected result: 2.922 g of NaCl in 250 mL gives a 0.2 M solution.

Assumptions

  • The solute is pure and fully dissolves without changing the solution volume significantly.
  • The final volume is the total solution volume (solute + solvent), not the volume of solvent added.
  • The molar mass is for the anhydrous (or specified) form of the compound. For hydrates, use the molar mass including water of crystallization.
  • Temperature and pressure do not affect molarity for solid solutes (they do affect density, but not the mole count).

Why Can’t You Convert Liters to Grams Directly?

A liter is a unit of volume, and a gram is a unit of mass. They measure different physical quantities. To convert between them, you need a conversion factor that relates volume to mass for the specific substance: its density (mass per unit volume, usually g/mL or g/L). For example, water has a density of about 1 g/mL at 4 °C, so 1 liter of water has a mass of 1000 g. But 1 liter of olive oil (density ≈ 0.92 g/mL) has a mass of about 920 g, and 1 liter of mercury (density ≈ 13.6 g/mL) has a mass of about 13,600 g. Without knowing the substance, the conversion is impossible.

In chemistry, a similar but distinct situation arises when you know the concentration of a solution in molarity (mol/L) and want to find how many grams of solute are in a given volume. That is exactly what this calculator does: it uses molar mass as the bridge between moles and grams, and volume to get concentration.

How to Use the Calculator

Enter the mass of solute you plan to weigh out (in grams), its molar mass (in g/mol), and the final volume of solution you want to prepare (in mL). The calculator gives you the resulting molarity and millimolar concentration. This is useful when you have a reagent bottle and need to know what concentration you’ll get if you dissolve a certain mass in a certain volume.

For example, if you weigh 5.85 g of NaCl (molar mass 58.44 g/mol) and dissolve it in 500 mL, the calculator will show 0.2000 mol/L (200.0 mM). That is a common 0.2 M NaCl solution used in many lab protocols.

Common Mistakes and How to Avoid Them

  • Mixing up volume units: Always convert mL to L by dividing by 1000. The calculator does this automatically, but if you do it by hand, forgetting the conversion is a frequent error.
  • Using the wrong molar mass: For hydrated salts (e.g., CuSO₄·5H₂O), include the water molecules in the molar mass. Using the anhydrous mass will give a concentration that is too high.
  • Assuming 1 L = 1 kg for all liquids: That is only true for water at 4 °C. For other substances, use density.
  • Adding solvent to reach final volume vs. dissolving in solvent: The formula assumes you add enough solvent to make the final total volume. If you add exactly 250 mL of solvent to 2.922 g of NaCl, the total volume will be slightly more than 250 mL, and the concentration will be slightly lower.

When to Use Molarity vs. Density Conversion

Use density conversion when you have a pure liquid or a solution with a known density and you need mass from volume (or vice versa). For example, to measure 10 g of ethanol, you’d use its density (0.789 g/mL) to find the volume needed. Use molarity conversion when you are preparing a solution from a solid solute and you need to know how much to weigh to get a specific concentration, or when you have a known mass and volume and want the concentration.

This calculator is specifically for the molarity case. If you need to convert liters to grams for a pure substance, the formula is simply: mass (g) = volume (L) × density (g/L). For water at 25 °C, density is about 997 g/L, so 2 L of water has a mass of about 1994 g.

Limitations of the Formula

The molarity formula assumes ideal behavior: the solute dissolves completely, the solution is homogeneous, and the volume change on mixing is negligible. In practice, these assumptions hold for dilute solutions of most salts and small molecules. For very concentrated solutions, the volume may change significantly, and the molarity will differ from the nominal value. Also, the formula does not account for temperature effects on volume; if you prepare a solution at a different temperature than you use it, the molarity will change slightly because the solution expands or contracts. For precise work, prepare the solution at the temperature you intend to use it, or use a volumetric flask calibrated for that temperature.

Frequently Asked Questions

Q: How many grams are in a liter of water?
A: At 4 °C, pure water has a density of exactly 1 g/mL, so 1 liter (1000 mL) has a mass of 1000 g (1 kg). At room temperature (25 °C), the density is about 0.997 g/mL, so 1 liter is about 997 g.

Q: Can I convert liters to grams without density?
A: No. You must know the density of the substance. If you know the molarity and molar mass, you can convert volume to grams of solute using the formula: mass (g) = molarity (mol/L) × volume (L) × molar mass (g/mol). That is what this calculator does.

Q: What is the difference between molarity and molality?
A: Molarity is moles of solute per liter of solution (mol/L). Molality is moles of solute per kilogram of solvent (mol/kg). Molality is temperature-independent because it uses mass, while molarity changes with temperature because volume changes.

Q: How do I convert grams to liters for a gas?
A: For a gas, you can use the ideal gas law: PV = nRT. First convert grams to moles using molar mass, then use the ideal gas law to find volume at a given temperature and pressure. At standard temperature and pressure (0 °C, 1 atm), 1 mole of an ideal gas occupies 22.414 L.

Q: Does this calculator work for any solute?
A: Yes, as long as you enter the correct molar mass for the specific compound. The calculation is purely mathematical and does not depend on the chemical identity of the solute, only its molar mass.

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

The whole Moles & Molar Mass section →