A functional group, such as a carbonyl group or an amino group, consists of just the atoms and bonding making up that functional group. A moiety is more inclusive, and generally refers to a segment of a molecule that may, or may NOT, have a functional group within it.