Can Onions and Beans Be Planted Together?

This post contains affiliate links. As an Amazon Associate earns from qualifying purchases.

Beans and onions shouldn’t be planted together. That’s the conventional wisdom. It’s accepted in gardening textbooks, and it’s taught in horticultural schools across the world, but, why can’t onions and beans be planted together?

From my experience, beans and onions work well together, so I was amazed to learn that there was in fact a very specific chemical reason for beans and onions to be planted apart. In this article, I’ll outline the science behind beans’ and onions’ incompatibility, and offer a few solutions for your garden.

Why shouldn’t you plant beans and onions together? 

There are three explanations given for why beans and onions are incompatible:

  1. Beans store nitrogen, so onions bolt (FALSE)
  2. Onions produce a chemical that stunts beans’ growth (TRUE)
  3. Beans and onions compete for moisture (TRUE)

Let’s address those theories in order:

  1. The first idea, that beans are nitrogen fixers, and therefore provide too much nitrogen to onions is misleading. Beans are nitrogen fixers, yes, but they do not share that nitrogen with other plants, so onions actually benefit from this relationship.
  2. The second, that onions produce a chemical that stunts beans’ growth is true, and most likely where the advice of growing these vegetables apart came from (because there is some weight to this idea, we’ll focus on this in the next part of this article).
  3. The third, that beans and onions compete for moisture, is true, but again, misleading, as they do compete for moisture, but neither are heavily moisture dependent for their early growth and if you keep them well watered and stop the soil from drying completely, they will thrive. So this is only a half-truth.

Do onions produce allicin, and why does it harm beans?

Alliums release a chemical called allicin. Allicin is an antibacterial, antimicrobial chemical produced as a gas by all members of the onion family. It’s what makes us cry as we cut onions, and why garlic can sting sore hands.

How allicin works to inhibit bean growth

Beans are nitrogen fixers. Any regular allotment gardeners will be aware of nitrogen-fixing, but might not know how it works. Nitrogen-fixing in beans is a process where plants create stores of nitrogen in their roots, stems, or leaves, which help them sustain growth throughout the season. 

Nitrogen is only really important for root and leaf development, so fertilizers that are high in nitrogen are typically used for leafy greens, or climbing plants, rather than fruiting vegetables or flowering plants.

By gobbling up nitrogen in the early part of the season, they prevent other plants from using that nitrogen when they need it most – particularly important for annual climbers like beans and peas, which require huge amounts of energy.

Nitrogen-fixing plants include: 

  • Peas
  • Beans (soy, cowpeas, and all legumes)
  • Lupins
  • Alfalfa
  • Peanuts
  • Clover
  • Rooibos

All of these plants use a bacteria called urease to process and store nitrogen. If you’re still following the science here, you’ll see the red flag; urease is a bacteria; allicin is antibacterial.

Onions inhibit the growth of young beans and bean seedlings by emitting allicin, an antibacterial gas, which kills the beneficial urease bacteria that beans and peas require to fix nitrogen. This can inhibit the growth of beans in their early stages, and produce smaller, weaker crops.

Want to upgrade your summer vegetable gardening experience?
Learn to grow your own juicy tomatoes, spicy peppers, and crisp cucumbers with the Grower’s Diary ebook bundle, a Tiny Garden Habit original, packed with all our valuable gardening knowledge!
Buy the Kindle (bundle or separate) here.
Also available in printable PDF format here

What nutrients do beans take from the soil?

There is one theory that onions will put on too much top growth if planted near beans because beans are nitrogen fixers, but this is a common misunderstanding of what nitrogen-fixing actually means.

Nitrogen-fixing is often explained as a useful part of rotation planting, where “nitrogen fixers” are planted before “nitrogen hungry” plants. But these plants do not leave nitrogen in the soil unless you dig them through at the end of the season. 

Beans store nitrogen in their entire stem, as well as their leaves, while bean roots are the richest nitrogen store in the plant. For no-dig gardens, cutting off bean tops and laying them on the ground to compost over winter will release nitrogen, while the roots will act as slow-release nitrogen fertilizers in spring. 

What happens when you plant beans and onions together?

When you plant beans and onions together, it is more than likely that you won’t see any difference in your crops. However, if your onions are under attack by maggots or suffering white rot, they produce higher allicin levels and then onions can stunt the early growth of beans.

This can lead to shorter beans and smaller crops. We noticed last year when panting shallots with beans – as we often do – that the runner beans were significantly shorter than most years.

In previous years, when planting French beans with shallots there was no difference between the plants with shallots at their base and the plants with marigolds at their base. Both sets of French beans grew well regardless of their pairings.

How to plant onions and beans together

I only recently discovered there was an issue with beans and onions at all, following many years of growing French beans and shallots happily alongside each other. But how can you grow beans and onions together if they’re bad for each other?

To grow beans and onions together successfully, you just need to follow the best practice for each plant. Firstly, onions should be planted in the fall (you will always get a better crop from fall-planted onions if you can plant them early where you live).

Secondly, beans can be planted in stages, to provide a longer cropping period, but do not sow them directly in the soil. Onions do inhibit germination, but as long as you start your beans indoors (we use toilet roll tubes which help create a good root run).

In spring (assuming you have a row of onions and a climbing frame for your beans/peas), dig a trench behind your onions and fill it with fresh kitchen waste, straw, and torn newspaper. Plant your young beans into the trench and fill it in with garden compost. 

The beans will feed off the decomposing food and paper waste in the trench, directly located under their roots. They will store the nitrogen, and while they may suffer some antibacterial action from the onions, they will ultimately thrive in the higher nutrients. 

Plant out new beans every two weeks in spring, and you should have fresh crops as summer, and into early autumn. 


My genuine advice to anyone with limited space in their garden is to just try it. Beans and onions will grow together, even if the science is against them. Thousands of allotment gardeners and passionate vegetable growers can’t be wrong, and I have my own experience of successfully growing onions and beans together here too.

Yes, there are problems, but you can grow onions and beans together. In gardens where space is limited and, on no-dig plots, in particular, beans and onions can help each other by regulating nutrients – just make sure your beans are germinated and grown on indoors before planting them out together.

Check out these must-have gardening products

You don’t need much to start gardening, but some tools and products will make a difference in how comfortable and effective gardening can be for you. Here are my favorites:

  • Garden Trowel. A good garden trowel will last you many years. I love how sturdy this hand trowel from WOLF-Garten is, the metal doesn’t bend and it has a nice grip.
  • Trimming Scissors. I use them for delicate pruning and harvesting all summer long, and they’re super handy. These Teflon Trimming Scissors are extra nice because they don’t rust as easily.
  • Dutch Hoe. Dutch hoes may seem old-fashioned, but there’s nothing like a quick sweep through the topsoil to get rid of small weeds – no bending required. I love WOLF-Garten’s selection: this dutch hoe coupled with their universal handle.
  • Grow Lights. These grow lights from Mars Hydro are super strong, yet dimmable, so they fit every stage of growth. They don’t put out too much heat and are very economical.
  • Seedling Trays. There’s an art to choosing the best size for seedling trays so that it holds the perfect amount of water and gives the roots enough room to grow. These germination plugs are perfect when coupled with 1020 bottom trays
  • Liquid Fertilizer. You’ll need to feed your plants from the seedling stage, all the way to fruiting. This organic fish & seaweed blend is a very versatile option. Use it half-strength for young plants and full-strength for established plants.

Browse our list of tools, fertilizers & pesticides, indoor growing products and seed shop recommendations – we hope you find our selection useful and it saves you some time!

Adriana Sim

Hi, I'm Adriana Sim, owner of Tiny Garden Habit. I practice my green thumb in beautiful Transylvania, Romania, zone 6b. While my garden is not quite tiny, it's definitely compact and super-productive. You can grow a lot of food in a small space, and it's my mission to teach you how!

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts