"Companion plants in the garden including marigolds, zinnias, basil, cucumbers, nasturtiums, cosmos, and sunflowers growing together

The Ultimate Guide to Companion Planting: Flowers and Vegetables That Thrive Together

Companion planting has been practiced for centuries as a way to create healthier, more productive gardens. By growing certain flowers, herbs, and vegetables together, gardeners can reduce pests, improve pollination, enrich soil, and even enhance flavors. At Trailing Petunia, we’re proud to offer a wide selection of seeds perfect for companion planting—whether you’re looking for bulk quantities at Trailing Petunia Bulk Seeds or smaller garden-friendly packs at Trailing Petunia.

In this guide, we’ll explore six of the best companion plants you can grow—marigolds, zinnias, nasturtiums, basil, cosmos, and sunflowers—and how they work beautifully alongside vegetables such as cucumbers, tomatoes, peppers, and beans.

👉 ➜ Buy Sunflower Seeds Helianthus Solsation® Yellow Here: https://www.trailingpetunia.com/products/sunflower-seeds-helianthus-solsation%C2%AE-yellow-25-flower-seeds?_pos=24&_sid=3447d27f8&_ss=r

🌻 Helianthus Solsation® Yellow is a compact sunflower that produces masses of bright golden-yellow blooms on well-branched plants. Perfect for containers, patio planters, garden beds, borders, and pollinator gardens, this variety delivers continuous color and attracts bees and butterflies throughout the growing season. Its manageable size makes it ideal for smaller spaces while still creating a big visual impact.


🌼 Marigolds – The Garden Protector

Shop Marigold Seeds →

Marigolds are one of the most popular and powerful companion plants. Their strong scent helps deter nematodes, aphids, whiteflies, and even rabbits. When planted alongside tomatoes, peppers, and cucumbers, they act as a natural shield against destructive pests.

Best companions for marigolds:

  • Tomatoes: Protects against nematodes and repels aphids.

  • Peppers: Keeps whiteflies and beetles away.

  • Cucumbers: Marigolds discourage cucumber beetles.

Tip: Interplant marigolds around the edges of your vegetable beds for maximum protection.


🌸 Zinnias – The Pollinator Magnet

Shop Zinnia Seeds →

Zinnias are bright, cheerful flowers that attract bees, butterflies, and beneficial insects. By adding them to your vegetable garden, you increase pollination rates and improve overall yields.

Best companions for zinnias:

  • Cucumbers: Bees drawn to zinnias will also pollinate cucumber flowers.

  • Squash and pumpkins: Zinnias bring in pollinators for heavy-fruiting crops.

  • Beans: Zinnias attract beneficial wasps that reduce bean pests.

Tip: Plant zinnias in colorful borders or as a backdrop to vegetable rows to keep pollinators active in your garden.


🌿 Basil – The Flavor Booster

Shop Basil Seeds →

Basil isn’t just for your kitchen—it’s a powerful companion plant. It releases aromatic oils that repel thrips, flies, and mosquitoes. Plus, when planted near tomatoes, basil is believed to enhance the flavor of the fruit.

Best companions for basil:

  • Tomatoes: Enhances flavor and deters pests.

  • Peppers: Protects against thrips and aphids.

  • Cucumbers: Acts as a general insect deterrent.

Tip: Keep basil close to garden paths so you can enjoy its fragrance and harvest fresh leaves for cooking.


🌺 Nasturtiums – The Trap Crop

Shop Nasturtium Seeds →

Nasturtiums are often called “sacrificial plants.” They lure aphids, cucumber beetles, and other pests away from vegetables, sparing your main crops. In addition, their edible flowers add beauty and taste to salads.

Best companions for nasturtiums:

  • Cucumbers: Attracts cucumber beetles away from your crop.

  • Brassicas (broccoli, kale, cabbage): Protects against cabbage worms and aphids.

  • Squash and zucchini: Serves as a trap crop for squash bugs.

Tip: Let nasturtiums trail along the edges of beds to attract pests downward and away from fruiting crops.


🌸 Cosmos – The Beneficial Insect Attractor

Shop Cosmos Seeds →

Cosmos are easy-to-grow flowers that attract hoverflies, parasitic wasps, and bees. These beneficial insects help reduce pest populations while boosting pollination.

Best companions for cosmos:

  • Carrots: Hoverflies help reduce carrot rust fly populations.

  • Beans: Parasitic wasps help manage bean beetles.

  • Leafy greens: Cosmos attract pollinators for lettuce and spinach that bolt into flower.

Tip: Use cosmos in rows throughout your garden to act as a magnet for beneficial insects.


🌻 Sunflowers – The Natural Trellis

Shop Sunflower Seeds →

Sunflowers bring beauty, pollinators, and structure to a garden. They’re especially useful as living trellises for vining crops like beans and cucumbers.

Best companions for sunflowers:

  • Cucumbers: Use tall sunflower stalks as natural supports.

  • Beans: Grow pole beans up the stalks.

  • Squash: Sunflowers attract pollinators that benefit squash blossoms.

Tip: Plant sunflowers on the north side of your garden to avoid shading smaller crops.


🌱 Companion Planting with Cucumbers

Shop Cucumber Seeds →

Since cucumbers are one of the most commonly grown vegetables, they benefit from many companion plants:

  • With marigolds for pest control.

  • With zinnias and sunflowers for pollination.

  • With nasturtiums for trap cropping.


Why Companion Planting Works

Companion planting works through several natural systems:

  1. Pest control: Strongly scented flowers like marigolds confuse pests.

  2. Pollination: Bright flowers attract bees and butterflies.

  3. Beneficial insects: Cosmos and zinnias attract predatory insects that eat pests.

  4. Soil improvement: Some plants, like beans, enrich soil with nitrogen.

  5. Structural support: Tall sunflowers act as natural trellises.


Where to Buy Seeds for Companion Planting

At Trailing Petunia, you’ll find both bulk packs for large plantings and smaller packs for home gardens:

Choose from our wide selection of marigolds, zinnias, cucumbers, nasturtiums, basil, cosmos, and sunflowers to build your companion planting garden.


Conclusion

Companion planting is more than just a gardening trend—it’s a science-backed method to grow healthier, more productive gardens while reducing chemical inputs. By pairing flowers and vegetables like marigolds, zinnias, nasturtiums, basil, cosmos, and sunflowers with cucumbers, tomatoes, beans, and peppers, you can create a thriving ecosystem in your backyard.

Whether you’re a home gardener using smaller seed packs or a grower planting large fields with bulk seed packs, companion planting offers a natural way to maximize your harvest and create a truly beautiful garden.

Back to blog