Density To Moles Calculator

A density to moles calculator converts density and volume into mass, then divides by molar mass to find moles. For solutions, it also applies wt% so you can calculate solute mass and moles correctly.

%
Calculated Solute Mass
Amount of Substance (Moles)
By: AxisCalc Published: March 23, 2026 Reviewed by: Sylvia Lin

A density to moles calculator finds the number of moles by converting density and volume into mass, then dividing by molar mass. If the sample is a solution rather than a pure substance, the calculation must also apply the solute mass fraction or wt%.

This calculator uses density, volume, molar mass, and optional purity/wt% to calculate solute mass and moles. It supports common chemistry units and preset substances.

Density to moles formula

Converting density to moles requires a two-step mathematical process that changes based on whether you are evaluating a pure substance or a mixture. The density volume molar mass formula calculates the total mass first, then derives the molar amount.

For pure substances at 100% purity:

$$m = \rho V$$

$$n = \frac{\rho V}{M}$$

For solutions or non-100% purity entries, you must account for the mass fraction:

$$m_{\text{solute}} = \rho V \times \frac{w}{100}$$

$$n = \frac{\rho V \times \left(\frac{w}{100}\right)}{M}$$

SymbolMeaningCommon units
$\rho$Densityg/mL, kg/m³
$V$VolumemL, L
$w$Purity or mass fractionwt%
$M$Molar massg/mol, kg/mol
$m$ or $m_{\text{solute}}$Solute massg, kg
$n$Molesmol

When to use the pure-substance formula vs the wt% formula

Determining how to calculate moles from density depends entirely on the composition of your sample. You should use the $n = \frac{\rho V}{M}$ pure-substance equation for pure liquids or solids entered as 100% concentration.

Alternatively, you must use the wt percent to moles formula for concentrated acids, ammonia solutions, and other liquid mixtures. Density alone is not enough for solutions; composition is also required to find the actual amount of the target chemical.

If purity is 100%, the solution formula reduces to the pure-substance formula.

How to calculate moles from density step by step

  1. Enter the known density of your liquid or solid sample.
  2. Enter the total volume of the substance being measured.
  3. Enter the specific molar mass of the target chemical or solute.
  4. Enter the purity or wt% if you are working with a solution.
  5. Convert your inputs to base units if the calculator alerts you to a mismatch.
  6. Calculate solute mass from density and volume using the tool.
  7. Divide that intermediate mass by the molar mass to get final moles.

Supported units in this calculator

Our density and molar mass calculator handles standard laboratory measurements without requiring manual pre-conversions.

Density:

  • g/cm³ or g/mL
  • kg/m³
  • kg/L

Volume:

  • mL or cm³
  • L

Molar mass:

  • g/mol
  • kg/mol

Output mass:

  • g
  • kg
  • mg

Output moles:

  • mol
  • mmol
  • kmol

Worked examples for density to moles conversion

Reviewing practical applications helps clarify how to convert density to moles in a real laboratory setting.

Example 1: Pure Water Calculation

Given a standard liter of water:

$\rho = 1.000\text{ g/mL}$

$V = 1000\text{ mL}$

$M = 18.015\text{ g/mol}$

$w = 100\%$

Then:

$$m_{\text{solute}} = 1.000 \times 1000 \times 1 = 1000\text{ g}$$

$$n = \frac{1000}{18.015} = 55.51\text{ mol}$$

Result interpretation: 1000 mL of pure water yields exactly 1000 g of mass, which equates to 55.51 moles.

Example 2: Lab Sample of Ethanol

Suppose you have a smaller pure sample.

Parameters: $\rho = 0.789\text{ g/mL}$, $V = 50\text{ mL}$, $M = 46.07\text{ g/mol}$, $w = 100\%$

Finding the values:

$$m_{\text{solute}} = 0.789 \times 50 \times 1 = 39.45\text{ g}$$

$$n = \frac{39.45}{46.07} = 0.856\text{ mol}$$

Result interpretation: A 50 mL volume of absolute ethanol contains 0.856 moles of the substance.

Example 3: Concentrated Hydrochloric Acid (HCl)

Working with a solution requires the mass fraction.

Input data: $\rho = 1.190\text{ g/mL}$, $V = 1000\text{ mL}$, $M = 36.460\text{ g/mol}$, $w = 37\%$

Solving for the solute:

$$m_{\text{solute}} = 1.190 \times 1000 \times 0.37 = 440.3\text{ g}$$

$$n = \frac{440.3}{36.460} = 12.08\text{ mol}$$

Result interpretation: One liter of 37% concentrated HCl provides 12.08 moles of actual hydrogen chloride.

Worked Examples Summary Table

SubstanceDensityVolumeMolar masswt%Solute massMoles
Water1.000 g/mL1000 mL18.015 g/mol100%1000 g55.51 mol
Ethanol0.789 g/mL50 mL46.07 g/mol100%39.45 g0.856 mol
Conc. HCl1.190 g/mL1000 mL36.460 g/mol37%440.3 g12.08 mol

Common substances you can test in the calculator

The tool includes preset example values in this calculator for frequently used lab chemicals. These defaults load standard densities and concentrations to speed up routine calculations.

SubstanceDensityMolar massPurity / wt%Best use case
Water1.000 g/mL18.015 g/mol100%Aqueous solvent baselines
Ethanol0.789 g/mL46.07 g/mol100%Organic solvent conversions
Acetone0.791 g/mL58.08 g/mol100%Cleaning agent volumes
Hydrochloric acid, HCl (conc.)1.190 g/mL36.46 g/mol37%Strong acid preparations
Sulfuric acid, H₂SO₄ (conc.)1.840 g/mL98.08 g/mol98%Exothermic acid dilutions
Nitric acid, HNO₃ (conc.)1.410 g/mL63.01 g/mol70%Oxidizing agent measurements
Acetic acid1.049 g/mL60.05 g/mol100%Weak acid (glacial) testing
Methanol0.792 g/mL32.04 g/mol100%Simple alcohol calculations
Ammonia, NH₃ (conc.)0.900 g/mL17.03 g/mol28%Basic solution workflows

Why your density-to-moles result may be wrong

Errors during calculation usually stem from incorrect input formatting rather than math failure. A wrong density unit or an unaligned volume unit will drastically skew the final mass.

Other common mistakes include entering a wrong molar mass or entering solution density without the correct wt% attached. You might also encounter issues if you are using a temperature-dependent density value from a different condition, confusing molarity with moles, or entering total mass fraction incorrectly as a percent versus a decimal.

Density to moles vs molarity

Moles represent the absolute amount of substance present in your given sample. Molarity is a concentration metric measuring moles per liter of total solution.

Once moles are known, molarity can be found by dividing those moles by the solution volume in liters, if that is your ultimate target.

Calculator limitations

This tool converts physical liquid and solid properties and is not for ideal gas law problems. Solution accuracy depends heavily on providing the correct density and wt% pair for your specific sample.

Keep in mind that density changes with temperature, meaning your inputs must reflect your current lab conditions. Additionally, bulk volume and true material volume are not always the same for porous or packed solids.

FAQs

  1. What is the formula to convert density to moles?

    For a completely pure substance, you multiply density by volume and divide by molar mass ($n = \frac{\rho V}{M}$). When dealing with solutions, you must multiply the initial mass by the weight percent divided by 100 before dividing by molar mass to find the solute amount.

  2. Can I calculate moles from density and volume alone?

    This is only possible for pure substances or when purity is effectively 100%. Solutions and mixtures also need composition data, like mass fraction, to find the specific moles of the dissolved solute.

  3. How do I convert g/mL and mL into moles?

    First, multiply the density in g/mL by the volume in mL to calculate the total mass in grams. Next, divide that resulting mass by the substance’s molar mass in g/mol.

  4. What does wt% mean in a density to moles calculation?

    Weight percent represents the solute mass fraction within a total mixture. It tells the tool what portion of the total calculated liquid mass actually belongs to the target chemical you want to convert into moles.

  5. Is g/cm³ the same as g/mL in this calculator?

    Yes, these two measurements are numerically equivalent. The tool treats one gram per cubic centimeter exactly the same as one gram per milliliter.

  6. How do I calculate moles of hydrochloric acid from concentrated HCl?

    You must combine the physical density of the concentrated liquid, the specific 37% wt%, and the molar mass of HCl. Using the density alone will calculate the moles of the entire mixture as if it were pure HCl, which is incorrect.

  7. Why does my moles result seem too high?

    Unusually high answers typically result from a unit mismatch, such as using kg/m³ with mL without converting. Entering the wrong molar mass or missing the purity correction for a diluted solution will also inflate the final number.

  8. Can this calculator be used for solids and liquids?

    Yes, the math works perfectly when density, volume, and molar mass are known for either state. However, measuring packed or bulk solids can be misleading if the true material volume is unknown due to air gaps between particles.

Related Tools & Calculators: