Winter pushes our plants indoors, and tiny pests like fungus gnats and whiteflies love to follow them. Those little flying specks around your pots can turn a cozy windowsill into a buggy mess fast.
The good news is that some plants fight back with strong scents, sticky leaves, or bug-trapping tricks. Here are nine smart picks that many gardeners keep on their sills to help keep the swarm away until spring.
1. Butterwort

Picture a plant that works like living flypaper, and you have butterwort. Its flat, shiny leaves look harmless, but they are coated in a sticky goo that grabs fungus gnats the moment they land.
Many indoor gardeners swear this little carnivore is the best gnat fighter money can buy. One plant can catch dozens of adult gnats in a week, which breaks the breeding cycle before the next batch hatches in your soil.
Mexican butterworts are the easiest types to grow inside, and they even make pretty pink or purple flowers in late winter.
Care is simpler than you might expect. Give it bright light, like an east or south window, and water it with rain or distilled water instead of tap water.
Plant it in a gritty mix of perlite and peat, since rich potting soil can rot its roots.
Fun fact: the name comes from an old belief that rubbing the leaves on a cow’s udder made the milk richer. Today, its real value is clear to anyone tired of swatting bugs.
Set a butterwort right next to your most gnat-prone pots, and let it quietly do the dirty work for you.
2. Sundew

Sparkling like it’s covered in morning dew, the sundew is one of the prettiest bug traps you’ll ever own. Each leaf is lined with tiny red hairs tipped in sweet, sticky droplets.
Gnats and whiteflies think they’ve found a snack. Instead, they get stuck, and the leaf slowly curls around them like a hand closing into a fist.
Watching it happen is honestly a little thrilling, and kids tend to love it.
The Cape sundew is the go-to choice for beginners. It grows fast, tolerates indoor life well, and spreads seeds so easily that you may soon have extra pots to share.
Keep it in a saucer of distilled water so the soil stays damp at all times, and give it as much sun as your window allows.
Because sundews are a bit taller than butterworts, they can catch flying pests that drift higher around your plants. Some gardeners pair the two for double coverage.
Did you know Charles Darwin was obsessed with sundews? He wrote that he cared more about them than the origin of all species.
After a winter with fewer gnats, you might feel the same way.
3. Rosemary

Brush your hand across a rosemary plant, and your whole kitchen smells like a holiday roast. That piney scent comes from strong oils that whiteflies and many other pests find downright offensive.
Rosemary doesn’t trap bugs. Instead, it acts like a bouncer, making the area around your windowsill less inviting.
Gardeners often tuck a pot of it between more vulnerable plants, like basil or hibiscus, to help mask their scent from hungry whiteflies.
Bringing rosemary indoors for winter also saves the plant itself in colder regions, where it often dies outside. Give it your sunniest window, at least six hours of light if you can manage it.
Let the top inch of soil dry before watering, because soggy soil is the fastest way to kill it and also the fastest way to invite gnats.
That second point matters. Dry-loving plants like rosemary give fungus gnat larvae no damp home to grow in.
So you get a scent shield plus a pot that never becomes a nursery. Bonus: you can snip fresh sprigs for soups, potatoes, and roasted chicken all season long.
Few pest fighters taste this good.
4. Lavender

Grandma probably tucked lavender sachets into her drawers to keep moths out, and she was onto something. The same calming smell we love is packed with compounds that many flying insects avoid.
On a winter windowsill, lavender helps discourage whiteflies and gnats from settling in nearby pots. It won’t wipe out an infestation alone, but it adds a fragrant layer of defense that works quietly in the background.
French and Spanish lavenders tend to handle indoor life better than English types.
Here’s the trick to keeping it happy inside: lots of light and very little water. Lavender comes from dry, rocky hillsides around the Mediterranean, so it hates wet feet.
Use a clay pot with a drainage hole and a gritty soil mix, then water only when the pot feels light.
That dry soil is also a gift to the rest of your collection. Fungus gnats need moist dirt to lay eggs, so a lavender pot gives them nowhere to start.
Rub a leaf whenever you walk by to release more scent. It’s a small daily ritual that keeps your windowsill smelling sweet and your bug count low.
5. Basil

Ask any Italian cook, and they’ll tell you a kitchen isn’t complete without basil. Gardeners have another reason to love it: that sweet, spicy aroma can help confuse and repel flying pests.
Basil contains oils like linalool and eugenol, which many small insects dislike. A pot of it on the sill can make the area less appealing to whiteflies and gnats looking for a winter home.
Some people even crush a few leaves and leave them near problem plants for an extra burst of scent.
Now for the honest part. Basil is a bit of a diva in winter.
It wants warmth, steady light, and no cold drafts from leaky windows. If your sill gets chilly at night, pull the pot back a few inches after sunset.
A small grow light can make a huge difference during short December days.
Water at the base in the morning, and let the surface dry slightly between drinks. That keeps gnats from setting up shop in the soil.
Keep pinching off the tops to make it bushy, and you’ll have fresh pesto in January while your neighbors are buying sad grocery store bunches.
6. Venus Flytrap

Snap! Few plants put on a show quite like the Venus flytrap.
Its toothy little jaws close in under a second when a bug brushes the trigger hairs inside.
So why isn’t it number one? Flytraps are better at catching crawling insects and larger flies than tiny gnats, which are often too small to set off the trap.
Still, they grab plenty of whiteflies and other wanderers, and they make a fun, useful addition to a pest-fighting windowsill team.
There’s one big catch with flytraps in winter. They naturally go dormant for a few months, slowing down and looking a little tired.
That’s normal, so don’t panic or toss it. Keep the plant on a cool, bright sill and water it lightly with distilled water until spring wakes it back up.
Here’s a quirky fact: Venus flytraps grow wild in only one small area, within about 60 miles of Wilmington, North Carolina. Every one on your windowsill traces back to that swampy corner of the country.
Avoid poking the traps for fun, since each one can only close a handful of times before it dies off.
7. Scented Geranium

Lemon, rose, mint, even chocolate. Scented geraniums come in more fragrances than a candle shop, and their fuzzy leaves release those smells with the lightest touch.
The lemon-scented type, often sold as citronella geranium or mosquito plant, is the favorite for pest control. Its citrus oils help keep whiteflies and gnats from lingering.
Plenty of gardeners who bring their porch geraniums inside for winter notice fewer bugs on nearby pots, and that’s no accident.
Overwintering is easy, too. Before the first frost, cut the plant back by about a third, check it carefully for hitchhiking pests, and set it in your sunniest window.
It will keep growing slowly and might even bloom.
Let the soil dry out between waterings, because geraniums prefer life on the thirsty side. That habit alone cuts down on gnat breeding.
The fuzzy leaves also make it harder for some tiny insects to get comfortable.
When spring arrives, you can take cuttings and root them for a whole new batch of plants. So one windowsill geranium becomes a pest shield in winter and a free garden refill in May.
That’s a pretty generous houseguest.
8. Mint

Mint has a reputation for being a bully in the garden, spreading everywhere it can reach. On a windowsill, that toughness turns into a real advantage.
Peppermint and spearmint are loaded with menthol, the same cooling compound found in your toothpaste. Many pests, including whiteflies and gnats, would rather stay far away from it.
A pot of mint near your other houseplants creates a sharp, fresh scent barrier that people tend to love and bugs tend to hate.
Keeping it in a container is actually the smart way to grow mint, since its roots can’t escape and take over. Choose a bright window and keep the soil lightly moist but never soggy.
Mint likes more water than rosemary or lavender, so watch closely for gnats and let the top layer dry before the next drink.
A handy trick is to top the soil with a thin layer of sand or fine gravel. Gnats struggle to lay eggs through it, so your mint stays both fragrant and gnat-free.
Snip leaves for tea, hot cocoa, or a winter fruit salad. Regular cutting keeps the plant full and releases even more of that bug-busting smell.
9. Pitcher Plant

Hanging from its leaves like tiny decorated cups, the tropical pitcher plant looks like something from a fairy tale. Those cups are actually sneaky traps filled with digestive liquid.
Bugs are drawn in by sweet nectar around the rim. The edges are slippery, so once a gnat or whitefly loses its footing, it tumbles inside and can’t climb out.
Nepenthes, the tropical kind, is the best pick for indoor growing because it doesn’t need the cold winter rest that American pitcher plants require.
Hang it in a basket near a bright window, and it can catch pests flying at different heights than your sticky-leaved plants below. That makes it a great finishing piece for a full windowsill defense crew.
Pitcher plants love humidity, which can be tricky in winter when the heat is running. Set the pot over a tray of pebbles and water, or group it with other plants to raise moisture levels.
Use distilled water, and keep the soil damp but airy with a sphagnum moss mix.
Some giant wild species have pitchers big enough to catch frogs and even small rodents. Yours will stick to gnats, thankfully.
