• Home
  • General Gardening
    • Flowers
    • Fruits & Vegetables
    • Garden Diseases
    • Garden Pests
    • Gardening 101
    • Specialty Gardening
    • Soil & Composting
    • Product Reviews
    • Landscaping
    • Trees & Shrubs
  • Growing Vegetables
    • Tomatoes
    • Fruits By Name
    • Vegetables By Name A-M
    • Vegetables by Name N-Z
  • Nutrition

Gardening Channel

Advice and Tips on How to Garden

You are here: Home / Flowers / Growing Flowers / 20 Flowers That Actually Help Your Vegetable Garden — and Exactly Why

20 Flowers That Actually Help Your Vegetable Garden — and Exactly Why

planting marigolds

By Jennifer Poindexter

Most gardeners know marigolds go with tomatoes. But that’s usually where the companion flower knowledge stops — and there’s so much more to it than that.

The right flowers don’t just add color to your vegetable garden. They repel specific pests, attract beneficial insects that eat the bad ones, improve your soil, and even boost yields in the vegetables growing nearby. The wrong placement, though, can mean wasted space or flowers that don’t deliver the benefits you were hoping for.

Here are 20 flowers worth growing alongside your vegetables — what each one actually does, which vegetables it helps most, and where to put it.

Where to Plant Flowers in Your Vegetable Garden

Placement matters as much as the flower itself. A few guidelines:

  • Tuck shorter flowers (marigolds, alyssum, pansies) directly under or between larger vegetables like tomatoes, peppers, and eggplant.
  • Place tall flowers (sunflowers, cosmos, dahlias) at the north end of your bed so they don’t shade out sun-loving crops.
  • Run border flowers (lavender, petunias, nasturtiums) along the perimeter to intercept pests before they reach your vegetables.
  • For vining crops like squash and strawberries, plant companion flowers at the bed’s edge rather than interplanting them.

The 20 Best Flowers for Your Vegetable Garden

1. Nasturtium

Nasturtiums are one of the hardest-working flowers in the vegetable garden. They act as a sacrificial trap crop — aphids, whiteflies, squash bugs, and cucumber beetles are strongly attracted to them and will cluster on nasturtiums instead of your crops. You can then remove and destroy the infested plants. As a bonus, nasturtium flowers and leaves are edible: peppery and bright, good in salads. Plant in full sun with well-draining soil.

Best with: tomatoes, cucumbers, squash, beans

marigold in garden

2. Marigold

Marigolds are the classic vegetable garden companion for good reason. Their roots release a substance called alpha-terthienyl that suppresses soil-dwelling nematodes — tiny worms that attack tomato and pepper roots. Their scent also deters aphids, whiteflies, and tomato hornworms. For nematode control, plant them densely and consistently over several seasons. French marigolds (dwarf varieties) work better than African marigolds for interplanting. Full sun, well-draining soil.

Best with: tomatoes, peppers, squash

3. Sweet Pea

Sweet peas attract pollinators early in the season when fewer flowers are blooming and your cool-weather crops need help setting fruit. They’re fragrant, beautiful, and work well along a trellis at the back of a spring bed. One important note: sweet peas are toxic if eaten — don’t confuse them with edible peas. Plant in a spot with morning sun and afternoon shade; they’ll fade out as summer heats up.

Best with: lettuce, spinach, snap peas, early brassicas

sunflowers growing in garden

4. Sunflowers

Sunflowers are pollinator magnets — bees, butterflies, and beneficial wasps flock to them all season. They also serve a structural role: cucumber and bean vines will climb sunflower stalks naturally, and their height provides light afternoon shade for heat-sensitive crops nearby. Plant at the north end of beds so they don’t shade out sun-lovers. Full sun, well-draining soil.

Best with: cucumbers, pole beans, corn, squash

5. Salvia

Salvia’s strong aromatic oils confuse and repel aphids, flea beetles, and spider mites. It’s particularly useful near crops that flea beetles love, like eggplant and brassicas. The bright blooms — usually red, purple, or blue — also attract hummingbirds, which are effective predators of garden caterpillars. Full sun, well-draining soil.

Best with: tomatoes, eggplant, carrots, brassicas

6. Petunia

Petunias repel aphids, leafhoppers, asparagus beetles, and tomato hornworms — a surprising amount of pest-fighting from a common bedding flower. They’re particularly effective as a border plant that catches pests at the garden’s edge before they reach your crops. They can get by in partial sun, which makes them useful in spots where other flowers won’t thrive. Well-draining soil required.

Best with: tomatoes, peppers, beans, squash, asparagus

7. Borage

Borage is one of the most enthusiastically recommended companion plants among experienced vegetable gardeners, particularly for tomatoes — it repels tomato hornworms and cabbage worms while attracting beneficial wasps that parasitize them. The blue star-shaped flowers are edible with a mild cucumber flavor. Borage self-seeds prolifically, so plant it where you don’t mind it coming back. Grows in a variety of soil types; keep evenly moist.

Best with: tomatoes, squash, strawberries

8. Bee Balm

Bee balm produces distinctive, spidery blooms in red, pink, or purple that are irresistible to bees, butterflies, and hummingbirds — all important pollinators for crops that need help setting fruit. It’s a perennial, so once established it returns every year. Give it full sun, rich well-draining soil, and good air circulation (it can be prone to powdery mildew in humid conditions).

Best with: tomatoes, peppers, eggplant, squash

9. Calendula

Calendula (pot marigold — a different plant from common marigold) repels aphids, tomato hornworms, and asparagus beetles while attracting hoverflies and parasitic wasps that eat common garden pests. The petals are edible and add color to salads. Calendula prefers cooler weather, making it ideal for spring and fall gardens. Full to partial sun, well-draining soil.

Best with: tomatoes, asparagus, carrots

harvested zinnias

10. Zinnia

Zinnias are one of the best flowers for drawing pollinators through the heat of summer when many spring flowers have faded. They’re also known to repel cucumber beetles, which can devastate cucumber and squash crops. They grow quickly from seed, bloom prolifically, and cut well for indoor arrangements. Full sun, rich well-draining soil.

Best with: cucumbers, squash, melons

11. Pansy

Pansies are one of the few flowers that thrive in the cool conditions of a spring or fall vegetable garden. They attract early pollinators when pickings are slim for bees, and their flowers are edible — a nice garnish for spring salads. Plant with morning sun and afternoon shade; they’ll decline once summer temperatures arrive. Well-draining soil.

Best with: lettuce, spinach, kale, early brassicas

12. Roses

Roses share nearly identical growing preferences with many vegetables — full sun, well-draining soil, consistent moisture — making them more compatible garden neighbors than most people expect. They attract pollinators, their canes can support lightweight vining plants, and their height provides light shade for smaller crops nearby. For best results, plant garlic around the base of your roses: garlic deters the aphids and black spot that plague them.

Best with: garlic (as a protector), climbing beans, herbs

13. Cornflower

Cornflowers attract bees and — importantly — parasitic wasps and ground beetles that prey on aphids, caterpillars, and slugs. They’re a good choice if you’ve had aphid or caterpillar pressure in past seasons. Full sun, well-draining soil that stays evenly moist.

Best with: brassicas, root vegetables

14. Cosmos

Cosmos attract lacewings and parasitic wasps — two of the most effective beneficial insects for controlling aphids, caterpillars, and whiteflies. They’re extremely easy to grow from seed, bloom all summer, and bring an airy, meadow-like look to the vegetable garden. Reach 2–3 feet tall depending on variety; plant at the back of beds. Morning sun, afternoon shade, well-draining soil.

Best with: tomatoes, peppers, squash, any aphid-prone crop

15. Daffodil

Daffodils contain toxic alkaloids that deer, rabbits, moles, and voles instinctively avoid — making them one of the most effective perimeter plants for protecting a vegetable garden from animal pressure. Plant them as a border around the outside of your garden beds in fall for spring blooms that act as a living deterrent. They also attract early pollinators. Full sun, well-draining soil.

Best with: any vegetable bed that suffers from deer or rodent pressure

16. Tulips

Tulips bring early-season pollinator activity to the garden just when your cool-season vegetables are setting fruit. Because they’re bulbs, plant them in the corners or along the permanent edges of your beds where they won’t be disturbed by seasonal digging. They can be treated as annuals or left to naturalize. Full sun, well-draining soil.

Best with: lettuce, peas, early brassicas

chrysanthemum mum

17. Chrysanthemums

Chrysanthemums contain pyrethrin, a naturally occurring compound used as the basis for many organic insecticides. Growing them in your vegetable garden puts that pest-deterring power to work against Japanese beetles, aphids, spider mites, and harlequin bugs. They’re perennials in most zones and bloom in fall, providing late-season pollinator support when other flowers are winding down. Full sun, well-draining soil.

Best with: brassicas, beans

18. Lavender

Lavender’s strong scent repels whiteflies, moths, fleas, and mosquitoes while attracting bees in large numbers. It’s particularly effective as a border plant along the edges of vegetable beds, where it intercepts flying pests before they land on your crops. Lavender is drought-tolerant once established and thrives in the same hot, sunny conditions many vegetables prefer. Full sun, well-draining (even sandy) soil.

Best with: brassicas, tomatoes, herbs

19. Dahlia

Dahlias produce large, colorful blooms that attract pollinators through late summer and fall when many other flowers have finished. They’re particularly valuable for crops that need sustained pollination throughout a long growing season. Plant them next to tall vegetables like tomatoes so they don’t shade out shorter plants. They’re also thought to have some nematode-suppressing properties similar to marigolds. Full sun, nutrient-rich well-draining soil.

Best with: tomatoes, squash, cucumbers

20. Sweet Alyssum

Sweet alyssum is one of the best ground-level companion plants for the vegetable garden. Its tiny flowers attract hoverflies — adults that feed on nectar but whose larvae are voracious aphid predators. Planting a ribbon of sweet alyssum along the base of aphid-prone crops like brassicas, lettuce, and peppers can dramatically reduce aphid populations without spraying. It also suppresses weeds by covering bare soil. Full to partial sun, well-draining soil.

Best with: brassicas, lettuce, potatoes, peppers

3 Flowers to Avoid in the Vegetable Garden

Not every flower belongs in the vegetable patch:

Fennel is allelopathic — it releases chemicals that inhibit the growth of most nearby plants, including tomatoes, peppers, and beans. Keep it in its own container or far from the vegetable garden.

Morning glory looks beautiful but spreads aggressively and can quickly overtake a vegetable bed. It also hosts spider mites and whiteflies.

Lily of the valley is toxic, invasive in most climates, and has no companion planting benefit. It will spread into and compete with your vegetable beds given the chance.

Quick Reference: Flowers in the Vegetable Garden

FlowerKey BenefitPest DeterredBest Vegetable PartnersPosition
NasturtiumTrap cropAphids, whiteflies, squash bugs, cucumber beetlesTomatoes, cucumbers, squash, beansBorder / interplanted
MarigoldSoil + pest deterrentNematodes, aphids, whiteflies, hornwormsTomatoes, peppers, squashUnder larger vegetables
Sweet PeaPollinator attractor—Lettuce, spinach, early brassicasTrellis at back of bed
SunflowerPollinator magnet + structure—Cucumbers, pole beans, cornNorth end of bed
SalviaPest repellentAphids, flea beetles, spider mitesTomatoes, eggplant, carrotsInterplanted
PetuniaPest repellentAphids, leafhoppers, hornworms, asparagus beetlesTomatoes, peppers, beans, asparagusBorder
BoragePest repellent + pollinatorHornworms, cabbage wormsTomatoes, squash, strawberriesInterplanted
Bee BalmPollinator attractor—Tomatoes, peppers, eggplantInterplanted
CalendulaPest repellent + beneficial insect attractorAphids, hornworms, asparagus beetlesTomatoes, asparagus, carrotsInterplanted
ZinniaPollinator magnetCucumber beetlesCucumbers, squash, melonsInterplanted
PansyEarly pollinator attractor—Lettuce, kale, early brassicasInterplanted
RosesPollinator + structure—Garlic, climbing beansPerimeter
CornflowerBeneficial insect attractorAphids, caterpillars (via predators)Brassicas, root vegetablesInterplanted
CosmosBeneficial insect attractorAphids, caterpillars (via lacewings)Tomatoes, peppers, squashBack of bed
DaffodilAnimal deterrentDeer, rabbits, molesAny bed with animal pressurePerimeter
TulipsEarly pollinator attractor—Lettuce, peas, brassicasCorners / edges
ChrysanthemumsNatural insecticideJapanese beetles, aphids, spider mitesBrassicas, beansInterplanted
LavenderPest repellentWhiteflies, moths, mosquitoesBrassicas, tomatoes, herbsBorder
DahliaLate pollinator + nematode suppressorNematodesTomatoes, squash, cucumbersNext to tall plants
Sweet AlyssumAphid predator attractorAphids (via hoverfly larvae)Brassicas, lettuce, peppersGround level / border

Learn More About Growing and Pollinating a Vegetable Garden

Home Vegetable Gardening: A Quick Reference Guide — NC State Extension

Smart Gardening: Pollination in Vegetable Gardens — Michigan State University Extension

Companion Planting in Home Gardens — University of Minnesota Extension

20 best flowers to grow in your vegetable garden

Related

Filed Under: Growing Flowers Tagged With: benefits of flowers, flowers attracting pollinators, planing flowers vegetable garden, vegetable garden flowers

Join 1.5 million Facebook Followers!

Join 1.5 million Facebook Followers!
Privacy Policy

Affiliate Disclosure

Our gardening obsessed editors and writers choose every product we review. We may earn an affiliate commission if you buy from one of our product links, at no extra cost to you.

Gardening Channel. Copyright © 2026. All Rights Reserved.

Loading Comments...