Moles Calculator
Convert mass, moles, molar mass, particles, solution molarity, and ideal-gas state values with exact Avogadro-constant handling and full equation audits.
- grams to moles
- moles to grams
- mass molar mass moles
- particles to moles
- moles to molecules
Enter the molar mass for the exact substance, formula, hydration state, and composition being used.
Scientific notation such as 6.022e23 is accepted.
For example, H₂O has 3 total atoms per molecule. Keep 1 when no constituent conversion is needed.
Use Z = 1 for the ideal-gas model; use a validated value for real-gas work.
Status: initial
Results
Awaiting calculation
One mole workflow from measurable quantities to microscopic counts
The Moles Calculator connects mass, molar mass, amount of substance, elementary-entity count, solution molarity, and gas state. Choose the pathway that matches the information you actually have, select explicit units and entity terminology, and review an equation audit plus a mass-to-particle conversion ladder.
Use it before stoichiometry, solution work, or particle conversion
Use this calculator to turn a balance reading into moles, estimate required mass, infer molar mass from known mass and amount, convert particles through the exact Avogadro constant, find solute moles from molarity and total solution volume, or apply PV = ZnRT to a gas state. It does not parse chemical formulas or balance reactions; those are separate chemical tasks with different validation needs.
Amount of substance links macroscopic and microscopic scales
Molar mass links mass to amount of substance through n = m/M, while the exact Avogadro constant links moles to specified elementary entities through N = nNₐ. Solution molarity uses n = cV, and a gas-state estimate uses PV = ZnRT. Each relationship answers a different question, so the selected pathway and entity definition remain visible in every result.
Variable explanations
Understand what each input and result means before calculating.
🧭 Calculation pathway
Choose mass, particles, solution, or gas. Inputs from the other pathways remain visible for auditability but do not define the selected unknown.
⚖️ Sample mass
The mass of the exact substance being counted. Consider purity, hydration, residual solvent, and composition when they matter.
M Molar mass
Mass per mole for the specified element, molecule, or formula unit. Use the Molecular Weight Calculator for formula parsing, then enter the verified result here.
n Amount of substance
The SI base quantity measured in moles. A mole is not a mass; different substances have different mass per mole.
🔬 Elementary entity
State what is counted: atoms, molecules, ions, formula units, electrons, or generic particles. A numerical particle count without an entity definition is incomplete.
🧩 Constituents per particle
Optionally translate molecules or formula units into a selected constituent count. The multiplier depends on exactly which atoms or ions are being counted.
🧪 Molarity and solution volume
Molarity is moles of solute per litre of total solution. The calculator converts volume units before applying n=cV.
🎈 Gas pressure, volume, and temperature
Gas calculations require absolute pressure and absolute temperature internally. Gauge pressure must be converted to absolute pressure before entry.
Z Compressibility factor
Z=1 gives the ideal-gas result. Real-gas Z depends on gas composition, temperature, and pressure and must come from a suitable source or equation of state.
🔢 Significant digits
Displayed precision should reflect the least reliable measured or reference input, not the exactness of Avogadro's constant.
Reviewed by the Calculator.org.in Editorial Team
Formula behavior, validation cases, explanatory examples, and cited sources are checked before publication. This review supports educational accuracy and is not a substitute for qualified professional advice.
Last reviewed: 2026-08-10
Formula guide
See the calculation logic, variable definitions, and practical meaning.
Moles from mass
n = m ÷ M
- m is sample mass
- M is molar mass for the exact substance
- n is amount of substance
Mass is converted to grams and molar mass to grams per mole before division.
Mass from moles
m = n × M
- Purity or assay corrections are not applied automatically
This gives theoretical mass of the specified substance at the entered molar mass.
Molar mass
M = m ÷ n
- The mass and mole amount must describe the same sample
The result is a measured or apparent molar mass, not automatic compound identification.
Entities from moles
N = n × Nₐ
- Nₐ = 6.02214076 × 10²³ mol⁻¹ exactly
- Specify atoms, molecules, ions, formula units, electrons, or generic particles
The exact constant does not make experimental inputs exact.
Moles from entities
n = N ÷ Nₐ
- N must count the stated elementary entity
Formula units are normally appropriate for ionic solids; molecules are appropriate for discrete molecular substances.
Constituent count
Nconstituent = Nparticle × entities per particle
- For H₂O, three total atoms occur per molecule
- For oxygen atoms alone, use two per H₂O molecule
The multiplier must match the constituent being counted, not merely the total formula subscript sum.
Solution moles
n = c × V
- c is amount concentration in mol/L
- V is total solution volume in litres
Total solution volume is not automatically the same as solvent volume.
Solution molarity
c = n ÷ V
- Molarity is temperature-dependent through solution volume
Use the final total solution volume at the relevant conditions.
Gas-state moles
n = PV ÷ (ZRT)
- R = 8.31446261815324 J·mol⁻¹·K⁻¹
- T is absolute temperature
- Z = 1 is the ideal-gas model
A real-gas compressibility factor can be entered only when its source and applicability are validated.
Worked examples
Follow realistic inputs through the calculation step by step.
Worked example
Grams of water to moles
- 1Choose the mass pathway and calculate moles.
- 2Enter 36.03 g and 18.015 g/mol.
- 3The result is 2 mol and approximately 1.2044 × 10^24 water molecules.
Worked example
Moles of sodium chloride to mass
- 1Choose mass pathway and calculate mass.
- 2Enter 0.5 mol and 58.44 g/mol.
- 3The theoretical mass is 29.22 g of NaCl formula units.
Worked example
Particles to moles
- 1Choose the particle pathway and calculate moles.
- 2Enter 3.01107038e23 with the correct entity type.
- 3The result is 0.5 mol.
Worked example
Molecules to total atoms
- 1Choose molecules and enter the mole amount.
- 2For H₂O, enter three constituent atoms per molecule.
- 3The conversion ladder shows molecule count and total atom count separately.
Worked example
Moles in a solution
- 1Choose solution pathway and calculate moles.
- 2Enter 0.5 mol/L and 250 mL total solution volume.
- 3The result is 0.125 mol of solute.
Worked example
Ideal gas near historical STP
- 1Choose gas pathway, calculate moles, and use Z=1.
- 2Enter 1 atm, 22.414 L, and 273.15 K.
- 3The result is approximately 1 mol; the precise value depends on the constants and conditions used.
Worked example
Solve gas temperature
- 1Choose gas pathway and calculate temperature.
- 2Enter absolute pressure, volume, moles, and an applicable Z.
- 3Review the returned temperature and gas-model warning before interpretation.
Common mistakes
Avoid these common input and interpretation errors.
Using atomic mass for a compound
A compound's molar mass includes every atom in its formula, including waters of hydration and other explicitly present groups.
Confusing O with O₂
Atomic oxygen and oxygen gas have different elementary entities and molar masses. Match the formula to the actual substance.
Calling formula units molecules
Ionic lattices such as NaCl are commonly counted as formula units rather than discrete molecules.
Ignoring purity or assay
The balance mass may include impurities, solvent, water, or inactive carrier. This calculator does not automatically correct active-substance moles.
Using solvent volume instead of solution volume
Molarity uses total final solution volume, which may differ from the separately measured solvent amount.
Using Celsius directly in the gas equation
PV=ZnRT requires absolute temperature. The calculator converts °C or °F to kelvin internally.
Entering gauge pressure
The gas equation requires absolute pressure. Add atmospheric pressure to a gauge reading using consistent units when appropriate.
Assuming 22.4 L/mol is universal
Gas molar volume changes with temperature, pressure, gas composition, and non-ideal behavior.
Treating Avogadro's constant as a measured uncertainty source
The constant is exact in SI. Experimental mass, composition, molar mass, volume, temperature, pressure, and model assumptions drive uncertainty.
Applying a reaction ratio without balancing
This calculator converts one substance's amount. Stoichiometric conversion between substances requires a balanced chemical equation.
Reporting too many digits
Exact constants can yield long outputs, but significant figures must remain consistent with the inputs and method.
Frequently asked questions
Quick answers to the questions users ask most often.
How do I calculate moles from grams?
How do I convert moles to grams?
What is one mole?
Is Avogadro's constant exact?
What can the elementary entity be?
What is the difference between molar mass and molecular mass?
Can the calculator find molar mass from a chemical formula?
How do I calculate molecules from moles?
How do I calculate atoms in a compound?
How do I calculate moles from molarity?
Does molarity use solvent volume?
How do I calculate gas moles?
What does Z=1 mean?
Can moles be fractional?
Does the result include purity correction?
Can this calculator replace a stoichiometry calculation?
Can this calculator replace a laboratory procedure?
References
Sources used to support the calculator guidance.
- BIPM SI Brochure, 9th edition
- BIPM: Resolution 1 of the 26th CGPM—SI redefinition
- NIST CODATA: Avogadro constant
- IUPAC Gold Book: amount of substance
- IUPAC Gold Book: molar mass
- IUPAC Periodic Table of the Elements
- CIAAW: Standard Atomic Weights
- OpenStax Chemistry 2e: Formula Mass and the Mole Concept
- OpenStax Chemistry 2e: Molarity
- NIST Chemistry WebBook
Related calculators
Continue with calculators that solve nearby problems.
Version history
A transparent record of calculator content updates.
- 1.0.0 · 2026-08-10
Initial release with mass, particle, solution, and gas pathways; exact Avogadro conversion; constituent counting; unit conversion; and equation audits.
