molecalculator

Moles & Molar Mass

Moles, Density, and Volume: The Equation Explained

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

Amount of substance 5.5509 mol
Mass
100.0000 g
= Density × Volume
Density
1 g/mL
Set in the form below
Volume
100 mL
Set in the form below
You enter
Density (g/mL), Volume (mL), Molar mass (g/mol)
You get
Amount of substance (mol), Mass (g)
Rounding
4 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.

The equation connecting moles, density, and volume is n = ρV/M: multiply a substance’s density by its volume to find its mass, then divide by its molar mass to get moles. Enter density, volume, and molar mass below to calculate the amount of substance in moles, along with the equivalent mass.

Formula

The relationship is n = ρV/M. Here, n is amount of substance in moles (mol), ρ is density in grams per millilitre (g/mL), V is volume in millilitres (mL), and M is molar mass in grams per mole (g/mol). Density times volume gives mass: m = ρV. Dividing mass by molar mass gives moles: n = m/M.

The calculator uses g/mL, mL, and g/mol, so the units cancel directly: (g/mL × mL) ÷ (g/mol) = mol. No conversion factor is needed with these selected units. If you instead use density in kg/m³ and volume in m³, the resulting mass is in kilograms; convert it to grams by multiplying by 1,000 before dividing by molar mass in g/mol. Keep units consistent rather than mixing values without conversion.

Worked Example

Using the calculator’s defaults—density 1.00 g/mL, volume 100 mL, and molar mass 18.015 g/mol—the calculation is:

  1. Find the mass: m = ρV = 1.00 g/mL × 100 mL = 100 g.
  2. Divide by molar mass: n = m/M = 100 g ÷ 18.015 g/mol = 5.5509 mol (rounded to four decimal places).

The calculated mass is 100.0000 g and the amount is 5.5509 mol, matching the calculator’s displayed precision. The defaults illustrate the arithmetic only; density depends on the substance and conditions, so the selected density must be appropriate for the material and temperature.

Assumptions

  • The material has a uniform density throughout the volume being considered.
  • Density and volume refer to the same substance and compatible conditions, especially temperature and pressure where relevant.
  • The molar mass is for the chemical formula and composition of the material being counted.
  • The input volume is the volume of the substance whose mass is being calculated, not automatically the final volume of a solution.

When to Use This Equation

This relation is useful when a material’s amount is specified by a measured volume but the desired quantity is moles—for example, in chemistry calculations that require converting a liquid sample into amount of substance. It also works for solids or gases if the volume and density are meaningful and refer to the same conditions. Once moles are known, they can be used in reaction stoichiometry, particle-count calculations, or concentration calculations, provided the later calculation’s assumptions are satisfied.

There are two equivalent routes through the calculation:

  • Volume → mass → moles: multiply volume by density, then divide mass by molar mass.
  • Volume → moles directly: use n = ρV/M.

The direct form does not change the underlying logic; it simply combines the two steps. If mass is already known, density and volume are unnecessary: use n = m/M. If the question instead gives moles and asks for volume, rearrange the same relationship to V = nM/ρ.

Choosing Density and Molar Mass

Density is not a universal constant for a substance under all conditions. It can vary with temperature, pressure, composition, and physical state. For a liquid or solid, use a density value appropriate to the sample’s conditions. For a gas, density can change substantially with pressure and temperature; a tabulated value is useful only when its stated conditions match the problem. For mixtures, the mixture’s density and composition may be needed rather than a pure component’s values.

Molar mass is calculated from the chemical formula by adding the atomic masses of all atoms in one formula unit. For water, H2O, using H = 1.008 and O = 15.999 g/mol gives M = 2(1.008) + 15.999 = 18.015 g/mol. For substances with variable composition, such as some hydrates or mixtures, the formula and molar mass must reflect that composition. Entering the molar mass of a related but different form will give a correspondingly different mole result.

Common Mistakes and Limits

  • Mixing volume units: density in g/mL pairs directly with volume in mL. If using litres instead, convert consistently; 1 L = 1,000 mL.
  • Using a mismatched density: a value at a different temperature or pressure can make the inferred mass inaccurate.
  • Confusing mass and moles: density × volume gives mass, not moles. The division by molar mass is still required.
  • Using solvent volume as solution volume: the volume of liquid added is not always the final volume after dissolving a solute. For solution concentration, use the measured final solution volume when the problem asks for molarity.
  • Rounding too early: retain sensible precision in intermediate steps and round the final result to match the precision of the measurements.

The equation assumes the density accurately represents the volume in question. It does not determine chemical purity, concentration, reaction yield, or how much of a component in a mixture is present unless those details are supplied separately. A calculated value can have many displayed digits without being that precise in reality; measurement uncertainty in density, volume, and molar mass limits the meaningful precision.

Frequently Asked Questions

How do you calculate moles from density and volume?
Multiply density by volume to get mass, then divide by molar mass: n = ρV/M. With density in g/mL, volume in mL, and molar mass in g/mol, the result is in moles.

What is the equation for volume from moles, density, and molar mass?
Rearrange n = ρV/M to get V = nM/ρ. Check units before substituting values; with n in mol, M in g/mol, and density in g/mL, volume comes out in mL.

Can I find moles from volume alone?
Not generally. You also need enough information to determine mass and molar mass. Density supplies the mass-per-volume link, while molar mass converts mass into moles.

Is density times volume the number of moles?
No. Density multiplied by volume gives mass. Divide that mass by molar mass to obtain moles.

Does the equation work for gases?
Yes, when the gas density and volume refer to the same temperature and pressure and the gas composition is known. Because gas density changes with conditions, mismatched values can produce an inaccurate result.

For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Related

Formula used
in rho | Density | g/mL | 1.00 | 0
in v | Volume | mL | 100 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
out n | Amount of substance | mol | rho * v / mm | 4
out m | Mass | g | rho * v | 4

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 →