Small Garden
Companion Planting Guide for Small Gardens and Containers
Master companion planting for small gardens and containers. Learn which vegetables, herbs, and flowers grow best together, natural pest control pairings, and plants to keep apart.
Companion planting is the practice of growing certain plants together for mutual benefit. In small gardens and containers where every inch matters, strategic plant pairings can dramatically improve yields, reduce pest problems, and maximize your growing space.
How Companion Planting Works
Plants interact in several beneficial ways when grown together:
- Pest deterrence: Strong-scented plants mask host plants or repel specific pests
- Beneficial insect attraction: Flowers draw pollinators and predatory insects
- Nutrient sharing: Nitrogen-fixing plants feed neighboring vegetables
- Physical support: Tall plants provide shade or climbing structure for others
- Flavor enhancement: Certain combinations improve taste and growth
Classic Companion Planting Combinations
The Three Sisters
This Indigenous American technique combines corn, beans, and squash. Corn provides climbing support for beans, beans fix nitrogen for all three, and squash leaves shade the soil to retain moisture and deter weeds. Adapt for containers using bush varieties in a large planter.
Tomatoes and Basil
Perhaps the most famous pairing, basil planted near tomatoes is believed to improve tomato flavor and repel aphids, whiteflies, and tomato hornworms. Research from agricultural colleges supports these pest-deterrent properties. The combination works beautifully in containers—one tomato plant with 2-3 basil plants around the base.
Carrots and Onions
The strong scent of onions masks carrot foliage from carrot rust flies, while carrots help deter onion flies. Interplant rows or alternate plants in containers for effective pest confusion.
Lettuce and Tall Vegetables
Lettuce benefits from light shade in summer heat. Plant lettuce beneath tomatoes, peppers, or corn where it receives protection from scorching afternoon sun. This extends lettuce harvests by weeks.
Best Herb Companions
Basil
Pairs well with tomatoes, peppers, and asparagus. Repels flies, mosquitoes, and aphids. Plant generously throughout vegetable containers and beds.
Rosemary
Deters cabbage moths, bean beetles, and carrot flies. Excellent near brassicas, beans, and carrots. Needs excellent drainage—grow in separate containers nearby if soil needs differ.
Dill
Attracts beneficial wasps and hoverflies that prey on aphids. Plant with lettuce, cucumbers, and brassicas. Note: keep away from mature tomatoes as it can inhibit growth.
Chives
Repels aphids and Japanese beetles. Excellent border plant around roses and vegetables. The flowers attract pollinators and are edible.
Mint
Deters ants, flea beetles, and aphids. However, mint spreads aggressively—always grow in separate containers placed near target plants, never directly in garden beds.
Thyme
Repels cabbage worms, whiteflies, and corn earworms. Plant near brassicas, tomatoes, and eggplant. Low-growing thyme makes excellent living mulch.
Beneficial Flower Companions
Marigolds
The most versatile companion flower, marigolds repel nematodes, whiteflies, and many beetle species. French marigolds are especially effective. Plant throughout vegetable gardens and around container edges. Studies confirm their pest-suppressing abilities.
Nasturtiums
These act as 'trap crops,' attracting aphids and caterpillars away from vegetables. Plant near squash, cucumbers, and brassicas. Bonus: flowers, leaves, and seeds are edible with a peppery flavor.
Calendula
Attracts beneficial insects including ladybugs, lacewings, and hoverflies. The sticky leaves trap aphids and whiteflies. Plant near tomatoes and throughout vegetable beds.
Zinnias
Attract butterflies, hummingbirds, and beneficial wasps. Plant near squash and cucumbers to boost pollination rates.
Sunflowers
Draw pollinators and provide shade for heat-sensitive crops. Small varieties work in large containers. Their deep roots bring nutrients upward for neighboring plants.
Vegetable Companion Pairings
Tomatoes
Good companions: Basil, carrots, parsley, marigolds, nasturtiums, peppers, asparagus
Avoid: Brassicas (cabbage family), fennel, corn
Peppers
Good companions: Tomatoes, basil, carrots, onions, spinach, marigolds
Avoid: Fennel, kohlrabi
Cucumbers
Good companions: Beans, peas, radishes, sunflowers, corn, dill
Avoid: Potatoes, aromatic herbs (sage, mint)
Beans
Good companions: Corn, squash, carrots, cabbage, cucumbers, radishes
Avoid: Onions, garlic, fennel
Lettuce
Good companions: Carrots, radishes, strawberries, chives, tall vegetables for shade
Avoid: No major antagonists
Brassicas (Cabbage, Broccoli, Kale)
Good companions: Onions, garlic, celery, dill, rosemary, thyme, nasturtiums
Avoid: Strawberries, tomatoes, pole beans
Plants to Keep Apart
Some combinations actively harm each other:
- Fennel: Inhibits growth of most vegetables—grow isolated
- Onions and beans: Onions stunt bean growth
- Potatoes and tomatoes: Same pest and disease susceptibility; planted together increases risk of blight
- Dill and carrots: Cross-pollination affects carrot flavor
- Black walnut proximity: Releases juglone which kills tomatoes, peppers, and others
Companion Planting in Containers
Single Container Combos
Space-saving container groupings that work well together:
- Tomato + basil + parsley: Classic Italian combination in one large pot
- Lettuce + radishes + chives: Salad garden in a wide, shallow container
- Pepper + marigolds + thyme: Beautiful and functional grouping
- Beans + summer savory: Savory improves bean flavor and deters beetles
Cluster Arrangement
Group individual containers strategically:
- Place mint containers near vegetable pots without root interference
- Position marigold pots at entry points to container gardens
- Arrange tallest containers on the north side to avoid shading others
Getting Started with Companion Planting
Start Simple
Begin with proven combinations: tomatoes and basil, beans and corn, or lettuce under taller plants. Observe results before expanding experiments.
Keep Records
Note which combinations work in your specific conditions. Microclimates and local pests affect results. What works perfectly for one gardener may differ for another.
Maintain Balance
Don't overcrowd plants trying to fit every companion. Each plant still needs adequate space, light, and nutrients. Strategic placement beats maximum density.
Companion planting combines centuries of gardening wisdom with modern understanding of plant interactions. In small spaces where you can't rotate crops extensively, companion planting becomes even more valuable for maintaining soil health and managing pests naturally.
Keep exploring related guides
Follow the topic cluster below to discover more growing methods, troubleshooting advice, and crop-specific tutorials.