Calculator.org.in
Calculator

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

Calculator guide

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

Review process

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.

1

Worked example

Grams of water to moles

  1. 1Choose the mass pathway and calculate moles.
  2. 2Enter 36.03 g and 18.015 g/mol.
  3. 3The result is 2 mol and approximately 1.2044 × 10^24 water molecules.
2

Worked example

Moles of sodium chloride to mass

  1. 1Choose mass pathway and calculate mass.
  2. 2Enter 0.5 mol and 58.44 g/mol.
  3. 3The theoretical mass is 29.22 g of NaCl formula units.
3

Worked example

Particles to moles

  1. 1Choose the particle pathway and calculate moles.
  2. 2Enter 3.01107038e23 with the correct entity type.
  3. 3The result is 0.5 mol.
4

Worked example

Molecules to total atoms

  1. 1Choose molecules and enter the mole amount.
  2. 2For H₂O, enter three constituent atoms per molecule.
  3. 3The conversion ladder shows molecule count and total atom count separately.
5

Worked example

Moles in a solution

  1. 1Choose solution pathway and calculate moles.
  2. 2Enter 0.5 mol/L and 250 mL total solution volume.
  3. 3The result is 0.125 mol of solute.
6

Worked example

Ideal gas near historical STP

  1. 1Choose gas pathway, calculate moles, and use Z=1.
  2. 2Enter 1 atm, 22.414 L, and 273.15 K.
  3. 3The result is approximately 1 mol; the precise value depends on the constants and conditions used.
7

Worked example

Solve gas temperature

  1. 1Choose gas pathway and calculate temperature.
  2. 2Enter absolute pressure, volume, moles, and an applicable Z.
  3. 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?
Divide mass in grams by molar mass in grams per mole: n=m/M.
How do I convert moles to grams?
Multiply the amount in moles by molar mass: m=nM.
What is one mole?
One mole is the amount of substance containing exactly 6.02214076 × 10²³ specified elementary entities.
Is Avogadro's constant exact?
Yes. The SI defines it as exactly 6.02214076 × 10²³ mol⁻¹.
What can the elementary entity be?
It can be an atom, molecule, ion, electron, formula unit, or another explicitly specified entity.
What is the difference between molar mass and molecular mass?
Molar mass is mass per mole, commonly g/mol. Molecular mass describes the mass of one molecule, commonly expressed in daltons. Ionic substances are better described with formula mass.
Can the calculator find molar mass from a chemical formula?
Not on this page. Use the dedicated Molecular Weight Calculator to parse the formula, verify hydration and composition, then enter its molar mass here.
How do I calculate molecules from moles?
Multiply moles by the exact Avogadro constant. Use 'molecules' only when the substance consists of discrete molecules.
How do I calculate atoms in a compound?
First find the molecule or formula-unit count, then multiply by the number of the selected atoms per entity. Specify whether you mean total atoms or one element.
How do I calculate moles from molarity?
Multiply molarity in mol/L by total solution volume in litres: n=cV.
Does molarity use solvent volume?
No. It uses the final total volume of the solution.
How do I calculate gas moles?
Use n=PV/(ZRT) with absolute pressure, absolute temperature, consistent units, and an applicable compressibility factor.
What does Z=1 mean?
It means the ideal-gas model is being used. Real gases may require a different Z at the stated composition, pressure, and temperature.
Can moles be fractional?
Yes. Amount of substance commonly appears as decimal or fractional mole values.
Does the result include purity correction?
No. Correct the mass or effective molar amount according to validated assay or purity information before relying on the result.
Can this calculator replace a stoichiometry calculation?
No. Converting between different reactants or products requires coefficients from a correctly balanced reaction.
Can this calculator replace a laboratory procedure?
No. It provides arithmetic only and does not determine safe handling, mixing, equipment, storage, or disposal.

Version history

A transparent record of calculator content updates.

Updated 2026-08-10
  • 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.