The best companion planting combinations for pest control, pollinator attraction, and higher yields — including which plants to never put together.
Design Your Garden Layout →The most famous companion planting system, used for centuries by Native Americans. Corn provides a trellis for beans. Beans fix nitrogen that feeds corn and squash. Squash leaves shade the ground, preventing weeds and retaining moisture. Plant corn first (1 ft apart), beans 2 weeks later around corn stalks, squash in the outer ring.
The most popular companion planting pair — and it actually works. Basil may repel thrips and spider mites; some studies show tomatoes near basil have fewer pest issues. Practical bonus: they taste great together. Plant basil 12–18" from tomato plants. Don't crowd — basil needs airflow.
Plant garlic cloves at the base of rose bushes to deter aphids, Japanese beetles, and black spot fungal disease. Garlic's sulfur compounds are antifungal. Space garlic bulbs 4" apart around rose base. Harvest garlic in summer; replant in fall. Used for centuries in French rose gardens.
Classic pest-deterrent pairing. Onion smell confuses carrot root fly; carrot smell confuses onion fly. Interplant in alternating rows — onions every 6", carrots every 2". Both grow slowly, so they don't compete. Harvest onions first, giving carrots more space to size up.
French marigolds (Tagetes patula) secrete a substance from their roots that kills nematodes in the soil — the most scientifically documented companion planting benefit. Plant marigolds throughout the vegetable garden. Also deter whiteflies from tomatoes and attract pollinators. Widely considered the best companion planting plant overall.
Nasturtiums act as a 'trap crop' for aphids — aphids prefer nasturtiums over vegetables, drawing them away. Also attracts predatory insects that eat aphids. Let nasturtiums sprawl around squash plants. Bonus: flowers and leaves are edible with a peppery taste.
Borage is the most recommended tomato companion. It may deter tomato hornworm (conflicting research), but definitively attracts bumblebees that pollinate tomatoes, and the star-shaped blue flowers are edible. Borage self-seeds freely — plant once and it returns every year.
Carrots loosen the soil around tomato roots, improving drainage and aeration. Tomatoes shade carrots, which prefer cooler root environments. Some evidence that tomato roots produce compounds that improve carrot flavor. Space 12" apart — they coexist without competing.
Parsley attracts beneficial insects including parasitic wasps that attack tomato hornworm eggs. Plant parsley near the base of tomato plants. Let some parsley bolt (go to seed) — the flowers attract the most beneficials.
Fennel is allelopathic to most plants — it releases root compounds that inhibit growth of nearby plants, including tomatoes, peppers, and beans. Grow fennel in its own isolated container or away from the vegetable garden entirely.
Brassicas (cabbage, broccoli, kale, kohlrabi) compete heavily with tomatoes for nitrogen and calcium. They may also harbor some shared pests. Keep a 3-ft separation minimum, or grow in different beds.
Lavender's strong scent deters deer, rabbits, aphids, and many flying insects. Plant at the edges of vegetable beds or throughout perennial borders. Also attracts pollinators intensely — planting lavender near squash can dramatically increase fruit set.
One of the most powerful companion plants for attracting pollinators — studies show phacelia attracts 10× more pollinators than average flowering plants. Blue tansy-like flowers. Annual — sow directly in spring. Excellent near any fruiting vegetable.
Low-growing alyssum with honey-scented white flowers attracts hoverflies and parasitic wasps that eat aphids, caterpillars, and whiteflies. Let it sprawl between vegetable plants. Self-seeds readily. Blooms continuously until frost.
Dill attracts beneficial wasps and is a host plant for swallowtail butterfly caterpillars. BUT: dill near vegetables can become allelopathic when it matures. Best near other herbs (cilantro, parsley, chives) or as a dedicated beneficials-attracting patch away from main crops.
Chamomile accumulates calcium from deep soil, bringing it up into its leaves. When leaves decompose, they release calcium to neighboring plants. This makes chamomile an excellent companion for calcium-hungry plants (tomatoes, peppers, brassicas). Also deters flying insects and attracts hoverflies.
Brassicas (cabbage, broccoli, kale) benefit from aromatic herb companions that deter cabbage moths and cabbage loopers. Thyme and dill both repel these pests. Mint confuses imported cabbageworm moths. Plant mint in containers (it spreads aggressively) near brassica beds.
Summer savory deters bean beetles and improves bean flavor — one of the most reliably proven herb-vegetable companion pairs. Plant savory between bean rows. Harvest savory as it blooms for best flavor. Both German and Italian companion planting traditions use this pairing.
Tansy (Tanacetum vulgare) deters squash bugs, cucumber beetles, and cabbage worms. Contains pyrethrin-like compounds. Plant at the base of squash plants. Note: tansy is toxic if ingested — keep away from children and pets. Spreads aggressively — control with containers.
Borage is said to enhance strawberry flavor and disease resistance. Also attracts pollinators that increase strawberry fruit set. Interplant borage freely throughout strawberry patches. Borage self-seeds — remove plants that crowd strawberries.
Sunflowers provide a natural trellis for climbing cucumbers. The tall stems support 2–3 cucumber vines each. Plant cucumbers 6" from sunflower base after the sunflower is established. Sunflower attracts pollinators that pollinate cucumbers.
Tomato hornworms love four o'clocks — but the plant contains toxic alkaloids that kill the caterpillars when eaten. This makes four o'clocks a 'death trap' for hornworms. Plant around the perimeter of the garden to draw hornworms away from tomatoes.
Nepetalactone (the compound cats love in catnip) deters Japanese beetles, aphids, and other insects. Plant catnip in containers near affected plants — it spreads aggressively if not contained. Studies show nepetalactone is more effective than DEET as an insect repellent.
Pennyroyal mint (Mentha pulegium) deters ants, which farm aphids. No ants = fewer aphids. Strong spearmint-like scent. CAUTION: toxic to dogs and cats. Plant in containers; keep away from pets and children. Aggressive spreader.
Rue (Ruta graveolens) has a bitter, pungent scent that deters slugs, beetles, and aphids. Also deters cats. Plant around the base of plants vulnerable to slug damage (lettuce, hostas, strawberries). Note: rue can cause skin irritation — wear gloves when handling.
| Plant | Good Companions ✅ | Bad Companions ❌ |
|---|---|---|
| Tomato | Basil, Borage, Carrots, Parsley, Marigolds | Fennel, Brassicas, Corn |
| Peppers | Basil, Carrots, Parsley, Marigolds | Fennel, Kohlrabi |
| Cucumbers | Beans, Dill (young), Marigolds, Sunflowers, Nasturtiums | Sage, Potatoes |
| Beans | Carrots, Marigolds, Summer Savory, Corn, Squash | Onions, Garlic, Fennel |
| Carrots | Onions, Leeks, Rosemary, Sage, Tomatoes | Dill (mature), Fennel |
| Cabbage/Brassicas | Dill, Thyme, Mint (contained), Sage, Oregano | Strawberries, Tomatoes, Garlic |
| Squash | Nasturtiums, Beans, Corn, Tansy (careful) | Potatoes, Fennel |
| Lettuce | Chives, Garlic, Radishes, Carrots, Strawberries | Celery, Parsley |
Some combinations are well-proven; many are traditional wisdom without strong scientific backing. The most evidence-based benefits: (1) Marigolds kill soil nematodes (documented). (2) Phacelia and borage massively increase pollinator visits (documented). (3) Nasturtiums as aphid trap crops (documented). (4) The Three Sisters yield benefits (documented). Pest-deterrent claims from scent are more variable — some work, some are gardener mythology. The safest approach: companion planting rarely hurts and often helps.
Start with these three: (1) Plant marigolds throughout your vegetable garden — they're proven nematode killers and general pest deterrents. (2) Plant basil near tomatoes — practical culinary pairing, possible pest deterrent, definitely attracts pollinators. (3) Plant nasturtiums on the perimeter — they sacrifice themselves for aphids (trap crop) and look beautiful. All three are cheap, easy annuals that also improve your garden's appearance.
Worst combinations: (1) Fennel + almost anything — it's allelopathic and inhibits most vegetable growth. (2) Tomatoes + brassicas — compete for calcium and nitrogen. (3) Onions/Garlic + Beans/Peas — alliums inhibit legume root nodules (nitrogen fixing). (4) Potatoes + tomatoes — share diseases (blight, viruses). (5) Sunflowers + potatoes — sunflowers release allelopathic chemicals from their roots.
It depends on the mechanism: For scent-based deterrents (basil, mint, thyme), plant within 12–24" of the target plant. For root-based effects (marigold nematode control), plant marigolds throughout the bed, not just at the edge. For trap crops (nasturtiums), plant in a ring around the perimeter of the garden or interspersed throughout. For nitrogen-fixing legumes (beans, clover), they need to be in the soil of the same bed.
Yes — raised beds are ideal for companion planting because you control the entire soil zone. Mass plant marigolds in the corners of each bed. Include one herb (basil, dill, parsley) in each bed. Line bed edges with sweet alyssum. For the Three Sisters, you need a larger bed (at least 4×4 ft) for the corn to grow tall enough to support beans.
Upload a photo of your yard or garden and see what it could look like with the right plant combinations — including cost estimates and a full plant list.
Generate My Garden Design →