The citric acid cycle produces 36 ATP molecules. So, in aerobic respiration, a total of 38 molecules of ATP are created, with 2 ATP molecules formed outside the mitochondria.