Tending a healthy vegetable garden takes more than good soil and consistent watering. The plants themselves can do a surprising amount of the work when they are chosen to support one another. Companion planting is the practice of pairing crops, herbs, and flowers so that each one benefits its neighbors, whether by repelling pests, attracting pollinators, improving the soil, or providing shade and support. Gardeners who build these relationships into their beds report fewer pest problems, better pollination, and higher yields from the same amount of space. Planning matters, and reviewing the layout before each season pays off; our rundown of fall companion planting strategies for healthier garden beds shows how to carry successful pairings from one year into the next. The sections below cover the mechanisms behind companion planting, the most reliable herb and flower partners, and proven pairings for peppers, strawberries, cucumbers, and zucchini.
How Companion Planting Works in Practice
Before choosing partners for specific crops, it helps to understand the four ways companion plants actually help. The mechanisms overlap, and the strongest pairings usually combine two or more of them.
- Pest confusion and repellency. Strong-smelling herbs mask the scent of host crops, which makes it harder for pests to find them.
- Trap cropping. A sacrificial plant attracts pests away from the crop you want to protect.
- Pollinator and predator support. Flowering plants feed the bees and predatory insects that pollinate crops and eat pests.
- Soil and structural support. Legumes fix nitrogen, deep-rooted plants pull up nutrients, and tall plants shade or support low growers.
Scent-Based Pest Control
Aromatic herbs are the backbone of scent-based control. Basil produces essential oils that mask the odor of nearby peppers and tomatoes, and interplanted basil has been linked to fewer aphids and thrips on pepper plants in trial plots and backyard beds alike. Basil also shares the hot, sunny, well-drained conditions peppers prefer, which makes it an easy interplant. If you grow peppers, the full list of proven partners, from basil and onions to marigolds and oregano, is covered in this breakdown of companion planting for peppers.
Timing and Spacing Considerations
Companion planting works only when partners share similar water, sun, and soil needs. Pairing a heavy feeder like corn with shallow-rooted lettuce is a classic example of complementary growth, while two heavy feeders in the same row simply compete. Keep aggressive spreaders like mint in containers, and respect each plant’s mature spacing. A practical rule is to interplant in alternating rows or scattered clusters rather than solid blocks, so beneficial scents and flowers are distributed through the bed and a pest outbreak cannot sweep an entire row.
Herbs That Help Neighboring Crops
Herbs earn their place in the vegetable garden twice over. They supply the kitchen with fresh flavor, and they protect nearby crops through scent, flowers, and root chemistry. The most useful garden herbs are easy to grow, tolerate regular cutting, and flower readily. A practical overview of which herbs pair well with which vegetables appears in this collection of herb companion plants from the gardening editors at The Spruce.
| Herb | Best partners | What it does | Caution |
|---|---|---|---|
| Basil | Tomatoes, peppers | Masks pest scents and improves flavor | Needs warm soil; plant after frost |
| Dill | Cucumbers, cabbage | Attracts pollinators and predatory wasps | Bolts in heat; reseeds itself |
| Chives | Carrots, apples | Deters aphids and carrot fly | Spreads; divide clumps regularly |
| Sage | Cabbage, carrots | Repels cabbage moths and carrot fly | Keep it away from cucumbers |
| Thyme | Strawberries, cabbage | Attracts bees and repels cabbage worms | Low growing; use as living mulch |
| Mint | Cabbage, tomatoes | Repels ants, aphids, and flea beetles | Invasive; always plant in a container |
Basil and Its Neighbors
Basil is the most versatile herb partner in a warm-season garden. Planted beside tomatoes it improves growth and flavor, and beside peppers it reduces pest pressure. Basil tolerates the same hot, sunny, well-drained conditions as both crops, which makes interplanting simple. Pinch off the flower stalks to keep the leaves productive, or leave a few plants to bloom for the bees.
Mint, Useful but Invasive
Mint repels ants, aphids, and flea beetles, and its flowers feed bees, but it spreads aggressively through runners and can take over a bed within a single season. The fix is simple: grow mint in a pot sunk into the soil with the rim above ground, or keep it in a container entirely. Cut it back hard twice a season to keep it bushy and productive.
Companion Plants for Strawberries
Strawberries are low, spreading plants with shallow roots, which makes them sensitive to competition and vulnerable to slugs, birds, and fungal diseases. The right neighbors protect the berries and keep the bed productive without crowding the crowns. Borage, thyme, lettuce, onions, and marigolds all earn a place in a strawberry bed for different reasons. For a crop-by-crop breakdown, see our guide to the best companion plants for strawberries.
- Borage attracts pollinators and predatory insects, and many gardeners say it improves berry flavor.
- Thyme and oregano grow low, repel worms, and act as a living mulch that keeps berries off wet soil.
- Lettuce and spinach shade the soil, keep it cool and moist, and finish early enough to avoid crowding the crowns.
- Onions and garlic deter slugs and other soft-bodied pests with their scent.
- Marigolds suppress root nematodes and add color to the bed.
Plants to Keep Away from Strawberries
Brassicas such as cabbage, broccoli, and cauliflower compete for nutrients and attract pests that also bother strawberries. Fennel is allelopathic, meaning it releases compounds that inhibit nearby plants, so it belongs at the edge of the garden or in its own bed. Potatoes share disease risks with strawberries, including verticillium wilt, so keep the two crops in separate rotations.
| Strawberry partner | Main benefit | Best use |
|---|---|---|
| Borage | Pollinator magnet | Plant at the bed edges |
| Thyme | Living mulch and worm repellent | Between the rows |
| Onions and garlic | Slug deterrent | Border rows |
| Lettuce and spinach | Soil cooling | Interplant early in the season |
| Marigolds | Nematode suppression | Scatter throughout the bed |
Companion Planting for Cucumbers and Zucchini
Cucumbers and summer squash face the same main enemies: cucumber beetles, squash bugs, and powdery mildew, and the same companion strategy works for both. Radishes are the classic trap crop for cucumber beetles, and they mature in about 25 to 30 days, so they can be direct-sown between cucumber plants and pulled before they compete. Nasturtium does the same job for aphids and squash bugs. For a fuller planting plan, our guide to strategic companion planting for cucumber crops walks through spacing, timing, and the complete partner list.
Building a Cucumber Bed
- Radishes trap cucumber beetles; sow them every two weeks for continuous protection.
- Dill and oregano attract beneficial wasps and repel spider mites; let the dill flower.
- Beans and peas fix nitrogen and climb on nearby supports without competing for root space.
- Marigolds and nasturtium deter beetles and draw aphids away from the vines.
- Keep sage and potatoes out of the cucumber bed, because both slow cucumber growth.
Zucchini and Summer Squash Partners
Zucchini plants are large, hungry, and fast growing, so their companions must tolerate shade and competition. Corn provides a natural trellis for vining squash and shades the soil, while borage and marigolds attract the pollinators that every zucchini flower needs to set fruit. Interplanting flowers among the vines also breaks up the solid monoculture that squash bugs prefer. These same ideas apply to the whole summer squash patch, and the detailed pairings are laid out in our rundown of companion planting strategies for healthier zucchini harvests.
Flowers That Support the Whole Garden
Flowers are not decoration in a productive garden; they are infrastructure. Calendula, alyssum, cosmos, and sunflowers provide nectar and pollen through the season, which keeps pollinators and predatory insects on site when the vegetables need them most. A border of flowers around the vegetable garden reduces pest damage in neighboring crops, because beneficial insects move from the flowers into the vegetable rows. Marigolds add the extra benefit of suppressing root nematodes in the soil.
Building a Flower Border
A simple flower border works better than scattered pots. Choose flowers with long bloom times, plant them in drifts of three or more, and keep some blooms open through the whole season. Interplanting flowers directly in the vegetable rows works just as well, and many gardeners double up by using the same plants for cut flowers and pest control. Calendula and alyssum self-seed, so a well-placed border tends to renew itself year after year.
Companion planting does not replace good soil, water, and crop rotation, but it stacks multiple small advantages into a garden that needs fewer interventions. Start with one or two proven pairings this season, keep notes on what works in your beds, and add more partners each year. If you want the complete picture of how flowering plants fit into a vegetable garden, the options are collected in this guide to flowers for vegetable gardens, and the payoff shows up as fewer pests, better pollination, and healthier harvests from the same plot of ground.
