Atomic mass
The atomic mass and relative isotopic mass are sometimes confused, or incorrectly used, as synonyms of standard atomic weight (also known as atomic weight) and the standard atomic weight (a particular variety of atomic weight, in the sense that is a standardized atomic weight). However, as noted in the introduction, atomic weight and standard atomic weight represent terms for (abundance-weighted) averages of atomic masses in elemental samples, not for single nuclides. As such, atomic weight and standard atomic weight often differ numerically from relative isotopic mass and atomic mass, and they can also have different units than atomic mass when this quantity is not expressed in unified atomic mass units (see the linked article for atomic weight).
Atomic mass
Similar definitions apply to molecules. One can compute the molecular mass of a compound by adding the atomic masses of its constituent atoms (nuclides). One can compute the molar mass of a compound by adding the relative atomic masses of the elements given in the chemical formula. In both cases the multiplicity of the atoms (the number of times it occurs) must be taken into account, usually by multiplication of each unique mass by its multiplicity.