Skip to main content
CalcChef

Molar Mass Calculator

Molar mass of a chemical formula in g/mol from IUPAC atomic weights, with each element’s mass percent. Reads brackets and hydrates such as CuSO4·5H2O. How it works

Use the Molar Mass Calculator

Capitals matter: Co is cobalt, CO is carbon and oxygen. Brackets ( ) and [ ] and hydrate dots (CuSO4·5H2O or CuSO4.5H2O) work; charges do not.

Molar mass
18.015 g/mol

Atoms, atomic weight, mass and mass percent of each element
ElementAtomsAtomic weightMass (g/mol)Mass %
H21.0082.01611.19%
O115.99915.99988.81%

The total has 3 decimals: that is the precision of the least precise atomic weight in the formula, so digits beyond it would be false.

Atomic weights are the IUPAC (CIAAW) standard values (2024 table) to the digits shown. For elements whose weight depends on the sample (H, O here; H, Li, B, C, N, O, Mg, Si, S, Cl, Ar, Br, Tl and Pb in general) the CIAAW abridged value, the single number IUPAC publishes for them, is used, so a real sample can differ in the last printed digit.

About the Molar Mass Calculator

Water, H2O, has a molar mass of 18.015 g/mol: 2 × 1.008 for hydrogen plus 15.999 for oxygen. This molar mass calculator adds the IUPAC atomic weights of every atom in a formula, reads brackets and hydrate dots, and lists each element’s share of the mass. For a compound the molar mass in g/mol is the same number as its molecular weight or formula weight in atomic mass units.

Molar masses of common compounds

CompoundFormulaMolar mass (g/mol)Mass percent by element
WaterH2O18.015H 11.19%, O 88.81%
Carbon dioxideCO244.009C 27.29%, O 72.71%
Carbon monoxideCO28.010C 42.88%, O 57.12%
OxygenO231.998O 100.00%
NitrogenN228.014N 100.00%
MethaneCH416.043C 74.87%, H 25.13%
AmmoniaNH317.031N 82.24%, H 17.76%
Sodium chlorideNaCl58.44Na 39.34%, Cl 60.66%
Hydrochloric acid (hydrogen chloride)HCl36.46H 2.76%, Cl 97.24%
Sodium hydroxideNaOH39.997Na 57.48%, O 40.00%, H 2.52%
Sodium bicarbonateNaHCO384.006Na 27.37%, H 1.20%, C 14.30%, O 57.14%
Calcium carbonateCaCO3100.086Ca 40.04%, C 12.00%, O 47.96%
Calcium hydroxideCa(OH)274.092Ca 54.09%, O 43.19%, H 2.72%
Sulfuric acidH2SO498.07H 2.06%, S 32.69%, O 65.25%
EthanolC2H5OH46.069C 52.14%, H 13.13%, O 34.73%
Acetic acidCH3COOH60.052C 40.00%, H 6.71%, O 53.28%
GlucoseC6H12O6180.156C 40.00%, H 6.71%, O 53.28%
SucroseC12H22O11342.297C 42.11%, H 6.48%, O 51.41%
AspirinC9H8O4180.159C 60.00%, H 4.48%, O 35.52%
Iron(III) oxideFe2O3159.687Fe 69.94%, O 30.06%
Potassium permanganateKMnO4158.032K 24.74%, Mn 34.76%, O 40.50%
Ammonium sulfate(NH4)2SO4132.13N 21.20%, H 6.10%, S 24.26%, O 48.43%
Iron(III) sulfateFe2(SO4)3399.86Fe 27.93%, S 24.05%, O 48.01%
Copper(II) sulfate, anhydrousCuSO4159.60Cu 39.82%, S 20.09%, O 40.10%
Copper(II) sulfate pentahydrateCuSO4·5H2O249.68Cu 25.45%, S 12.84%, O 57.67%, H 4.04%
Potassium ferrocyanide, anhydrousK4[Fe(CN)6]368.346K 42.46%, Fe 15.16%, C 19.56%, N 22.82%

Each total has as many decimals as the atomic weight with the fewest decimals in the formula, so anything with sulfur (32.06) or chlorine (35.45) shows two. Glucose and acetic acid share the same percentages because both have the ratio CH2O.

Atomic weights the calculator uses

ElementSymbolAtomic weight shownHow CIAAW lists it
HydrogenH1.008Interval; abridged value used
CarbonC12.011Interval; abridged value used
NitrogenN14.007Interval; abridged value used
OxygenO15.999Interval; abridged value used
SodiumNa22.9898Single value
MagnesiumMg24.305Interval; abridged value used
PhosphorusP30.9738Single value
SulfurS32.06Interval; abridged value used
ChlorineCl35.45Interval; abridged value used
PotassiumK39.0983Single value
ArgonAr39.95Interval; abridged value used
CalciumCa40.078Single value
IronFe55.845Single value
CopperCu63.546Single value
ZincZn65.38Single value
SeleniumSe78.971Single value
SilverAg107.8682Single value
IodineI126.9045Single value
GoldAu196.9666Single value
LeadPb207.2Interval; abridged value used
UraniumU238.0289Single value

Single values are the CIAAW 2024 standard atomic weights to the digit of their stated uncertainty, shown to at most 4 decimals (sodium is stored as 22.98976928). For elements whose isotope mix varies in nature CIAAW gives an interval, for example chlorine [35.446, 35.457]; the calculator uses the CIAAW abridged value, so a real sample can differ in the last digit shown.

Frequently asked questions

What is the molar mass of CO2?
44.009 g/mol: one carbon at 12.011 plus two oxygens at 15.999 each. By mass, CO2 is 27.29% carbon and 72.71% oxygen.
Why does co2 in lowercase give an error?
Element symbols are case-sensitive: one capital letter, then at most one lowercase letter. Co is cobalt and CO is carbon plus oxygen, so the calculator refuses co2 rather than guess. Co2 would be two cobalt atoms, 117.8664 g/mol; CO2 is 44.009 g/mol.
Why does NaCl show only two decimals?
The total carries the decimals of the atomic weight with the fewest decimals in the formula. Chlorine’s is 35.45, so NaCl is 58.44 g/mol and HCl 36.46 g/mol; digits past the second decimal would not be supported by the data. Water, with 1.008 and 15.999, shows three: 18.015 g/mol.
How do I enter a hydrate like CuSO4·5H2O?
Type a middle dot or a period between the parts: CuSO4·5H2O or CuSO4.5H2O. The number after the dot multiplies that part, so 5H2O adds 5 × 18.015 g/mol. Copper(II) sulfate pentahydrate is 249.68 g/mol, against 159.60 g/mol for anhydrous CuSO4.
Why is my textbook value slightly different?
For hydrogen, carbon, nitrogen, oxygen, sulfur, chlorine and 8 other elements, IUPAC’s CIAAW publishes an interval, not one number, because the isotope mix varies in nature. The calculator uses the CIAAW abridged values (S 32.06, Cl 35.45, Ar 39.95), so an older table that prints more digits, or a different total rounding, can differ in the last place.
Can it handle brackets and complex ions?
Yes, round and square brackets nest, and a number after a closing bracket multiplies the group: K4[Fe(CN)6] is 368.346 g/mol and (NH4)2SO4 is 132.13 g/mol. Charges are not accepted: enter NH4Cl rather than NH4+.

Related Tools

View all tools