Calcium signalling in astrocytes couples changes in neural activity to alterations in cerebral blood flow by eliciting vasoconstriction or vasodilation of arterioles. However, the mechanism for how these opposite astrocyte influences provide appropriate changes in vessel tone within an environment that has dynamic metabolic requirements remains unclear. Here we show that the ability of astrocytes to induce vasodilations over vasoconstrictions relies on the metabolic state of the rat brain tissue. When oxygen availability is lowered and astrocyte calcium concentration is elevated, astrocyte glycolysis and lactate release are maximized. External lactate attenuates transporter-mediated uptake from the extracellular space of prostaglandin E2, leading to accumulation and subsequent vasodilation. In conditions of low oxygen concentration extracellular adenosine also increases, which blocks astrocyte-mediated constriction, facilitating dilation. These data reveal the role of metabolic substrates in regulating brain blood flow and provide a mechanism for differential astrocyte control over cerebrovascular diameter during different states of brain activation.