Convert between mass, moles, molar mass, and molecules
The mole is the cornerstone of quantitative chemistry — without it, chemists could not accurately measure, combine, or synthesize substances. Our Mole Calculator lets you convert between mass, moles, and molar mass in seconds, covering three calculation modes: classic mass-moles conversion, chemical formula parsing, and gas volume at STP. Whether you are a student balancing stoichiometry equations, a lab technician preparing a solution, or a curious learner wanting to understand Avogadro's number, this tool handles every scenario without the frustration of manual arithmetic. At its core the mole calculator uses the fundamental formula n = m / M, where n is the number of moles, m is the mass in grams, and M is the molar mass in grams per mole. Rearranged, the same triangle gives you m = n × M when you want to find how many grams correspond to a given number of moles, and M = m / n when you want to derive molar mass from a known mass and mole count. Each of these three solve modes is accessible via a single toggle so you never need to manually rearrange formulas. The chemical formula mode adds a powerful layer of automation: type any molecular formula — H2O, NaCl, C6H12O6, H2SO4, or even complex coordination compounds like Fe2O3 — and the parser automatically sums the atomic masses for each element and multiplier, delivering the molar mass instantly. The element-by-element breakdown table shows exactly how each atom contributes to the total molar mass, and a colour-coded donut chart visualises the percentage composition by mass. This is the same kind of information that appears in lab datasheets and on molecular weight calculator websites, presented side by side with your calculation. Avogadro's constant, 6.02214076 × 10²³ mol⁻¹, is the bridge between the mole as a counting unit and the actual number of molecules or atoms in a sample. Once you have a mole count, the calculator automatically multiplies by Avogadro's constant and shows the number of molecules — a value that puts the true scale of chemistry in perspective. For very large or very small quantities, a scientific notation toggle converts results between standard decimal and exponential notation. The gas volume mode covers a classic physical chemistry shortcut: at standard temperature and pressure (0 °C, 1 atm), one mole of any ideal gas occupies exactly 22.414 litres. This molar volume constant lets you convert between the volume of a gas sample and the number of moles without knowing the molecular weight of the gas at all — a technique that appears regularly in general chemistry and engineering thermodynamics courses. Beyond the core calculations, the tool includes a molarity extension: enter the volume of your solution in litres and the calculator immediately shows the concentration in mol/L (molarity), making it straightforward to prepare laboratory solutions of a specific concentration. Quick-pick buttons for the twelve most common laboratory compounds — water, sodium chloride, glucose, ethanol, sulfuric acid, and others — let you populate the molar mass field with a single click instead of looking up values in a reference table. Results are displayed with appropriate significant figures: four for mass, four for molar mass, and up to five for moles, with automatic switching to scientific notation when values fall below 0.001 or exceed one million. The step-by-step solution panel walks through the exact formula substitution used so you can verify the result or reproduce it in a written assignment. CSV export, clipboard copy, Web Share, and print functions make it easy to transfer results into lab reports, spreadsheets, or course notes.
Understanding the Mole
What Is a Mole?
A mole is a unit of measurement used in chemistry to express amounts of a chemical substance. It is defined as exactly 6.02214076 × 10²³ particles — atoms, molecules, ions, or formula units. This number, Avogadro's constant, was chosen so that one mole of any element has a mass in grams numerically equal to its atomic weight. For example, one mole of carbon-12 has a mass of exactly 12.000 grams by definition. The mole concept allows chemists to work with counts of atoms — which are far too small to weigh individually — by relating them to macroscopic, observable masses. It is the standard unit of amount of substance in the International System of Units (SI), with the symbol mol.
How Is Moles Calculated?
The mole is calculated using three interrelated formulas. The primary relationship is n = m / M, where n is the number of moles (mol), m is the mass of the substance (g), and M is the molar mass (g/mol). To find mass from moles: m = n × M. To find molar mass from mass and moles: M = m / n. The molar mass itself is calculated by summing the atomic masses of all atoms in a formula: M = Σ(atomic_mass_i × count_i). For gases at STP, moles relate to volume via n = V / 22.414, where V is in litres. Finally, the number of particles relates to moles via N = n × Nₐ, where Nₐ = 6.02214076 × 10²³ mol⁻¹.
Why Does the Mole Matter?
The mole is indispensable in quantitative chemistry. Without it, balancing chemical equations and calculating reaction yields would be impossible because atoms react in fixed integer ratios, not fixed mass ratios. Stoichiometry — the calculation of reactant and product quantities in chemical reactions — is entirely built on the mole concept. Pharmaceutical manufacturing uses moles to ensure drug purity and dosage. Environmental science uses mole concentrations to quantify pollutants. Food chemistry uses moles to track nutrient levels. The mole also links to molarity (mol/L), the standard measure of solution concentration, making it essential for preparing laboratory reagents and clinical samples accurately.
Limitations and Assumptions
The mole calculator assumes ideal conditions in several places. The gas volume conversion (n = V / 22.414) applies only at exactly 0 °C and 1 atm pressure (STP). Real gases deviate from ideal behaviour at high pressures, low temperatures, or with polar molecules. The molar mass parser uses IUPAC 2021 standard atomic weights, which are averages over natural isotope abundances — they may differ from atomic masses used in specific isotopic or nuclear chemistry contexts. Hydrated compounds (e.g., CuSO₄·5H₂O) can be entered as CuSO4 followed by manual addition of 5 × 18.015 g/mol. Ionic compounds are treated as neutral formula units. The molarity mode assumes the solution volume is measured after dissolution, not the volume of solvent.
How to Use the Mole Calculator
Choose a Calculation Mode
Select from three tabs at the top: 'Mass ↔ Moles' for standard conversions using a known molar mass, 'Chemical Formula' to have the tool automatically compute molar mass from a formula like H2O or C6H12O6, or 'Gas Volume (STP)' to convert between volume in litres and moles for ideal gases at standard conditions.
Select What to Solve For
In Mass ↔ Moles mode, pick whether you want to calculate moles (enter mass + molar mass), mass (enter moles + molar mass), or molar mass (enter mass + moles). In Formula mode, choose between finding moles from mass or finding mass from moles. The corresponding input field will appear automatically.
Enter Your Known Values
Type in the values you know, choosing appropriate units from the dropdowns next to each field. Mass supports 12 units from picograms to metric tons and imperial units; moles support mol, mmol, µmol, nmol, and pmol. Use the Quick Pick buttons to instantly load the molar mass of 8 common compounds including water, NaCl, glucose, and ethanol.
Read Your Results
Results appear instantly on the right — including moles in all five sub-units, number of molecules in scientific notation, molar mass, mass, and STP gas volume. In formula mode you also see a donut chart showing the percentage composition by element and a step-by-step solution. Use the Export CSV, Copy, or Print buttons to save results for lab reports or coursework.
Frequently Asked Questions
What is the formula for calculating moles?
The fundamental mole formula is n = m / M, where n is the number of moles (mol), m is the mass of the substance in grams (g), and M is the molar mass in grams per mole (g/mol). This can be rearranged to find mass: m = n × M, or to find molar mass: M = m / n. For gas volumes at STP: n = V / 22.414, where V is in litres. To find the number of individual molecules or atoms, multiply moles by Avogadro's constant: N = n × 6.02214076 × 10²³.
What is Avogadro's number and why is it 6.022 × 10²³?
Avogadro's constant (Nₐ = 6.02214076 × 10²³ mol⁻¹) is the number of constituent particles in one mole of a substance. Its exact value was set by the 2019 redefinition of SI units so that one mole of carbon-12 has a mass of exactly 12 grams — linking the macroscopic scale of laboratory measurements to the atomic scale. The value was determined experimentally through multiple methods including X-ray crystallography, the Josephson effect, and electrolysis. It is now a defined constant, not a measured one, under the revised SI system adopted in May 2019.
How do I find the molar mass of a compound?
To find the molar mass of a compound, add up the standard atomic weights of all atoms in the molecular formula, multiplying each element's atomic mass by the number of atoms of that element. For example, water (H₂O) has molar mass = 2 × 1.008 + 15.999 = 18.015 g/mol. For sulfuric acid (H₂SO₄): 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol. You can also use the Formula mode in this calculator to have it computed automatically by typing the chemical formula directly.
What is STP and why is the molar volume 22.414 L?
STP stands for Standard Temperature and Pressure — defined as 0 °C (273.15 K) and 1 atm (101.325 kPa). At these conditions, one mole of any ideal gas occupies 22.414 litres — a value derived from the ideal gas law: PV = nRT, rearranged to V/n = RT/P = (8.314 J/mol·K × 273.15 K) / 101325 Pa ≈ 22.414 L/mol. Note that IUPAC has also defined SATP (25 °C, 1 bar), where the molar volume is 24.790 L/mol. Our calculator uses the traditional STP molar volume of 22.414 L/mol.
How do I convert grams to moles without a molar mass?
If you do not know the molar mass of your substance, use the Chemical Formula mode: type the molecular formula (e.g., NaCl for sodium chloride, C₆H₁₂O₆ for glucose), and the calculator automatically computes the molar mass from IUPAC atomic weights. Then enter your mass and the tool calculates moles in one step. Alternatively, look up the compound in the Quick Pick list — it includes 12 common substances with their molar masses pre-loaded.
What is molarity and how does this calculator compute it?
Molarity (symbol c or M) is the concentration of a solution expressed as moles of solute per litre of solution: c = n / V_solution. It has units of mol/L, sometimes written as the capital letter M. To compute molarity with this calculator, first calculate the number of moles of your substance, then expand the 'Calculate Molarity' section in the input panel and enter the volume of your solution in litres. The calculator divides the calculated moles by the solution volume and displays the concentration in mol/L instantly, which is useful for preparing reagents and standard solutions.