Carbon dioxide consists of carbon (C) and oxygen (O).
You can find the atomic mass of each element on the periodic table:
In one molecule of carbon dioxide (CO₂):
The molar mass of a compound is the sum of the molar masses of its constituent elements, taking into account the number of each type of atom in the compound.
For carbon dioxide (CO₂):
Molar mass of CO₂ = (1×12.01 g/mol) + (2×16.00 g/mol) = 12.01 g/mol + 32.00 g/mol = 44.01 g/mol
The molar mass of carbon dioxide (CO₂) is 44.01 g/mol. This means that one mole of CO₂ has a mass of 44.01 grams.