Most growers focus on what to plant. The ones who get consistently better harvests think about what to plant together.
Greenhouses concentrate everything - light, warmth, humidity, and pests. When aphids show up in a closed environment, they don't just visit. They settle in. The same goes for whiteflies, cucumber beetles, and the dozen other usual suspects.
Companion planting pairs plants that benefit each other. Some repel pests. Some attract pollinators. Some share resources without competing. In a greenhouse, where space is tight and conditions amplify both problems and solutions, these pairings work harder than they would in an open garden.
This isn't folklore. It's something experienced growers have observed for generations, and modern research is starting to catch up. Here are three pairings to start with - and a few more worth trying.
1. Tomatoes + Basil
The most-cited pairing in companion planting, and one of the most useful in a greenhouse.
Basil is said to repel aphids and whiteflies, two of the most common greenhouse pests. It takes up almost no space, fits at the base of tomato beds where light is already partial, and gives you fresh herbs every time you walk in.
Some growers also report better tomato flavor when basil grows nearby. Whether that's a real effect or confirmation bias, it doesn't matter much: basil at the foot of your tomatoes costs nothing and helps in at least one verifiable way.
How to plant it: Tuck basil at the base of your tomato beds, 8-12 inches apart. Keep it trimmed - once basil bolts and flowers, it loses most of its leaf production and stops repelling pests as effectively.
2. Cucumbers + Dill
Dill attracts beneficial insects, parasitic wasps, ladybugs, hoverflies; that prey on cucumber beetles and aphids. In a closed greenhouse, where pest pressure builds quickly, having a built-in defense team matters.
The catch: don't let dill flower right next to your cucumbers. Mature dill can release compounds that inhibit cucumber growth. Keep it young, trim it regularly, and replace plants before they go to seed.
How to plant it: Sow dill near the edges of your cucumber bed, not directly underneath. Succession plant every 4-6 weeks to keep a steady supply of young plants.
3. Strawberries + Borage
Borage is one of the most underrated companion plants. It attracts pollinators - essential in a greenhouse, where bees don't naturally find their way in as easily - and is said to improve both flavor and yield of strawberries grown nearby.
It also self-seeds. Plant it once, and you'll likely have borage in the same patch next year. The blue, star-shaped flowers are edible too, with a mild cucumber flavor.
How to plant it: Scatter borage seeds around the perimeter of your strawberry bed. Thin to 12-18 inches apart. Pinch the tops if they get tall enough to cast shade on the strawberries.
A few more pairings worth trying
Once you've gotten comfortable with the three above, here are three more that work well in a greenhouse:
- Peppers + Marigolds. Marigolds release compounds from their roots that deter nematodes and several soil pests. They also attract pollinators. Plant 1-2 marigolds for every 3-4 pepper plants.
- Lettuce + Chives. Chives repel aphids, which lettuce attracts. Both have shallow root systems, so they don't compete for nutrients. Bonus: chive flowers feed pollinators when nothing else is blooming.
- Carrots + Onions. Onions deter carrot flies; carrots deter onion flies. A mutually defensive pairing that also makes efficient use of vertical space - carrot roots go deep, onion roots stay shallow.
Practical tips for greenhouse companion planting
- Match light and water needs. Pairings only work if both plants can thrive in the same conditions.
- Don't overcrowd. Companion planting saves space, but plants still need airflow to prevent fungal disease - especially in the humid environment of a greenhouse.
- Trim companion plants before they take over. Basil, dill, and borage all need active management. Left alone, they'll outgrow their role and start competing with the plant they're supposed to be helping.
- Observe and adjust. What works in one greenhouse may not work in another. Treat the pairings above as a starting point, not a rulebook.
The bigger idea
The right plant neighbors do more than coexist. They actively protect and support each other.
Companion planting won't fix bad soil, bad watering, or bad ventilation. But once those basics are in place, pairing your plants thoughtfully is one of the highest-leverage things you can do for your harvest.
Nature figured this out long before we did. The greenhouse is just a smaller, more concentrated version of the systems plants have always lived in. Work with that, and you'll grow smarter - not harder.
A well-designed greenhouse makes companion planting easier - better airflow, more usable square footage, and the kind of structural support that lets you trellis cucumbers and tuck herbs underneath without crowding.
Join them on @yourgreenhouses for weekly pairings, plant spotlights, and real-grower stories.
Take a look at our polycarbonate greenhouse collection
New to all this? Start with what to know before buying your first greenhouse - the lessons every grower wishes someone had told them first.
Frequently asked questions
What plants should NOT be grown together in a greenhouse?
A few combinations to avoid: tomatoes and brassicas (cabbage, broccoli, kale) - tomatoes can stunt their growth. Onions and garlic next to beans or peas - alliums inhibit legume development. And fennel almost anywhere - it releases compounds that suppress most neighboring vegetables. When in doubt, plant fennel in its own corner.
Does companion planting actually work, or is it just gardening folklore?
Some pairings are backed by solid research - basil repelling whiteflies, marigolds deterring nematodes, dill attracting predator insects. Others are observational tradition that hasn't been rigorously tested. The pairings in this article have either documented science or a long enough track record that experienced growers trust them. Folklore-only claims - like "tomatoes love carrots" - are worth experimenting with but not banking on.
Can companion planting work in a small greenhouse?
Yes, and arguably better. Smaller greenhouses concentrate pest pressure faster, which means companion plants like basil and marigolds work harder per square foot. If you're still choosing the right size for your backyard, pick a structure with enough height to trellis vertically — tomato beds with basil at the base, cucumbers trellised up with dill at the edges. Skip larger companions like fennel or borage if floor space is tight.









