Calc Lab Online
Sponsored • Leaderboard

Molecular Weight Calculator (Molar Mass)

Calculate the exact molecular weight, molar mass (g/mol), and elemental percent composition for any chemical formula. Features full support for parentheses, hydrates (e.g. CuSO4*5H2O), and mass-to-mole conversions using IUPAC standard atomic weights.

Chemical Formula Input

Enter chemical formula, ions, hydrates, or select a common benchmark

Supports parentheses & hydrates (e.g. CuSO4*5H2O)
Popular Chemical Presets
Standard Molecular WeightIUPAC Certified
180.1560 g/mol

Compound Formula: C6H12O6 • Total Atoms per Molecule: 24

Elemental Composition Breakdown

3 unique chemical elements
ElementSymbolAtomic MassAtomsSubtotal MassMass Percent
6CarbonC12.0110 g/mol672.0660 g/mol40.002%
1HydrogenH1.0080 g/mol1212.0960 g/mol6.714%
8OxygenO15.9990 g/mol695.9940 g/mol53.284%
Total Formula Weight24180.1560 g/mol100.000%
Step-by-Step Calculation Formula

Molecular Weight = (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 180.156 g/mol

Mass ↔ Moles ↔ Molecule Converter

Calculated Moles (n)
0.555074 mol
n = mass / molecular weight
Total Molecules (N)
3.3427e+23 molecules
N = n × 6.022×10²³

Standard Chemical Compounds & Molar Masses

Reference molar masses and mass percentage compositions calculated via standard IUPAC atomic weights.

Chemistry Benchmarks
SubstanceFormulaMolar Mass (g/mol)Main Composition (% by Mass)Primary Chemical Application
WaterH2O18.015 g/molH (11.19%), O (88.81%)Universal biological and laboratory solvent
GlucoseC6H12O6180.156 g/molC (40.00%), H (6.71%), O (53.29%)Cellular energy metabolism and glycolysis
Sodium ChlorideNaCl58.440 g/molNa (39.34%), Cl (60.66%)Electrolyte balance and table salt seasoning
EthanolC2H5OH46.069 g/molC (52.14%), H (13.13%), O (34.73%)Alcoholic beverages, antiseptics, and bio-fuel
Sulfuric AcidH2SO498.079 g/molH (2.06%), S (32.69%), O (65.25%)Lead-acid car batteries and industrial synthesis
CaffeineC8H10N4O2194.194 g/molC (49.48%), H (5.19%), N (28.85%), O (16.48%)Central nervous system stimulant in coffee & tea
AspirinC9H8O4180.157 g/molC (60.00%), H (4.48%), O (35.52%)Anti-inflammatory pain reliever and blood thinner
Calcium CarbonateCaCO3100.087 g/molCa (40.04%), C (12.00%), O (47.96%)Limestone, marble, chalk, and antacids
Copper Sulfate PentahydrateCuSO4·5H2O249.685 g/molCu (25.45%), S (12.84%), O (57.67%), H (4.04%)Blue vitriol, electroplating, and fungicide
Sucrose (Sugar)C12H22O11342.297 g/molC (42.11%), H (6.48%), O (51.41%)Standard consumer table sugar sweetener

1. Theoretical Foundations: Molecular Weight and Molar Mass

In quantitative chemistry and stoichiometry, molecular weight (also called relative molecular mass) represents the mass of a single molecule relative to the unified atomic mass unit (u or Da), which is defined as exactly 1/12th the mass of an unbound carbon-12 atom.

In laboratory practice, chemists work with macroscopic quantities using the mole (abbreviated mol), one of the seven base SI units. One mole contains exactly 6.02214076 × 10²³ elementary entities (Avogadro's number, NA). Molar mass (M) is the mass in grams of one mole of that substance:

Molar Mass (M) = Total Mass (g) / Amount of Substance (mol)

Because the atomic mass unit is defined such that one mole of carbon-12 weighs exactly 12 grams, the numerical value of a molecule's mass in daltons (Da) is identical to its molar mass in grams per mole (g/mol).

2. Step-by-Step Method for Calculating Molecular Weight

To determine the molecular weight of any complex chemical compound:

1
Decompose the Molecular Formula into Elements

Break down the formula into distinct chemical element symbols (e.g., C, H, O, Ca, Cl). Ensure proper case sensitivity: uppercase letters start new elements (e.g. Co is Cobalt, CO is Carbon Monoxide).

2
Account for Subscripts and Parentheses Multipliers

Multiply subscripts outside parentheses across all enclosed atoms. For example, in ammonium sulfate (NH4)2SO4, the subscript 2 multiplies both N (2 × 1 = 2) and H (2 × 4 = 8), giving 2 N, 8 H, 1 S, and 4 O.

3
Lookup IUPAC Standard Atomic Weights

Multiply the atom count of each element by its official atomic mass from the periodic table (e.g., H = 1.008 g/mol, C = 12.011 g/mol, O = 15.999 g/mol).

4
Sum Element Subtotals to Determine Total Molar Mass

Add the subtotal masses together. For water (H2O): (2 × 1.008) + (1 × 15.999) = 18.015 g/mol.

3. Percent Composition by Mass Formula

The percentage contribution of each element to the total mass of the compound is calculated as:

Mass % of Element = (Total Mass of Element in 1 Mole / Total Molar Mass) × 100%

Percent composition is essential in analytical chemistry to verify sample purity, analyze combustion products, and deduce empirical formulas from elemental assays.

Frequently Asked Questions

•What is the difference between molecular weight, molar mass, and formula weight?

Molecular weight (molecular mass) is the sum of atomic masses of all atoms in a single molecule, traditionally expressed in unified atomic mass units (u or Da). Molar mass is the mass of one mole of a substance (6.022 × 10²³ particles), expressed in grams per mole (g/mol). Formula weight is used for ionic compounds (like NaCl) that do not exist as discrete individual molecules. Numerically, molecular weight in Da and molar mass in g/mol are identical.

•How do you calculate the molecular weight of a chemical formula?

To calculate molecular weight: 1) Identify all chemical elements present in the formula; 2) Determine the number of atoms of each element, multiplying subscripts inside parentheses by any outer subscript; 3) Multiply each atom count by the standard IUPAC atomic weight of the element; 4) Sum the subtotal masses of all elements to find total molar mass in g/mol.

•How does the calculator handle chemical hydrates (like CuSO4·5H2O)?

Hydrates contain a base salt loosely bound to a specific number of water molecules. The dot (·), asterisk (*), or period (.) indicates hydration. For example, in copper(II) sulfate pentahydrate (CuSO4·5H2O), the 5 before H2O multiplies both the 2 hydrogen atoms (5 × 2 = 10 H) and the 1 oxygen atom (5 × 1 = 5 O), which are then added to the CuSO4 formula to compute the complete hydrated molar mass (249.68 g/mol).

•How do you convert between grams and moles?

The fundamental stoichiometric relationship is: Moles (n) = Mass (m in grams) / Molar Mass (M in g/mol). Conversely, Mass = Moles × Molar Mass. To find the number of individual molecules, multiply the number of moles by Avogadro's number (NA = 6.02214076 × 10²³ molecules/mol).

•What is elemental mass percentage (percent composition)?

Percent composition is the percentage by mass of each individual element in a chemical compound: Mass % of Element = (Total mass of that element in 1 mole / Total molar mass of compound) × 100%. The sum of all elemental mass percentages in a valid compound always equals 100%.

•What is the Hill System of writing chemical formulas?

The Hill System is a standardized chemical notation convention established by Edwin A. Hill in 1900. In organic compounds containing carbon, Carbon (C) is listed first, Hydrogen (H) second, and all remaining elements follow in strict alphabetical order (e.g. C6H12O6, C8H10N4O2). In compounds containing no carbon, all elements (including hydrogen) are listed strictly in alphabetical order.

Related Calculators

Quick Suggestions
Science & Engineering Calculators

Ideal Gas Law Calculator (PV = nRT)

Free online Ideal Gas Law Calculator. Solve for pressure (P), volume (V), temperature (T), or moles (n) with PV = nRT, gas density formulas, standard reference states, and multi-unit conversions.

Open Calculator
Science & Engineering Calculators

Kinetic Energy Calculator (KE = 0.5 · m · v²)

Free online Kinetic Energy Calculator. Solve for kinetic energy (KE), velocity (v), or mass (m) with KE = 0.5·m·v², work-energy braking metrics, and multi-unit conversions.

Open Calculator
Science & Engineering Calculators

Density Calculator (Physics)

Free online Density Calculator (Physics). Solve for density (ρ = m/V), mass (m = ρ×V), or volume (V = m/ρ) with material presets, specific gravity, and buoyancy analysis.

Open Calculator
Science & Engineering Calculators

Hooke's Law Calculator (F = -k · x)

Free online Hooke's Law Calculator. Compute spring force (F = -kx), spring constant (k = F/x), or displacement with step-by-step physics formulas, elastic potential energy, and unit conversions.

Open Calculator
Science & Engineering Calculators

Force Calculator (Physics: F = ma)

Free online Force Calculator. Calculate force, mass, or acceleration using Newton’s Second Law (F = ma) with multi-unit conversions (Newtons, lbf, dyn, kgf) and kinematics problem solving.

Open Calculator
Math & Basic Calculators

Percentage Calculator

Free online percentage calculator. Find percentages, percent change, and percentage difference with step-by-step explanation.

Open Calculator