Molecular Weight Calculator

What is the molecular weight of your chemical compound?

Calculate the molecular weight of any chemical compound by entering its formula. Essential for stoichiometry, solution preparation, and analytical chemistry calculations.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Think of molecular weight like counting marbles in a bag, where each type of marble has a different weight. A water molecule contains two hydrogen atoms and one oxygen atom. Since hydrogen weighs 1.008 atomic mass units and oxygen weighs 15.999 units, water's total molecular weight is (2 × 1.008) + 15.999 = 18.015 g/mol.

The calculator parses your chemical formula by identifying each element symbol and its subscript number. It multiplies each element's atomic mass by how many times it appears, then adds everything together. This process mirrors exactly what chemists do by hand, but handles complex formulas like C27H46O instantly.

Molecular weight connects the invisible world of atoms to measurable quantities in your lab. One mole of any substance contains the same number of particles (Avogadro's number), so molecular weight tells you exactly how much mass contains that many molecules. This bridge between atomic scale and human scale makes chemistry calculations possible.

When To Use This
Right tool, right situation

Use molecular weight calculations when preparing solutions of known molarity, planning chemical reactions, or converting between mass and mole quantities. Laboratory technicians rely on these calculations daily to make buffers, reagents, and standard solutions with precise concentrations.

This calculator works perfectly for stable compounds under normal conditions but becomes less reliable for highly reactive species, radicals, or compounds that exist only briefly. Polymers present another limitation since their molecular weights vary depending on chain length, requiring different analytical methods.

Avoid using molecular weight alone for gas density calculations without considering temperature and pressure corrections. While molecular weight helps predict relative densities, actual gas density depends heavily on conditions. Similarly, don't use molecular weight to predict solubility or reactivity, which depend more on molecular structure than mass.

Common Mistakes
Why results sometimes look wrong

The most common error is mixing up element symbols, like writing CO for cobalt instead of Co. Carbon monoxide is CO (capital C, capital O), while cobalt is Co (capital C, lowercase o). This single letter case difference represents completely different substances with vastly different molecular weights and properties.

Another frequent mistake is forgetting that subscripts apply only to the element immediately before them. In Ca(OH)2, the subscript 2 applies to the entire OH group, meaning two OH units, not just two hydrogen atoms. The correct breakdown is one calcium, two oxygen, and two hydrogen atoms.

Many people incorrectly assume molecular weight equals density or concentration. Molecular weight is mass per mole, not mass per volume. A compound with high molecular weight might have low density if its molecules are loosely packed, while a low molecular weight compound might be very dense with tightly packed molecules.

The Math
Worked examples and deeper derivation

Molecular weight calculation follows simple arithmetic: sum each element's atomic mass multiplied by its frequency in the formula. For C6H12O6, the math is (6 × 12.01) + (12 × 1.008) + (6 × 15.999) = 72.06 + 12.096 + 95.994 = 180.15 g/mol.

Atomic masses come from the weighted average of all naturally occurring isotopes. Carbon-12 makes up 98.9% of natural carbon, with carbon-13 comprising the rest, yielding carbon's atomic mass of 12.01. This averaging explains why atomic masses are rarely whole numbers despite atoms containing whole numbers of protons and neutrons.

The unit g/mol (grams per mole) creates the crucial link between atomic scale and laboratory scale. One mole equals 6.022 × 10²³ particles, so 180.15 g/mol means 180.15 grams of glucose contains exactly 6.022 × 10²³ glucose molecules. This relationship enables all quantitative chemistry calculations.

Preparing a 1M glucose solution
Chemical formula: C6H12O6 (glucose)
Molecular weight: 180.156 g/mol. To make 1 liter of 1M glucose solution, you need exactly 180.156 grams of glucose powder. This precise measurement ensures accurate molarity for biological experiments.
Analyzing air pollution compounds
Chemical formula: SO2 (sulfur dioxide)
Molecular weight: 64.066 g/mol. Environmental scientists use this to convert between mass concentrations and volume concentrations when measuring air quality. A 10 ppm reading equals specific mass per cubic meter.
Pharmaceutical dosage calculations
Chemical formula: C8H9NO2 (acetaminophen)
Molecular weight: 151.163 g/mol. Pharmacists need this to calculate how many molecules are in a 500mg tablet, helping determine bioavailability and dosing intervals for different patient weights.
Expert Unlock
The thing most explanations skip

Molecular weight reveals subtle insights about molecular structure and behavior. Compounds with similar molecular weights often have different physical properties due to structural differences - compare linear alkanes with branched isomers of identical molecular weight but different boiling points. Mass spectrometry exploits these precise molecular weight differences to identify unknown compounds by comparing experimental masses to calculated values.

How do I write chemical formulas correctly?

What format should I use for chemical formulas?
Use standard chemical notation with element symbols followed by subscript numbers. Write H2O for water, not h2o or H(2)O. Capital letters start each element symbol, with lowercase for the second letter if present. Numbers indicate how many atoms of each element.
Can I calculate molecular weight for ionic compounds?
Yes, enter the empirical formula like NaCl or CaCl2. The calculator treats ionic compounds the same as molecular compounds, giving you the formula weight. This is useful for solution preparation and stoichiometric calculations.
Why might my result differ slightly from other sources?
Atomic masses vary slightly depending on the source and precision used. This calculator uses IUPAC standard atomic weights rounded to appropriate precision. Differences of 0.01-0.1 g/mol are normal and typically insignificant for most applications.

Need something this doesn't cover?

Suggest a tool — we'll build it →