Macrophages are activated during microbial infection to coordinate inflammatory responses and host defense. Here we find that in macrophages activated by bacterial lipopolysaccharide (LPS), mitochondrial glycerol 3-phosphate dehydrogenase (GPD2) regulates glucose oxidation to drive inflammatory responses. GPD2, a component of the glycerol phosphate shuttle, boosts glucose oxidation to fuel the production of acetyl coenzyme A, acetylation of histones and induction of genes encoding inflammatory mediators. While acute exposure to LPS drives macrophage activation, prolonged exposure to LPS triggers tolerance to LPS, where macrophages induce immunosuppression to limit the detrimental effects of sustained inflammation. The shift in the inflammatory response is modulated by GPD2, which coordinates a shutdown of oxidative metabolism; this limits the availability of acetyl coenzyme A for histone acetylation at genes encoding inflammatory mediators and thus contributes to the suppression of inflammatory responses. Therefore, GPD2 and the glycerol phosphate shuttle integrate the extent of microbial stimulation with glucose oxidation to balance the beneficial and detrimental effects of the inflammatory response.