Feces ( or faeces), known colloquially and in slang as poo and poop, are the solid or semi-solid remains of food that was not digested in the small intestine, and has been broken down by bacteria in the large intestine.   Feces contain a relatively small amount of metabolic waste products such as bacterially altered bilirubin, and dead epithelial cells from the lining of the gut. 
Feces can be used as fertilizer or soil conditioner in agriculture. They can also be burned as fuel or dried and used for construction. Some medicinal uses have been found. In the case of human feces, fecal transplants or fecal bacteriotherapy are in use. Urine and feces together are called excreta.
The distinctive odor of feces is due to skatole, and thiols ( sulfur-containing compounds), as well as amines and carboxylic acids. Skatole is produced from tryptophan via indoleacetic acid. Decarboxylation gives skatole.  
The perceived bad odor of feces has been hypothesized to be a deterrent for humans, as consuming or touching it may result in sickness or infection. 
Feces are discharged through the anus or cloaca during defecation. This process requires pressures that may reach 100 millimetres of mercury (3.9 inHg) (13.3 kPa) in humans and 450 millimetres of mercury (18 inHg) (60 kPa) in penguins.   The forces required to expel the feces are generated through muscular contractions and a build-up of gases inside the gut, prompting the sphincter to relieve the pressure and to release the feces. 
After an animal has digested eaten material, the remains of that material are discharged from its body as waste. Although it is lower in energy than the food from which it is derived, feces may retain a large amount of energy, often 50% of that of the original food.  This means that of all food eaten, a significant amount of energy remains for the decomposers of ecosystems. Many organisms feed on feces, from bacteria to fungi to insects such as dung beetles, who can sense odors from long distances.  Some may specialize in feces, while others may eat other foods. Feces serve not only as a basic food, but also as a supplement to the usual diet of some animals. This process is known as coprophagia, and occurs in various animal species such as young elephants eating the feces of their mothers to gain essential gut flora, or by other animals such as dogs, rabbits, and monkeys.
Seeds also may be found in feces. Animals who eat fruit are known as frugivores. An advantage for a plant in having fruit is that animals will eat the fruit and unknowingly disperse the seed in doing so. This mode of seed dispersal is highly successful, as seeds dispersed around the base of a plant are unlikely to succeed and often are subject to heavy predation. Provided the seed can withstand the pathway through the digestive system, it is not only likely to be far away from the parent plant, but is even provided with its own fertilizer.
Organisms that subsist on dead organic matter or detritus are known as detritivores, and play an important role in ecosystems by recycling organic matter back into a simpler form that plants and other autotrophs may absorb once again. This cycling of matter is known as the biogeochemical cycle. To maintain nutrients in soil it is therefore important that feces returns to the area from which they came, which is not always the case in human society where food may be transported from rural areas to urban populations and then feces disposed of into a river or sea.
Depending on the individual and the circumstances, human beings may defecate several times a day, every day, or once every two or three days. Extensive hardening of the feces that interrupts this routine for several days or more is called constipation.
The appearance of human fecal matter varies according to diet and health.  Normally it is semisolid, with a mucus coating. A combination of bile and bilirubin, which comes from dead red blood cells, gives feces the typical brown color.  
After the meconium, the first stool expelled, a newborn's feces contains only bile, which gives it a yellow-green color. Breast feeding babies expel soft, pale yellowish, and not quite malodorous matter; but once the baby begins to eat, and the body starts expelling bilirubin from dead red blood cells, its matter acquires the familiar brown color. 
At different times in their life, human beings will expel feces of different colors and textures. A stool that passes rapidly through the intestines will look greenish; lack of bilirubin will make the stool look like clay.
Animals such as the giant panda  and zebra  possess gut bacteria capable of producing biofuel. The bacterium in question, Brocadia anammoxidans, can be used to synthesize the rocket fuel hydrazine.  
A coprolite is fossilized feces and is classified as a trace fossil. In paleontology they give evidence about the diet of an animal. They were first described by William Buckland in 1829. Prior to this, they were known as "fossil fir cones" and " bezoar stones". They serve a valuable purpose in paleontology because they provide direct evidence of the predation and diet of extinct organisms.  Coprolites may range in size from a few millimetres to more than 60 centimetres.
Palaeofeces are ancient feces, often found as part of archaeological excavations or surveys. Intact paleofeces of ancient people may be found in caves in arid climates and in other locations with suitable preservation conditions. These are studied to determine the diet and health of the people who produced them through the analysis of seeds, small bones, and parasite eggs found inside. Feces may contain information about the person excreting the material as well as information about the material. They also may be analyzed chemically for more in-depth information on the individual who excreted them, using lipid analysis and ancient DNA analysis. The success rate of usable DNA extraction is relatively high in paleofeces, making it more reliable than skeletal DNA retrieval. 
The reason this analysis is possible at all is due to the digestive system not being entirely efficient, in the sense that not everything that passes through the digestive system is destroyed. Not all of the surviving material is recognizable, but some of it is. Generally, this material is the best indicator archaeologists can use to determine ancient diets, as no other part of the archaeological record is so direct an indicator. 
A process that preserves feces in a way that they may be analyzed later is the Maillard reaction. This reaction creates a casing of sugar that preserves the feces from the elements. To extract and analyze the information contained within, researchers generally have to freeze the feces and grind it up into powder for analysis. 
Kopi luwak (pronounced [ˈkopi ˈlu.aʔ]), or "civet coffee", is coffee made from coffee berries that have been eaten by and passed through the digestive tract of the Asian palm civet (Paradoxurus hermaphroditus). Giant pandas provide fertilizer for the world's most expensive green tea.  In Malaysia, tea is made from the droppings of stick insects fed on guava leaves.
In northern Thailand, elephants are used to digest coffee beans in order to make Black Ivory coffee, which is among the world's most expensive coffees. Paper is also made from elephant dung in the country. 
Dog feces was used in the tanning process of leather during the Victorian era. Collected dog feces, known as "pure", "puer", or "pewer",  was mixed with water to form a substance known as "bate", because proteolytic enzymes in the dog feces helped to relax the fibrous structure of the hide before the final stages of tanning.  Dog feces collectors were known as pure finders. 
Feces is the scientific terminology, while the term stool is also commonly used in medical contexts.  Outside of scientific contexts, these terms are less common, with the most common layman's term being "poop" or "poo". The term shit is also in common use, although is widely considered vulgar or offensive. There are many other terms, see below.
The word faeces is the plural of the Latin word faex meaning "dregs". In most English-language usage, there is no singular form, making the word a plurale tantum;  out of various major dictionaries, only one enters variation from plural agreement. 
There are many synonyms in informal registers for feces, just like there are for urine. Many are euphemismistic, colloquial, or both; some are profane (such as shit), whereas most belong chiefly to child-directed speech (such as poo or the palindromic word poop) or to crude humor (such as crap, dump, load and turd.).
The feces of animals often has special names (some of them are slang), for example:
In all human cultures, feces elicits varying degrees of disgust in adults. Children under two years typically have no disgust response to it, suggesting it is culturally derived.  Disgust toward feces appears to be strongest in cultures where flush toilets make olfactory contact with human feces minimal.   Disgust is experienced primarily in relation to the sense of taste (either perceived or imagined) and, secondarily to anything that causes a similar feeling by sense of smell, touch, or vision.
Bear scat showing consumption of bin bags
The cassowary disperses plant seeds via its feces
Earthworm feces aids in provision of minerals and plant nutrients in an accessible form
Feces from different seabirds.