Chemistry calculators

Molecular Weight Calculator

Updated Nov 18, 2026 By Infinity Calculator Formulas Sources
Rate
⚠️ Caps Lock is on — element symbols are case-sensitive
Results
Molecular FormulaC₆H₁₂O₆
Molecular Weight180.156 g/mol
Exact Mass180.0634 g/mol
Elemental Composition
Element Symbol Count Atomic Weight Mass Contribution Mass %

Introduction

The Molecular Weight Calculator helps you find the total weight of a molecule. Every atom has a certain mass, measured in atomic mass units (amu). When atoms join together to form a molecule, their masses add up. This total is called the molecular weight, or molecular mass. The molar mass, the mass of one mole of the substance in grams per mole (g/mol), has the same number. Knowing the molecular weight is important in chemistry because it helps you measure the right amounts of substances for experiments and solve stoichiometry problems. Simply enter a chemical formula, and this calculator will add up the atomic masses of each element to give you the molar mass in grams per mole (g/mol).

How to Use Our Molecular Weight Calculator

Enter a chemical formula, and this calculator will give you the molar mass of that compound in grams per mole (g/mol), shown in the result labelled Molecular Weight.

Chemical Formula: Type the molecular formula of the compound you want to calculate. Use standard chemical notation with element symbols and subscript numbers. For example, enter H2O for water, NaCl for sodium chloride, or C6H12O6 for glucose. Make sure you capitalize the first letter of each element symbol and keep the second letter lowercase.

What Is Molecular Weight?

Molecular weight (also called molecular mass) is the total mass of all the atoms in a molecule. To find it, you add up the atomic weights of every atom in a chemical formula.2 For one molecule the total is in atomic mass units (amu). The molar mass, the mass of one mole of the substance, has the same number in grams per mole (g/mol).2 For example, water (H₂O) has two hydrogen atoms and one oxygen atom. Hydrogen weighs about 1.008 g/mol and oxygen weighs about 15.999 g/mol.1 So water's molar mass is about 2 × 1.008 + 15.999 = 18.015 g/mol.

Why Molecular Weight Matters

Knowing the molecular weight of a substance is one of the most basic and important steps in chemistry. Scientists and students need it to:

  • Measure the right amounts: If you want to mix chemicals in the correct ratio for a reaction, you need to convert between grams and moles. Molar mass is the bridge between those two units.
  • Prepare solutions: To make a solution with a specific concentration (molarity), you must know how many grams of solute equal one mole.
  • Identify unknown substances: Techniques like mass spectrometry measure molecular weight to help figure out what a substance is.7
  • Work out reaction amounts: Once an equation is balanced, the molar mass of each compound turns its mole ratios into masses you can weigh out.

How to Calculate Molecular Weight by Hand

Start by writing out the chemical formula. Then, for each element in the formula, multiply its atomic weight (found on the periodic table) by the number of times that atom appears. Finally, add all those values together. For compounds with parentheses like Ca(OH)₂, remember to multiply everything inside the parentheses by the subscript outside. In this case, you have one calcium (40.078), two oxygen atoms (2 × 15.999 = 31.998), and two hydrogen atoms (2 × 1.008 = 2.016), giving a total of 74.092 g/mol. When reporting your answer, pay attention to significant figures to ensure the proper level of precision.

Average vs. Exact Mass

There are two ways to express molecular mass. The average molecular weight uses the standard atomic weights listed on the periodic table, which account for the natural mix of isotopes for each element. The exact mass shown here is the monoisotopic mass, which uses only the mass of the most abundant isotope of each element.6 For carbon, the average weight is 12.011 g/mol.1 The exact mass uses carbon-12, whose relative atomic mass is exactly 12.4 Scientists use exact mass with high-resolution mass spectrometers, which can tell apart two formulas with the same whole-number mass.7 Average molecular weight is used for everyday lab work like weighing chemicals on a balance.

Molecular Weight of Proteins and Nucleic Acids

Molecular weight is not just for small molecules. Proteins are long chains of amino acids, and their molecular weight is found by adding up the residue weight of each amino acid and then the weight of one water molecule.10 That water molecule, present at the ends of the chain, adds about 18.015 g/mol. A small peptide might weigh a few thousand g/mol, while a large protein can weigh hundreds of thousands. Similarly, DNA and RNA strands have molecular weights calculated from their individual nucleotide building blocks. These calculations are essential in biochemistry, molecular biology, and medicine.

Understanding Molarity

Molarity (M) tells you how many moles of a substance are dissolved in one liter of solution.3 The formula is simple: Molarity = moles ÷ volume (in liters). To find moles, divide the mass of your solute (in grams) by its molar mass. For instance, dissolving 5.844 grams of NaCl (molar mass 58.44 g/mol) in enough water to make 1 liter of solution gives you a 0.1 M solution. Molarity is one of the most common ways to describe solution concentration in both classrooms and research labs.

Hydrates and Special Formulas

Some ionic compounds hold water molecules as part of their crystals. These are called hydrates, and their formulas are written with a raised dot, like CuSO₄·5H₂O (copper(II) sulfate pentahydrate).9 In the calculator you can type the dot as a period or an asterisk (*). When calculating the molar mass of a hydrate, you add the mass of the base compound to the mass of the water molecules. In this example, you add the molar mass of CuSO₄ (159.602 g/mol) to five times the molar mass of water (5 × 18.015 = 90.075 g/mol), giving a total of about 249.677 g/mol. Understanding the percentage composition of water versus the anhydrous salt in a hydrate is a common exercise in general chemistry courses.


Formulas used

Molecular Weight (Average) 2
MW = \sum_{i} n_i \times w_i
Exact Mass (Monoisotopic) 6
M_{exact} = \sum_{i} n_i \times m_i^{\text{mono}}
Mass Percent of Element 11
\text{Mass\%}_i = \frac{n_i \times w_i}{MW} \times 100
Protein/Peptide Molecular Weight 10
MW_{\text{peptide}} = \sum_{j} w_{\text{residue},j} + w_{\text{H}_2\text{O}}
GC Content
\text{GC\%} = \frac{n_G + n_C}{N} \times 100
Molarity 3
M = \frac{n}{V} = \frac{m / MW}{V}

Frequently asked questions

What is the difference between molecular weight and molar mass?

They have the same number but describe different amounts. Molecular weight, or molecular mass, is the mass of one molecule, in atomic mass units (amu). Molar mass is the mass of one mole of the substance, in grams per mole (g/mol).2 Because the numbers match, you can use them the same way in calculations.

Why does capitalization matter in a chemical formula?

Element symbols are case-sensitive. Only the first letter of a symbol is a capital, so a second letter is always lowercase.8 For example, Co means cobalt, but CO means one carbon atom and one oxygen atom (carbon monoxide).8

How is the molecular weight of a protein worked out from its sequence?

Add up the residue weight of each amino acid in the sequence, then add the weight of one water molecule.10 That water molecule, at the chain ends, is about 18.015 g/mol.

What is GC content and why does it matter?

GC content is the percentage of guanine (G) and cytosine (C) bases in a DNA or RNA sequence. G-C base pairs are held by three hydrogen bonds and A-T pairs by two.5 DNA with a higher GC content has a higher melting temperature, so its strands are harder to separate.

What is exact mass and when should I use it?

Exact mass is the mass of a molecule made of one stated set of isotopes. The monoisotopic mass is the exact mass worked out from the most abundant isotope of each element, instead of the natural isotope average.6 It is used with high-resolution mass spectrometers, which can tell apart two formulas with the same whole-number mass.7 For regular lab work like weighing chemicals, use the average molecular weight instead.

What is the molecular weight of water?

One water molecule (H₂O) weighs about 18.015 amu, so the molar mass of water is about 18.015 g/mol. This comes from two hydrogen atoms (2 × 1.008 = 2.016) plus one oxygen atom (15.999).


Sources

  1. Standard Atomic Weights: Abridged Standard Atomic Weights 2024. IUPAC Commission on Isotopic Abundances and Atomic Weights. 2024. Accessed September 29, 2026.
  2. Flowers P, Theopold K, Langley R, Robinson WR. Chemistry 2e, 3.1 Formula Mass and the Mole Concept. OpenStax. 2019;section 3.1. Accessed September 29, 2026.
  3. Flowers P, Theopold K, Langley R, Robinson WR. Chemistry 2e, 3.3 Molarity. OpenStax. 2019;section 3.3. Accessed September 29, 2026.
  4. Atomic Weights and Isotopic Compositions for All Elements. National Institute of Standards and Technology. Accessed September 29, 2026.
  5. Clark MA, Douglas M, Choi J. Biology 2e, 14.2 DNA Structure and Sequencing. OpenStax. 2018;section 14.2. Accessed September 29, 2026.
  6. Murray KK, Boyd RK, Eberlin MN, Langley GJ, Li L, Naito Y. Definitions of terms relating to mass spectrometry (IUPAC Recommendations 2013). Pure and Applied Chemistry. 2013;85(7):1515-1609. doi:10.1351/PAC-REC-06-04-06. Accessed November 18, 2026.
  7. McMurry J. Organic Chemistry, 12.2 Interpreting Mass Spectra. OpenStax. 2023;section 12.2. Accessed November 18, 2026.
  8. Flowers P, Theopold K, Langley R, Robinson WR. Chemistry 2e, 2.3 Atomic Structure and Symbolism. OpenStax. 2019;section 2.3. Accessed November 18, 2026.
  9. Flowers P, Theopold K, Langley R, Robinson WR. Chemistry 2e, 2.7 Chemical Nomenclature. OpenStax. 2019;section 2.7, Ionic Hydrates. Accessed November 18, 2026.
  10. Gasteiger E, Hoogland C, Gattiker A, Duvaud S, Wilkins MR, Appel RD, Bairoch A. Compute pI/Mw: Documentation. The Proteomics Protocols Handbook (Humana Press). Expasy. 2005;pp. 571-607. Accessed November 18, 2026.
  11. Flowers P, Theopold K, Langley R, Robinson WR. Chemistry 2e, 3.2 Determining Empirical and Molecular Formulas. OpenStax. 2019;section 3.2, Percent Composition. Accessed November 18, 2026.