Molecular Weight Calculator - Calculate Molecular Mass
Free molecular weight calculator. Calculate molecular mass instantly from chemical formulas. Accurate g/mol results for H2O, NaCl, and complex compounds.
Molecular Weight Calculator
Calculate molecular weight instantly for any chemical formula. Enter simple compounds (H2O, NaCl) or complex molecules with parentheses (Ca(OH)2, (NH4)2SO4) and get accurate g/mol results.
Examples
- H2O - Water (18.015 g/mol)
- NaCl - Table Salt (58.44 g/mol)
- C6H12O6 - Glucose (180.156 g/mol)
- Ca(OH)2 - Calcium Hydroxide (74.092 g/mol)
Documentation
What Is a Molecular Weight Calculator?
A molecular weight calculator finds the mass of one mole of a chemical compound from its formula. It adds up the atomic weight of every atom in the molecule and reports the total in grams per mole (g/mol). Students, lab workers, and chemists use it to prepare solutions, check homework, and plan chemical reactions.
Molecular Weight Formula
Molecular weight, also called molar mass, is the sum of the atomic weights of every atom in a formula, each multiplied by how many times that atom appears:
An atomic weight is the average mass of one atom of an element, measured in grams per mole. It comes from the natural mix of that element's isotopes — atoms of the same element that have different numbers of neutrons, and so different masses. The values below follow the standard published by the International Union of Pure and Applied Chemistry (IUPAC).
| Element | Symbol | Atomic weight (g/mol) |
|---|---|---|
| Hydrogen | H | 1.008 |
| Carbon | C | 12.011 |
| Nitrogen | N | 14.007 |
| Oxygen | O | 15.999 |
| Sodium | Na | 22.990 |
| Magnesium | Mg | 24.305 |
| Phosphorus | P | 30.974 |
| Sulfur | S | 32.06 |
| Chlorine | Cl | 35.45 |
| Potassium | K | 39.098 |
| Calcium | Ca | 40.078 |
| Iron | Fe | 55.845 |
How to Calculate Molecular Weight: Reading a Formula
A chemical formula packs three kinds of information into a short string of letters and numbers:
- Element symbols, such as H, O, or Na, show which atoms are present.
- Subscripts, the numbers right after a symbol, show how many atoms of that element there are. H₂O has two hydrogen atoms and one oxygen atom.
- Parentheses group a set of atoms together. A number after the closing parenthesis multiplies every atom inside the group.
Worked Example: Calcium Hydroxide, Ca(OH)₂
Calcium hydroxide has one calcium atom and a group, (OH), that repeats twice.
- Ca: 1 atom × 40.078 = 40.078
- O: 2 atoms × 15.999 = 31.998
- H: 2 atoms × 1.008 = 2.016
Worked Example: Nested Parentheses, Fe(C₂H₃O₂)₃
Some formulas nest a group inside a larger formula. Iron(III) acetate is one example.
- Find the weight of the group (C₂H₃O₂): 2×12.011 + 3×1.008 + 2×15.999 = 59.044
- Multiply by the subscript outside the parentheses: 3 × 59.044 = 177.132
- Add the iron atom: 55.845 + 177.132 = 232.977 g/mol
How to Use the Molecular Weight Calculator
- Type a chemical formula into the input field, such as H2O, NaCl, C6H12O6, or Ca(OH)2.
- The calculator shows the molecular weight in g/mol and lists each element's contribution.
- Copy the result for use elsewhere.
Formulas must use standard notation: an element symbol starts with a capital letter, and a second letter, if there is one, is lowercase (Na, not NA or na). Subscripts go directly after a symbol or a closing parenthesis. Spaces are ignored, so "H2 O" and "H2O" give the same result.
The calculator does not read the raised dot used in hydrate notation, as in CuSO₄·5H₂O. Entering that dot produces an error. To work out a hydrate's molecular weight, calculate the anhydrous compound and water separately, then add them: molecular weight of CuSO₄ plus 5 times the molecular weight of H₂O.
Molecular Weight Examples
Simple compounds
| Compound | Formula | Calculation | Molecular weight |
|---|---|---|---|
| Water | H₂O | 2×1.008 + 15.999 | 18.015 g/mol |
| Table salt | NaCl | 22.990 + 35.45 | 58.44 g/mol |
| Carbon dioxide | CO₂ | 12.011 + 2×15.999 | 44.009 g/mol |
| Ammonia | NH₃ | 14.007 + 3×1.008 | 17.031 g/mol |
| Methane | CH₄ | 12.011 + 4×1.008 | 16.043 g/mol |
Complex compounds
| Compound | Formula | Molecular weight |
|---|---|---|
| Glucose | C₆H₁₂O₆ | 180.156 g/mol |
| Calcium hydroxide | Ca(OH)₂ | 74.092 g/mol |
| Ammonium sulfate | (NH₄)₂SO₄ | 132.134 g/mol |
| Ethanol | C₂H₅OH | 46.069 g/mol |
| Sulfuric acid | H₂SO₄ | 98.072 g/mol |
| Aspirin | C₉H₈O₄ | 180.159 g/mol |
Why Molecular Weight Matters
Molecular weight converts between the number of molecules in a sample (measured in moles) and the mass of that sample (measured in grams). This conversion sits behind most quantitative work in chemistry.
In a lab, it sets how much solid to weigh out for a solution of a given concentration. To make 500 mL of a 0.1 mol/L sodium chloride solution: 0.1 mol/L × 0.5 L × 58.44 g/mol = 2.922 g of NaCl. In stoichiometry, it converts the grams measured on a balance into the moles used in a balanced chemical equation, which predicts how much product a reaction will yield. In biology labs, it sets how much glucose or another nutrient to add to a fixed volume of cell culture medium. And in drug manufacturing, it is used to calculate how much of a compound like aspirin (C₉H₈O₄, 180.159 g/mol) goes into each dose.
A Short History
In 1803, John Dalton proposed that elements are made of atoms and published the first table of relative atomic weights. Jöns Jacob Berzelius refined these measurements between 1808 and 1826. In 1869, Dmitri Mendeleev arranged the elements by atomic weight into the periodic table, which exposed patterns in their properties. Frederick Soddy's discovery of isotopes in 1913 explained why atomic weights are not whole numbers: an element's atoms can carry slightly different masses depending on their number of neutrons. In 1961, carbon-12 replaced hydrogen as the reference point for atomic weights. IUPAC still reviews and updates the standard values as new isotope-abundance measurements come in.
Frequently Asked Questions
What is molecular weight?
Molecular weight is the total mass of one mole of a substance, found by adding the atomic weights of all the atoms in its formula. It is measured in grams per mole (g/mol).
What is the difference between molecular weight and molar mass?
The two terms describe the same quantity for a given compound and are used interchangeably in most chemistry work. Molar mass refers specifically to the mass of one mole (6.022×10²³ molecules) of a substance, in g/mol.
Why do atomic weights have decimal values?
Most elements exist in nature as a mix of isotopes, atoms with the same number of protons but different numbers of neutrons. An element's atomic weight is the average mass of its atoms, weighted by how common each isotope is. That average is rarely a whole number.
Can the calculator handle formulas with nested parentheses?
Yes. It resolves the innermost group first, multiplies it by any subscript that follows the closing parenthesis, and repeats until the whole formula is reduced to a single total, as shown in the Fe(C₂H₃O₂)₃ example above.
Can the calculator process hydrate formulas like CuSO₄·5H₂O directly?
No. The raised dot (·) is not a recognized character, and entering it produces an error. Calculate the anhydrous compound and the water separately, then add the water's molecular weight multiplied by the hydration number.
How accurate are the results?
The calculator uses IUPAC standard atomic weights and returns results to up to four decimal places, which is more than enough precision for classroom work, routine lab calculations, and stoichiometry problems.