School and math

Molecular weight calculator

Type a chemical formula or a name and get its molar mass, the molecular weight in g/mol, with every step shown: carbon dioxide, CO2, is 12.011 + 2 × 15.999 = 44.009 g/mol. It reads brackets, hydrates, ions and lowercase typing such as nacl, turns grams into moles, moles into grams and moles into atoms, and can use the rounded atomic masses on your exam board’s periodic table.

Worked example

CO₂ (carbon dioxide) → 44.009 g/mol: 12.011 + 2 × 15.999

Work out the molar mass of sulfuric acid

  1. Type a formula or a name

    98.07 g/mol for H2SO4, with the sum 2 × 1.0080 + 32.06 + 4 × 15.999 under it. Lowercase (h2so4), names (baking soda), brackets and hydrates such as CuSO4·5H2O all work.

    Example H2SO4
  2. Use your board’s periodic table

    Mark schemes add up the board’s own rounded masses: AQA GCSE gives 2 + 32 + 64 = 98, the AP table 98.076.

    Example 98
  3. Turn grams into moles

    10 g of sulfuric acid is 0.102 mol, or 6.14 × 10²² molecules. Moles → grams works the same way the other round.

    Example 0.102 mol
  4. Count molecules instead

    Type a number of particles such as 3.01e23: that many molecules of sulfuric acid is 0.500 mol, which weighs 49.0 g.

    Example 0.500 mol

Watch: is oxygen 16 or 32 g/mol?

Recorded on this page by Jeremiah Say, 20 Nov 2026 · 3:11 · no sound, captions on screen

What the video shows, in words
  1. 0:00 Molar mass of oxygen: 16 or 32? Guess first Two answer keys give oxygen two numbers: 16 g/mol and 32 g/mol. Which is right?
  2. 0:13 One oxygen atom, O: 15.999 g/mol Type “oxygen” and the calculator gives the atom, O: 15.999 g/mol. That’s the 16.
  3. 0:24 Oxygen gas, O₂: 31.998 g/mol The gas you breathe is two atoms joined, O₂: 2 × 15.999 = 31.998 g/mol. That’s the 32.
  4. 0:34 The seven two-atom elements H₂, N₂, O₂, F₂, Cl₂, Br₂ and I₂: if a question says “gas”, or the equation has O₂ in it, double the atom.
  5. 0:49 How to calculate molar mass: CO₂ is 44.009 Count the atoms, multiply each by its atomic mass, add: 12.011 + 2 × 15.999 = 44.009 g/mol.
  6. 0:59 The working, element by element The working lists each element’s atoms, its mass, its share of the total (carbon 27.29%) and the decimal places kept.
  7. 1:13 Brackets: al2so43 is Al₂(SO₄)₃, 342.13 Read literally “al2so43” is aluminium with 43 oxygen atoms; the calculator puts the brackets back and says so.
  8. 1:27 A hydrate: CuSO₄·5H₂O is 249.68 The water after the dot counts in full, five waters at 18.015 each. A full stop works for the dot.
  9. 1:39 Water: 18.015, 18 or 18.016? Exact CIAAW masses give 18.015 g/mol; GCSE tables (H = 1, O = 16) give 18; the AP table gives 18.016. Pick your board.
  10. 2:18 Grams to moles: 10 g of CO₂ is 0.227 mol moles = grams ÷ molar mass: 10 ÷ 44.009 = 0.227 mol, which is 1.37 × 10²³ molecules.
  11. 2:35 Molecules to moles: 3.01 × 10²³ is 0.500 mol One mole is exactly 6.02214076 × 10²³ particles, so half that many CO₂ molecules are 0.500 mol and weigh 22.0 g.
  12. 2:46 Checked against OpenStax Chemistry 2e Ten worked examples from OpenStax §3.1 run through the calculator on every build; a mismatch blocks the page.
  13. 2:58 Try yours Any formula or name, every step, grams to moles and atoms, and your exam board’s masses.

Watch on YouTube (opens in a new tab)

School and math: 26 more videos

How to calculate molar mass

Molar mass is the mass of one mole of a substance, and it is the sum of the atomic masses of every atom in the formula. Four steps, shown here on the tool’s starting formula:

  1. Read the formula. CO2 is one carbon atom and two oxygen atoms. A number written after a symbol counts that symbol only; no number means one.
  2. Look up each atomic mass. Carbon is 12.011 and oxygen 15.999, from the periodic table (or the table below).
  3. Multiply by the number of atoms. 1 × 12.011 = 12.011 for carbon, 2 × 15.999 = 31.998 for oxygen.
  4. Add them up. 12.011 + 31.998 = 44.009 g/mol. One mole of carbon dioxide, 6.022 × 1023 molecules, weighs 44.009 grams.
CO₂the formula1 C, 2 Ocount atoms× 12.011× 15.99912.011+ 31.99844.009g/molBrackets and hydrates only change the count; the method stays the same.
Molar mass in four moves, on carbon dioxide, the formula people look up most.

Brackets and hydrates

A number after a bracket multiplies everything inside it. Calcium hydroxide, Ca(OH)2, has one calcium, two oxygens and two hydrogens: 40.078 + 2 × 15.999 + 2 × 1.0080 = 74.092 g/mol. A hydrate’s water comes after a dot and counts in full: copper(II) sulfate pentahydrate, CuSO4·5H2O, is the 159.60 g/mol of CuSO4 plus five waters at 18.015 each, 249.68 g/mol. In the calculator, type the dot as a full stop or an asterisk if your keyboard has no ·.

Typing without brackets is a common slip. In the search data behind this page, “al2so43” comes up thousands of times a month: read literally that is aluminium with 43 oxygen atoms. The calculator reads it as Al2(SO4)3, says so, and offers the literal reading in case it was meant. It does the same for spaces (“ca oh 2”), and for a zero typed in place of the letter O (“h20”). The working also gives each element’s percent by mass; to go the other way, from percentages to a formula, use the empirical formula calculator.

Molar mass, molecular weight, formula mass: which is which

Chemistry uses several names for the same number, and they differ only in the unit and in what they describe. Water is 18.015 in every one of them.

NameUnitWhat it means
Molar mass (M)g/molThe mass of one mole of the substance. What you use to convert grams and moles.
Molecular weight, molecular massu or Da (daltons), or no unitThe mass of one molecule, in atomic mass units. Strictly “relative molecular mass” has no unit.
Formula mass, formula weightuThe same sum for an ionic compound such as NaCl, which has formula units instead of molecules.
Relative formula mass (Mr)noneThe name UK GCSE and A-level papers use. It is a ratio to one-twelfth of a carbon-12 atom, so no unit.
Gram formula massgThe molar mass written as a mass in grams. An older US textbook term.
One mole holds 6.02214076 × 10²³ particles and 1 u is one-twelfth of a carbon-12 atom, so the number in g/mol and in u is the same by design.

So “molecular weight vs molar mass” is a question about units, not values. If a question asks for Mr, give the number without a unit; if it asks for molar mass, add g/mol.

Molar mass of common compounds

The 40 formulas people look up most, ranked by how often “molar mass of …” and “molecular weight of …” were searched each month in the US (keyword data, November 2026). Carbon dioxide is first by a distance; the rest is a mix of homework staples and lab reagents. The GCSE column is the sum of the values printed on the AQA and Edexcel GCSE tables. The AP Chemistry table’s sums come within 0.02 of the exact column on every row; pick AP Chemistry in the calculator for its own figure.

CompoundMolar mass (g/mol)GCSE table
Carbon dioxide, CO244.00944
Water, H2O18.01518
Sodium hydroxide, NaOH39.99740
Oxygen gas, O231.99832
Sodium chloride, NaCl58.4458.5
Hydrogen gas, H22.01602
Ammonia, NH317.03117
Sulfuric acid, H2SO498.0798
Calcium carbonate, CaCO3100.086100
Ethanol, C2H5OH46.06946
Nitrogen gas, N228.01428
Potassium chloride, KCl74.5574.5
Methane, CH416.04316
Hydrogen chloride, HCl36.4636.5
Carbon monoxide, CO28.01028
Sulfur dioxide, SO264.0664
Glucose, C6H12O6180.156180
Sodium carbonate, Na2CO3105.988106
Calcium chloride, CaCl2110.98111.0
Aluminium sulfate, Al2(SO4)3342.13342
Potassium hydroxide, KOH56.10556
Copper sulfate, CuSO4159.60159.5
Acetic acid, CH3COOH60.05260
Sodium bicarbonate, NaHCO384.00684
Magnesium oxide, MgO40.30440
Silver nitrate, AgNO3169.87170
Sucrose, C12H22O11342.297342
Sodium sulfate, Na2SO4142.04142
Aspirin, C9H8O4180.159180
Chlorine gas, Cl270.9071.0
Hexane, C6H1486.17886
Salicylic acid, C7H6O3138.122138
Propane, C3H844.09744
Magnesium chloride, MgCl295.2195.0
Methanol, CH3OH32.04232
Acetone, C3H6O58.08058
Phosphoric acid, H3PO497.99498
Potassium iodide, KI166.00166
Ammonium sulfate, (NH4)2SO4132.13132
Aluminium oxide, Al2O3101.961102
Exact column: CIAAW 2024 atomic masses, rounded to the decimal places of the least precise one used. Every value worked out by the calculator. Ranking: US monthly searches, all wordings of each formula added together.

Some rows are worth a second look. Searches for hydrogen, oxygen and nitrogen “gas” want the molecule (H2, O2, N2), not the atom; the next section explains the difference. Ethanol is searched as both ethanol and ethyl alcohol. At GCSE, sodium hydroxide comes out a whole number: 23 + 16 + 1 = 40.

Why “molar mass of oxygen” has two answers

Seven elements exist as two-atom molecules: hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine and iodine. “The molar mass of oxygen” can mean the atom, 15.999 g/mol, or the gas you breathe, O2, 31.998 g/mol. A question about oxygen gas, or a reaction equation with O2 in it, wants the second. Type an element’s name in the calculator and it gives the atom, with a link to the molecule.

ElementAtom (g/mol)MoleculeMolecule (g/mol)
Hydrogen1.0080H22.0160
Nitrogen14.007N228.014
Oxygen15.999O231.998
Fluorine18.998F237.996
Chlorine35.45Cl270.90
Bromine79.904Br2159.808
Iodine126.90I2253.80
CIAAW 2024 atomic masses. The molecule is exactly twice the atom.

Grams to moles and moles to grams

Molar mass is the conversion factor between the mass you weigh and the number of particles you count in moles:

  • moles = grams ÷ molar mass
  • grams = moles × molar mass

10 g of carbon dioxide in moles

10 ÷ 44.009 = 0.227 mol. Pick Grams → moles in the calculator and it also gives the molecules, 1.37 × 1023, and the atoms, 4.11 × 1023, since each molecule has three.

0.500 mol of sodium chloride in grams

0.500 × 58.44 = 29.2 g. That is how a lab weighs out a 0.500 M solution: 29.2 g of salt made up to 1 litre.

The calculator gives the answer to as many significant figures as the amount you typed (at least three), which is the rule most mark schemes follow. Type 10 and you get three figures; type 10.00 and you get four. To round a figure to a set number yourself, use the rounding calculator. For a solution, concentration in mol/L is moles ÷ litres.

Moles to atoms and molecules

One mole is exactly 6.02214076 × 1023 particles, the Avogadro constant. Since the 2019 redefinition of the SI that number is fixed by definition, with no uncertainty; textbooks round it to 6.022 × 1023. To count particles, multiply moles by it; to count atoms, also multiply by the atoms in each formula.

1.00 g of water

1.00 ÷ 18.015 = 0.0555 mol, which is 3.34 × 1022 water molecules. Each has three atoms, so 1.00 × 1023 atoms in all: 6.69 × 1022 of hydrogen and half that of oxygen.

The calculator’s Atoms → moles works the other way: type a number of particles such as 3.01 × 10^23 (or 3.01e23) and it gives the moles and the mass. Molecules, formula units and atoms are all “particles”; it names the right one for the formula, so NaCl gives formula units and a metal gives atoms.

Your exam board’s answer

Exact atomic masses come from CIAAW, the IUPAC commission that sets them. Exam boards print rounded values on the periodic table they hand out, and their mark schemes add those up as printed. So the right answer depends on the table: water is 18.015 with CIAAW, 18.016 on the AP Chemistry table, 18.0 on the A-level tables and 18 at GCSE. Pick your board under Atomic masses and the calculator uses its table, digit for digit.

FormulaExactAQA GCSEEdexcel GCSEOCR GCSE (Gateway)AQA A-levelEdexcel A-levelOCR A-level (Chem A)AP Chemistry
H2O18.015181818.018.018.018.018.016
CO244.009444444.044.044.044.044.01
NaCl58.4458.558.558.558.558.558.558.44
H2SO498.07989898.198.198.198.198.076
CaCO3100.086100100100.1100.1100.1100.1100.09
C6H12O6180.156180180180.0180.0180.0180.0180.156
CuSO4·5H2O249.68249.5249.5249.6249.6249.6249.6249.690
Each table’s printed atomic masses, read 20 November 2026 from the papers and data sheets listed in the sources, added up by the calculator. AQA and Edexcel print whole numbers at GCSE except chlorine (35.5) and copper (63.5).

The tables also differ in what they print. The GCSE tables leave out the lanthanides and actinides, so for cerium dioxide the calculator uses the CIAAW value for cerium and marks it with an asterisk; Edexcel’s A-level table prints those elements to whole numbers (CeO2 = 172.0), and only AQA’s A-level table and AP’s give protactinium a mass. Elements such as technetium and plutonium have no stable isotope and no standard atomic weight: tables print a mass number in [brackets], and the calculator says so instead of guessing.

How many decimal places?

Atomic masses aren’t perfectly fixed. Natural samples vary slightly in their mix of isotopes, so CIAAW gives each one with an uncertainty: hydrogen is 1.0080 ± 0.0002, carbon 12.011 ± 0.002. Added up for water, that is about ±0.0014, which is why 18.015 and not 18.01528 is the honest answer.

With exact values, the calculator follows the addition rule: the answer gets as many decimal places as the least precise atomic mass in the sum. Sodium is 22.990 and chlorine 35.45, so NaCl is 58.44, not 58.440. With an exam table it adds the printed values as they are, as the mark scheme does: 23 + 35.5 = 58.5 at GCSE.

Air, ions and other special cases

Air isn’t a compound, so it has no formula to add up. Its molar mass is an average over the gases in it, mostly nitrogen and oxygen: 28.9644 g/mol for dry air, the value in the U.S. Standard Atmosphere, 1976. Damp air is slightly lighter, because water vapour (18.015) takes the place of heavier gases. Type “air” in the calculator to get it.

An ion such as sulfate, SO42−, has the same molar mass as its atoms, 96.06 g/mol: the two extra electrons add 0.0011 g/mol, far below the last decimal place. The calculator accepts charges written SO4^2-, SO4 2- or NH4+ and says how much they change.

Proteins and DNA are better worked out from their sequence than from a formula with thousands of atoms; this calculator is for compounds you can write as a formula.

OpenStax’s mole examples, re-run

OpenStax’s free Chemistry 2e textbook works molar mass and mole conversions through in section 3.1, with atomic masses that match the AP Chemistry table. Each example goes into this calculator with that table picked, rounded to the figures the book prints, and the page build stops if any answer differs. Last run 20 November 2026.

ExampleWhere it’s printedOpenStax’s answerThis calculator
Acetaminophen, C8H9NO2: molecular massOpenStax Chemistry 2e, Example 3.1151.16 amu151.16 amu
Calcium phosphate, Ca3(PO4)2: formula massOpenStax Chemistry 2e, Example 3.2310.18 amu310.18 amu
4.7 g of potassium in molesOpenStax Chemistry 2e, Example 3.30.12 mol0.12 mol
3.24 g of beryllium in molesOpenStax Chemistry 2e, Example 3.30.360 mol0.360 mol
9.2 × 10−4 mol of argon in gramsOpenStax Chemistry 2e, Example 3.40.037 g0.037 g
Copper atoms in 5.00 g of copper wireOpenStax Chemistry 2e, Example 3.54.74 × 10²²4.74 × 10²²
Show the other 4 checks
ExampleWhere it’s printedOpenStax’s answerThis calculator
28.35 g of glycine, C2H5O2N, in molesOpenStax Chemistry 2e, Example 3.60.3776 mol0.3776 mol
25 g of sucrose in molesOpenStax Chemistry 2e, Example 3.60.073 mol0.073 mol
1.42 × 10−4 mol of vitamin C, C6H8O6, in gramsOpenStax Chemistry 2e, Example 3.70.0250 g0.0250 g
0.443 mol of hydrazine, N2H4, in gramsOpenStax Chemistry 2e, Example 3.714.2 g14.2 g

Two of the book’s answers about gold differ from ours in the last digit, and the arithmetic explains both. 2.561 mol × 196.97 g/mol is 504.44 g, which OpenStax prints as 504.5 (that needs gold at 197.0). And 15.00 g ÷ 196.97 × 6.022 × 1023 is 4.5861 × 1022 atoms, printed as 4.585. The calculator gives 504.4 g and 4.586 × 1022.

Molar mass of every element

The 84 elements with a standard atomic weight, which is also each element’s molar mass in g/mol. The ± is CIAAW’s uncertainty, from natural variation in isotopes. The other 34 elements, from technetium to oganesson, have no stable isotope and so no standard atomic weight.

No.ElementSymbolg/mol
1HydrogenH1.0080 ± 0.0002
2HeliumHe4.0026 ± 0.0001
3LithiumLi6.94 ± 0.06
4BerylliumBe9.0122 ± 0.0001
5BoronB10.81 ± 0.02
6CarbonC12.011 ± 0.002
7NitrogenN14.007 ± 0.001
8OxygenO15.999 ± 0.001
9FluorineF18.998 ± 0.001
10NeonNe20.180 ± 0.001
11SodiumNa22.990 ± 0.001
12MagnesiumMg24.305 ± 0.002
13AluminiumAl26.982 ± 0.001
14SiliconSi28.085 ± 0.001
15PhosphorusP30.974 ± 0.001
16SulfurS32.06 ± 0.02
17ChlorineCl35.45 ± 0.01
18ArgonAr39.95 ± 0.16
19PotassiumK39.098 ± 0.001
20CalciumCa40.078 ± 0.004
21ScandiumSc44.956 ± 0.001
22TitaniumTi47.867 ± 0.001
23VanadiumV50.942 ± 0.001
24ChromiumCr51.996 ± 0.001
25ManganeseMn54.938 ± 0.001
26IronFe55.845 ± 0.002
27CobaltCo58.933 ± 0.001
28NickelNi58.693 ± 0.001
29CopperCu63.546 ± 0.003
30ZincZn65.38 ± 0.02
31GalliumGa69.723 ± 0.001
32GermaniumGe72.630 ± 0.008
33ArsenicAs74.922 ± 0.001
34SeleniumSe78.971 ± 0.008
35BromineBr79.904 ± 0.003
36KryptonKr83.798 ± 0.002
37RubidiumRb85.468 ± 0.001
38StrontiumSr87.62 ± 0.01
39YttriumY88.906 ± 0.001
40ZirconiumZr91.222 ± 0.003
41NiobiumNb92.906 ± 0.001
42MolybdenumMo95.95 ± 0.01
44RutheniumRu101.07 ± 0.02
45RhodiumRh102.91 ± 0.01
46PalladiumPd106.42 ± 0.01
47SilverAg107.87 ± 0.01
48CadmiumCd112.41 ± 0.01
49IndiumIn114.82 ± 0.01
50TinSn118.71 ± 0.01
51AntimonySb121.76 ± 0.01
52TelluriumTe127.60 ± 0.03
53IodineI126.90 ± 0.01
54XenonXe131.29 ± 0.01
55CaesiumCs132.91 ± 0.01
56BariumBa137.33 ± 0.01
57LanthanumLa138.91 ± 0.01
58CeriumCe140.12 ± 0.01
59PraseodymiumPr140.91 ± 0.01
60NeodymiumNd144.24 ± 0.01
62SamariumSm150.36 ± 0.02
63EuropiumEu151.96 ± 0.01
64GadoliniumGd157.25 ± 0.01
65TerbiumTb158.93 ± 0.01
66DysprosiumDy162.50 ± 0.01
67HolmiumHo164.93 ± 0.01
68ErbiumEr167.26 ± 0.01
69ThuliumTm168.93 ± 0.01
70YtterbiumYb173.05 ± 0.02
71LutetiumLu174.97 ± 0.01
72HafniumHf178.49 ± 0.01
73TantalumTa180.95 ± 0.01
74TungstenW183.84 ± 0.01
75RheniumRe186.21 ± 0.01
76OsmiumOs190.23 ± 0.03
77IridiumIr192.22 ± 0.01
78PlatinumPt195.08 ± 0.02
79GoldAu196.97 ± 0.01
80MercuryHg200.59 ± 0.01
81ThalliumTl204.38 ± 0.01
82LeadPb207.2 ± 1.1
83BismuthBi208.98 ± 0.01
90ThoriumTh232.04 ± 0.01
91ProtactiniumPa231.04 ± 0.01
92UraniumU238.03 ± 0.01
CIAAW abridged standard atomic weights, 2024 table. The calculator uses these values when Exact is picked.

Questions

Is molecular weight the same as molar mass?

The number is the same; the unit differs. Molar mass is grams per mole (water: 18.015 g/mol); molecular weight is the mass of one molecule in daltons (18.015 u), or a plain ratio with no unit when it is called relative molecular mass.

What is the molar mass of water?

18.015 g/mol with exact atomic masses: 2 × 1.0080 + 15.999. Textbooks often round it to 18.02, the AP table gives 18.016, and GCSE tables give 18.

How do I find the molar mass of an element?

Read its atomic mass off the periodic table and add the unit g/mol: carbon is 12.011 g/mol. For an element that exists as a molecule (hydrogen, nitrogen, oxygen, the halogens), double it for the gas.

Why is my textbook’s answer slightly different?

Its periodic table rounds the atomic masses differently. A textbook using 16.00 for oxygen and 1.008 for hydrogen gets 18.02 for water where exact values give 18.015. Pick the table your course uses under Atomic masses.

Do I include the water in a hydrate?

Yes, if the formula has it. CuSO4·5H2O is 249.68 g/mol; anhydrous CuSO4 is 159.60 g/mol. Use the one you are weighing.

What is monoisotopic mass?

The mass of a molecule made only of each element’s most common isotope, used in mass spectrometry. It differs from the molar mass here, which averages over the natural mix of isotopes: a mass spectrum of water shows a peak near 18.011, not 18.015. This calculator gives the average, which is what weighing and stoichiometry use.

Sources

Show the other 3 sources

How sources are chosen and checked: editorial policy · these sources in the library, with the other tools that use them

Scroll to Top