Chemists generally use the mole as the unit for the number of atoms or molecules of a material.
One mole (abbreviated mol) is equal to 6.022×10^{23} molecular entities (Avogadro's number), and each element has a different molar mass depending on the weight of 6.022×10^{23} of its atoms (1 mole).
The molar mass of any element can be determined by finding the atomic mass of the element on the periodic table.
For example, if the atomic mass of sulfer (S) is 32.066 amu, then its molar mass is 32.066 g/mol.

By recognizing the relationship between the molar mass (g/mol), moles (mol), and particles, scientists can use dimensional analysis convert between mass, number of moles and number of atoms very easily.

## Determining the Molar Mass of a Compound

In a compound of NaOH, the molar mass of Na alone is 23 g/mol, the molar mass of O is 16 g/mol, and H is 1 g/mol. What is the molar mass of NaOH?

The molar mass of the compound NaOH is 40 g/mol.

## Converting Mass to Number of Moles

How many moles of NaOH are present in 90 g of NaOH?

Since the molar mass of NaOH is 40 g/mol, we can divide the 90 g of NaOH by the molar mass (40 g/mol) to find the moles of NaOH. This the same as multiplying by the reciprocal of 40 g/mol.

If the equation is arranged correctly, the mass units (g) cancel out and leave moles as the unit.

There are 2.25 moles of NaOH in 90g of NaOH.

## Converting Between Mass, Number of Moles, and Number of Atoms

How many moles and how many atoms are contained in 10.0 g of nickel?

According to the periodic table, the atomic mass of nickel (Ni) is 58.69 amu, which means that the molar mass of nickel is 58.69 g/mol. Therefore, we can divide 10.0 g of Ni by the molar mass of Ni to find the number of moles present.

Using dimensional analysis, it is possible to determine that:

To determine the number of atoms, convert the moles of Ni to atoms using Avogadro's number:

Given a sample's mass and number of moles in that sample, it is also possible to calculate the sample's molecular mass by dividing the mass by the number of moles to calculate g/mol.

What is the molar mass of methane (CH_{4}) if there are 0.623 moles in a 10.0g sample?

The molar mass of CH_{4} is 16.04 g/mol.