Need to calculate the molecular weight of a chemical compound? Use this free Molecular Weight Calculator to determine the molecular weight or molar mass from a chemical formula whether you are studying chemistry, working on laboratory calculations, preparing solutions, or solving molecular mass problems, this calculator helps you calculate the total atomic mass of a compound quickly enter a chemical formula, such as H₂O, CO₂, or NaCl, to calculate its molecular weight using the atomic masses of its elements.
Enter a chemical formula using element symbols, numbers and parentheses.
Add a sample mass to calculate the number of moles and molecules.
| Element | Atomic mass | Atom count | Mass % |
|---|
This calculator uses standard approximate atomic weights. Results are expressed in grams per mole (g/mol). Actual atomic weights may vary slightly depending on isotopic composition. This tool is intended for general chemistry calculations.
Follow these steps to calculate molecular weight:
Enter the chemical formula of the compound.
Make sure the element symbols and subscripts are written correctly.
Click the Calculate button.
Review the calculated molecular weight or molar mass.
Check the element-by-element breakdown if your calculator provides one.
For example, enter H₂O to calculate the molecular weight of water.
The result is approximately 18.015 g/mol.
Depending on the calculator’s available features, results may include:
Molecular Weight: The total relative mass of a molecule based on its atomic composition.
Molar Mass: The mass of one mole of the substance, usually expressed in g/mol.
Element Breakdown: The number of atoms of each element in the formula.
Atomic Mass Contribution: The contribution of each element to the total molecular mass.
These results help you understand the composition and mass of a chemical compound.
A Molecular Weight Calculator is an online chemistry tool that calculates the molecular weight of a compound from its chemical formula.
It uses the atomic masses of the elements in the formula and adds their contributions together.
For example, water has the chemical formula H₂O. It contains two hydrogen atoms and one oxygen atom. Adding their atomic masses gives a molecular weight of approximately 18.015.
This calculator is useful for:
Chemistry homework and assignments.
Calculating the molar mass of compounds.
Laboratory solution preparation.
Chemical reaction calculations.
Understanding molecular composition.
Converting between mass and moles when used with other measurements.
Molecular weight is the sum of the relative atomic masses of all atoms in a molecule.
It is commonly expressed as a dimensionless relative value. The corresponding molar mass is expressed in grams per mole (g/mol).
For example, a water molecule contains:
2 hydrogen atoms.
1 oxygen atom.
Using approximate atomic masses:
Hydrogen = 1.008
Oxygen = 15.999
Molecular weight = (2 × 1.008) + 15.999
Molecular Weight = 18.015
The molar mass of water is approximately 18.015 g/mol.
The general formula for calculating molecular weight is:
Molecular Weight = Σ (Number of Atoms × Atomic Mass)
Where:
Number of Atoms: The number of atoms of each element in the chemical formula.
Atomic Mass: The relative atomic mass of each element.
Σ: Means to add the contributions of all elements.
For molar mass, the numerical value is expressed in g/mol.
Calculate the molecular weight of carbon dioxide (CO₂).
Atomic masses:
Carbon (C) = 12.011
Oxygen (O) = 15.999
Calculation:
CO₂ = 12.011 + (2 × 15.999)
CO₂ = 12.011 + 31.998
Molecular Weight = 44.009
Molar mass = 44.009 g/mol
You can calculate molecular weight manually by following these steps.
Identify the correct chemical formula of the compound.
Example: H₂SO₄
Count how many atoms of each element are present.
Hydrogen (H) = 2
Sulfur (S) = 1
Oxygen (O) = 4
Use the approximate atomic masses from the periodic table.
Hydrogen = 1.008
Sulfur = 32.06
Oxygen = 15.999
Hydrogen: 2 × 1.008 = 2.016
Sulfur: 1 × 32.06 = 32.06
Oxygen: 4 × 15.999 = 63.996
2.016 + 32.06 + 63.996 = 98.072
Molecular Weight of H₂SO₄ = 98.072
Molar mass = 98.072 g/mol
Here are common chemical compounds and their approximate molecular weights.
Atomic masses:
Hydrogen = 1.008
Oxygen = 15.999
Calculation:
(2 × 1.008) + 15.999
Result: 18.015 g/mol
Atomic masses:
Carbon = 12.011
Oxygen = 15.999
Calculation:
12.011 + (2 × 15.999)
Result: 44.009 g/mol
Atomic masses:
Sodium = 22.990
Chlorine = 35.45
Calculation:
22.990 + 35.45
Result: 58.44 g/mol
Atomic masses:
Carbon = 12.011
Hydrogen = 1.008
Oxygen = 15.999
Calculation:
(6 × 12.011) + (12 × 1.008) + (6 × 15.999)
72.066 + 12.096 + 95.994
Result: 180.156 g/mol
Atomic masses:
Hydrogen = 1.008
Sulfur = 32.06
Oxygen = 15.999
Calculation:
(2 × 1.008) + 32.06 + (4 × 15.999)
Result: 98.072 g/mol
Atomic masses:
Calcium = 40.078
Carbon = 12.011
Oxygen = 15.999
Calculation:
40.078 + 12.011 + (3 × 15.999)
Result: 100.086 g/mol
The following table contains approximate molar masses of common chemical compounds.
| Compound | Formula | Molar Mass (g/mol) |
|---|---|---|
| Water | H₂O | 18.015 |
| Carbon Dioxide | CO₂ | 44.009 |
| Oxygen Gas | O₂ | 31.998 |
| Nitrogen Gas | N₂ | 28.014 |
| Hydrogen Gas | H₂ | 2.016 |
| Sodium Chloride | NaCl | 58.44 |
| Glucose | C₆H₁₂O₆ | 180.156 |
| Methane | CH₄ | 16.043 |
| Ammonia | NH₃ | 17.031 |
| Sulfuric Acid | H₂SO₄ | 98.072 |
| Calcium Carbonate | CaCO₃ | 100.086 |
| Ethanol | C₂H₆O | 46.069 |
| Acetic Acid | C₂H₄O₂ | 60.052 |
| Sodium Hydroxide | NaOH | 39.997 |
Values are approximate and may vary slightly depending on the atomic-weight values used.
These terms are related but have different meanings.
| Term | Meaning | Common Unit |
|---|---|---|
| Atomic Mass | Mass of an atom, commonly expressed relative to the unified atomic mass unit | u or Da |
| Molecular Weight | Sum of the relative atomic masses in a molecule | Dimensionless |
| Molecular Mass | Actual mass of one molecule | u or Da |
| Molar Mass | Mass of one mole of a substance | g/mol |
In everyday chemistry, molecular weight and molar mass are sometimes used interchangeably. However, they are technically different quantities.
The unified atomic mass unit, represented by u, is a unit used to express the mass of atoms and molecules.
One unified atomic mass unit is defined as one-twelfth of the mass of a carbon-12 atom.
It is also commonly called a dalton (Da).
For example:
One hydrogen atom has an atomic mass of approximately 1.008 u.
One oxygen atom has an atomic mass of approximately 15.999 u.
One water molecule has a molecular mass of approximately 18.015 u.
The molar mass of water has the corresponding numerical value of approximately 18.015 g/mol.
Molecular weight helps you convert the mass of a substance into moles when you know its molar mass.
The formula is:
Moles = Mass ÷ Molar Mass
Where:
Mass is measured in grams.
Molar mass is measured in g/mol.
Moles are measured in mol.
Suppose you have 36 grams of water.
Given:
Mass = 36 g
Molar mass of water = 18.015 g/mol
Calculation:
Moles = 36 ÷ 18.015
Result ≈ 1.998 mol
This is approximately 2 moles of water.
Molecular weight is generally used for substances made of molecules, such as water, carbon dioxide, and glucose.
Formula mass is commonly used for ionic compounds, which do not exist as separate individual molecules in the same way.
For example, sodium chloride (NaCl) is an ionic compound. Its formula mass is calculated by adding the atomic masses of sodium and chlorine.
NaCl = 22.990 + 35.45
Formula Mass = 58.44 u
Its molar mass is approximately 58.44 g/mol.
Several factors can influence the accuracy of a molecular weight calculation.
The formula must contain the correct element symbols and subscripts. A small typing mistake can produce a different result.
Atomic masses may be listed with slightly different precision in different periodic tables.
Chemical formulas may contain groups in parentheses. The subscript outside the parentheses applies to every atom inside the group.
For example, Ca(OH)₂ contains:
1 calcium atom.
2 oxygen atoms.
2 hydrogen atoms.
Some compounds contain water molecules as part of their crystal structure.
For example, CuSO₄·5H₂O contains one copper sulfate unit and five water molecules. The water molecules must be included in the total molar mass.
Elements can have different isotopes. Standard atomic weights generally represent natural isotopic abundance, while a compound containing specific isotopes may have a different molecular mass.
Molecular weight is important in chemistry because it connects the microscopic composition of substances with measurable laboratory quantities.
Common applications include:
Chemistry Education: Solving molecular mass and mole-conversion problems.
Laboratory Work: Calculating the amount of material needed for experiments.
Solution Preparation: Determining how much solute is required for a specific concentration.
Chemical Reactions: Converting between grams and moles.
Pharmaceutical Research: Supporting calculations involving chemical substances.
Industrial Chemistry: Estimating material quantities in chemical processes.
A Molecular Weight Calculator calculates the mass associated with a chemical formula. A Molarity Calculator determines the concentration of a solution in moles per liter.
| Feature | Molecular Weight Calculator | Molarity Calculator |
|---|---|---|
| Main Purpose | Calculate molecular weight or molar mass | Calculate solution concentration |
| Main Input | Chemical formula | Moles and solution volume |
| Typical Result | g/mol or relative molecular mass | mol/L |
| Common Use | Chemical mass calculations | Solution concentration calculations |
A Molecular Weight Calculator is an online chemistry tool that calculates the molecular weight or molar mass of a compound from its chemical formula.
Multiply the atomic mass of each element by the number of its atoms in the formula, then add all the contributions together.
The general formula is the sum of each element’s atomic mass multiplied by the number of atoms of that element.
The molecular weight of water (H₂O) is approximately 18.015. Its molar mass is approximately 18.015 g/mol.
The molar mass of sodium chloride (NaCl) is approximately 58.44 g/mol.
They are closely related but technically different. Molecular weight is dimensionless, while molar mass is expressed in units such as g/mol. Their numerical values are often nearly identical when using u and g/mol.
Count the atoms of each element, multiply each count by its atomic mass, and add the results. The final molar mass is expressed in g/mol.
Molecular mass refers to the mass of an individual molecule. Formula mass is commonly used for ionic compounds and is calculated from the atoms represented in their chemical formula.
Yes, provided the calculator supports the formula’s notation, including parentheses, subscripts, and hydrate notation where applicable.
Yes. You can use this Molecular Weight Calculator for free without registration or a subscription.
A few of the most-used tools in each hub.
This Molecular Weight Calculator is provided for educational and general chemistry calculation purposes. Results depend on the accuracy of the entered chemical formula and the atomic mass values used atomic weights may vary slightly depending on the reference data and isotopic composition. Complex formulas, hydrates, ionic compounds, and unusual chemical notation may require additional interpretation always verify important laboratory calculations using reliable chemical reference data and follow appropriate laboratory safety procedures. This calculator is not a substitute for professional laboratory guidance.