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:
For solutions or non-100% purity entries, you must account for the mass fraction:
| Symbol | Meaning | Common units |
| Density | g/mL, kg/m³ | |
| Volume | mL, L | |
| Purity or mass fraction | wt% | |
| Molar mass | g/mol, kg/mol | |
| or | Solute mass | g, kg |
| 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 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:
Then:
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: , , ,
Finding the values:
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: , , ,
Solving for the solute:
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.