Companion planting in a vegetable garden. Photo: Wikimedia Commons / CC BY-SA
How companion planting works
The mechanisms behind companion planting fall into a few categories. Understanding which mechanism applies to a particular pairing helps evaluate whether it is likely to produce benefits in a given situation.
Pest confusion and masking
Many pest insects locate host plants using volatile chemical signals. When a host plant is grown alongside a plant with a strong contrasting scent, the pest's ability to locate its target is disrupted. Onions grown between rows of carrots mask the chemical signal that attracts carrot root fly (Chamaepsila rosae). The reverse also applies: carrots can reduce the attraction of onion fly to nearby Alliums.
Trap cropping
Some plants preferentially attract specific pests away from the main crop. Nasturtiums (Tropaeolum majus) are a reliable trap crop for black bean aphid (Aphis fabae) in Polish gardens. Planted at the perimeter of a bean bed, they concentrate aphid colonies and can be cut back or removed without affecting the main crop.
Beneficial insect habitat
Parasitic wasps and predatory beetles — which predate caterpillars, aphids and soil pests — need nectar and pollen sources as adults. Plants in the Apiaceae family (dill, fennel, lovage, wild carrot) provide the shallow, accessible flower structures these insects prefer. Integrating them into vegetable beds, rather than keeping them separate, increases local populations of beneficial insects.
Nitrogen fixation
Leguminous plants host Rhizobium bacteria in root nodules that fix atmospheric nitrogen into forms available to plants. Growing legumes alongside nitrogen-hungry crops, or following them in a rotation, is one of the best-documented mechanisms in companion planting. In Polish conditions, runner beans grown up a maize stalk combine the nitrogen-fixation benefit with space efficiency.
Well-supported pairings for Polish gardens
Tomatoes and basil
Basil grown near tomatoes is widely reported to deter tomato hornworm (Manduca quinquemaculata) and thrips. The Apiaceae connection also applies: flowering basil attracts hoverflies that predate aphid colonies on tomato stems. In Polish greenhouse conditions, basil grown between tomato rows reduces the intensity of whitefly (Trialeurodes vaporariorum) infestations, though not eliminating them.
Brassicas and dill
Dill planted at spacing intervals within a brassica bed attracts parasitic wasps that target the larvae of cabbage white butterfly (Pieris brassicae and Pieris rapae). Both species cause significant leaf damage in Polish kitchen gardens from mid-June through September. Dill should be allowed to flower; young dill is actually reported to inhibit cabbage growth and the pairing only becomes beneficial at the flowering stage.
Carrots and leeks
An alternating row pattern of carrots and leeks addresses two pests simultaneously. Carrot root fly and leek moth (Acrolepiopsis assectella) are both confused by the mixed volatiles from the adjacent species. The spacing needs to be close enough for the scents to interact — alternating rows at 15–20 cm spacing is more effective than separated blocks.
Beans and summer savory
Summer savory (Satureja hortensis) grown alongside French beans (Phaseolus vulgaris) deters black bean aphid. It is also a traditional culinary pairing in Polish cuisine, making it doubly useful. Savory grown in the row edges does not compete significantly with beans for water or nutrients at standard spacings.
Marigolds in the vegetable bed
French marigolds (Tagetes patula) produce compounds from their roots that suppress populations of root-knot nematodes (Meloidogyne spp.) in the soil. For this mechanism to be effective, marigolds need to be grown as a solid planting in the affected area for a full season, not just scattered as individual plants. Subsequent crops benefit from the reduced nematode populations.
Many companion planting recommendations in popular literature are based on anecdotal evidence. The pairings listed here have supporting observations from systematic garden trials or established mechanisms. Treat less-documented combinations as experiments rather than guaranteed outcomes.
Combinations to avoid
Allelopathy — the release of growth-inhibiting chemicals — is well documented in some plants. Fennel is the most frequently cited example: it inhibits germination and growth of most vegetables including tomatoes, brassicas, and beans. Fennel is best grown in isolation, away from vegetable beds.
Garlic and other Alliums produce sulphur compounds that are inhibitory to beans and peas in close proximity. The rotation sequence of Alliums followed by legumes in separate beds is productive; growing them in the same bed at standard spacings tends to reduce legume yields.
Practical layout considerations
Row intercropping — alternating rows of two species — is the most manageable approach for standard raised beds. Spacing within rows follows the requirements of the primary crop; the companion is fitted into the gaps.
In wider beds, a pattern of companion plants in the border rows with the main crop in the centre positions the companions where they intercept incoming pests and still allow easy harvest access to the primary crop.
Further reading
- Riotte, L. (1998). Carrots Love Tomatoes. Storey Publishing.
- PIORIN — Plant Health Inspection Service Poland
- COBORU — Registered varieties for Polish conditions