Glucose is catabolized by two fundamental pathways, glycolysis to make ATP and the oxidative pentose phosphate pathway to make NADPH. The first step of the oxidative pentose phosphate pathway is catalyzed by the enzyme glucose-6-phosphate dehydrogenase (G6PD). Here we develop metabolite reporter and deuterium tracer assays to monitor cellular G6PD activity. Using these, we show that the most widely cited G6PD antagonist, dehydroepiandosterone (DHEA), does not robustly inhibit G6PD in cells. We then identify a small molecule (G6PDi-1) that more effectively inhibits G6PD. Across a range of cultured cells, G6PDi-1 depletes NADPH most strongly in lymphocytes. In T cells but not macrophages, G6PDi-1 markedly decreases inflammatory cytokine production. In neutrophils, it suppresses respiratory burst. Thus, we provide a cell-active small molecule tool for oxidative pentose phosphate pathway inhibition, and use it to identify G6PD as a pharmacological target for modulating immune response.