Molecular Weight Calculator

Calculate the molecular weight of chemical compounds from their formulas.
Supports complex formulas with parentheses, subscripts, and multiple elements.

Enter a chemical formula using element symbols (e.g., H2O for water, NaCl for salt). Use parentheses for groups like Ca(OH)2.
Note: Use the letter O (oxygen), not the number 0.

Enter a chemical formula above to calculate the molecular weight

Atomic Weights Reference Table

Reference table showing all elements and their atomic weights (in g/mol) used by this calculator. These values are based on the IUPAC standard atomic weights.

Showing 118 of 118 elements

Element SymbolElement NameAtomic Weight (g/mol)
AcActinium227.000
AgSilver107.868
AlAluminum26.982
AmAmericium243.000
ArArgon39.950
AsArsenic74.922
AtAstatine210.000
AuGold196.967
BBoron10.810
BaBarium137.327
BeBeryllium9.012
BhBohrium270.000
BiBismuth208.980
BkBerkelium247.000
BrBromine79.900
CCarbon12.011
CaCalcium40.078
CdCadmium112.411
CeCerium140.116
CfCalifornium251.000
ClChlorine35.453
CmCurium247.000
CnCopernicium285.000
CoCobalt58.933
CrChromium51.996
CsCesium132.905
CuCopper63.546
DbDubnium268.000
DsDarmstadtium281.000
DyDysprosium162.500
ErErbium167.259
EsEinsteinium252.000
EuEuropium151.964
FFluorine18.998
FeIron55.845
FlFlerovium289.000
FmFermium257.000
FrFrancium223.000
GaGallium69.723
GdGadolinium157.249
GeGermanium72.630
HHydrogen1.008
HeHelium4.003
HfHafnium178.486
HgMercury200.592
HoHolmium164.930
HsHassium270.000
IIodine126.904
InIndium114.818
IrIridium192.217
KPotassium39.098
KrKrypton83.798
LaLanthanum138.905
LiLithium6.940
LrLawrencium266.000
LuLutetium174.967
LvLivermorium293.000
McMoscovium290.000
MdMendelevium258.000
MgMagnesium24.305
MnManganese54.938
MoMolybdenum95.950
MtMeitnerium278.000
NNitrogen14.007
NaSodium22.990
NbNiobium92.906
NdNeodymium144.242
NeNeon20.180
NhNihonium286.000
NiNickel58.693
NoNobelium259.000
NpNeptunium237.000
OOxygen15.999
OgOganesson294.000
OsOsmium190.230
PPhosphorus30.974
PaProtactinium231.036
PbLead207.200
PdPalladium106.420
PmPromethium145.000
PoPolonium209.000
PrPraseodymium140.908
PtPlatinum195.084
PuPlutonium244.000
RaRadium226.000
RbRubidium85.468
ReRhenium186.207
RfRutherfordium267.000
RgRoentgenium282.000
RhRhodium102.906
RnRadon222.000
RuRuthenium101.070
SSulfur32.060
SbAntimony121.760
ScScandium44.956
SeSelenium78.971
SgSeaborgium271.000
SiSilicon28.085
SmSamarium150.360
SnTin118.710
SrStrontium87.620
TaTantalum180.948
TbTerbium158.925
TcTechnetium98.000
TeTellurium127.600
ThThorium232.038
TiTitanium47.867
TlThallium204.383
TmThulium168.934
TsTennessine294.000
UUranium238.029
VVanadium50.941
WTungsten183.840
XeXenon131.293
YYttrium88.906
YbYtterbium173.045
ZnZinc65.380
ZrZirconium91.222

What is Molecular Weight?

Molecular weight (also called molecular mass or molar mass) is the sum of the atomic weights of all atoms in a molecule. It's expressed in atomic mass units (amu) or grams per mole (g/mol). The molecular weight is crucial in chemistry for stoichiometric calculations, determining the amount of substance in reactions, and understanding molecular properties.

For example, water (H2O) has a molecular weight of approximately 18.015 g/mol, calculated by adding the atomic weights of two hydrogen atoms (2 × 1.008) and one oxygen atom (15.999).

Molecular weight is essential in:

  • Stoichiometry: Calculating reactant and product amounts in chemical reactions
  • Solution preparation: Determining concentrations and molarity
  • Gas laws: Understanding behavior of gases at different conditions
  • Material science: Characterizing polymers and large molecules
  • Pharmaceuticals: Dosage calculations and drug formulation

How it Works

Our molecular weight calculator parses chemical formulas and calculates the total molecular weight by:

  1. Parsing the formula: Identifying each element and its count in the molecule
  2. Looking up atomic weights: Using the standard atomic weights from the periodic table
  3. Calculating contributions: Multiplying each element's atomic weight by its count
  4. Summing the total: Adding all contributions to get the final molecular weight

The calculator handles complex formulas with:

  • Multiple elements (e.g., C6H12O6 for glucose)
  • Subscripts indicating atom counts (e.g., H2O has 2 hydrogen atoms)
  • Parentheses for groups (e.g., Ca(OH)2 has one calcium, two oxygen, and two hydrogen atoms)
  • Nested parentheses for complex structures

All calculations use standard atomic weights from the IUPAC periodic table, ensuring accuracy for scientific and educational purposes.

Formula Format

Chemical formulas should follow standard notation:

Element Symbols

Use standard element symbols (first letter uppercase, second letter lowercase if present). Examples: H (hydrogen), He (helium), Na (sodium), Cl (chlorine).

Subscripts

Numbers after element symbols indicate the count. H2O means 2 hydrogen atoms and 1 oxygen atom. If no number is shown, it's assumed to be 1.

Parentheses

Use parentheses to group atoms. Ca(OH)2 means one Ca atom, and the (OH) group appears twice, giving 2 O atoms and 2 H atoms total.

Examples of Valid Formulas

  • H2O - Water
  • NaCl - Sodium chloride
  • C6H12O6 - Glucose
  • Ca(OH)2 - Calcium hydroxide
  • Al2(SO4)3 - Aluminum sulfate
  • CH3COOH - Acetic acid

Examples

Example 1: Water (H2O)

Formula: H2O

Calculation: 2 × H (1.008) + 1 × O (15.999) = 2.016 + 15.999 = 18.015 g/mol

Result: 18.015 g/mol

Example 2: Glucose (C6H12O6)

Formula: C6H12O6

Calculation: 6 × C (12.011) + 12 × H (1.008) + 6 × O (15.999) = 72.066 + 12.096 + 95.994 = 180.156 g/mol

Result: 180.156 g/mol

Example 3: Calcium Hydroxide (Ca(OH)2)

Formula: Ca(OH)2

Calculation: 1 × Ca (40.078) + 2 × O (15.999) + 2 × H (1.008) = 40.078 + 31.998 + 2.016 = 74.092 g/mol

Result: 74.092 g/mol

Example 4: Aluminum Sulfate (Al2(SO4)3)

Formula: Al2(SO4)3

Calculation: 2 × Al (26.982) + 3 × S (32.065) + 12 × O (15.999) = 53.964 + 96.195 + 191.988 = 342.147 g/mol

Result: 342.147 g/mol

Common Use Cases

  • Chemistry Education: Students learning stoichiometry and molecular calculations
  • Laboratory Work: Preparing solutions with specific molarities and concentrations
  • Chemical Reactions: Calculating reactant and product masses in balanced equations
  • Pharmaceuticals: Determining drug dosages and formulation concentrations
  • Material Science: Characterizing polymers, proteins, and complex molecules
  • Quality Control: Verifying compound purity and composition in manufacturing
  • Research: Analyzing molecular structures and properties in scientific studies
  • Environmental Science: Calculating pollutant concentrations and environmental impact

Frequently Asked Questions

What's the difference between molecular weight and atomic weight?

Atomic weight is the average mass of a single atom of an element, while molecular weight is the sum of atomic weights of all atoms in a molecule. For example, the atomic weight of hydrogen is 1.008 amu, but the molecular weight of H2O (water) is 18.015 g/mol, which includes two hydrogen atoms and one oxygen atom.

How do I enter formulas with parentheses?

Simply type the formula with parentheses as you would write it. For example, Ca(OH)2 for calcium hydroxide or Al2(SO4)3 for aluminum sulfate. The calculator will automatically multiply the contents of parentheses by the number that follows them.

What if my formula has nested parentheses?

The calculator supports nested parentheses. For example, you can enter formulas like (Ca(OH)2)2, though such complex structures are less common. Make sure all opening parentheses have matching closing parentheses.

Are the atomic weights accurate?

Yes, we use standard atomic weights from the IUPAC (International Union of Pure and Applied Chemistry) periodic table. These values are the most current and accurate atomic weights used in scientific calculations. Note that some elements have atomic weights that vary slightly due to isotopic composition, but we use the standard values for consistency.

Can I calculate the molecular weight of ions?

The calculator works with neutral molecular formulas. For ions, you can enter the formula without the charge (e.g., SO4 instead of SO4²⁻), and the molecular weight will be calculated. However, note that the charge doesn't affect the molecular weight calculation itself.

What units are used for molecular weight?

Molecular weight is displayed in grams per mole (g/mol), which is the standard unit in chemistry. This is equivalent to atomic mass units (amu) per molecule, but g/mol is more commonly used in practical calculations involving moles and molarity.

Why does my calculation differ slightly from other sources?

Small differences can occur due to:

  • Different rounding methods (we round to 3 decimal places)
  • Variations in atomic weight values from different periodic table versions
  • Isotopic composition variations in natural elements

Our values should match standard chemistry textbooks and most online calculators within rounding precision.

Can I use this for organic compounds?

Yes! The calculator works with any chemical formula, including organic compounds. Simply enter the formula with proper element symbols and subscripts. For example, C6H12O6 (glucose), CH4 (methane), or C2H5OH (ethanol) all work perfectly.