Vibrant vegetable garden with companion flowers including marigolds bordering tomatoes, lavender near peppers, nasturtiums along a garden path, and sunflowers in the background
Peter Vogel

Peter Vogel

Peter Vogel is the founder of GrowPerma, bringing together evidence-based gardening advice with permaculture principles. When he's not writing about companion planting or soil health, he's experimenting in his own garden.

Companion Planting April 10, 2026

Companion Planting Flowers in the Vegetable Garden

What Are the Best Companion companion plants for squash Flowers for Your Vegetable Garden?

Your vegetable garden is working harder than it needs to. If you're fighting aphids on your peppers, watching squash blossoms drop without setting fruit, or spending weekends spraying organic pest controls that barely make a dent, the problem might not be what you're planting — it's what you're not planting. Research from Iowa State University shows that growing sweet alyssum between vegetable rows significantly reduces insect damage to pepper plants by attracting beneficial predator insects. And a Rutgers University meta-analysis of over 1,500 fields found that one-third to two-thirds of farms produce below their potential because pollinators simply aren't showing up.

The solution is beautifully simple: plant flowers in your vegetable garden. Not as decoration — as working members of your garden ecosystem. The right companion flowers for vegetables attract predatory insects that eat pests, draw pollinators that improve fruit set, and even suppress soil-borne diseases. This isn't wishful thinking. It's backed by decades of university extension research and peer-reviewed science.

40–61%

Pest Damage Reduction

With companion flower strips

23%

Crop Quality Boost

From adequate pollination

2–24×

Fewer Aphids

Calendula intercropping study

6

Key Companion Flowers

Backed by research

What you'll learn in this guide:

  • The 6 best companion flowers for vegetable gardens and which vegetables each one protects
  • How marigolds actually suppress nematodes (hint: it's not by planting them next to your tomatoes)
  • Why sweet alyssum is the single most effective flower for attracting pest-eating hoverflies
  • A simple planting layout for integrating flowers into your existing vegetable beds
  • The permaculture guild principles that explain why mixed plantings outperform monocultures

Key Takeaway

Companion flowers aren't just pretty — they're functional members of your garden ecosystem. University research confirms that strategic flower placement reduces pest damage by 40–61%, improves crop quality by 23% through better pollination, and attracts beneficial insects like hoverflies whose larvae consume 70–100% of nearby aphids.

Gardener planting bright orange marigold seedlings alongside young tomato plants in a raised vegetable bed with rich dark compost

Which Flowers Attract Beneficial Insects to Vegetable Gardens?

The most effective companion flowers work by recruiting an army of beneficial predators. Rather than repelling pests directly, these flowers provide nectar and pollen that sustain populations of hoverflies, ladybugs, lacewings, and parasitic wasps — insects whose larvae devour aphids, caterpillars, and other vegetable pests. University of New Hampshire research tested eight annual flowers across three farm sites and found that sweet alyssum maintained beneficial syrphid fly populations longer than any other flower tested.

Here's what the research says about each flower's specific role:

Companion FlowerPrimary BenefitBest Paired WithMechanism
Sweet AlyssumAttracts hoverflies, lacewingsPeppers, lettuce, brassicasNectar provision for beneficial predators
French MarigoldSuppresses root-knot nematodesTomatoes (as cover crop rotation)Trap crop — nematodes enter roots but can't reproduce
CalendulaReduces aphids 2–24× in brassicasCabbage, broccoli, kaleAttracts ladybugs, hoverflies, parasitic wasps
NasturtiumTrap crop for aphidsBeans, kale, tomatoes, currantsSacrificial — aphids prefer nasturtiums over vegetables
ZinniaPollinator attractionSquash, melons, tomatoes, peppersDraws bees and butterflies for fruit-set crops
BoragePollinator magnet, tomato companionTomatoes, squash, strawberriesContinuous nectar production attracts diverse pollinators

Sources: Iowa State University Extension, LSU AgCenter, UNH Extension

The key insight is that these flowers don't work in isolation — they create a beneficial insect habitat within your garden. A single adult ladybug consumes up to 50 aphids per day, and individual hoverfly larvae can control 70–100% of aphids in their immediate vicinity. When you plant flowers that feed the adults, their pest-eating larvae show up as a bonus.

Why This Works: Stacking Functions

In permaculture, every element should serve multiple purposes. A single calendula plant simultaneously produces edible flowers for your kitchen, attracts pollinators that increase your squash yield, feeds predatory insects that eat your cabbage aphids, self-seeds to reduce next year's planting work, and adds organic matter when composted. That's five functions from one plant — the permaculture principle of "each element performs many functions" in action.

How Do Marigolds Control Nematodes in Vegetable Gardens?

Marigolds are the most famous companion plant in gardening — but most gardeners use them wrong. The common advice to "plant marigolds next to your tomatoes" for nematode control isn't supported by research. Louisiana State University nematologist Dr. Charles Overstreet explains that while marigolds do suppress root-knot nematodes, the benefit occurs only when marigolds function as a dedicated cover crop — not as neighbours planted alongside vegetables.

Close-up of bright orange nasturtium flower growing next to a cabbage plant with detailed leaf textures in a companion vegetable garden

Here's how the mechanism actually works: root-knot nematodes enter French marigold roots seeking feeding sites but cannot establish successful parasitic relationships. The nematodes that enter marigold roots are killed, but nematodes that find your tomato roots nearby are unaffected. Planting marigolds next to susceptible crops doesn't protect those crops — the nematodes simply bypass the marigolds.

The effective strategy is to grow French marigolds (Tagetes patula) as a dense cover crop for 3–4 months in areas where you plan to grow susceptible vegetables the following season. After the marigold crop matures, till the plants into the soil. UF IFAS research confirms that this approach reduces nematode populations enough for one season of susceptible crops like tomatoes, peppers, and squash. The active compound, alpha-terthienyl, inhibits nematode egg hatching and prevents successful parasite establishment.

Important variety selection: French marigolds are most effective, with the Tangerine variety showing exceptional nematicidal properties. African marigolds (Tagetes erecta) provide moderate control. Signet-type marigolds lack nematicidal properties entirely — avoid them if nematode suppression is your goal. About 20% of residential gardens in Louisiana contain damaging root-knot nematode populations, making this knowledge particularly valuable for southern gardeners.

Common Mistake to Avoid

Don't expect a few marigold plants scattered among your vegetables to control nematodes. The science is clear: marigolds suppress nematodes only when grown as a dense, dedicated cover crop and then tilled into the soil. Also, the nematode-suppressing effect typically lasts only one growing season before populations rebuild — you'll need to repeat the cover crop rotation every few years.

Sweet Alyssum: The Top Performer for Pest Control

Sweet alyssum (Lobularia maritima) is the single most effective annual flower for attracting and retaining beneficial hoverflies. That's not a gardener's hunch — it's the conclusion of multi-year university research conducted across three states. Researchers at the University of New Hampshire tested eight annual insectary plants and found sweet alyssum had the longest bloom period and maintained hoverfly populations more effectively than any alternative.

Why does this matter for your vegetable garden? Hoverflies (also called syrphid flies) are dual-purpose beneficial insects. The adults feed on nectar and pollen — which is why they visit your flowers. But their larvae are voracious aphid predators, consuming large numbers of aphids, thrips, mealybugs, and other soft-bodied pests. Iowa State University graduate researcher Taylor Mauch documented significant reduction in insect damage to pepper plants when sweet alyssum was grown between rows and at row ends.

1

Plant Sweet Alyssum Early

Start seeds indoors 6–8 weeks before last frost, or direct-sow after soil temperatures reach 55°F (13°C). Sweet alyssum thrives in cool spring conditions and establishes quickly, building beneficial insect populations before peak pest season arrives.

2

Position Between Vegetable Rows

Plant sweet alyssum in 6 inch (15 cm) wide strips between vegetable rows or at row ends. The plant matures to just 3–9 inches (8–23 cm) tall and spreads 10–48 inches (25–120 cm) wide, so it won't shade your vegetables. Space plants 6–8 inches (15–20 cm) apart for quick ground coverage.

3

Succession Plant for Continuous Bloom

Sweet alyssum can struggle in peak summer heat. Sow a second round in mid-summer for fresh plants that will bloom through autumn, keeping beneficial insects present during late-season pest pressure waves.

4

Deadhead to Extend Flowering

Trim spent blooms regularly to prevent seed set and encourage continuous flowering. This sustained nectar supply keeps adult hoverflies in your garden longer, increasing the chance they'll lay eggs near your aphid-affected crops.

Thriving vegetable garden border with sweet alyssum calendula and borage flowers growing between rows of lettuce kale and Swiss chard with bees visiting

How Does Calendula Protect Brassicas From Pests?

Calendula (Calendula officinalis) — also called pot marigold — is a powerhouse companion for cabbage-family vegetables. A three-year intercropping study found that white cabbage grown alongside calendula had 2–24 times fewer aphids compared to cabbage grown alone. The same study documented reduced flea beetle populations and significantly lower egg-laying by diamondback moths and cabbage moths on intercropped plots.

Calendula works through multiple mechanisms simultaneously. Its blooms attract ladybugs, lacewings, and hoverflies — all predators that consume cabbage pests. The parasitism rate of cabbage aphids by beneficial wasps (Diaeretiella rapae) was higher in calendula-intercropped plots, meaning the flowers weren't just attracting predators, they were enhancing an entire ecosystem of natural pest control.

From a practical standpoint, calendula is one of the easiest companion flowers to grow. It flowers within 55–60 days of sowing, allowing multiple successive plantings per season. It self-seeds reliably, often returning year after year without replanting. And every part of the flower is edible — the petals make a beautiful garnish and have been used in cooking for centuries. Plant calendula alongside your brassicas, spacing plants 8–12 inches (20–30 cm) apart within or adjacent to your cabbage, broccoli, kale, and cauliflower rows.

Why This Works: The Guild Principle

When you interplant calendula with brassicas, you're building what permaculture designers call a guild — a species assembly where plants benefit each other. Bill Mollison defined guilds as groups where functional relationships create outcomes greater than the sum of individual parts. Your calendula attracts predators. Those predators eat your cabbage pests. The brassicas grow stronger, producing more leaf litter. That organic matter feeds the soil biology that supports both plants. It's a self-reinforcing loop, not just a companion pairing.

How Can Nasturtiums Be Used as a Trap Crop?

Nasturtiums (Tropaeolum majus) attract aphids so powerfully that their stems often become completely covered — and that's exactly the point. Unlike flowers that repel pests, nasturtiums work as a sacrificial trap crop, deliberately drawing aphid populations away from your beans, kale, and tomatoes onto a plant you're willing to lose.

Homesteader harvesting a basket of mixed vegetables and flowers including tomatoes zucchini calendula and zinnias from a productive permaculture garden

The strategy requires active management to succeed. You must remove the infested nasturtiums before aphid populations develop wings and disperse. This typically happens several weeks after initial infestation. If you leave heavily infested nasturtiums in your garden too long, you'll inadvertently create an aphid breeding ground that sends winged aphids to colonise your vegetables — the opposite of your intention.

For homesteaders, nasturtiums offer bonus utility beyond pest management. The peppery leaves and bright flowers are edible, making excellent salad additions. The immature seed pods can be pickled as a substitute for capers. And nasturtiums grow aggressively in poor soil, producing ground cover that suppresses weeds between your tomato plants or along the edges of beds.

Plant nasturtiums 2–3 weeks before your main vegetable transplants go in, positioning them along the borders of beds or in dedicated rows where you can easily pull them when they become heavily infested. Monitor every few days during peak aphid season (typically late May through June) and remove plants at the first sign of winged aphid forms.

Get Our Free Companion Planting Chart

Join 10,000+ gardeners getting weekly tips on what to plant together, soil health, and permaculture techniques.

Send Me the Chart

How Do Companion Flowers Improve Vegetable Pollination and Yields?

If your squash plants produce plenty of flowers but few fruits, the problem is almost certainly inadequate pollination — and companion flowers are the fix. A global meta-analysis of 190 studies found that adequate animal pollination improved overall crop quality by 23%, with the strongest effects on fruit size, appearance, and commercial appeal.

The issue is bigger than most gardeners realise. That Rutgers University analysis of 200,000+ bee visitation records revealed that between one-third and two-thirds of farms worldwide are producing below their potential due to insufficient pollinator visits. Wild bee species deposit 1.4–3.2 times more pollen per visit than managed honeybees, which means your garden benefits more from attracting wild native bees than from anything a nearby beekeeper provides.

Infographic showing companion flower placement in a vegetable garden with marigold borders around tomatoes nasturtium near brassicas and sweet alyssum under peppers
VegetablePollination DependencyBest Companion FlowersExpected Benefit
Squash & PumpkinHigh — requires cross-pollinationZinnias, borage, sunflowersImproved fruit set, larger fruit size
TomatoesModerate — buzz pollination helpsZinnias, borage, sweet alyssumBetter fruit quality and uniformity
PeppersModerate — cross-pollination improves yieldSweet alyssum, calendula, cosmosIncreased pod count and size
CucumbersHigh — insect pollination requiredSunflowers, zinnias, nasturtiumsMore uniform fruit, fewer bitter fruits
BeansLow — mostly self-fertileSweet alyssum, nasturtiumsPest reduction (primary), some yield boost
StrawberriesModerate — improves berry size/shapeBorage, sweet alyssumLarger, more uniform berries

Sources: Rutgers University, Nature Communications (2023)

Zinnias and cosmos are particularly effective pollinator flowers because they thrive in the same full-sun, well-drained conditions as warm-season vegetables. They're "cut-and-come-again" bloomers — harvesting flowers for bouquets actually stimulates more bloom production, extending the pollination window. Plant them in clusters rather than scattered individually, as grouped flowers create a stronger visual signal that draws pollinators from greater distances.

Key Takeaway

Squash, cucumbers, and pumpkins require insect pollination to set fruit — no pollinators means no harvest. Tomatoes and peppers benefit significantly from buzz pollination by native bees. Planting pollinator-attracting flowers like zinnias, borage, and sunflowers within 6–9 feet (2–3 m) of these crops substantially increases both yield and fruit quality.

How Should You Layout Companion Flowers in a Vegetable Garden?

Placement matters as much as variety selection. West Virginia University extension guidance recommends positioning companion plants within two to three rows of each other — roughly 6–9 feet (2–3 m) in standard row spacing — for maximum benefit. Flowers tucked at the far edge of your property won't help your vegetable beds.

For raised bed gardens, you can position flowers much closer to vegetables — often within 12–18 inches (30–45 cm). This close proximity maximises the functional interaction between flowers and vegetables. Here's a practical layout approach that works for most homestead gardens:

1

Border Plantings for Pest Control

Ring your vegetable beds with sweet alyssum and calendula. These low-growing flowers (under 12 inches / 30 cm) won't shade your vegetables and create a continuous habitat strip that sustains beneficial insect populations. European research found pest control effects extended up to 20 feet (6 m) into fields from flower strips.

2

Interplanted Rows for Pollination

Plant zinnias and cosmos in every third or fourth row among pollinator-dependent crops like squash, melons, and cucumbers. This ensures pollinators don't have to travel far between flower and vegetable. Tall zinnias (24–36 inches / 60–90 cm) can share rows with staked tomatoes without competition issues.

3

Trap Crop Stations for Aphid Management

Position nasturtium clusters at the ends of rows or at bed corners where aphids typically enter the garden (usually the side facing prevailing winds or nearest to wild vegetation). These sacrificial stations intercept aphid migrations before they reach your main crops.

4

Backdrop Plantings for Height Diversity

Plant sunflowers and tall cosmos along the north edge of your garden (in the Northern Hemisphere) where they won't cast shadows on vegetables. These tall flowers attract pollinators from a distance and provide windbreak benefits for delicate crops. Be aware that sunflowers release allelopathic compounds — keep them at least 3 feet (1 m) from beans and potatoes.

For succession planting, sow calendula every 2–3 weeks from early spring through mid-summer for continuous bloom. Zinnias and cosmos can be sown in three waves, spaced 3–4 weeks apart, to create overlapping flowering windows that sustain pollinators from late spring through first frost. Herbs from the carrot family — dill, coriander, fennel — also attract beneficial parasitic wasps when allowed to flower, adding another layer of pest control.

Key Takeaway

Position companion flowers within 6–9 feet (2–3 m) of your vegetable rows for effective pest control and pollination. Use low-growing flowers (sweet alyssum, calendula) as borders, mid-height flowers (zinnias, cosmos) interplanted among crops, and tall flowers (sunflowers) as backdrop plantings. A well-designed layout means every vegetable plant is within working range of beneficial insects.

Frequently Asked Questions

What flowers should I plant with tomatoes to keep bugs away?

Sweet alyssum, calendula, and basil are the most effective companions for tomatoes. Sweet alyssum attracts hoverflies whose larvae consume aphids and other soft-bodied pests. Calendula draws ladybugs and lacewings that prey on common tomato pests. Basil's aromatic compounds reportedly repel thrips and tomato hornworms, according to Cornell Extension research. For nematode-prone areas, grow French marigolds as a cover crop rotation in the bed before planting tomatoes — not as a same-season neighbour.

Do marigolds really repel pests from vegetable gardens?

The common claim is overstated, but marigolds do provide real pest control benefits. LSU AgCenter research shows marigolds suppress root-knot nematodes through a trap crop mechanism — but only when grown as dense cover crops and tilled into soil before planting vegetables. Simply placing marigold plants next to tomatoes doesn't protect the tomatoes from nematodes. Marigolds do attract some beneficial insects and can deter certain above-ground pests through their scent, but the nematode benefit requires specific, intentional cover cropping.

What is the best flower for attracting pollinators to a vegetable garden?

Zinnias and borage are top choices for pollinator attraction, while sweet alyssum provides the broadest beneficial insect support. Zinnias attract bees and butterflies with their bright, nectar-rich blooms and share the same growing conditions as warm-season vegetables. Borage produces continuous nectar and is especially beneficial near squash and cucumber plants that depend on insect pollination for fruit set. For overall garden health, sweet alyssum is the strongest all-round choice because it attracts both pollinators and pest-controlling hoverflies.

How close should companion flowers be to vegetables?

Within 6–9 feet (2–3 m) for most benefits, and as close as 12–18 inches (30–45 cm) in raised beds. University extension guidance recommends companion plants within two to three standard rows of each other. European flower strip research found pest control effects extending up to 20 feet (6 m) into crop areas, but proximity increases effectiveness. In raised beds and small gardens, you can interplant flowers directly among vegetables.

Can I plant nasturtiums near all vegetables?

Nasturtiums pair well with most vegetables but require management as a trap crop. They're particularly effective near beans, kale, tomatoes, and currant bushes for aphid control. However, nasturtiums must be removed before aphid populations develop winged forms and disperse. They also grow vigorously and can sprawl over smaller vegetables — give them enough space or train them along bed edges. Nasturtiums thrive in poor soil, so there's no need to waste fertile ground on them — edges and borders work perfectly.

When should I plant companion flowers relative to my vegetables?

Start companion flowers 2–3 weeks before transplanting main vegetables. This gives flowers time to establish and begin attracting beneficial insects before pest pressure peaks. Sweet alyssum and calendula can be sown as soon as soil is workable in spring. Nasturtiums should go in by mid-April to early May (in northern regions) to intercept late-May aphid migrations. Zinnias and cosmos are warm-season flowers — plant them after last frost alongside your tomatoes, peppers, and squash.

Do companion flowers work in container or small-space gardens?

Absolutely — and the benefits may be even more concentrated in small spaces. A single pot of sweet alyssum on a balcony alongside container peppers can attract hoverflies that control aphids across your entire growing area. Compact nasturtium varieties trail beautifully over container edges while serving as aphid traps. Calendula grows happily in 8 inch (20 cm) pots. In small gardens, the close proximity of flowers to vegetables means beneficial insects have shorter distances to travel, potentially making companion planting even more effective than in larger gardens.

Ready to Grow Smarter?

Get our free beginner's guide to permaculture gardening — 12 pages of practical tips you can use this weekend.

Download the Free Guide

Browse All Guides →

Resources