Fitness is the relative capacity of an individual or genotype to both survive and reproduce, quantified as the average contribution of the genotype to the gene pool of the next generations. During evolution, natural selection favors functions providing greater fitness such that the functions become more common over generations.