The quantity of each nutrient required for the body's function is largely influenced by the genotype, sex, and production phase of the pig. Although many nutrients perform similar functions and are often grouped together, nutrients within a group generally cannot substitute for each other. The major groups are: energy (carbohydrates, fats), proteins (amino acids), minerals (macro- and microminerals), vitamins (fat soluble and water soluble), and water.