ATP contains three phosphate groups, while ADP (Adenosine Diphosphate) has two phosphate groups. The addition or removal of a phosphate group converts ADP into ATP and vice versa.