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.
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}$$
| Symbol | Meaning | Common units |
| $\rho$ | Density | g/mL, kg/m³ |
| $V$ | Volume | mL, L |
| $w$ | Purity or mass fraction | wt% |
| $M$ | Molar mass | g/mol, kg/mol |
| $m$ or $m_{\text{solute}}$ | Solute mass | g, kg |
| $n$ | Moles | mol |
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
- Enter the known density of your liquid or solid sample.
- Enter the total volume of the substance being measured.
- Enter the specific molar mass of the target chemical or solute.
- Enter the purity or wt% if you are working with a solution.
- Convert your inputs to base units if the calculator alerts you to a mismatch.
- Calculate solute mass from density and volume using the tool.
- 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
- m³
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
| Substance | Density | Volume | Molar mass | wt% | Solute mass | Moles |
| Water | 1.000 g/mL | 1000 mL | 18.015 g/mol | 100% | 1000 g | 55.51 mol |
| Ethanol | 0.789 g/mL | 50 mL | 46.07 g/mol | 100% | 39.45 g | 0.856 mol |
| Conc. HCl | 1.190 g/mL | 1000 mL | 36.460 g/mol | 37% | 440.3 g | 12.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.
| Substance | Density | Molar mass | Purity / wt% | Best use case |
| Water | 1.000 g/mL | 18.015 g/mol | 100% | Aqueous solvent baselines |
| Ethanol | 0.789 g/mL | 46.07 g/mol | 100% | Organic solvent conversions |
| Acetone | 0.791 g/mL | 58.08 g/mol | 100% | Cleaning agent volumes |
| Hydrochloric acid, HCl (conc.) | 1.190 g/mL | 36.46 g/mol | 37% | Strong acid preparations |
| Sulfuric acid, H₂SO₄ (conc.) | 1.840 g/mL | 98.08 g/mol | 98% | Exothermic acid dilutions |
| Nitric acid, HNO₃ (conc.) | 1.410 g/mL | 63.01 g/mol | 70% | Oxidizing agent measurements |
| Acetic acid | 1.049 g/mL | 60.05 g/mol | 100% | Weak acid (glacial) testing |
| Methanol | 0.792 g/mL | 32.04 g/mol | 100% | Simple alcohol calculations |
| Ammonia, NH₃ (conc.) | 0.900 g/mL | 17.03 g/mol | 28% | 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
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.
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.
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.
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.
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.
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.
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.
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: