science calculator

Molar Mass Calculator

Build a chemical formula from up to three elements and compute molar mass plus grams for a sample.

Results

Molar mass (g/mol)
18.02
Sample mass (g)
18.02

How to use this calculator

  1. Select up to three elements and enter their atom counts.
  2. Enter moles of the compound if you want sample mass as well.
  3. We sum atomic weights for molar mass and multiply by moles to get grams.

Inputs explained

Element symbols
Pick elements for your formula (up to three in this version).
Atom counts
Number of atoms of each selected element in the molecule.
Moles of compound
Optional. Multiply molar mass by this to get sample mass.

How it works

We multiply each element’s atomic weight by the number of atoms and sum the totals.

Sample mass = molar mass × moles.

Formula

M = Σ (atomic weight × atom count)
Mass = M × moles

When to use it

  • Checking homework problems that require molar mass and grams from moles.
  • Building quick reagent lists for small lab preps.
  • Estimating shipping weight when ordering compounds in specific moles.

Tips & cautions

  • Combine like elements if your molecule has more than three unique atoms (e.g., group multiple carbons together).
  • Atomic weights are averages—use isotope-specific masses if your application requires that precision.
  • Keep atom counts as whole numbers; fractional counts imply mixtures rather than molecules.
  • Supports up to three elements; complex molecules require manual grouping.
  • Uses average atomic weights, not isotope-specific masses.
  • Does not balance equations or handle charges—this is purely a molar mass sum.

Worked examples

Water (H₂O)

  • M ≈ (2×1.008) + (1×15.999) = 18.015 g/mol

NaCl, 0.5 mol

  • M ≈ 58.44 g/mol
  • Mass = 29.22 g

Deep dive

Compute molar mass and sample grams by selecting elements, atom counts, and optional moles—great for chemistry homework or quick lab prep.

Uses standard atomic weights and handles up to three elements so you can get g/mol answers fast.

FAQs

Need more than three elements?
Combine like elements manually or run the calculator twice—future updates will support more slots.
Are atomic weights exact?
We use standard average atomic weights. Isotopic samples vary slightly.

Related calculators

For classroom planning, not a replacement for lab-grade stoichiometry for critical experiments.