The most effective way to kill bacteria in well water is shock chlorination, a one-time disinfection using household bleach that eliminates bacterial contamination throughout your entire well and plumbing system. For ongoing protection, you can install a continuous disinfection system such as UV light, chlorine injection, or reverse osmosis filtration. The right approach depends on whether you’re dealing with a one-time contamination event or a recurring problem.
Test Your Water First
Before treating anything, you need to know what you’re dealing with. The EPA recommends testing private wells annually for total coliform bacteria, nitrates, total dissolved solids, and pH levels. You should also test immediately if you notice changes in your water’s taste, color, or odor, if there’s been flooding or construction nearby, or if anyone in the household has recurring gastrointestinal illness.
When your results come back, the two numbers that matter most are total coliform and E. coli. Total coliform bacteria are mostly harmless organisms found naturally in soil and water, but their presence signals that your well may have a pathway allowing contamination in. If the lab finds E. coli specifically, that’s a stronger warning: it indicates fecal contamination from human or animal waste and a real risk of illness. A positive total coliform result warrants action. A positive E. coli result warrants urgent action.
Shock Chlorination: The Standard Fix
Shock chlorination is the go-to method for killing bacteria throughout a well system. It floods the well, pressure tank, and all connected plumbing with a strong chlorine solution that sits for hours, killing bacteria on every surface the water touches. You’ll need unscented household liquid bleach with at least 5% sodium hypochlorite, and it should be less than six months old.
The amount of bleach depends on your well’s diameter and water depth. A typical 6-inch-diameter residential well with 50 feet of water needs about 10 cups of bleach. A shallower well (20 feet of water, 6-inch diameter) takes roughly 8 cups. Wider wells need substantially more: a 24-inch well with 50 feet of water requires about 5 gallons. If you don’t know your well dimensions, your well driller’s records or your county health department can help.
Step by Step
Pour the bleach directly into the well casing after removing the well cap. Then turn on your well pump and run a garden hose back into the well for about 30 minutes, recirculating the chlorinated water until you can smell bleach coming from the hose. This ensures the chlorine mixes thoroughly. Next, go inside and open every faucet, hot and cold, until you smell chlorine at each one. This pushes chlorinated water through the entire plumbing system, including the water heater and pressure tank.
Once chlorine is present at every tap, shut everything off and let the system sit for 8 to 24 hours. Don’t run any water or drink from the taps during this period. The chlorine needs extended contact time to kill bacteria clinging to pipe walls, the well casing, and the pump assembly.
Flushing the System Afterward
After at least 12 hours, attach a hose to an outdoor faucet and drain the chlorinated water onto a hard surface like a driveway, away from plants, gardens, and septic systems. Keep running it until the chlorine smell disappears. Then open all indoor faucets and flush until you can’t detect chlorine at any tap.
Wait 7 to 10 days after disinfection before having your water retested. This gap gives enough time for the chlorine to fully clear and for any surviving bacteria to show up in the sample. Until those results come back clean, boil your water at a rolling boil for one minute before drinking or cooking with it (three minutes if you live above 6,500 feet elevation).
Continuous Disinfection Systems
If bacteria keep coming back after shock chlorination, or if you want year-round protection, a permanent treatment system is the next step. The three most common options work differently and suit different situations.
UV Light Disinfection
A UV system mounts on your main water line and exposes water to ultraviolet light as it flows through a chamber. The UV radiation damages bacterial DNA so the organisms can’t reproduce or cause infection. UV units don’t add chemicals, don’t change the taste of your water, and require minimal maintenance beyond replacing the bulb once a year. They do require clear water to work properly, though. If your well produces cloudy or iron-heavy water, you’ll need a sediment filter upstream of the UV unit.
Chlorine Injection
A chlorine injection system automatically feeds a small, controlled dose of chlorine into your water line. It works the same way municipal water treatment does, just at a smaller scale. This is particularly effective for wells with persistent bacterial issues because the chlorine provides residual protection throughout the plumbing. Many homeowners pair it with an activated carbon filter at the kitchen tap to remove the chlorine taste before drinking.
Reverse Osmosis
Reverse osmosis (RO) pushes water through a membrane with pores so tiny that bacteria, viruses, dissolved minerals, and heavy metals can’t pass through. RO systems remove up to 99% of many contaminants, including bacteria. Standard carbon filters, by comparison, are poor at removing bacteria and viruses. They’re designed mainly to improve taste and remove chlorine.
Most residential RO systems install under the kitchen sink and treat only the drinking water tap, not the whole house. That makes them a good complement to shock chlorination or a chlorine injector rather than a standalone solution for whole-house bacterial contamination.
Ozone Treatment
Ozone disinfection uses an electrical charge to convert oxygen into ozone gas, which is then mixed into the water. Ozone is a powerful oxidizer that destroys bacteria on contact, typically requiring only 10 to 30 minutes of contact time. Residential ozone systems are less common than UV or chlorine but can be effective for wells with both bacterial and iron or sulfur problems, since ozone also oxidizes those minerals for easier filtration. The main drawback is higher upfront cost and slightly more complex installation.
Boiling in an Emergency
If you’ve just discovered bacteria in your well and haven’t had time to disinfect, boiling is the simplest immediate fix. Bring water to a rolling boil for one minute. At elevations above 6,500 feet, extend that to three minutes. Let it cool and store it in clean, covered containers. Boiling kills virtually all bacterial pathogens, including the ones most commonly found in contaminated wells: Campylobacter (the leading cause of bacterial gastroenteritis worldwide), E. coli, and coliform bacteria.
Preventing Recontamination
Killing bacteria is only half the job. If your well has a structural vulnerability, the contamination will return. The most common entry point is the well cap itself. Standard well caps sit loosely on the casing with bolts around the side, leaving a small gap that insects, rodents, and surface water can exploit. A sanitary well cap (sometimes called a vermin-proof cap) has bolts on top and includes a rubber gasket that creates an airtight seal, plus a screened vent for air exchange.
The ground around your well casing should slope away in all directions so rainwater and snowmelt drain away from the well rather than pooling around it. If you can see cracks in the casing, gaps in the grout seal, or standing water near the wellhead, those are likely how bacteria got in. Fixing the physical defect is essential. Otherwise, you’ll find yourself shock-chlorinating repeatedly with the same result each time.
Wells near livestock operations, septic systems, or heavily fertilized fields face higher contamination risk. If your well sits in one of these environments, test for coliform bacteria, nitrates, and nitrites, and consider making a continuous disinfection system part of your permanent setup rather than relying on periodic shock chlorination alone.

