A vegetable garden doesn’t have to be just vegetables.
Adding companion flowers for vegetable gardens is one of the easiest ways to help your plants grow better while making your garden feel more beautiful, colorful, and alive. Flowers attract pollinators, bring in beneficial insects, help deter pests, and turn a basic vegetable garden into a space you truly enjoy spending time in.
Over the years, I’ve found that mixing flowers into raised beds and kitchen gardens creates a healthier, more productive garden overall. Plus, there’s just something magical about harvesting tomatoes while surrounded by zinnias and marigolds — and the butterflies they attract.
Keep reading to discover 12 companion flowers every vegetable garden needs.
This post contains affiliate links, which means I earn a small profit when you click on the link and purchase my recommendations. As an Amazon Associate I earn from qualifying purchases. Thanks for supporting my small business!
WHY FLOWERS BELONG IN EVERY VEGETABLE GARDEN
Adding flowers to your vegetable garden does so much more than simply make it pretty.
Flowers can:
- attract pollinators and other beneficial insects
- help reduce pests naturally
- improve vegetable production
- create a healthier garden ecosystem
- make your garden feel more peaceful and enjoyable
Let’s look quickly at each of these benefits of planting flowers in your vegetable garden.
Attract Beneficial Insects
Flowers attract beneficial insects like pollinators and pest predators. You probably already know that you want lots of bees, butterflies, and ladybugs in your garden, but did you know that moths, beetles, wasps, and even flies can pollinate our crops, as well?
Pro Tip: Different flowers attract different beneficial insects, which is why you want to plant a variety of flower colors and types.
Help Reduce Pests Naturally
In addition to lots of pollinators, a healthy garden is also home to pest predators and even parasitic wasps. Pest predators (hoverflies, ladybugs, and lacewings, for example) feed on bugs like aphids, caterpillars, and thrips, reducing their population without the need for store-bought sprays.
And while welcoming parasitic wasps into your garden may not sound like a good idea, you’ll be grateful for them when they’re taking care of those dreaded tomato hornworms for you.
Plus, some flowering plants, like lavender and dill, actually repel pests all on their own thanks to their strong smells.
Improve Vegetable Production
The more pollinators you have buzzing around, the more productive your garden will be. Bees and other garden good guys ensure every little cucumber flower with a small bulge becomes a tasty fruit you can harvest.
Create a Healthier Garden Ecosystem
Flowering plants support biodiversity. Some flowers add nitrogen to your soil, others aerate the soil with their large roots, while others still act as weed deterrents.
Make Your Garden More Enjoyable
Your garden should look inviting, and flowers can certainly help with that. They add so much color and texture amongst your vegetables.
These are the reasons we consider flowers an essential component of any vegetable garden. And honestly, harvesting vegetables from a garden filled with flowers just feels different. It turns the space into something beautiful, productive, and alive all at once.
1. MARIGOLDS
Let’s start off with the most classic companion flower for vegetable gardens: marigolds. Their bright blooms attract pollinators while also helping deter certain pests, like the bad kind of nematodes and squash bugs.
There’s a compound inside each pretty little marigold called pyrethum. It’s basically the most organic form of bug spray you can find. And while it’s quite effective against unwanted pests, it has no negative effect on beneficial insects like ladybugs.
Marigolds are incredibly beginner friendly, tolerate heat well, and bloom nonstop all season long. I love tucking marigolds around tomatoes, peppers, cucumbers, and beans. Try interplanting marigolds with basil around raised bed borders for extra color and protection.
Pro Tip: An older study found that French marigolds in particular are the most effective flower for repelling pests that attack from below, so if nematodes are an issue in your garden, you’ll definitely want to plant these flowers throughout your beds.
Marigold Growing Tips
- Marigolds grow best in warm and hot weather. Don’t plant marigolds until there’s no chance of frost in the spring.
- Marigolds grow really easily from seed.
- Marigolds can vary in size greatly, from the dainty flowers of gem marigolds to the colossal blooms of African marigolds, so keep their anticipated size in mind when you’re planning out your raised beds.
👉Learn more about growing marigolds from seed.
2. ZINNIAS
If I could only grow one flower in my vegetable garden, it might honestly be zinnias.
They are easy to grow from seed, bloom heavily through summer, and make gorgeous cut flowers for bouquets. The more you cut from these plants, the more they bloom.
They’re also wonderful companion plants for organic pest control. Each bloom is basically a large, bright billboard for pollinators like bees, butterflies, and even hummingbirds, so they make your fruiting plants more productive. They also act as a trap crop for Japanese beetles, which can save your eggplant and tomatoes.
Zinnias add so much beauty to a kitchen garden. Pick from the hundreds of different color and petal options to find the zinnia most suited to your space.
Zinnia Growing Tips
- Zinnias can grow pretty tall and wild, so look for a more compact variety (like the Thumbelina mix from Renee’s Garden) to grow in your raised beds.
- Zinnias can bloom even when temps hit 100°F (37.8°C). Just keep them well watered.
- You’ll find lots of zinnia plant starts at the plant store, but they’re super easy to grow from seed. Direct sow them right in your garden.
👉Check out our complete guide to growing zinnias.
3. NASTURTIUM
Their funnel-shaped blooms may look like something you’d see on a tropical vacation, but nasturtiums are one of the hardest-working flowers in the vegetable garden.
Nasturtiums are beautiful, and the whole plant is edible (and rich in vitamin C!). That’s right, the flowers, the lily-pad-like leaves, even the seeds. They add a peppery flavor and lots of color to your salad bowl.
These plants act as a trap crop for pests like aphids and flea beetles. Your nasturtium plants can handle the pest pressure, and meanwhile, your fruiting plants will be pest-free. The plants also release a scent that deters other pests like squash bugs. They’re especially great near cucumbers, squash, and tomatoes.
At the same time, nasturtiums attract beneficial insects like ladybugs, lacewings, and hoverflies.
You can grow nasturtium flowers in all different colors. You can also choose between vining varieties and bush. I love the look of vines spilling over raised bed edges or growing underneath taller vegetables.
Nasturtium Growing Tips
- Nasturtiums are what we call frost tender, meaning they can handle light frosts but won’t push through freezing temperatures.
- Give nasturtiums some afternoon shade if you live in a warmer climate to help them push into the hotter months of the year.
- Direct sow nasturtium seeds, which are large and easy to handle, in the garden.
4. COSMOS
Cosmos add soft, airy beauty to the vegetable garden while attracting bees and beneficial insects like hoverflies and parasitic wasps (trust me, you want these in your garden).
They grow easily from seed and thrive even in less-than-perfect soil. Their tall stems and delicate, daisy-like blooms pair beautifully with vegetables and create that relaxed cottage garden feel so many gardeners love.
Plus, pollinators absolutely adore them.
Cosmos Growing Tips
- Cosmos are frost-sensitive annuals, so wait a couple weeks after the danger of frost has passed to sow seeds outdoors.
- Since cosmos flowers can grow up to 6 feet tall, plant them at the back of your bed or in the ground. Cosmos flowers do well in poor soil.
- Avoid fertilizing cosmos. Rich soil encourages these plants to grow tall and floppy.
👉Find more info on growing cosmos from seed to harvest.
5. CALENDULA
Calendula, aka pot marigold, is one of my favorite flowers for mixing beauty and function in the garden. The cheerful blooms attract pollinators, the petals are edible, and the plants are surprisingly easy to grow.
As for organic pest control, calendula does double duty. It helps deter hornworms, so it’s a great companion plant for tomatoes, peppers, and eggplant. It also acts as a trap crop for aphids. You might find your calendula stems covered in aphids, but the leafy greens nearby will be pest-freed. That’s reason enough to plant calendula if you want to grow lettuce, kale, or cabbage.
Calendula also does well during cooler parts of the growing season when many summer flowers are just starting to grow. The bright orange and yellow blooms look beautiful tucked throughout raised beds.
Bonus: Calendula has long been a star ingredient in soothing salves for skin conditions. Planting these flowers is one small step in starting your own medicinal herb garden.
Calendula Growing Tips
- Calendula likes cool weather, so you can plant it in the spring as soon as your soil is workable.
- You can also start calendula seeds indoors 4 to 6 weeks before your average last frost in the spring if you want to get a head start on blooms.
- Use shade cloth once temps hit 90°F (32.2°C) in the summer to keep plants blooming longer.
6. BORAGE
Borage may not be as commonly grown, but it deserves a spot in every vegetable garden.
The bright blue star-shaped flowers attract bees like crazy and help increase pollination around vegetables. Borage also deters cabbageworms and hornworms while serving as a trap crop for slugs. Borage is especially beneficial near tomatoes, squash, cucumbers, and strawberries.
It also gives the garden a slightly wild, cottage-style look that I personally love. Plus the flowers are edible and have a cucumber like flavor, perfect for salads!
Borage Growing Tips
- These plants can grow upwards of 2 and 3 feet tall and spread at least 1 foot wide. I recommend growing them in the ground right next to your raised beds.
- Borage plants are covered in tiny hairs that can cause minor skin irritation. I try to wear gardening gloves and long sleeves when I’m handling borage.
- Once established, borage doesn’t require any additional watering, unless you’re experiencing a drought.
7. CHAMOMILE
The small daisy-like flowers of chamomile bring soft beauty and some serious cottage-garden vibes to your space. They also attract a wide variety of beneficial insects, including hoverflies and parasitic wasps.
Chamomile is super easy to grow from seed, and it fills in space around the edge of your raised beds wonderfully.
Bonus: If you like the idea of growing your own tea garden, you’ve got to grow chamomile. Nothing helps you unwind at the end of the day like a steaming cup of homegrown chamomile tea.
Chamomile Growing Tips
- There are two different types of chamomile you can grow. I recommend German chamomile, which is the one most commonly used for teas. It’s also an annual, which I find easier to deal with in raised beds.
- Chamomile thrives in cooler temps. Like calendula, it’s a great flower to have planted in early spring before showier blooms like zinnias take off.
- Use shade cloth during the hottest months to keep plants productive.
8. LAVENDER
Lavender is both beautiful and practical in the vegetable garden. Its fragrant flowers are beloved by bees and butterflies, while its strong (heavenly) scent repels mosquitos, moths, and flies.
That same (amazing) aroma also helps hide your prized veggies from other pests that use smell to find their next meal. If you want to grow a plant in the pest-prone brassica family (think kale, broccoli, or cabbage), I highly recommend planting some lavender nearby.
Lavender handles heat and drought well once established, making it a great addition to lower-maintenance gardens. I especially love planting lavender alongside garden pathways, in raised bed corners, or in herb garden borders.
Lavender Growing Tips
- Many of the flowers on this list can handle part shade, but not lavender. Make sure to choose a spot that gets at least 6 to 8 hours of direct sunlight each day.
- Lavender must have well-draining soil to prevent root rot. Amend poor-draining soil with coarse sand and compost.
- Space lavender plants 12 to 18 inches apart to prevent fungal issues.
👉Find all our tips for growing lavender for beginners.
9. PETUNIAS
Petunias are often overlooked in vegetable gardens, but they can actually make wonderful companion plants. Their colorful, trumpet-shaped blooms attract pollinators, while their scent repels pests like hornworms, leafhoppers, squash bugs, and aphids.
They can, of course, add tons of color and visual appeal, and their low height makes them ideal for growing along the edges of your raised beds and containers. Petunias are especially nice for gardeners who want their vegetable garden to feel more ornamental and welcoming, less “this is where we grow cabbages”, you know?
Petunias are easy to grow, even in hot climates, and bloom heavily with regular watering and sunlight. Plant them alongside your tomatoes, cucumbers, squash, beans, and leafy greens.
Petunia Growing Tips
- If deer and rabbits are an issue in your garden, plant your petunias far away from your veggies. These pretty little flowers can attract larger pests.
- Petunias appreciate consistent moisture in the soil.
- Maximize blooms by feeding with an organic liquid flower fertilizer every couple of weeks.
10. SALVIA
Salvia is one of the absolute best flowers you can grow for pollinators. Each tubular flower is filled with nectar and attracts hummingbirds, bees, and butterflies. They also have a strong scent that repels some pests while hiding the scent of your vegetables from others.
Many salvias are also heat- and drought- tolerant and bloom for long periods, making them perfect for warm-climate gardens.
The tall flower spikes add structure and height throughout your vegetable beds. I just love the way purple salvia looks next to all the green in my garden.
Salvia Growing Tips
- Look for an annual variety if you like being able to clear out your raised beds at the end of a growing season. I recommend mealy blue sage, which has the prettiest bluish-purple flower spikes. Perennial salvia types are super hardy and great for in-ground beds.
- Salvia seeds are itty bitty. Instead of burying them in the soil, you’ll gently press them into the surface so they make contact. Then, just keep the soil moist.
- Wait until about 2 weeks after your last frost date to plant salvia. If you’re growing from seed, I recommend starting them indoors about 8 to 10 weeks before your last frost date to give them a nice head start.
11. BASIL
Most gardeners grow basil for those delicious leaves in the kitchen, but letting a few plants flower can actually be incredibly beneficial for your garden—and the pollinators will thank you!
The tiny blooms that cover basil flower spikes attract bees constantly, especially during summer when pollinator activity is high. They’re also beloved by all kinds of beneficial insects. I usually let at least one basil plant flower while harvesting the others regularly.
Even before they flower, basil plants are helping to ensure your gardening success. The strong aroma of the leaves repels pests like aphids, hornworms, whiteflies, weevils, and thrips. There’s even a common belief that tomatoes planted near basil are more productive and flavorful. We’ll take it!
So if you want lots of tasty tomatoes and peppers to use in your kitchen, pair the plants with basil out in the garden.
Basil Growing Tips
- Basil likes warm, well-draining soil, regular watering, and 6 to 8 hours of sunlight.
- Plant basil after your last frost date in the spring. You can start seeds indoors, direct sow it, or buy starter plants from your local nursery. The exception is African blue basil, which is particularly beloved by bees but can only grow from plant or cuttings.
- Once your basil seedlings are about 6 inches tall, pinch the stem to remove the top set or two of leaves. This encourages your plant to bush out, instead of growing straight up. You’ll ultimately get more leaves (and more flowers).
👉Discover how to grow basil that lasts all summer.
12. PANSIES AND VIOLAS
Pansies and violas are perfect for adding color during the cooler seasons of gardening. These pretty little ladies can survive frost, and in warmer climates, they’ll bloom through the entire winter.
Their edible flowers brighten raised beds, containers, and herb gardens during the spring and fall. They’ll pull in early pollinators long before summer flowers are up and growing, let alone blooming.
They also add a softer, more charming look to kitchen gardens by filling in the edges of a raised bed so nicely.
Pansy and Viola Growing Tips
- These cool-season plants benefit from partial shade as temperatures warm up.
- Deadhead spent blooms regularly to promote continuous flowering.
- Maximize blooms by feeding with an organic liquid flower fertilizer every couple of weeks.
WHICH FLOWERS SHOULD NOT BE PLANTED IN A RAISED BED?
While many flowers are beneficial and deserve a spot in your garden, not all are what I’d consider raised bed material. Here are some groups of flowers that I would plant either in containers or right in the ground.
Perennial Flowers
Perennials, or plants that return year after year, typically don’t look like much their first year but double in size the following spring. I love growing perennial flowers like echinacea and coreopsis in the ground because they’re super low maintenance and feed lots of beneficial insects.
But I wouldn’t put them in my raised beds next to all my veggies. They simply take up too much space, and I’d rather save that space for plants that are more particular about their soil needs.
Perennials I love but wouldn’t plant in a raised bed include:
- Anise hyssop
- Asters
- Bee balm
- Black-eyed Susans (rudbeckia)
- Catmint
- Coreopsis (tickseed)
- Echinacea (coneflower)
- Salvia (perennial)
Native Flowers
Like perennials, native flowers are wonderful to have around but don’t merit your raised bed real estate. You should plant them right in the ground, near your vegetable garden so they can attract lots of beneficial insects.
There are too many native flowers to list. I recommend grabbing seeds for a wildflower mix that grows well in your climate. If you want to support Monarch butterflies, look for milkweed that’s native to your area.
Large Flowers
Some flowers, like sunflowers or giant zinnias, are too big to grow in a raised bed. Think flowers that grow over 3 feet high and/or have blooms the size of a dinner plate. These flowers will cast shade on fruiting plants that need every drop of sunlight they can get. And again, these flowers are perfectly happy growing in the ground.
Pro Tip: If you really want to grow sunflowers in your raised beds, look for dwarf varieties.
OTHER WONDERFUL FLOWERS FOR YOUR VEGETABLE GARDEN
Don’t limit yourself to these 12 flowers. Pretty much every flower will attract some type of beneficial insect. Sweet alyssum, for example, attracts ladybugs, making it super effective for aphid control.
Other flowers I love planting in or around my raised beds include:
- Angelonia
- Dill flowers
- Snapdragons
- Sweet alyssum
- Tulips
If you’re planning your garden this season, don’t save flowers just for flower beds. Mix them right in with your vegetables. You might be surprised how much better your garden looks and performs because of it.
Sources:
National Library of Medicine, “Insecticidal Properties of Ocimum basilicum…”
Science Direct, “Effect of companion plants on tomato greenhouse production”
UC Davis, “Aphid Relief from Sweet Alyssum”







