Tiny flying insects on indoor plants are most often fungus gnats, which thrive in moist soil; treat the soil, change care habits, and use traps. Fungus gnats are weak fliers, appear near the soil surface, and emerge when plants are watered. Adults don’t harm plants, but their larvae feed on roots and organic matter, weakening seedlings and stressed plants.

Identify the Insect Type First

Correct treatment depends on accurate identification. Three common pests look similar but require different control methods.

  1. Fungus gnats: slender, black flies about 1/8 inch (3 mm) long with long legs and antennae. They crawl more than fly and are drawn to damp soil. Larvae are translucent with shiny black heads, found just below the soil surface.
  2. Whiteflies: tiny, moth-like insects about 1/16 inch (1.5 mm) long, with white wings. They flutter up in clouds when leaves are disturbed. Found on undersides of leaves, not in soil.
  3. Thrips: narrow, dark insects about 1/25 inch (1 mm) long, hard to see without magnification. They leave silvery streaks and black specks on leaves. Active during the day, not drawn to light or water.

Use a hand lens or magnifying glass to check. Tap the plant over a white sheet of paper and watch what falls. Fungus gnats drop slowly and crawl. Whiteflies flutter. Thrips are fast and jump. Confirm before treating.

Break the Life Cycle with Soil Treatments

Fungus gnat larvae live in the top 1–2 inches (2.5–5 cm) of soil. Disrupting their breeding stops new adults. Apply treatments to soil only, not foliage, unless noted.

  1. Apply hydrogen peroxide drench

    Mix 1 part 3% hydrogen peroxide with 4 parts water. Pour slowly over soil until it seeps through the drainage holes—about 1 cup per 6-inch (15 cm) pot. This kills larvae on contact. Repeat once after 7 days. Do not use more than twice; it can harm plant roots and soil microbes.
  2. Use beneficial nematodes (Steinernema feltiae)

    These microscopic worms seek and kill fungus gnat larvae. Mix 1 million nematodes per 25 square feet (2.3 m²) of soil surface—typically one package treats five 6-inch pots. Mix with cool water (below 60°F/16°C) as directed, apply with a watering can, and water the soil lightly first. Apply in low light or evening. Reapply every 7–10 days for three rounds. Store unused nematodes refrigerated and use within 2 weeks of purchase.
  3. Top-dress with sand or diatomaceous earth

    Spread a 1/2 inch (1.25 cm) layer of horticultural sand or food-grade diatomaceous earth over the soil surface. This dries the top layer and deters egg-laying. Reapply after watering if washed in. Diatomaceous earth must stay dry to work; avoid wetting it directly.
  4. Replace the top 1 inch of soil

    Gently scrape away the top layer of soil from each infested pot and discard it in a sealed bag. Replace with fresh, dry, sterile potting mix. Do this during low-light hours to reduce plant stress. Repeat every 7–10 days for 3 weeks to catch new hatchlings.

Catch Adults and Prevent Spread

Killing adults reduces egg-laying and buys time for soil treatments to work. Use traps near the soil, not high in the air.

  1. Set yellow sticky traps at soil level

    Cut sticky traps into 1-inch (2.5 cm) wide strips. Insert into the soil so the trap lies just above the surface. One strip per 6-inch pot. Replace when full or after 2 weeks. Yellow attracts fungus gnats more than other colors.
  2. Use apple cider vinegar traps

    Pour 1/4 inch (0.6 cm) of apple cider vinegar into a small dish. Add 2 drops of dish soap to break surface tension. Place near infested plants. Replace liquid every 3 days. Do not let pets or children access; vinegar can attract ants if spilled.
  3. Turn off grow lights at night

    Fungus gnats are attracted to light. Run grow lights only during daylight hours. Use a timer to keep lights on 6–12 hours daily, depending on plant needs. Turning lights off at night reduces adult activity and egg-laying.

Adjust Watering and Soil to Prevent Return

Overwatering is the main cause of fungus gnats. Even one overwatered plant can sustain an infestation. Adjust care to keep the top soil layer dry.

  1. Let soil dry deeper between waterings

    Water only when the top 1–2 inches (2.5–5 cm) of soil feel dry. For most houseplants, this means watering every 7–14 days, but check each plant. Succulents and cacti may need water every 3–4 weeks. Use a moisture meter or your finger to test.
  2. Use well-draining potting mix

    Replace standard potting soil with a mix containing perlite, pumice, or orchid bark—about 30% by volume. Avoid peat-heavy mixes that hold water too long. Repot during spring or early summer when plants are actively growing.
  3. Ensure pots have drainage holes

    Do not use pots without holes. If decorative pots lack holes, transfer plants to plastic nursery pots with holes and place them inside. Empty saucers within 30 minutes of watering to prevent water from wicking back into the soil.

Compare Treatments and Choose What Fits

Treatment Kills Larvae? Kills Adults? Safe for Pets? Time to Work Best For
Hydrogen peroxide drench Yes No Yes, when diluted 1–2 days Fast action on larvae
Beneficial nematodes Yes No Yes 3–7 days Organic, long-term control
Diatomaceous earth Yes, on contact No No, if inhaled Immediate Dry soil surfaces
Yellow sticky traps No Yes Yes 1–2 days Monitoring and adult control
Apple cider vinegar trap No Yes No, if spilled Immediate Low-cost adult trapping

Check This Before You Start

Use this checklist to avoid mistakes that prolong infestations.

  • Confirm the insect is a fungus gnat before treating soil.
  • Test hydrogen peroxide on one plant first; some sensitive species react poorly.
  • Do not use chemical insecticides labeled for soil drench unless the product specifies fungus gnats.
  • Never mix diatomaceous earth into soil—it reduces aeration and can harm roots.
  • Do not let sticky traps touch leaves; they can trap and damage foliage.
  • Do not overapply nematodes; more does not help and can harm soil biology.
  • Do not water immediately after applying diatomaceous earth or sand top-dressing.

Most infestations clear within 3–4 weeks using a combination of soil treatment and adult trapping. Continue monitoring with sticky traps for 2 weeks after the last sighting. If insects return, repeat the full cycle. Prevent future outbreaks by keeping soil surfaces dry and avoiding overpotting.