Calculate moles from density, volume and molar mass, or solve for density, volume or molar mass, with common substance presets and unit choices.

Fills typical density and molar mass, which you can edit. Acid presets switch to solution mode; enter the actual mass percentage.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Moles from density and volumeFinds the amount of substance in a sample, in mol, kmol or nmolRequires the density, the volume and the molar mass
DensityFinds the density that a known amount of substance has in a known volumeRequires the molar mass, the amount of substance and the volume
VolumeFinds the volume that holds a known amount of substanceRequires the density, the molar mass and the amount of substance
Molar mass (molecular weight)Finds the molar mass of a substance from a measured sampleRequires the density, the volume and the amount of substance

Every function has a Substance list that fills in a density and molar mass for water, ethanol, acetone, solid sodium chloride, hydrochloric acid solution or sulfuric acid solution. Both values can be edited. Material basis switches between a pure substance and a solute in a solution, and the solution setting also requires the solute mass percentage. Density is entered in g/cm³, kg/m³ or lb/ft³, volume in cm³, m³, in³ or ft³, and molar mass in g/mol or kg/mol. Each result also shows the sample mass in grams.

Density to Moles Formulas

n = ρ × V × w ÷ M [1]
nAmount of substance (mol)
ρDensity of the sample (g/cm³)
VVolume of the sample (cm³)
wMass fraction of the substance in the sample: 1 for a pure substance, or the solute mass percentage ÷ 100 for a solution
MMolar mass of the substance (g/mol)

The formula joins two definitions. Density is mass divided by volume, so ρ × V is the mass of the sample. Molar mass is mass divided by amount of substance, so dividing a mass by M gives moles [1]. Density alone cannot be turned into moles: a volume and a molar mass are always needed.

Moles from density and volume

The main formula applies directly. For 100 cm³ of water at 1 g/cm³ and 18.015 g/mol, n = 1 × 100 × 1 ÷ 18.015 = 5.55093 mol. For a solution, only the solute is counted: 100 cm³ of hydrochloric acid at 1.18 g/cm³ and 37% HCl by mass weighs 118 g and holds 43.66 g of HCl, which is 43.66 ÷ 36.46 = 1.197477 mol.

Density

ρ = n × M ÷ (V × w)

This is the main formula rearranged. A sample of 2 mol at 18.015 g/mol in 36.03 cm³ has a density of 2 × 18.015 ÷ 36.03 = 1 g/cm³.

Volume

V = n × M ÷ (ρ × w)

One mole of ethanol at 46.07 g/mol and 0.789 g/cm³ takes up 46.07 ÷ 0.789 = 58.390368 cm³.

Molar mass (molecular weight)

M = ρ × V × w ÷ n

A 50 cm³ sample at 2.5 g/cm³ weighs 125 g. If it holds 3.90625 mol, the molar mass is 125 ÷ 3.90625 = 32 g/mol. The result is a molar mass in g/mol or kg/mol. Molecular weight is the same number without a unit [1].

Substance Values

SubstanceDensity filled in (g/cm³)Molar mass filled in (g/mol)Molar mass, NIST (g/mol)
Water118.01518.0153
Ethanol0.78946.0746.0684
Acetone0.784558.0858.0791
Sodium chloride, solid2.16558.4458.443
Hydrochloric acid solution1.1836.4636.461
Sulfuric acid solution1.8498.0898.078

The molar masses are the NIST values rounded to two or three decimal places [2]. The densities are typical figures near room temperature. For the two acids the density is that of the concentrated acid, and the molar mass is that of the acid itself, so the mass percentage of the solution has to be entered with them.

Limits of This Estimate

  • Density changes with temperature, pressure and concentration. The densities filled in by the Substance list are typical values and are not tied to a stated temperature. These estimates are based on the best available data and estimations.
  • For a solution, the density must be that of the whole solution and the mass percentage must match it. A diluted acid has a lower density than the value filled in.
  • Volumes in in³ and ft³ and densities in lb/ft³ are converted with the NIST factors [3]. A zero density, volume, amount or molar mass is rejected.

Sources

  1. NIST, Guide for the Use of the International System of Units (SP 811), Chapter 8: molar mass as mass divided by amount of substance, mass density as mass divided by volume, and molecular weight as a number without a unit
  2. NIST Chemistry WebBook, SRD 69: molecular weights of water, ethanol, acetone, sodium chloride, hydrogen chloride and sulfuric acid
  3. NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: factors for cubic inches, cubic feet and pounds per cubic foot