Foraging is the act of searching for and exploiting food resources. It affects an animal's fitness because it plays an important role in an animal's ability to survive and reproduce. Foraging theory is a branch of behavioral ecology that studies the foraging behavior of animals in response to the environment where the animal lives.
Behavioral ecologists use economic models to understand foraging; many of these models are a type of optimality model. Thus foraging theory is discussed in terms of optimizing a payoff from a foraging decision. The payoff for many of these models is the amount of energy an animal receives per unit time, more specifically, the highest ratio of energetic gain to cost while foraging. Foraging theory predicts that the decisions that maximize energy per unit time and thus deliver the highest payoff will be selected for and persist. Key words used to describe foraging behavior include; 1) Resources, the elements necessary for survival and reproduction and yet have a limited supply, 2) A predator, any organism that consumes others and 3) Prey, an organism that is eaten in part or whole by another.