Worked example
CO₂ (carbon dioxide) → 44.009 g/mol: 12.011 + 2 × 15.999
Work out the molar mass of sulfuric acid
-
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.
-
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.
-
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.
-
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.
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:
- 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.
- Look up each atomic mass. Carbon is 12.011 and oxygen 15.999, from the periodic table (or the table below).
- Multiply by the number of atoms. 1 × 12.011 = 12.011 for carbon, 2 × 15.999 = 31.998 for oxygen.
- Add them up. 12.011 + 31.998 = 44.009 g/mol. One mole of carbon dioxide, 6.022 × 1023 molecules, weighs 44.009 grams.
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.
| Name | Unit | What it means |
|---|---|---|
| Molar mass (M) | g/mol | The mass of one mole of the substance. What you use to convert grams and moles. |
| Molecular weight, molecular mass | u or Da (daltons), or no unit | The mass of one molecule, in atomic mass units. Strictly “relative molecular mass” has no unit. |
| Formula mass, formula weight | u | The same sum for an ionic compound such as NaCl, which has formula units instead of molecules. |
| Relative formula mass (Mr) | none | The 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 mass | g | The molar mass written as a mass in grams. An older US textbook term. |
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.
| Compound | Molar mass (g/mol) | GCSE table |
|---|---|---|
| Carbon dioxide, CO2 | 44.009 | 44 |
| Water, H2O | 18.015 | 18 |
| Sodium hydroxide, NaOH | 39.997 | 40 |
| Oxygen gas, O2 | 31.998 | 32 |
| Sodium chloride, NaCl | 58.44 | 58.5 |
| Hydrogen gas, H2 | 2.0160 | 2 |
| Ammonia, NH3 | 17.031 | 17 |
| Sulfuric acid, H2SO4 | 98.07 | 98 |
| Calcium carbonate, CaCO3 | 100.086 | 100 |
| Ethanol, C2H5OH | 46.069 | 46 |
| Nitrogen gas, N2 | 28.014 | 28 |
| Potassium chloride, KCl | 74.55 | 74.5 |
| Methane, CH4 | 16.043 | 16 |
| Hydrogen chloride, HCl | 36.46 | 36.5 |
| Carbon monoxide, CO | 28.010 | 28 |
| Sulfur dioxide, SO2 | 64.06 | 64 |
| Glucose, C6H12O6 | 180.156 | 180 |
| Sodium carbonate, Na2CO3 | 105.988 | 106 |
| Calcium chloride, CaCl2 | 110.98 | 111.0 |
| Aluminium sulfate, Al2(SO4)3 | 342.13 | 342 |
| Potassium hydroxide, KOH | 56.105 | 56 |
| Copper sulfate, CuSO4 | 159.60 | 159.5 |
| Acetic acid, CH3COOH | 60.052 | 60 |
| Sodium bicarbonate, NaHCO3 | 84.006 | 84 |
| Magnesium oxide, MgO | 40.304 | 40 |
| Silver nitrate, AgNO3 | 169.87 | 170 |
| Sucrose, C12H22O11 | 342.297 | 342 |
| Sodium sulfate, Na2SO4 | 142.04 | 142 |
| Aspirin, C9H8O4 | 180.159 | 180 |
| Chlorine gas, Cl2 | 70.90 | 71.0 |
| Hexane, C6H14 | 86.178 | 86 |
| Salicylic acid, C7H6O3 | 138.122 | 138 |
| Propane, C3H8 | 44.097 | 44 |
| Magnesium chloride, MgCl2 | 95.21 | 95.0 |
| Methanol, CH3OH | 32.042 | 32 |
| Acetone, C3H6O | 58.080 | 58 |
| Phosphoric acid, H3PO4 | 97.994 | 98 |
| Potassium iodide, KI | 166.00 | 166 |
| Ammonium sulfate, (NH4)2SO4 | 132.13 | 132 |
| Aluminium oxide, Al2O3 | 101.961 | 102 |
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.
| Element | Atom (g/mol) | Molecule | Molecule (g/mol) |
|---|---|---|---|
| Hydrogen | 1.0080 | H2 | 2.0160 |
| Nitrogen | 14.007 | N2 | 28.014 |
| Oxygen | 15.999 | O2 | 31.998 |
| Fluorine | 18.998 | F2 | 37.996 |
| Chlorine | 35.45 | Cl2 | 70.90 |
| Bromine | 79.904 | Br2 | 159.808 |
| Iodine | 126.90 | I2 | 253.80 |
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.
| Formula | Exact | AQA GCSE | Edexcel GCSE | OCR GCSE (Gateway) | AQA A-level | Edexcel A-level | OCR A-level (Chem A) | AP Chemistry |
|---|---|---|---|---|---|---|---|---|
| H2O | 18.015 | 18 | 18 | 18.0 | 18.0 | 18.0 | 18.0 | 18.016 |
| CO2 | 44.009 | 44 | 44 | 44.0 | 44.0 | 44.0 | 44.0 | 44.01 |
| NaCl | 58.44 | 58.5 | 58.5 | 58.5 | 58.5 | 58.5 | 58.5 | 58.44 |
| H2SO4 | 98.07 | 98 | 98 | 98.1 | 98.1 | 98.1 | 98.1 | 98.076 |
| CaCO3 | 100.086 | 100 | 100 | 100.1 | 100.1 | 100.1 | 100.1 | 100.09 |
| C6H12O6 | 180.156 | 180 | 180 | 180.0 | 180.0 | 180.0 | 180.0 | 180.156 |
| CuSO4·5H2O | 249.68 | 249.5 | 249.5 | 249.6 | 249.6 | 249.6 | 249.6 | 249.690 |
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.
| Example | Where it’s printed | OpenStax’s answer | This calculator |
|---|---|---|---|
| Acetaminophen, C8H9NO2: molecular mass | OpenStax Chemistry 2e, Example 3.1 | 151.16 amu | 151.16 amu |
| Calcium phosphate, Ca3(PO4)2: formula mass | OpenStax Chemistry 2e, Example 3.2 | 310.18 amu | 310.18 amu |
| 4.7 g of potassium in moles | OpenStax Chemistry 2e, Example 3.3 | 0.12 mol | 0.12 mol |
| 3.24 g of beryllium in moles | OpenStax Chemistry 2e, Example 3.3 | 0.360 mol | 0.360 mol |
| 9.2 × 10−4 mol of argon in grams | OpenStax Chemistry 2e, Example 3.4 | 0.037 g | 0.037 g |
| Copper atoms in 5.00 g of copper wire | OpenStax Chemistry 2e, Example 3.5 | 4.74 × 10²² | 4.74 × 10²² |
Show the other 4 checks
| Example | Where it’s printed | OpenStax’s answer | This calculator |
|---|---|---|---|
| 28.35 g of glycine, C2H5O2N, in moles | OpenStax Chemistry 2e, Example 3.6 | 0.3776 mol | 0.3776 mol |
| 25 g of sucrose in moles | OpenStax Chemistry 2e, Example 3.6 | 0.073 mol | 0.073 mol |
| 1.42 × 10−4 mol of vitamin C, C6H8O6, in grams | OpenStax Chemistry 2e, Example 3.7 | 0.0250 g | 0.0250 g |
| 0.443 mol of hydrazine, N2H4, in grams | OpenStax Chemistry 2e, Example 3.7 | 14.2 g | 14.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. | Element | Symbol | g/mol |
|---|---|---|---|
| 1 | Hydrogen | H | 1.0080 ± 0.0002 |
| 2 | Helium | He | 4.0026 ± 0.0001 |
| 3 | Lithium | Li | 6.94 ± 0.06 |
| 4 | Beryllium | Be | 9.0122 ± 0.0001 |
| 5 | Boron | B | 10.81 ± 0.02 |
| 6 | Carbon | C | 12.011 ± 0.002 |
| 7 | Nitrogen | N | 14.007 ± 0.001 |
| 8 | Oxygen | O | 15.999 ± 0.001 |
| 9 | Fluorine | F | 18.998 ± 0.001 |
| 10 | Neon | Ne | 20.180 ± 0.001 |
| 11 | Sodium | Na | 22.990 ± 0.001 |
| 12 | Magnesium | Mg | 24.305 ± 0.002 |
| 13 | Aluminium | Al | 26.982 ± 0.001 |
| 14 | Silicon | Si | 28.085 ± 0.001 |
| 15 | Phosphorus | P | 30.974 ± 0.001 |
| 16 | Sulfur | S | 32.06 ± 0.02 |
| 17 | Chlorine | Cl | 35.45 ± 0.01 |
| 18 | Argon | Ar | 39.95 ± 0.16 |
| 19 | Potassium | K | 39.098 ± 0.001 |
| 20 | Calcium | Ca | 40.078 ± 0.004 |
| 21 | Scandium | Sc | 44.956 ± 0.001 |
| 22 | Titanium | Ti | 47.867 ± 0.001 |
| 23 | Vanadium | V | 50.942 ± 0.001 |
| 24 | Chromium | Cr | 51.996 ± 0.001 |
| 25 | Manganese | Mn | 54.938 ± 0.001 |
| 26 | Iron | Fe | 55.845 ± 0.002 |
| 27 | Cobalt | Co | 58.933 ± 0.001 |
| 28 | Nickel | Ni | 58.693 ± 0.001 |
| 29 | Copper | Cu | 63.546 ± 0.003 |
| 30 | Zinc | Zn | 65.38 ± 0.02 |
| 31 | Gallium | Ga | 69.723 ± 0.001 |
| 32 | Germanium | Ge | 72.630 ± 0.008 |
| 33 | Arsenic | As | 74.922 ± 0.001 |
| 34 | Selenium | Se | 78.971 ± 0.008 |
| 35 | Bromine | Br | 79.904 ± 0.003 |
| 36 | Krypton | Kr | 83.798 ± 0.002 |
| 37 | Rubidium | Rb | 85.468 ± 0.001 |
| 38 | Strontium | Sr | 87.62 ± 0.01 |
| 39 | Yttrium | Y | 88.906 ± 0.001 |
| 40 | Zirconium | Zr | 91.222 ± 0.003 |
| 41 | Niobium | Nb | 92.906 ± 0.001 |
| 42 | Molybdenum | Mo | 95.95 ± 0.01 |
| 44 | Ruthenium | Ru | 101.07 ± 0.02 |
| 45 | Rhodium | Rh | 102.91 ± 0.01 |
| 46 | Palladium | Pd | 106.42 ± 0.01 |
| 47 | Silver | Ag | 107.87 ± 0.01 |
| 48 | Cadmium | Cd | 112.41 ± 0.01 |
| 49 | Indium | In | 114.82 ± 0.01 |
| 50 | Tin | Sn | 118.71 ± 0.01 |
| 51 | Antimony | Sb | 121.76 ± 0.01 |
| 52 | Tellurium | Te | 127.60 ± 0.03 |
| 53 | Iodine | I | 126.90 ± 0.01 |
| 54 | Xenon | Xe | 131.29 ± 0.01 |
| 55 | Caesium | Cs | 132.91 ± 0.01 |
| 56 | Barium | Ba | 137.33 ± 0.01 |
| 57 | Lanthanum | La | 138.91 ± 0.01 |
| 58 | Cerium | Ce | 140.12 ± 0.01 |
| 59 | Praseodymium | Pr | 140.91 ± 0.01 |
| 60 | Neodymium | Nd | 144.24 ± 0.01 |
| 62 | Samarium | Sm | 150.36 ± 0.02 |
| 63 | Europium | Eu | 151.96 ± 0.01 |
| 64 | Gadolinium | Gd | 157.25 ± 0.01 |
| 65 | Terbium | Tb | 158.93 ± 0.01 |
| 66 | Dysprosium | Dy | 162.50 ± 0.01 |
| 67 | Holmium | Ho | 164.93 ± 0.01 |
| 68 | Erbium | Er | 167.26 ± 0.01 |
| 69 | Thulium | Tm | 168.93 ± 0.01 |
| 70 | Ytterbium | Yb | 173.05 ± 0.02 |
| 71 | Lutetium | Lu | 174.97 ± 0.01 |
| 72 | Hafnium | Hf | 178.49 ± 0.01 |
| 73 | Tantalum | Ta | 180.95 ± 0.01 |
| 74 | Tungsten | W | 183.84 ± 0.01 |
| 75 | Rhenium | Re | 186.21 ± 0.01 |
| 76 | Osmium | Os | 190.23 ± 0.03 |
| 77 | Iridium | Ir | 192.22 ± 0.01 |
| 78 | Platinum | Pt | 195.08 ± 0.02 |
| 79 | Gold | Au | 196.97 ± 0.01 |
| 80 | Mercury | Hg | 200.59 ± 0.01 |
| 81 | Thallium | Tl | 204.38 ± 0.01 |
| 82 | Lead | Pb | 207.2 ± 1.1 |
| 83 | Bismuth | Bi | 208.98 ± 0.01 |
| 90 | Thorium | Th | 232.04 ± 0.01 |
| 91 | Protactinium | Pa | 231.04 ± 0.01 |
| 92 | Uranium | U | 238.03 ± 0.01 |
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
- CIAAW (IUPAC Commission on Isotopic Abundances and Atomic Weights): Abridged standard atomic weights, 2024 table
- OpenStax Chemistry 2e, §3.1 Formula Mass and the Mole Concept
- BIPM: The International System of Units (SI Brochure), 9th edition
- NOAA, NASA and USAF: U.S. Standard Atmosphere, 1976
- AQA GCSE Chemistry (8462) periodic table insert, June 2024
- Pearson Edexcel GCSE Chemistry (1CH0) periodic table, Paper 1H, May 2025
- OCR GCSE Combined Science A (Gateway, J250) data sheet, June 2018; read from the copy at Physics & Maths Tutor (ocr.org.uk blocks downloads)
- AQA A-level Chemistry (7405) data booklet, June 2023
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