Porphobilinogen deaminase (PBGD) haploinsufficiency (acute intermittent porphyria, AIP) is characterized by neurovisceral attacks when hepatic heme synthesis is activated by endogenous or environmental factors including fasting. While the molecular mechanisms underlying the nutritional regulation of hepatic heme synthesis have been described, glucose homeostasis during fasting is poorly understood in porphyria. Our study aimed to analyse glucose homeostasis and hepatic carbohydrate metabolism during fasting in PBGD-deficient mice. To determine the contribution of hepatic PBGD deficiency to carbohydrate metabolism, AIP mice injected with a PBGD-liver gene delivery vector were included. After a 14 h fasting period, serum and liver metabolomics analyses showed that wild-type mice stimulated hepatic glycogen degradation to maintain glucose homeostasis while AIP livers activated gluconeogenesis and ketogenesis due to their inability to use stored glycogen. The serum of fasted AIP mice showed increased concentrations of insulin and reduced glucagon levels. Specific over-expression of the PBGD protein in the liver tended to normalize circulating insulin and glucagon levels, stimulated hepatic glycogen catabolism and blocked ketone body production. Reduced glucose uptake was observed in the primary somatosensorial brain cortex of fasted AIP mice, which could be reversed by PBGD-liver gene delivery. In conclusion, AIP mice showed a different response to fasting as measured by altered carbohydrate metabolism in the liver and modified glucose consumption in the brain cortex. Glucose homeostasis in fasted AIP mice was efficiently normalized after restoration of PBGD gene expression in the liver.