It is well known that the state of hunger can modulate hormones and hypothalamic neural circuits to drive food-seeking behavior and consumption. However, the role the sensory cortex plays in regulating foraging is much less explored. Here, we investigated whether acute fasting in mice can alter an odor-guided foraging behavior and how it can alter neurons and synapses in the (olfactory) piriform cortex (PC). Acute hunger enhances the motivation of a mouse to search for food pellets and increases food intake. The foraging behavior strongly activates the PC, as revealed by c-Fos immunostaining. The activation of PC is accompanied by an increase in excitation–inhibition ratio of synaptic density. Fasting also enhances the phosphorylation of AMP kinase, a biochemical energy regulator. Taken together, our results uncover a new regulatory brain region and implicate the PC in controlling foraging behavior.