Human feces can remain infectious for anywhere from a few hours to several years, depending on the pathogen involved and the conditions where the waste sits. A fresh stool sample from a healthy person already contains billions of bacteria, most of them harmless gut flora, but feces from someone carrying an infection can harbor disease-causing bacteria, viruses, parasitic cysts, and worm eggs that each follow their own survival timeline. The environment around the waste, especially temperature, moisture, and sunlight, matters as much as the pathogen itself in determining how long the danger lasts.
Why There Is No Single Expiration Date
One of the clearest findings in environmental microbiology is that broad generalizations about how long fecal pathogens survive are unreliable. A large review of fecal microorganism decay in water found that the effects of environmental factors on die-off are frequently inconsistent across microbial species, fecal sources, and measurement methods.1PubMed Central. Persistence and Decay of Fecal Microbiota in Aquatic Habitats Put plainly, the same river at the same temperature might kill one bacterium in a day and let a virus persist for weeks. That variability is why regulators and public health agencies tend to set conservative safety margins rather than giving a single number for when feces becomes “safe.”
The pathogens worth worrying about fall into four broad groups: bacteria, viruses, protozoan parasites, and helminth (worm) eggs. Each group has its own survival profile, and within each group, individual species can differ dramatically.
How Long Bacteria Survive
Most disease-causing bacteria shed in feces are adapted to the warm, moist, nutrient-rich environment of the human gut. Once outside the body, they are on borrowed time, but some can stretch that time surprisingly far. Salmonella is one of the hardiest. In composted biowaste, one strain survived for three months at room temperature, and older, more stabilized compost actually supported longer survival than fresher material.2PubMed Central. Long-term survival of pathogenic and sanitation indicator bacteria in experimental biowaste composts E. coli and Listeria, by contrast, died off more quickly in those same composts and did not persist beyond the early weeks.2PubMed Central. Long-term survival of pathogenic and sanitation indicator bacteria in experimental biowaste composts
In water, temperature plays a huge role. Shigella flexneri, which causes bacterial dysentery, survived for up to 87 days in saline solution kept at refrigerator temperature but died within 24 hours in chlorinated tap water regardless of temperature. Salmonella typhi (the cause of typhoid fever) lasted up to 65 days in cold water but only about five days at body temperature.3PubMed. Long-term effects of land application of class B biosolids on the soil microbial populations, pathogens, and activity Cold temperatures slow bacterial metabolism and delay death, which is why winter sewage spills are considered more persistent threats than summer ones.
Spore-forming bacteria are a special case. Clostridium difficile, a common cause of severe diarrheal illness, produces spores that can survive four months or longer at temperatures ranging from deep freeze to room temperature. In fecal samples specifically, neither refrigeration, freezing, nor repeated freeze-thaw cycles significantly reduced the viability of C. difficile spores.4PubMed Central. The effects of storage conditions on viability of Clostridium difficile vegetative cells and spores and toxin activity in human faeces This resilience is one reason C. difficile infections are so common in hospitals, where contaminated surfaces can harbor spores for months.
Viruses in Feces
Enteric viruses, the ones that travel through the fecal-oral route, tend to be tougher than bacteria in many environments because they are simpler structures with no active metabolism to disrupt. Hepatitis A virus (HAV) can survive for several hours on human hands and for several days on environmental surfaces indoors. On fruits and vegetables that are often eaten raw, it retains infectivity for days, and casual contact between contaminated hands and clean food can transfer as much as ten percent of the infectious virus.5PubMed Central. Foodborne spread of hepatitis A: Recent studies on virus survival, transfer and inactivation HAV is also relatively resistant to heat, radiation, and chemical disinfectants.5PubMed Central. Foodborne spread of hepatitis A: Recent studies on virus survival, transfer and inactivation
In manure and biosolids (the treated sludge from sewage plants), HAV RNA remained stable for at least 60 days at cool temperatures. At warmer temperatures, it degraded faster in some materials but not others. Norovirus, the classic “stomach bug,” showed a similar pattern: it was unstable in liquid dairy manure but persisted in poultry litter for the full 60-day study period.6PubMed. Survival of murine norovirus and hepatitis A virus in different types of manure and biosolids High-pH environments, like alkaline-treated biosolids, destroyed both viruses almost immediately, which is one reason lime treatment is used as a sanitation strategy.
Parasites and Worm Eggs
Protozoan parasites like Cryptosporidium and Giardia are shed in feces as thick-walled cysts or oocysts. These resting forms are far more resistant to environmental stress than the active parasites inside the gut. In surface water, both can survive for months.7PubMed Central. Impact of Environmental Conditions on the Survival of Cryptosporidium and Giardia on Environmental Surfaces Cryptosporidium is the tougher of the two: its oocysts survived more than 12 weeks in cold water and soil, while Giardia cysts lost infectivity within one to two weeks at warmer temperatures and were killed by a single week of freezing.8Journal of Environmental Quality. Giardia Cyst and Cryptosporidium Oocyst Survival in Water, Soil, and Cattle Feces
Helminth eggs are the marathon runners of fecal pathogens. Roundworm eggs (Ascaris lumbricoides) are encased in a multi-layered shell that resists desiccation, UV light, and many chemical treatments. In Vietnamese composting latrines, it took over 100 days of storage to achieve greater than 99 percent die-off of Ascaris eggs, and even then, high lime concentrations were needed to speed the process.9PubMed Central. Survival of Ascaris eggs and hygienic quality of human excreta in Vietnamese composting latrines A separate study in Vietnam tracked Ascaris egg viability over 181 days of storage and found that viable eggs dropped from about 77 percent to about 8 percent, meaning a meaningful fraction of eggs were still alive after six months.10PubMed. Ascaris lumbricoides egg die-off in an experimental excreta storage system and public health implication in Vietnam Under favorable conditions in soil, Ascaris eggs can remain viable for years. This is the primary reason that using untreated human feces as fertilizer is so risky in tropical and subtropical regions where roundworm is common.
The Three Factors That Matter Most
Temperature
Cold preserves pathogens; heat destroys them. This principle holds across nearly every pathogen class. In subarctic river water, the time needed to reduce bacterial and viral populations by 90 percent ranged from about 3 to 51 days under cold, dark winter conditions, compared to less than a day to about 3.5 days under warm summer conditions with sunlight.11PubMed. Effects of temperature and light exposure on the decay characteristics of fecal indicators, norovirus, and Legionella in mesocosms simulating subarctic river water That difference is enormous: a sewage spill in a cold river in January could remain a health hazard for a month or more, while the same spill in July might be largely neutralized in a few days.
This is also why composting targets high temperatures. North American regulations call for compost to maintain temperatures above 55°C (131°F) for at least three days to kill pathogens. But a review of the evidence found that bacteria, protozoa, and helminths survived in a significant number of studies even when those temperature requirements were apparently met, possibly because some pockets of material never reached the target.12Journal of Environmental Engineering and Science. A review of the effectiveness of current time–temperature regulations on pathogen inactivation during composting
Moisture and Drying
Drying is one of the most effective natural kill mechanisms for fecal pathogens. In dry-composting toilets, the primary mechanism for reducing fecal coliforms was desiccation rather than biological breakdown, and samples that dried out more completely were far more likely to meet safety standards.13PubMed. Survival of fecal coliforms in dry-composting toilets Lab studies on E. coli in fecal matter found that nearly complete die-off occurred within 15 to 60 hours depending on the evaporation rate, well before the material was fully dried out. The critical factor was the increasing concentration of salts and other solutes as water evaporated, which created lethal osmotic stress for the bacteria.14Journal of Applied Microbiology. Water potential changes in faecal matter and Escherichia coli survival
The flip side: when dried fecal pats on pasture get rewetted by rain, bacteria can regrow. E. coli populations have been observed to rebound after rehydration when the moisture content climbed back above roughly 80 percent. This means a dried-out pile of waste on the ground is not permanently safe; rain can reactivate the risk.
Sunlight
Solar UV radiation accelerates pathogen die-off significantly, and it works both directly (damaging DNA) and indirectly (boosting the activity of microbial predators in water and soil). In estuarine water, E. coli numbers dropped much faster when both sunlight and natural microbial predators were present than when either factor acted alone.15PubMed Central. Effect of solar radiation and predacious microorganisms on survival of fecal and other bacteria Solar exposure was also a critical factor in producing safe end products in dry-composting toilets.13PubMed. Survival of fecal coliforms in dry-composting toilets Feces buried underground, shaded under vegetation, or submerged in turbid water misses out on this effect entirely, which is part of why buried waste and latrine contents remain dangerous longer than surface deposits in open sun.
Wilderness Disposal and the Cathole Question
Backcountry hikers are typically told to dig a six-to-eight-inch cathole to bury their waste, and the assumption is that soil microbes and time will break it down. That assumption is partly right, but the timeline depends on the environment. A study examining surface-disposed human feces in three settings, alpine, temperate forest, and arid, found that fecal mass shrank substantially after six and fourteen weeks in all three locations. However, the indicator bacteria were extensively reduced only in the alpine and arid environments. The temperate forest, with its shade and consistent moisture, did a poor job of eliminating pathogens over the same time frame.16PubMed Central. The consequences of backcountry surface disposal of human waste in an alpine, temperate forest and arid environment
This has real implications. If you are camping in a dense, shady, moist forest, a cathole does not neutralize pathogens quickly. The standard advice to dig deep and far from water sources remains sound, but expecting the waste to be “safe” in a few weeks is optimistic in those conditions. Arid, sun-baked, exposed terrain does a much better job thanks to the combined effects of UV radiation, heat, and drying.
Groundwater and Distance
One of the less visible risks of human waste is contamination of groundwater, especially from pit latrines in regions that rely on shallow wells. A systematic review found that researchers who looked for groundwater contamination from pit latrines frequently detected it, with unsafe concentrations of bacteria traveling up to 25 meters, viruses up to 50 meters, and chemical contaminants up to 26 meters from the source.17PubMed Central. Pit Latrines and Their Impacts on Groundwater Quality: A Systematic Review The virus travel distance is especially striking: 50 meters is more than half a football field, meaning a latrine placed well away from a well can still contaminate it. Soil type, water table depth, and rainfall intensity all influence how far and how fast pathogens migrate.
In agricultural settings where treated sewage sludge (biosolids) is spread on farmland, the picture is more reassuring when treatment is adequate. One long-term study found no detectable bacterial or viral pathogens in soil samples collected ten months after the last application of treated biosolids.3PubMed. Long-term effects of land application of class B biosolids on the soil microbial populations, pathogens, and activity But that finding applies to treated material, not raw sewage.
Chemical Treatment and Lime
For emergency sanitation or managing pit latrine sludge, lime (calcium hydroxide or calcium oxide) is one of the most practical options. Raising the pH above 11 or 12 rapidly kills most bacteria and viruses. In one set of experiments, fecal coliforms and Salmonella were undetectable after just two hours of lime treatment, and common enteric viruses including adenovirus and rotavirus were likewise eliminated within two hours.18PubMed Central. Class B Alkaline Stabilization to Achieve Pathogen Inactivation Field trials with pit latrine sludge confirmed that dosing lime at 10 to 35 percent by dry weight, enough to push the pH above 11, achieved greater than 99.9 percent reduction in E. coli within an hour.19Journal of Waste Management. Off-Site Lime Stabilisation as an Option to Treat Pit Latrine Faecal Sludge for Emergency and Existing On-Site Sanitation Systems
Lime’s limitation, though, is the same limitation that comes up repeatedly with every treatment method: helminth eggs and Cryptosporidium oocysts are far harder to kill. Ascaris eggs and Cryptosporidium oocysts remained viable even after 72 hours of lime treatment that had wiped out everything else.18PubMed Central. Class B Alkaline Stabilization to Achieve Pathogen Inactivation This is a recurring theme across all the evidence: bacteria and viruses can be managed with heat, drying, UV, or chemicals relatively quickly, but helminth eggs and certain protozoan cysts are in a different league of durability.
Flies and Other Vectors
The danger of human feces is not only about direct contact or water contamination. Houseflies breed in feces and decaying organic matter, and their constant movement between waste and human food or living spaces makes them efficient pathogen shuttles. A systematic review found that houseflies carry a wide range of human pathogens on their body surfaces, picked up from feces and manure, and can deposit them wherever they land.20PubMed Central. A systematic review of human pathogens carried by the housefly (Musca domestica L.) In practical terms, this means exposed human waste is dangerous not just to someone who touches it or steps in it, but to anyone eating food nearby if flies have access to both. Covering or burying waste promptly reduces this transmission route, even before the pathogens in the waste itself have died off.
Antibiotic Resistance Genes in Manure-Amended Soil
A concern that has grown in recent years goes beyond the pathogens themselves. When fecal matter, whether human or animal, is applied to farmland, it introduces not only living microbes but also antibiotic resistance genes. Research on manure-amended soils has shown that these soils can serve as a reservoir for clinically important resistance genes, and that both the diversity and abundance of resistance genes and pathogenic bacteria increased with repeated applications of manure over time.21Frontiers in Cellular and Infection Microbiology. The profile and persistence of clinically critical antibiotic resistance genes and human pathogenic bacteria in manure-amended farmland soils Even after the original pathogens from feces die off, the genetic material encoding resistance can persist in the soil microbial community and potentially transfer to other bacteria. This means the “danger” of fecal waste is not limited to the window during which the original pathogens are alive; the genetic legacy can outlast them.
Ancient Feces and What Survives Centuries
If the persistence of helminth eggs over months seems long, consider that archaeologists routinely recover identifiable parasite eggs from human feces hundreds or even thousands of years old. Studies of ancient soil samples and mummified remains in Korea have identified eggs of more than a dozen helminth species, including roundworm, whipworm, liver flukes, and tapeworms, in archaeological contexts spanning roughly 100 BCE to 1910 CE. These eggs are no longer viable, meaning they cannot cause infection, but their structural shells survived intact for centuries in the right soil conditions. The shells of Ascaris eggs, the same ones that resist lime treatment and composting, are what make this possible. While this is more of a curiosity than a public health concern, it underscores just how durable these structures are and why they represent the hardest challenge in fecal waste treatment.