Updated on April 21st, 2026

Molecular Weight Calculator

Created By Jehan Wadia

⚠️ 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, also known as the molar mass. Knowing the molecular weight is important in chemistry because it helps you measure the right amounts of substances for experiments, balance chemical equations, 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 molecular weight in grams per mole (g/mol).

How to Use Our Molecular Weight Calculator

Enter a chemical formula, and this calculator will give you the total molecular weight (molar mass) of that compound in grams per mole (g/mol).

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. It is measured in grams per mole (g/mol). To find it, you add up the atomic weights of every atom in a chemical formula. 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, so water's molecular weight is roughly 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. Molecular weight 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. Our Molarity Calculator can help you work through those concentration calculations.
  • Identify unknown substances — Techniques like mass spectrometry measure molecular weight to help figure out what a substance is.
  • Balance equations — Understanding mass relationships in chemical reactions depends on knowing the molecular weight of each compound involved.

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 (also called monoisotopic mass) uses only the most abundant isotope of each element. For carbon, the average weight is 12.011 g/mol, but the exact mass uses carbon-12 at exactly 12.00000. Scientists use exact mass in high-precision instruments like mass spectrometers, while average molecular weight is used for everyday lab work like weighing chemicals on a balance. Understanding the percent error between these two values can be useful when evaluating measurement accuracy.

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 adding 18.015 g/mol for the water molecule present at the ends of the chain. 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. If you're studying radioactive isotopes used in biochemical tracer experiments, our Half Life Calculator and Radioactive Decay Calculator may also be helpful.

Understanding Molarity

Molarity (M) tells you how many moles of a substance are dissolved in one liter of solution. The formula is simple: Molarity = moles ÷ volume (in liters). To find moles, divide the mass of your solute (in grams) by its molecular weight. For instance, dissolving 5.844 grams of NaCl (molecular weight 58.44 g/mol) in 1 liter of water 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. For more detailed concentration work, try our dedicated Molarity Calculator. When working with acids and bases in solution, our pH Calculator can help you determine the acidity or basicity of your preparations. You can also explore gas behavior at different conditions using the Ideal Gas Law Calculator.

Hydrates and Special Formulas

Some compounds include water molecules trapped in their crystal structure. These are called hydrates and are written with a dot or multiplication sign, like CuSO₄·5H₂O (copper sulfate pentahydrate). When calculating molecular weight for a hydrate, you add the weight of the base compound to the weight of the water molecules. In this example, you add the molecular weight of CuSO₄ (159.609 g/mol) to five times the molecular weight of water (5 × 18.015 = 90.075 g/mol), giving a total of about 249.684 g/mol. Understanding the percentage composition of water versus the anhydrous salt in a hydrate is a common exercise in general chemistry courses.


Frequently Asked Questions

What is the difference between molecular weight and molar mass?

They mean the same thing in everyday chemistry. Both refer to the total mass of all atoms in a molecule, measured in grams per mole (g/mol). Molecular weight is the older term, while molar mass is more precise. You can use them the same way in calculations.

Why does capitalization matter when I type a chemical formula?

Element symbols are case-sensitive. The first letter is always uppercase and the second letter is always lowercase. For example, Co means cobalt, but CO means one carbon atom and one oxygen atom (carbon monoxide). Typing the wrong case will give you the wrong result.

How do I enter a formula with parentheses?

Type parentheses just like you write them on paper. For example, type Ca(OH)2 for calcium hydroxide. The calculator multiplies everything inside the parentheses by the number that follows. So (OH)2 means two oxygen atoms and two hydrogen atoms.

How do I enter a hydrate formula?

Use a dot (·), asterisk (*), or period (.) between the base compound and the water portion. For example, type CuSO4·5H2O or CuSO4*5H2O. The calculator will add the molecular weight of CuSO₄ to five times the molecular weight of water.

What units does the molecular weight calculator use?

The calculator reports molecular weight in grams per mole (g/mol). This is the standard unit used in chemistry. One mole of any substance contains about 6.022 × 10²³ particles (Avogadro's number).

How does the protein molecular weight calculation work?

The calculator adds up the residue weight of each amino acid in your sequence, then adds 18.015 g/mol for the water molecule at the chain ends. You enter the one-letter amino acid codes (like A for alanine or G for glycine), and the tool does the rest.

What is the difference between ssDNA and dsDNA in the DNA/RNA tab?

ssDNA is single-stranded DNA — just one chain of nucleotides. dsDNA is double-stranded DNA — two complementary chains paired together. The molecular weight of dsDNA is roughly twice that of ssDNA because it includes both strands.

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. It matters because G-C base pairs have three hydrogen bonds (stronger than A-T pairs with two), so higher GC content means the DNA is harder to separate and has a higher melting temperature.

How is molarity calculated in the Molarity tab?

The calculator uses the formula Molarity = (mass ÷ molecular weight) ÷ volume. First it finds the molecular weight from your formula. Then it divides your mass by that weight to get moles. Finally, it divides moles by the solution volume in liters to give molarity in moles per liter (M).

Can I enter subscript numbers like H₂O directly?

Yes. The calculator understands both regular numbers (H2O) and Unicode subscript characters (H₂O). You can type or paste either format and it will work correctly.

What is exact mass and when should I use it?

Exact mass (monoisotopic mass) uses only the most abundant isotope of each element instead of the natural isotope average. It is used in high-precision work like mass spectrometry. For regular lab work like weighing chemicals, use the average molecular weight instead.

What does the elemental composition table show?

It shows each element in your compound, how many atoms of that element are present, the atomic weight of each, the total mass that element contributes, and the mass percentage. This tells you what fraction of the molecule's weight comes from each element.

Why does my formula show an error?

Common reasons include wrong capitalization (like na instead of Na), unrecognized element symbols, or missing closing parentheses. Check that each element starts with an uppercase letter and that all parentheses are matched.

Can this calculator handle large biomolecules?

Yes. The protein tab accepts sequences up to 5,000 amino acids, and the DNA/RNA tab accepts sequences up to 10,000 nucleotides. This covers most proteins and many gene fragments you would work with in a lab or classroom.

What is the molecular weight of water?

Water (H₂O) has a molecular weight of about 18.015 g/mol. This comes from two hydrogen atoms (2 × 1.008 = 2.016) plus one oxygen atom (15.999).