Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Molecular Weight Calculator — Free Online Molar Mass Tool

Calculate the molecular weight of any chemical compound by entering its formula.

Supports parentheses: Ca(OH)2, Mg3(PO4)2

Moles from mass: 0.9992 mol

Mass from moles: 18.0150 g

Molecular Weight

18.0150g/mol
H2O

Element Breakdown

ElementCountMassTotal%
O115.99915.99988.8%
H21.0082.01611.2%

18.00 g =

0.9992 mol

1.00 mol =

18.0150 g

Common Compounds Reference Table

Compound Formula MW (g/mol) Common Use
Water H2O 18.015 Universal solvent
Carbon Dioxide CO2 44.010 Greenhouse gas, carbonation
Sodium Chloride NaCl 58.443 Table salt, saline solutions
Glucose C6H12O6 180.156 Blood sugar, fermentation
Ethanol C2H5OH 46.069 Beverages, disinfectant
Sulfuric Acid H2SO4 98.079 Industrial chemical, batteries
Caffeine C8H10N4O2 194.191 Stimulant in coffee and tea
Calcium Carbonate CaCO3 100.086 Antacid, limestone, chalk

Related Calculators

About this calculator

Molecular Weight Formulas

Molecular Weight

MW = Σ (atomic weight x count) for each element

Percent Composition

%Element = (element total mass / MW) x 100

Mass to Moles

moles = mass (g) / MW (g/mol)

Moles to Mass

mass (g) = moles x MW (g/mol)

Number of Molecules

N = moles x 6.022 x 10^23

Variables Explained

  • MW (Molecular Weight): The total mass of one mole of a compound in grams per mole (g/mol). Numerically equal to the molecular mass in atomic mass units (amu).
  • Atomic Weight: The standard atomic weight of each element as defined by IUPAC. These are weighted averages across all naturally occurring isotopes of each element.
  • Count: The number of atoms of each element present in one formula unit of the compound, derived by parsing the chemical formula including any subscripts and parenthetical groups.
  • %Element: The mass fraction of each element expressed as a percentage. All element percentages in a compound sum to 100%.

Step-by-Step Example

Calculate the molecular weight of glucose (C6H12O6):

  1. Identify elements and counts: C = 6, H = 12, O = 6
  2. Look up atomic weights: C = 12.011, H = 1.008, O = 15.999
  3. Calculate each contribution: C: 6 x 12.011 = 72.066, H: 12 x 1.008 = 12.096, O: 6 x 15.999 = 95.994
  4. Sum all contributions: 72.066 + 12.096 + 95.994 = 180.156 g/mol
  5. Percent composition: C = 40.00%, H = 6.71%, O = 53.29%

One mole of glucose weighs 180.156 grams and contains 6.022 x 10^23 glucose molecules. To prepare a 1 M glucose solution, dissolve 180.156 grams in water and bring to a total volume of 1 liter. This is a common concentration used in cell biology experiments.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026