Nitrogen fixing plants to grow in your garden gets much easier once a few fundamentals are in place, and that is exactly where this guide starts.
Nitrogen fixing plants work with soil bacteria to pull nitrogen from the air and store it in the soil, giving your garden a free, slow-release boost without bags of fertilizer. Nitrogen fixing plants are legumes like beans and peas, plus a few trees and shrubs, and they’re one of the most practical ways to rebuild soil fertility between heavy feeders. This guide walks you through which nitrogen fixing plants fit your garden size and season, how to plant them in summer heat, and how to build them into a rotation that keeps your soil productive year after year.

Why nitrogen matters and what happens when it runs out
Nitrogen is the nutrient plants use most heavily for leaf and stem growth. It powers photosynthesis, builds proteins, and keeps foliage green and vigorous. When nitrogen runs low, leaves turn pale yellow starting from the bottom of the plant, growth slows, and yields drop even if water and sunlight are plentiful.
Heavy feeders like tomatoes, squash, corn, and cabbage pull so much nitrogen from the soil that by midsummer, the supply is often depleted. A bed that looked rich and dark in May can feel spent by July. This is where nitrogen fixing plants solve a real problem: they replenish what heavy feeders remove, and they do it without constant feeding.

How nitrogen fixing plants actually work
Nitrogen fixing plants don’t actually fix nitrogen on their own. Bacteria living inside root nodules, small bumps on the roots, do the work. These bacteria take nitrogen gas from the air in soil pores and convert it to ammonia, which the plant uses for growth. In return, the plant feeds the bacteria sugars from photosynthesis. It’s a trade.
When the plant dies or is turned into the soil, the bacteria die too, and the nitrogen they stored becomes available to the next crop. Only certain plant families host the right bacteria. Legumes (beans, peas, clover, alfalfa) are the most reliable because they have deep partnerships with these bacteria. Tomatoes, lettuce, carrots, and most vegetables cannot fix nitrogen, which is why rotating them with nitrogen fixers is so useful.
Beans and peas you can harvest and eat
Snap beans, pole beans, and shell beans are nitrogen fixers you can eat. Plant them in spring (after soil reaches 60 F) or in early summer for a fall crop in zones 5 and warmer. Space seeds 4 to 6 inches apart in rows 18 inches apart. Bush beans mature in 50 to 60 days; pole beans take 60 to 70 days but produce longer.
Peas (snap, snow, and shell) grow in cool weather and are planted in early spring or late summer for fall harvest. Sow seeds 2 inches deep, 2 inches apart, in rows 18 inches apart. They mature in 60 to 70 days. The payoff: you get a crop to eat, and nitrogen stays in the soil when roots and leaf litter decompose.
If you’re growing beans or peas for eating, pick pods regularly to encourage more flowering. Leave the roots in the soil when you pull the plant; they hold the fixed nitrogen. This approach works especially well in containers and raised beds where you want a dual benefit.

Cover crop legumes you plant and turn in
If you don’t want to eat the legume, plant it purely for soil building. Clover, hairy vetch, and field peas are inexpensive cover crops that cost far less than commercial fertilizers. Sow them in late summer or early fall in zones 5 and colder, or in fall and winter in zones 8 and warmer.
Broadcast seed at the rate on the packet (usually 15 to 20 pounds per 1,000 square feet for clover), rake it into the soil surface, and water. Let the cover crop grow through fall and winter. In spring, before it flowers, turn it into the soil or chop it and leave it as mulch. Nitrogen becomes available to the next crop within 2 to 4 weeks.
A common mistake is letting cover crops flower and set seed before turning them in. Once flowering starts, energy shifts from root development to seed production, and the nitrogen fixing benefit slows. Cut or turn in cover crops in early spring while they’re still actively growing.
Perennial nitrogen fixers that come back year after year
Alfalfa and birdsfoot trefoil are perennial legumes that fix nitrogen season after season. They’re best suited to zones 3 to 8 and need well-drained soil. Plant them in spring or fall and let them establish for a full year before harvesting or cutting.
These are slower to establish than annual legumes but require less replanting. They work well at the edge of a garden or in a dedicated perennial bed. Black alder, speckled alder, and gray birch also fix nitrogen and grow well in zones 2 to 7. They’re best planted along a garden border or property line where they don’t shade vegetable beds. They take several years to establish and many years to deliver significant nitrogen, so they’re a long-term soil building strategy, not a quick fix.

How to fit nitrogen fixing plants into a small garden
Succession planting nitrogen fixers between heavy feeders
In a 4 by 8 foot raised bed, grow tomatoes spring through mid-July, then pull the plants and plant bush beans for a fall crop. The beans fix nitrogen while the tomato roots decompose, and nitrogen becomes available to a winter crop of lettuce or kale.
This works best when you stagger plantings: harvest heavy feeders early, plant nitrogen fixers immediately, and let them grow for 6 to 8 weeks before the next crop. When you’re ready to harvest your tomatoes, pull them cleanly and leave the roots in place so they can decompose and feed the beans.
Intercropping nitrogen fixers with heavy feeders
Plant beans or peas alongside nitrogen-hungry plants in the same bed. Pole beans can grow up a trellis while squash spreads below, and the beans feed the squash nitrogen as they grow. Space beans 6 inches from the squash base so roots don’t compete.
This works in zones 5 and warmer where both crops have time to mature in one season. The nitrogen fixing plants begin working within 2 to 4 weeks of planting, so the heavy feeder benefits from improved soil fertility while still growing.
Container and raised bed strategies
Containers and raised beds need nitrogen refreshed more often than in-ground soil because nutrients wash out with watering. Grow a legume crop in a container for 8 to 10 weeks, then turn it into the soil or compost it and replant with a heavy feeder.
A 12-inch pot can hold 2 to 3 bush bean plants or a small patch of clover. When the legume is done, the nitrogen benefit carries to the next planting. For more details on container growing, see our guide on how to grow tomatoes in pots, which covers soil fertility and succession planting in containers.
When to plant nitrogen fixing plants in your garden calendar
Peas and fava beans grow best in cool weather. Plant them in early spring as soon as soil can be worked (usually 2 to 4 weeks before the last frost date) in zones 5 and colder. In zones 8 and warmer, plant them in fall for winter and early spring harvest.
Beans thrive in warm soil (60 F or higher) and are planted after the last frost date through mid-July in zones 5 to 7. In zones 8 and warmer, plant them in early summer or again in late summer for a fall crop.
Clover and hairy vetch are also cool season crops. Sow them in late August or September in zones 5 to 7, or in October to December in zones 8 to 10. Alfalfa, birdsfoot trefoil, and nitrogen fixing trees should be planted in spring or fall so they establish before the hottest or coldest months. They take 1 to 2 years to reach full nitrogen-fixing capacity, so plan ahead.

Planting nitrogen fixing plants so they actually establish in summer heat
Soil prep and inoculant bacteria
Nitrogen fixing bacteria are usually already in garden soil if legumes have been grown there before. If you’re planting legumes for the first time or in a new raised bed, inoculant (a powder containing the right bacteria) increases success, especially in cool or sandy soils.
Inoculant costs 5 to 10 dollars per packet and is mixed with seeds just before planting. It’s not essential but is cheap insurance. Without it, legumes may grow slowly or fix less nitrogen.
Watering and spacing for heat stress survival
In midsummer, nitrogen fixing plants need consistent moisture to germinate and establish. Plant seeds 1 to 2 inches deep (check the packet), space them as directed, and water the bed until seedlings emerge, usually 7 to 10 days.
Once seedlings are up, water deeply 2 to 3 times per week rather than daily sprinkling. Deep watering encourages root growth and helps plants withstand heat. Mulch with 1 to 2 inches of straw or shredded leaves to keep soil cool and retain moisture.
Planting beans in midsummer heat is possible but requires extra water. Soil should be kept evenly moist, and germination may be slower if soil temperature exceeds 85 F. If you’re planting now in July, choose a spot with afternoon shade if possible, and plan to water daily until seedlings emerge.
Building a nitrogen fixing rotation for next season
Which beds should get nitrogen fixers and when
Rotate nitrogen fixing plants into beds that grew heavy feeders the previous season. If bed A held tomatoes this year, plant beans or a clover cover crop there next spring or fall. Rotate heavy feeders to bed B (which had legumes last year) so they benefit from the stored nitrogen.
A simple 3-bed rotation works well for most home gardens: bed A gets legumes, bed B gets heavy feeders, bed C gets light feeders (like lettuce or carrots). Shift crops each year. This keeps nitrogen building steadily without depleting any one bed.
How long nitrogen benefits stick around
Nitrogen fixed by legumes becomes available as the plant roots decompose, usually within 4 to 8 weeks. Most of the benefit is used by the next crop, but some nitrogen remains in the soil for 1 to 2 years, especially if you bury a large cover crop or leave root systems in place.
For lasting soil building, combine nitrogen fixers with compost and mulch every year. This compounds the benefit and builds organic matter at the same time. Turn in a legume cover crop, then add 1 to 2 inches of compost on top. The compost adds more organic matter and nitrogen, and the legume roots feed soil microbes.
For more depth on related topics, see our guides on curry plants: your guide to growing and caring for them and how to get rid of ladybugs, practical steps for your garden and home.
Common questions about nitrogen fixing plants
Do nitrogen fixing plants work in containers?
Yes, but the benefit is smaller because containers have less soil volume. A 12-inch pot can hold 2 to 3 bean plants or a clover patch. After 8 to 10 weeks, turn the legume into the soil or compost it, and the nitrogen benefit carries to the next planting. Containers need nitrogen refreshed more often than in-ground beds.
Can you eat the nitrogen fixing plants or do you have to turn them in?
Beans and peas are nitrogen fixers you can harvest and eat. Leave the roots in the soil when you pull the plant; they hold fixed nitrogen. Cover crops like clover and hairy vetch are not usually eaten; they’re grown purely for soil building and are turned into the soil or left as mulch.
How long after planting do nitrogen fixers actually improve your soil?
Legumes begin fixing nitrogen within 2 to 4 weeks of planting, once root nodules form. The nitrogen becomes available to the next crop after the legume is harvested or turned in, usually 4 to 8 weeks after planting. Perennial legumes and trees take 1 to 2 years to reach full nitrogen-fixing capacity.
Do you need to buy special bacteria inoculant or will it already be in the soil?
If legumes have been grown in your soil before, the bacteria are usually already present. If you’re planting legumes for the first time or in new raised bed soil, inoculant (5 to 10 dollars per packet) increases success, especially in cool or sandy soils. It’s cheap insurance for reliable nitrogen fixation.
Can nitrogen fixing plants handle the heat and drought stress of midsummer?
Beans tolerate summer heat well once established, but germination is slower in soil warmer than 85 F. Plant in early July or earlier if possible. Water consistently until seedlings emerge, then water deeply 2 to 3 times per week. Mulch to keep soil cool. Peas and cool season legumes struggle in midsummer heat; plant them in spring or fall instead.