Companion Planting for Onions: What the Research Actually Shows
Onions show up on many companion-planting lists, often credited with repelling pests or improving flavors, but most of those claims rest on gardener anecdotes rather than controlled trials. A few practices around onions are backed by basic ecology and extension guidance — for example using legumes in rotation to boost soil nitrogen or incorporating marigold roots to suppress some nematodes. For most pairings, though, the sensible approach is to manage space, light, soil fertility, and crop diversity rather than expect chemical ‘friendships.’ See extension reviews (UMass, Montana State) for summaries that emphasize the limited number of rigorous companion-planting studies.
Our Position
Most companion planting claims are based on anecdotal evidence, not rigorous science. We focus on what reliably works: plant placement by height relative to sun, proper spacing, organic soil amendments, and garden diversity.
What the Research Actually Says
The number of rigorous scientific studies regarding companion planting is small compared to the number of books, lists, and charts about companion planting based on anecdotal evidence.
— UMass Amherst Center for Agriculture, Food, and the Environment. See also Montana State University Extension.
Popular Pairings for Onions, with Evidence
| Plant | Claim | Evidence | Notes |
|---|---|---|---|
| Legumes (peas, beans) | Planting legumes helps supply nitrogen for onions when used as a preceding cover crop or in rotation. | Supported | Legumes fix atmospheric nitrogen into soil that later crops can use; this is most reliable when legumes are grown as a green manure or previous crop rather than a precise interplanting. For onions, benefits are greatest when legumes are incorporated or grown in the same bed the season before. Extension summaries note measurable N benefits from legumes in rotation (see UMass/Montana State). |
| Marigolds (Tagetes spp.) | Marigold roots, when tilled in as a cover crop, can reduce some soil nematodes that harm vegetables. | Supported | Nematicidal compounds from marigold roots suppress certain plant-parasitic nematodes after incorporation; simply planting marigolds beside onions does not provide the same suppression. If nematodes are a documented problem, grow and incorporate marigolds as a cover crop before planting onions. Extension guidance emphasizes root incorporation over mere proximity (see UMass). |
| Carrots | Onions repel carrot flies and protect carrots from damage. | Folklore | The idea that onion scent deters carrot fly is common in gardening lore but lacks consistent, replicated trial evidence. Some gardeners report fewer flies, but controlled studies are mixed and not conclusive. Extension reviews advise caution and focus on crop timing, barriers, and hygiene rather than relying on onion neighbors (see UMass/Montana State). |
| Beans (pole/bush) | Beans and onions are 'bad companions' that stunt each other. | Folklore | Claims that onions chemically inhibit beans or vice versa are widespread but not supported by systematic trials. Reported problems are more often explained by competition for light and nutrients when crops are crowded. Proper spacing and row placement are the practical controls rather than avoiding the pairing on presumed chemical grounds. |
| Tomatoes | Onions planted near tomatoes will repel aphids and other tomato pests. | Folklore | Anecdotes say onions deter aphids and whiteflies from tomatoes, but controlled evidence is lacking. Observed pest reduction is often due to habitat complexity or natural enemy activity rather than an onion-produced repellent. Extension literature emphasizes habitat diversity and monitoring over relying on scent-based protection (see UMass). |
| Strawberries | Onions improve the flavor of strawberries when grown together. | Folklore | Flavor-enhancement claims are common in traditional companion lists but have no scientific backing from taste trials or agronomic studies. Changes in flavor are subjective and more likely tied to soil fertility and fruit ripeness than to a nearby onion plant. Extensions treat flavor claims as anecdotal rather than evidence-based. |
| Potatoes | Onions planted with potatoes prevent late blight or other potato diseases. | Folklore | There is no strong experimental evidence that onions prevent potato blight or other major potato diseases by proximity. Disease control is better achieved through resistant varieties, crop rotation, and sanitation. Extension guidance does not recommend relying on onion neighbors for disease suppression. |
| Mixed bed / diverse neighbors | Planting onions in a diverse bed reduces pest outbreaks compared to single-crop rows. | Supported | Multiple studies and extension reviews show that increased crop diversity breaks up pest host continuity and supports more natural enemies, which can lower pest pressure. For onions, mixing with unrelated crops can reduce the chance of large, focused pest infestations. UMass and other extension sources cite diversity as a reliable, ecology-based strategy. |
What Actually Helps Onions Yield Better
For onions, use bed placement so taller neighbors stand to the north or east to avoid shading bulbs; onions themselves are low-growing and do best on the sunniest side of the bed. Give onions adequate spacing (typically several inches apart for bulb varieties) because crowding reduces bulb size and increases disease risk. Top-dress with compost in fall or early spring and practice crop rotation (legume cover crops before onions can add nitrogen); and include a diversity of crops in beds to reduce pest concentration and support beneficial insects.
- Plant placement by height and sun direction. Tall crops (corn, pole beans, indeterminate tomatoes, sunflowers) belong on the north or east side of a bed so they don't shade shorter neighbors. This is geometry, not folklore.
- Proper spacing. Most reported "bad neighbor" effects in home gardens trace back to overcrowding — competition for light, water, and nutrients — not chemical antagonism between species.
- Organic soil amendments. Yearly compost top-dressing restores the nutrients each crop pulled out and keeps soil biology active. Healthy soil makes a bigger difference to yield than any companion pairing.
- Garden diversity. Mixing several unrelated crops in a bed (instead of long monoculture rows) reduces pest pressure and supports a wider range of pollinators and beneficial insects.
Stop guessing at plant pairings. Our garden planner optimizes your layout based on plant height, sun direction, spacing, and your local frost dates — the things that actually make a difference.
Frequently Asked Questions
Do onions really repel pests like carrot fly or aphids when planted nearby?
Most claims that onions repel specific pests are anecdotal and not backed by consistent trials. Some gardeners see fewer pests, but controlled studies are mixed; use barriers, timing, diversity, and monitoring rather than relying on onion neighbors alone.
Can I safely plant onions next to beans or other vegetables?
There is no strong evidence that onions chemically harm beans or vice versa; reported problems usually stem from overcrowding or competition. Maintain proper spacing and soil fertility and rotation practices instead of avoiding the combination for folklore reasons.
Will planting marigolds beside onions protect them from nematodes?
Simply planting marigolds next to onions is unlikely to control soil nematodes. Research and extension guidance show nematode suppression comes from incorporating marigold roots as a cover crop rather than from proximity.
Do companion plantings change the flavor of other crops?
Claims that onions change the flavor of nearby fruits or vegetables are not supported by controlled evidence. Flavor differences are more likely due to variety, ripeness, and soil fertility than to a neighboring plant.