Calculate molecular weight and elemental composition of chemical compounds
Formula Syntax:
Examples:
Understanding Coefficients:
The coefficient (number before the formula) represents the number of molecules or moles. For example, 3H₂SO₄ means 3 separate molecules of sulfuric acid, so the total mass is 3 × 98.079 = 294.237 g/mol.
Molar mass is the mass of one mole of a substance (chemical element or compound). It is expressed in grams per mole (g/mol). One mole contains exactly 6.022 × 10²³ particles (Avogadro's number), whether they are atoms, molecules, ions, or electrons.
Molar mass allows chemists to:
Molar Mass = Sum of (Atomic Mass × Number of Atoms)
For all elements in the compound
While often used interchangeably, molar mass and molecular weight have subtle differences:
📌 Key Insight: Numerically, they are the same! The molar mass in g/mol equals the molecular weight in amu. The difference is mainly in the units and context of use.
Step 1: Formula = H₂O
Step 2: Count atoms
Step 3: Atomic masses
Step 4: Calculate
Step 5: Total = 2.016 + 15.999 = 18.015 g/mol
Formula: H₂SO₄
Atomic composition:
Total: 2.016 + 32.06 + 63.996 = 98.072 g/mol
Formula: Ca(OH)₂
Understanding parentheses: The subscript 2 applies to everything inside (OH)
Calculation:
Total: 40.078 + 31.998 + 2.016 = 74.092 g/mol
Formula: CuSO₄·5H₂O
Understanding hydrates: Calculate CuSO₄ and 5H₂O separately, then add
Part 1: CuSO₄
Part 2: 5H₂O (5 water molecules)
Total: 159.602 + 90.075 = 249.677 g/mol
Formula: 3H₂SO₄
Understanding coefficients: Calculate one molecule first, then multiply by coefficient
Step 1: Molar mass of H₂SO₄ = 98.079 g/mol
Step 2: Multiply by coefficient 3
Total: 3 × 98.079 = 294.237 g/mol
💡 Note: This represents the mass of 3 separate molecules of sulfuric acid, which is useful in stoichiometry when balancing chemical equations.
Problem: How many grams of NaCl are needed to make 1 mole?
Solution: Molar mass of NaCl = 58.443 g/mol, so you need exactly 58.443 grams.
Example: 2H₂ + O₂ → 2H₂O
If you have 4 grams of H₂:
Drug manufacturers use molar mass to:
Used to measure:
Forensic chemists use molar mass calculations to:
Mistake 1: Forgetting to multiply by subscripts
Wrong: H₂O = 1.008 + 15.999 = 17.007 g/mol ❌
Right: H₂O = (2 × 1.008) + 15.999 = 18.015 g/mol ✅
Mistake 2: Ignoring parentheses distribution
Wrong: Ca(OH)₂ = 40.078 + 15.999 + (1.008 × 2) ❌
Right: Ca(OH)₂ = 40.078 + (15.999 × 2) + (1.008 × 2) ✅
Mistake 3: Using outdated atomic masses
Atomic masses are periodically updated by IUPAC. Always use current values!
Mistake 4: Confusing coefficient with subscript
2H₂O: Coefficient = 2 molecules of water (2 × 18.015 = 36.030 g/mol)
H₂O₂: Subscript = 1 molecule with 2 oxygen atoms (34.015 g/mol)
| Compound | Formula | Molar Mass |
|---|---|---|
| Water | H₂O | 18.015 g/mol |
| Carbon Dioxide | CO₂ | 44.009 g/mol |
| Table Salt | NaCl | 58.443 g/mol |
| Glucose | C₆H₁₂O₆ | 180.156 g/mol |
| Sulfuric Acid | H₂SO₄ | 98.079 g/mol |
Explore more scientific and mathematical tools.
Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.