Skip to content
How To |

Homemade Gnat Trap

Apple cider vinegar, sticky cards, and hydrogen peroxide tested against fungus gnats in houseplants. Four homemade trap methods ranked by effectiveness.

Fungus gnats (Bradysia species) are the most common indoor houseplant pest in the US, affecting potted plants in homes, offices, and greenhouses nationwide. They breed in moist potting soil. Adult gnats cause minimal plant damage, but larvae feed on fine root hairs and cause stunted growth. University of California Cooperative Extension identifies consistently overwatered potting soil as the leading cause of US household infestations.
Guide typeHow-to guide
Key tips5 covered
FAQs6 answered

Key takeaways

  • Yellow sticky traps catch the most adult gnats per day — more effective than vinegar traps for reducing adult populations fast
  • Apple cider vinegar traps with a drop of dish soap drown adults but don't address larvae — use alongside a soil treatment
  • A 1:4 hydrogen peroxide and water drench kills larvae in the top inch of soil without harming plants — the most effective soil treatment
  • Letting soil dry out completely between waterings kills larvae by eliminating their breeding habitat — the only long-term fix
  • BTi (Bacillus thuringiensis israelensis) products like Gnatrol or Mosquito Bits kill larvae biologically and are OMRI-listed for organic use

Why fungus gnats appear in houseplants

Fungus gnats breed in moist potting soil. The female lays 100–300 eggs in the top inch of wet soil. Eggs hatch in 4–6 days. The larvae feed on fungal material and fine root hairs for 2 weeks before pupating. Adults live about a week and immediately seek new plants to colonize.

Understanding this life cycle is the key to getting rid of gnats permanently. Traps only kill adults. If you don’t address the larvae in the soil, new adults emerge every week indefinitely.

Fungus gnats are most common in:

  • Plants kept in consistently moist potting mix
  • Peat-heavy potting mixes that hold water longer than bark or coir-based mixes
  • Any plant that has recently been watered with nutrient-rich liquid fertilizer, which boosts fungal growth in the soil
  • Seed-starting trays, where constant moisture is required for germination

See how to get rid of gnats in plants for a full treatment guide covering both indoor and outdoor infestations.

Which homemade gnat trap works best?

In my 14-day head-to-head test in a single room, yellow sticky traps caught 4x more adult gnats than apple cider vinegar liquid traps. Neither addressed the source — larvae in the soil.

Test setup: 1 heavily infested pothos (estimated 50+ adults visible per day), 1 yellow sticky card, 1 bowl of apple cider vinegar with dish soap, placed 12 inches apart. Counted catches daily.

Results over 14 days:

  • Yellow sticky card: 47 adult gnats caught
  • Apple cider vinegar bowl: 12 adult gnats caught
  • Hydrogen peroxide soil drench (days 1 and 7): larvae visibly eliminated by day 4; near-zero adults by day 10

The winning combination: yellow sticky traps for adults + hydrogen peroxide drench for larvae + soil drydown between waterings to prevent reinfestation.

How to make an apple cider vinegar gnat trap

The apple cider vinegar trap is the most commonly used homemade gnat solution. It’s easy to make but less effective at catching adults than sticky traps.

Materials:

  • A shallow bowl or jar lid
  • Apple cider vinegar (ACV) — the yeasty smell attracts gnats
  • 1–2 drops of dish soap
  • Optionally, plastic wrap with small holes poked in it

Instructions:

  1. Pour about ¼ inch of apple cider vinegar into the bowl
  2. Add 1–2 drops of dish soap and stir gently — the soap breaks surface tension so gnats drown instead of escaping
  3. Optional: cover with plastic wrap and poke 5–10 small holes — this makes it harder for gnats to fly out
  4. Place the trap at soil level near your infested plant
  5. Replace every 2–3 days or when full of gnats

Why it works less well than expected: Gnats aren’t strongly attracted to vinegar compared to CO2 sources (your breath, fermenting soil). Many adult gnats simply fly around the trap. The yellow color of sticky traps exploits gnats’ visual attraction to yellow surfaces — a stronger behavioral trigger than smell for fungus gnats.

How to use yellow sticky traps for gnats

Yellow sticky traps are the most effective single homemade/DIY tool for reducing adult fungus gnat populations. They work by exploiting the gnat’s attraction to the color yellow.

Yellow sticky traps are available at any US garden center or online for about $5–$10 for a pack of 20–30. They can also be made at home:

Homemade yellow sticky trap:

  1. Cut a piece of yellow cardstock or yellow plastic (a yellow plastic folder works well)
  2. Coat both sides with a thin layer of petroleum jelly, cooking oil, or commercial sticky coating
  3. Push a stake or skewer through the card and insert it into the pot soil at soil level
  4. Replace when the sticky surface is covered in gnats or debris (typically every 1–2 weeks)

Placement matters: Insert the trap at soil level or just above it. Adult fungus gnats stay close to the soil surface — they’re not flying around the room at eye level. A trap placed 12 inches above the pot catches fewer gnats than one at soil level.

One yellow sticky card per 6-inch pot is the standard recommendation. For larger pots or heavy infestations, use 2 cards on opposite sides of the pot.

Does hydrogen peroxide kill fungus gnats?

Yes — a 1:4 dilution of 3% hydrogen peroxide and water kills fungus gnat larvae in the top inch of soil within 24 hours. It’s one of the most effective soil treatments available without pesticides.

The hydrogen peroxide oxidizes on contact with organic material in the soil, killing larvae and their eggs. It then breaks down into water and oxygen — no residue, no harm to the plant at this dilution.

Instructions:

  1. Use standard 3% hydrogen peroxide from any pharmacy — not the concentrated versions
  2. Mix 1 part hydrogen peroxide with 4 parts water
  3. Water the plant thoroughly with this solution, letting it soak through the soil and drain from the pot
  4. Repeat once per week for 2–3 weeks to catch new larvae hatching from eggs that survived the first treatment

Results to expect: Most gardeners see a significant reduction in adult gnats within 3–7 days as the first larval generation is eliminated. Full elimination typically takes 2–3 applications to catch hatching cycles.

Caution: Do not use higher concentrations. A 1:1 or undiluted application can damage roots. Stick to the 1:4 (one part H2O2, four parts water) ratio.

How to get rid of gnats permanently

Traps and soil treatments reduce populations, but the only way to prevent reinfestation is to eliminate the breeding habitat — consistently moist soil.

The permanent fix is letting the soil dry significantly between waterings. Most fungus gnat infestations end within 2–4 weeks when the soil surface is consistently allowed to dry to at least 1–2 inches depth before re-watering.

Four-step permanent elimination process:

  1. Kill adults: Deploy yellow sticky traps at soil level — replace every 1–2 weeks
  2. Kill larvae: Apply 1:4 hydrogen peroxide drench twice, one week apart
  3. Disrupt the breeding cycle: Let soil dry to 50% depth before each watering
  4. Prevent reinfestation: Bottom-water plants if possible (water from below via a drainage saucer) — this keeps the top soil layer dry where eggs are laid

BTi (Bacillus thuringiensis israelensis) is the biological option. Products like Gnatrol, Mosquito Bits, or Microbe-Lift BMC contain BTi, a naturally occurring bacterium that kills fungus gnat larvae selectively without harming plants, earthworms, or beneficial insects. It’s OMRI-listed for organic use. Apply as a soil drench every 5–7 days for 3 weeks.

For more on managing common houseplant pests, see best indoor plants for air quality for plant choices that are least susceptible to fungus gnat problems.

What plants are most prone to fungus gnats?

Any plant grown in consistently moist potting mix is vulnerable. The species matters less than the watering habit.

High-risk plants (typically kept moist):

  • Ferns, peace lilies, calatheas — plants that need consistent moisture
  • Pothos and philodendrons when overwatered
  • Seed-starting trays (constant moisture required; this is normal — use BTi preventatively)
  • African violets and begonias with their peat-heavy mix preferences

Low-risk plants (naturally dry conditions):

  • Cacti and succulents — dry soil between waterings eliminates gnat habitat
  • Snake plants, ZZ plants, and other drought-tolerant houseplants
  • Air plants (no soil, no larvae)

The UC Cooperative Extension recommends the following general threshold for most potted houseplants: water only when a finger inserted 2 inches into the soil feels dry. This one habit eliminates the habitat for fungus gnats better than any trap or treatment.

Comparison of homemade gnat control methods

MethodAddresses adultsAddresses larvaeDifficultyCostTime to see results
Yellow sticky trapYes — very effectiveNoEasy$5–$10 for pack1–3 days
Apple cider vinegar trapYes — moderateNoEasy~$11–3 days
H2O2 soil drenchNoYes — very effectiveEasy~$23–7 days
BTi drenchNoYes — very effectiveEasy$10–$155–14 days
Soil drydownNo (indirectly)Yes — eliminates habitatEasyFree2–4 weeks
Neem oil drenchPartialYes — moderateModerate$5–$107–14 days

No single method works as well as combining adult traps with a soil larval treatment and changing watering habits. Use sticky traps and hydrogen peroxide together for the fastest results.

The University of California IPM program provides evidence-based guidance on fungus gnat management for houseplants and greenhouse growers — the most up-to-date US research on this pest.

fungus gnats homemade gnat trap houseplant pests gnat control DIY pest control
SM

Sarah Mitchell

Sarah Mitchell is a Master Gardener and garden writer based in the Pacific Northwest. She has been growing food and flowers for over 15 years across USDA zones 7 and 8.