CalclityCalclity

Molecular Weight Calculator

Calculate the molar mass of any chemical formula — such as H2O, NaCl, or Ca(OH)2 — with element-symbol autocomplete as you type and a full periodic table of all 118 elements for reference.

Enter a molecular formula using standard chemical notation — for example H2O, NaCl, Ca(OH)2, or C6H12O6 — to calculate its molar mass. Element symbols are suggested as you type.

Understanding Molecular Weight

What Is Molecular Weight?

Molecular weight — more precisely called molar mass — is the mass of one mole (6.022 × 10²³ particles) of a substance, measured in grams per mole (g/mol). It's calculated by adding up the atomic weights of every atom in the molecule's formula: water (H2O) has two hydrogen atoms (about 1.008 g/mol each) and one oxygen atom (about 15.999 g/mol), giving a molar mass of about 18.015 g/mol. This calculator parses any valid chemical formula and performs exactly this sum automatically.

Reading Chemical Formula Notation

A subscript number after an element symbol tells you how many atoms of that element are present — H2O means 2 hydrogen atoms and 1 oxygen atom (a missing subscript always means 1). Parentheses group atoms that repeat together, with the subscript after the closing parenthesis multiplying everything inside: Ca(OH)2 means one calcium atom plus two of the (OH) group, for a total of 1 calcium, 2 oxygen, and 2 hydrogen atoms. This calculator accepts nested parentheses and brackets, so formulas like Mg3(PO4)2 are parsed correctly.

Molecular Weight vs. Molar Mass vs. Formula Weight

These three terms are often used interchangeably, but have slightly different traditional meanings. 'Molecular weight' technically applies to molecular compounds made of discrete molecules (like water or glucose). 'Formula weight' is the more general term, used for ionic compounds like sodium chloride (NaCl) that don't form true molecules but exist as repeating crystal lattices. 'Molar mass' is the modern, unit-explicit term (g/mol) that applies to both cases equally. In practice, all three describe the same underlying calculation: the sum of atomic weights in a formula.

Why Atomic Weights Aren't Whole Numbers

Atomic weight isn't simply the number of protons and neutrons in an atom's nucleus, because most elements naturally occur as a mixture of isotopes — atoms of the same element with different numbers of neutrons. The standard atomic weight is a weighted average across all naturally occurring isotopes, based on how common each one is. Chlorine, for example, is a mix of about 76% chlorine-35 and 24% chlorine-37, giving it an average atomic weight of about 35.45 — a number that would never occur in any single atom, but accurately predicts the mass of a large real-world sample.

Elements With No Stable Isotope

Every element beyond bismuth (element 83), along with technetium and promethium, has no stable isotopes at all — every version of the atom is radioactive and eventually decays. For these elements, chemists can't calculate a natural-abundance weighted average, so tables instead list the mass number of the longest-lived known isotope in square brackets, like technetium's [98] or plutonium's [244]. This calculator uses those bracketed values for its heavier, synthetic elements, though such elements essentially never appear in the kind of everyday molecular formulas this tool is designed for.

Complete Periodic Table of Elements

All 118 known elements with their atomic number, symbol, and standard atomic weight, used in the calculation above. Values in brackets are the mass number of the most stable known isotope, used for elements with no stable isotope.

Atomic NumberElement NameSymbolAtomic Weight (g/mol)
1HydrogenH1.008
2HeliumHe4.0026
3LithiumLi6.94
4BerylliumBe9.0122
5BoronB10.81
6CarbonC12.011
7NitrogenN14.007
8OxygenO15.999
9FluorineF18.998
10NeonNe20.18
11SodiumNa22.99
12MagnesiumMg24.305
13AluminumAl26.982
14SiliconSi28.085
15PhosphorusP30.974
16SulfurS32.06
17ChlorineCl35.45
18ArgonAr39.948
19PotassiumK39.098
20CalciumCa40.078
21ScandiumSc44.956
22TitaniumTi47.867
23VanadiumV50.942
24ChromiumCr51.996
25ManganeseMn54.938
26IronFe55.845
27CobaltCo58.933
28NickelNi58.693
29CopperCu63.546
30ZincZn65.38
31GalliumGa69.723
32GermaniumGe72.63
33ArsenicAs74.922
34SeleniumSe78.971
35BromineBr79.904
36KryptonKr83.798
37RubidiumRb85.468
38StrontiumSr87.62
39YttriumY88.906
40ZirconiumZr91.224
41NiobiumNb92.906
42MolybdenumMo95.95
43TechnetiumTc[98]
44RutheniumRu101.07
45RhodiumRh102.91
46PalladiumPd106.42
47SilverAg107.87
48CadmiumCd112.41
49IndiumIn114.82
50TinSn118.71
51AntimonySb121.76
52TelluriumTe127.6
53IodineI126.9
54XenonXe131.29
55CesiumCs132.91
56BariumBa137.33
57LanthanumLa138.91
58CeriumCe140.12
59PraseodymiumPr140.91
60NeodymiumNd144.24
61PromethiumPm[145]
62SamariumSm150.36
63EuropiumEu151.96
64GadoliniumGd157.25
65TerbiumTb158.93
66DysprosiumDy162.5
67HolmiumHo164.93
68ErbiumEr167.26
69ThuliumTm168.93
70YtterbiumYb173.05
71LutetiumLu174.97
72HafniumHf178.49
73TantalumTa180.95
74TungstenW183.84
75RheniumRe186.21
76OsmiumOs190.23
77IridiumIr192.22
78PlatinumPt195.08
79GoldAu196.97
80MercuryHg200.59
81ThalliumTl204.38
82LeadPb207.2
83BismuthBi208.98
84PoloniumPo[209]
85AstatineAt[210]
86RadonRn[222]
87FranciumFr[223]
88RadiumRa[226]
89ActiniumAc[227]
90ThoriumTh232.04
91ProtactiniumPa231.04
92UraniumU238.03
93NeptuniumNp[237]
94PlutoniumPu[244]
95AmericiumAm[243]
96CuriumCm[247]
97BerkeliumBk[247]
98CaliforniumCf[251]
99EinsteiniumEs[252]
100FermiumFm[257]
101MendeleviumMd[258]
102NobeliumNo[259]
103LawrenciumLr[266]
104RutherfordiumRf[267]
105DubniumDb[268]
106SeaborgiumSg[269]
107BohriumBh[270]
108HassiumHs[269]
109MeitneriumMt[278]
110DarmstadtiumDs[281]
111RoentgeniumRg[282]
112CoperniciumCn[285]
113NihoniumNh[286]
114FleroviumFl[289]
115MoscoviumMc[290]
116LivermoriumLv[293]
117TennessineTs[294]
118OganessonOg[294]

Disclaimer: This calculator is provided for general informational, educational, and reference purposes only, and nothing on this page constitutes professional or engineering advice. For applications where accuracy is critical, verify the result independently or consult a qualified professional in the relevant field.

Frequently Asked Questions

About this calculator

This calculator computes the molecular weight (molar mass) of any valid chemical formula by parsing the formula, matching each element symbol against its standard atomic weight, and summing the contribution of every atom present. It understands subscript counts, nested parentheses and brackets, and suggests matching element symbols as you type. A complete periodic table of all 118 known elements is included below for reference.

  • Element-symbol autocompleteAs you type, a dropdown suggests matching element symbols — for example typing 'N' suggests N, Na, Ne, Ni, Nb, and other elements starting with that letter.
  • Parentheses and nested groupsCorrectly parses formulas with grouped, repeating atoms, such as Ca(OH)2 or Mg3(PO4)2, including nested parentheses and brackets.
  • Full per-element breakdownShows the atomic number, symbol, atomic weight, and count for every element in the formula, along with each element's contribution to the total formula weight.
  • Complete periodic tableA reference table lists all 118 known elements with their atomic number, name, symbol, and standard atomic weight.
  • Case-sensitive parsingDistinguishes formulas like CO (carbon monoxide) from Co (cobalt) by respecting standard upper/lowercase chemical notation.