There is net gain of 38 ATP molecules during aerobic respiration of one molecule of glucose. But in most eukaryotic cells, 2 molecules of ATP are required for transporting the NADH produced in glycolysis into the mitochondrion for further oxidation. Hence, net gain of ATP here is 36 molecules.