Companion Flowers for Vegetable Gardens: Which Blooms Keep Pests Away

Flowers in a vegetable garden do more than add color. Planted on borders or interplanted among the crops, the right blooms reduce insect damage by repelling pests with scent, masking the smell of host plants, or attracting beneficial insects that eat the pests. Gardeners who plan the flower side of the bed get fewer chewed leaves and a steadier harvest.

Companion planting works best when the flowers are already established before pests arrive, which makes bed layout part of the strategy. For the structural side of that plan, planting a raised bed vegetable garden covers bed size, soil depth, and crop spacing that leave room for flowers at the edges.

How Companion Flowers Protect Vegetable Crops

Companion flowers protect crops through several mechanisms, and most useful blooms combine two or three of them. Strong-scented flowers confuse or repel pests that find vegetables by smell. Other flowers act as trap crops, luring pests away from the vegetables. Still others feed the predatory insects that keep pest numbers down. The same tactics you would use to identify and control garden invaders on a single crop apply across the whole bed.

  1. Repel pests with strong scent or aromatic oils.
  2. Mask the smell of the host crop so pests cannot find it.
  3. Trap pests on sacrificial plants that you inspect and remove.
  4. Attract predators and parasitoids that feed on pests.

Repelling pests versus attracting their enemies

Repellent plants push pests away from the crop, while attractant plants pull in the insects that prey on pests. Marigolds and scented herbs sit in the first group, and yarrow, dill, and most native wildflowers sit in the second. A good border combines both so that pests are driven off at the edge and any that get through meet predators near the vegetables.

Native flowers and beneficial insects

Native flowers are the most reliable habitat for beneficial insects because local predators recognize them. Queen Anne’s lace, for example, draws parasitic wasps and lacewings that feed on aphids and caterpillars. Blooming borders of native plants give these insects nectar and shelter within a few feet of the crops they protect.

FlowerMain pests targetedHow it helpsEase of growing
MarigoldCabbage worms, thripsRepels by scent, attracts predatorsEasy
NasturtiumAphids, squash bugsTrap crop, repels by scentEasy
CalendulaAphids, whitefliesAttracts hoverflies, trap cropEasy
BorageHornworms, beetlesAttracts bees and parasitoidsEasy
YarrowAphids, caterpillarsFeeds ladybugs and lacewingsModerate
Sweet alyssumAphids, mitesAttracts hoverflies and waspsEasy

None of these flowers eliminates pests by itself, but used together they cut damage enough to reduce the need for spraying. Expect the biggest effect in small gardens where flowers and vegetables share the same beds.

The Best Flowers for Pest Control

A handful of easy annuals delivers most of the pest control in a vegetable garden. They germinate quickly, bloom for months, and slot into borders without shading the crops. If you want to understand how aroma alone can do the job, the list of scents that deter garden pests explains which odors bugs avoid and how to deploy them.

Marigolds

Marigolds are the classic companion flower for good reason. They have been shown to reduce the prevalence of several types of cabbage worms in brassicas, and planted with basil they help lower the number of thrips attacking tomatoes. Some trials also show faster tomato growth next to marigolds. Put them on the sunny edges of beds so taller vegetables do not shade them out, or interplant them with shorter crops.

Nasturtiums

Nasturtiums pull aphids onto themselves and away from nearby vegetables, acting as a living trap that you can inspect and remove. Their strong scent also confuses squash bugs and cucumber beetles. They thrive in poor soil, which is convenient because rich soil makes them produce leaves instead of flowers.

Using nasturtiums as a trap crop

Check trap plants weekly and remove heavy aphid colonies before they spread to the crop. Because nasturtiums sacrifice themselves for the vegetables, plant a few extras so the trap keeps working all season.

Calendula, borage, and yarrow

Calendula blooms early and long, feeding the hoverflies whose larvae eat aphids, and it works as a trap crop for whiteflies. Borage attracts bees and parasitic wasps and is often planted near squash and tomatoes. Yarrow is a perennial that feeds ladybugs and lacewings, building the permanent predator population in the garden.

Sweet alyssum and Queen Anne’s lace

Sweet alyssum forms a low carpet of tiny flowers that hoverflies and parasitic wasps visit constantly, making it one of the best companions for leafy greens. Queen Anne’s lace, a biennial, grows tall and lacy and attracts a wide range of beneficials; let a few plants go to seed and they return every year.

Timing and Cold Tolerance: Blooms Before the Bugs

Pests build through the season, so flowers that bloom early do the most work. Calendula and sweet alyssum start flowering while the soil is still cool, giving predators a food source before aphids and caterpillars peak. For the cold side of that equation, the methods for preparing your garden for cold weather also apply when you push flowers into early spring beds.

Planting flowers early

Direct-sow hardy flowers like calendula and bachelor’s buttons two to four weeks before the last frost. They tolerate cool nights and bloom weeks ahead of tender annuals, so the predator population is already in place when pests arrive.

Frost-tender options for warm months

Marigolds, nasturtiums, and zinnias wait until frost danger passes. In short seasons, start them indoors or buy transplants so the bloom window is not wasted. Mixing hardy and tender flowers gives continuous bloom from spring through fall.

Soil and Site Preparation

Flowers compete with vegetables for the same soil, so prepare the whole bed before planting. Most companion flowers want the same conditions as vegetables: full sun, fertile soil, and steady moisture. A simple soil test before planting shows pH and nutrient levels so you can correct problems once instead of guessing all season.

  • Six or more hours of direct sun for the flower border.
  • Soil that drains within a day of heavy rain.
  • pH between 6.0 and 7.0 for most companion flowers.
  • Room for a border path between flowers and crop rows.

Sunlight and drainage

Almost every pest-control flower listed here needs six or more hours of sun. Beds that stay damp breed fungus and slugs, so improve drainage before planting if water pools after rain. Raised beds solve both problems at once.

Amending beds for flowers and vegetables together

Work compost into the top 6 to 8 inches before planting. Skip high-nitrogen fertilizer at the flower border, because it produces leafy growth at the expense of blooms, and blooms are what feed the beneficial insects.

Designing a Full-Season Bloom Plan

A border of flowers that all bloom in June leaves vegetables unprotected in August. Plan for successive waves of bloom, with early, mid, and late flowers spaced through the bed. A full sun garden design that thrives all season uses the same principle: tall flowers at the back or north side, low flowers at the front, and gaps that let air move.

Succession planting flowers

Sow a second round of fast flowers like alyssum and calendula every three to four weeks through midsummer. The new plants replace spent ones and keep nectar flowing to predators until frost.

Balancing flowers with vegetable spacing

Interplant low flowers between rows of leafy crops, and reserve the sunny perimeter for taller flowers so they do not shade the vegetables. Leave a path between the flower border and the crop rows so you can harvest without trampling either.

Choosing Annuals, Perennials, and Biennials

The three life cycles of garden flowers each earn a place in a pest-management border. Annuals deliver fast, season-long bloom; perennials build a permanent predator habitat; biennials bridge the gap with early spring flowers in their second year. Matching annuals, perennials, and biennials to the right job keeps the border productive without replanting everything each spring.

Annuals for fast coverage

Marigolds, nasturtiums, calendula, and alyssum all bloom in the season they are sown. They give quick pest control and fill gaps while slower perennials establish.

Perennials for permanent habitat

Yarrow, echinacea, and other native perennials come back every year and feed predators from their first spring flush. Plant them at the back of the border where they will not be disturbed by replanting.

Biennials like Queen Anne’s lace

Biennials spend their first year building roots and bloom in the second. Queen Anne’s lace self-seeds readily, so once established it acts like a perennial and keeps drawing beneficial insects year after year.