Every cell uses ATP for energy. It consists of a base (adenine) bonded to ribose (forming adenosine) and three phosphate groups. One molecule of ATP contains three phosphate groups, and it is produced by ATP synthase from inorganic phosphate and adenosine diphosphate (ADP, the di meaning two phosphate groups) or adenosine monophosphate (AMP).