The following formula allows for the interconversion between a mass in grams and a number of moles for a given substance:

__Example 1__:

Calculate the amount, in moles, of 8.8 g of carbon dioxide (CO_{2}).

Step 1: Calculate the relative formula mass (M_{r}) of carbon dioxide (CO_{2}).

Step 2: Use the formula to calculate the amount in moles.

__Example 2__:

Calculate the mass of 2 mol of copper(II) sulfate (CuSO_{4}).

Step 1: Calculate the relative formula mass (M_{r}) of copper(II) sulfate (CuSO_{4}).

Step 2: Rearrange the formula to calculate the mass.