How to get rid of fruit flies
Remove what they breed in first, and trap only what is left.
Find and clear every source of fermenting food or moist film, catch the remaining adults in a cider-vinegar jar trap, and, for drain flies, scrub the slime out of the drain.
Why it matters
Fruit flies lay their eggs on fermenting fruit and vegetables and on any moist film of fermenting material, and a single forgotten potato or juice spill can breed thousands. Trapping or spraying adults without removing the source does not end the problem, because new flies keep emerging. Drain flies work the same way, breeding in the gelatinous film inside sink, shower and tub drains.
How to do it
- Identify the fly. Fruit flies are about 1/8 inch long, usually with red eyes, a tan front and a black rear. Drain flies, also called moth flies, are about the same size but dark and fuzzy, with leaf-shaped wings held like a roof over the body.
- Search for breeding sites: overripe or damaged produce, a rotting potato or onion at the back of a cupboard, juice spilled under the fridge, the trash can, recycling bins, empty bottles and cans, mops and cleaning rags.
- Eat, refrigerate or throw out ripe produce. Cut away and discard cracked or damaged parts of fruits and vegetables, where eggs or larvae may be.
- Empty and wash the trash and recycling containers, rinse bottles and cans, and clean up spills.
- Test drains and the garbage disposal: tape a clear plastic food storage bag over the opening overnight. Flies caught in the bag mean they are breeding there.
- To get rid of drain flies, scrub the gelatinous gunk out of the drain with a stiff-bristled brush, or use a biological drain cleaner that breaks down organic material. University of Minnesota Extension says hot or boiling water, bleach and chemical drain cleaners are not effective.
- Trap the remaining adults: pour a few ounces of cider vinegar into a jar and set a funnel rolled from a sheet of notebook paper in the opening. Put a trap wherever you see flies.
- Keep them from coming back: refrigerate ripe produce, keep home-canned food and home-made wine, cider or beer tightly sealed, and fit windows and doors with tight-fitting 16-mesh screens.
Common mistakes
- Setting traps but leaving the source. Until breeding sites are removed or cleaned, the problem continues no matter how many adults you kill.
- Pouring bleach or boiling water down the drain for drain flies. Scrubbing out the film is what works.
- Checking only the fruit bowl. Recycling bins, mops, rags and drains are common hidden sources.
Sources
- University of Kentucky Entomology, ENTFACT-621: Fruit Flies
- University of Minnesota Extension: Flies (moth flies and drain flies)
Sources and numbers last checked . How we check
Related lessons
8.4 · HomeHow to clean a shower
8.6 · HomeLaundry symbols: how to read a care label
8.5 · HomeHow to get blood out of clothes
8.3 · HomeCleaning a toilet properly
8.8 · HomeCleaners you must never mix
8.7 · HomeDoing a load of laundry
Topic: Cleaning and laundry
All lessons
← 8.8 previous lesson: Cleaners you must never mix · 8.10 → next lesson: Unblocking a toilet with a plunger
1Body16 lessons
1.1Washing your hands properly
1.2Getting water out of your ear
1.3Brushing your teeth for two minutes
1.4Riding a bike
1.5Getting up off the floor without your hands
1.6Slow breathing to calm down
1.7How to put in a tampon
1.8How often should you wash your hair
1.9Reading a nutrition label
1.10Sleeping with your phone outside the bedroom
1.11Doing 10 full push-ups
1.12How to stretch your hip flexors
1.13How to swaddle a newborn, and when to stop
1.14Reading a prescription label
1.15Booking a doctor's appointment and describing symptoms
1.16Knowing your blood pressure
2Mind15 lessons
2.1Staying with boredom
2.2Naming what you feel
2.3Grounding yourself after a fright
2.4Letting someone see you upset
2.5What to wear to a funeral, where to sit, and what to say
2.6What to write in a sympathy card
2.7Focusing for 25 minutes
2.8How to stop overthinking
2.9The 988 crisis line
2.10Changing your mind when the evidence changes
2.11The 7 stages of grief, and why grief comes in waves instead
2.12Telling a friend you're not okay
2.13Knowing when stress needs professional help
2.14Building a habit by tying it to an old one
2.15Spending an evening alone without screens
3People17 lessons
3.1Introducing yourself and asking a question back
3.2Asking a question in front of a group
3.3Apologising properly
3.4Disagreeing without insults
3.5Writing a clear email, subject line to sign-off
3.6Comforting someone who is crying
3.7What to say to someone who lost a loved one
3.8Saying no without an excuse
3.9Phoning a business
3.10How to burp a newborn
3.11Asking for consent
3.12Resigning from a job in writing
3.13Answering interview questions with the STAR method
3.14Walking into a room of strangers
3.15How to write an obituary
3.16Speaking up in a meeting
3.17Pausing an argument
4Money17 lessons
4.1Counting back change
4.2Comparing unit prices
4.3Endorsing and depositing a check
4.4How do you write a check
4.5Setting up direct deposit with a void check
4.6Why minimum payments cost so much
4.7The rule of 72
4.8What does APR mean on a credit card
4.9Making a monthly budget
4.10Reading a contract to find how to cancel
4.11What is a high yield savings account
4.12What is a contingent beneficiary, and how to name one
4.13Filing your own tax return
4.14How retirement accounts save you tax
4.15Index funds and why fees matter
4.16Ask for a raise with a number
4.17Know how long your savings would last
5Safety17 lessons
5.1Call 911 and give your location
5.2Plan two ways out in a fire
5.3Sheltering from a tornado: watch vs. warning
5.4The five water survival skills
5.5Test a smoke alarm and change its battery
5.6Cool a burn with running water
5.7AED pad placement: how to use an AED- 5.8Carbon monoxide detector beeping: what it means and what to do
5.9Put out a pan fire with a lid
5.10How is a fire extinguisher used? The PASS method
5.11Stop heavy bleeding
5.12The recovery position
5.13Spot a stroke and call 911
5.14Hands-only CPR
5.15Help a choking adult
5.16Respond to an opioid overdose with naloxone
5.17When can an infant car seat face forward
6Information16 lessons
6.1Work out a tip in your head
6.2Why gift card payment means scam
6.3Wrong number text scam, and how to spot other scam texts
6.4How to turn off location on iPhone and Android
6.5Working out percent change
6.6Spot a phishing message
6.7How to block spam calls on iPhone and Android
6.8Turn on two-factor login for email
6.9How to check if your phone is hacked
6.10Trace a claim before you share it
6.11Check an AI chatbot's answer
6.12Spot a bar chart that exaggerates
6.13Hang up on a 'bank' caller
6.14What never to paste into an AI chatbot
6.15Self-reported vs measured numbers
6.16Relative risk vs absolute risk
7Kitchen17 lessons
7.1How to set a table
7.2Cracking an egg cleanly
7.3Following a recipe and measuring accurately
7.4Using an oven safely
7.5How to tell if an egg is bad
7.6Boiling an egg to the yolk you want
7.7How to cook rice on the stove
7.8How long is cooked chicken good for in the fridge
7.9Chopping an onion with the claw grip
7.10Storing raw meat safely in the fridge
7.11Reading food date labels
7.12How to thaw chicken fast
7.13How to season cast iron
7.14Cooking chicken to a safe temperature
7.15Five dinners you can cook from memory
7.16Planning a week of dinners with one shopping trip
7.17Cooking dinner for six, all ready at once
8Home17 lessons
8.1Making a bed with tucked corners
8.2Removing sticker residue
8.3Cleaning a toilet properly
8.4How to clean a shower
8.5How to get blood out of clothes
8.6Laundry symbols: how to read a care label
8.7Doing a load of laundry
8.8Cleaners you must never mix
8.9How to get rid of fruit flies · You are here
8.10Unblocking a toilet with a plunger
8.11Resetting a tripped breaker
8.12Building a 72-hour emergency kit
8.13Shutting off the water
8.14Reading a utility bill
8.15How to clean a dryer vent
8.16Recording a rental's condition on move-in day
8.17Splitting chores with a housemate
9Hands18 lessons
9.1Tying shoelaces that stay tied
9.2How to wrap a present
9.3Addressing an envelope
9.4Tying a square knot (reef knot)
9.5How to tie a clove hitch
9.6Reading a tape measure
9.7Hammering a nail in straight
9.8How to fix a separated zipper
9.9Sewing on a button that stays on
9.10Tying a bowline
9.11How to remove a stripped screw
9.12Hanging a heavy picture securely
9.13Tying a four-in-hand necktie knot
9.14How to put air in tires
9.15How to change windshield wipers
9.16Checking the oil and other fluids under the hood
9.17Assembling flat-pack furniture
9.18Changing a flat tire
General education, not medical, legal or financial advice.
From undertaught.com/manual/get-rid-of-fruit-flies. Free, sourced lessons for every skill at undertaught.com/manual.
