Plant squash with nitrogen-fixing legumes, aromatic herbs, and low-growing vegetables that share the same water and sun needs
Squash grows well alongside plants that either improve soil, repel pests, or use different layers of the bed without competing for space. The best companions are beans and peas (which add nitrogen to the soil), marigolds and nasturtiums (which draw pests away from squash), and radishes, lettuce, and spinach (which mature before squash vines spread). Plant these in the same bed and you'll use the space more efficiently, reduce pest damage, and avoid the bare-soil look that invites weeds.
The key is matching root depth and spread. Squash roots go deep and vines spread wide across the surface. Plant shallow-rooted herbs and greens between the squash hills, and they'll be harvested before the vines take over. Avoid tall plants that shade the squash, and skip plants that need very different watering schedules.
Key Takeaways
- Beans and peas planted near squash fix nitrogen in the soil, reducing the need for added fertilizer and improving squash growth.
- Marigolds, nasturtiums, and borage attract beneficial insects and repel squash bugs and cucumber beetles, lowering pest pressure without sprays.
- Radishes, lettuce, spinach, and arugula mature in 30 to 60 days and can be harvested before squash vines expand and shade them out.
- Plant herbs like basil, dill, and oregano at the edges of the bed where they won't be buried by vines and can be picked throughout the season.
- Avoid planting fennel, potatoes, or brassicas (cabbage, broccoli) with squash because they compete for nutrients or attract the same pests.
Nitrogen-fixing legumes that improve soil while growing
Bush beans and peas are the most valuable squash companions because they convert atmospheric nitrogen into a form the soil can use. Plant them at the same time as squash or a week or two earlier. They'll flower and produce while squash is still small, and by the time squash vines spread, the beans and peas will be mostly finished. In a 4-by-8-foot raised bed, you can fit two or three squash plants and a 2-foot row of beans or peas along one edge.
Bush varieties work better than pole beans in a squash bed because pole beans need vertical support that can tangle with squash vines. Plant beans 4 to 6 inches apart in a single row, or scatter pea seeds 2 inches apart. Both will be ready to harvest in 50 to 70 days. After you pick the last bean or pea, leave the roots in the soil—they'll decompose and release nitrogen for the squash.
Flowers and herbs that repel squash pests
Marigolds and nasturtiums are the most reliable pest deterrents for squash. Marigolds release a scent that squash bugs and cucumber beetles find unappealing, and nasturtiums act as a trap crop—pests prefer them to squash, so they feed on the nasturtiums instead. Plant marigolds around the perimeter of the bed, spacing them 12 inches apart. Nasturtiums can go closer to squash plants, about 18 inches apart, because their vines will trail along the ground without shading the squash.
Borage attracts pollinators and parasitic wasps that prey on squash pests. It grows 2 to 3 feet tall, so plant it on the north side of the bed so it doesn't shade squash. Dill and cilantro also attract beneficial insects. Plant them early in the season—they bolt (go to seed) in heat, but that's when they're most useful to beneficial insects, so let them flower rather than harvesting the leaves.
Quick-maturing greens and root vegetables
Plant radishes, lettuce, spinach, arugula, and Swiss chard in the spaces between squash plants. These crops mature in 30 to 60 days and will be harvested before squash vines expand enough to shade them. Radishes are especially useful because they break up compacted soil and can be pulled in as little as 25 days. Sow lettuce and spinach in early spring or late summer when temperatures are cool; in summer heat, they bolt quickly and become bitter.
Space radishes 2 inches apart in short rows, and thin lettuce and spinach to 6 inches apart as they grow. Water these shallow-rooted plants more frequently than squash—they need consistent moisture but not waterlogging. By the time squash vines cover the bed, you'll have harvested all of these, and the squash will have the space it needs to sprawl.
Herbs to plant at the bed edges
Basil, oregano, thyme, and marjoram grow well near squash without competing for resources. Plant them along the edges of the bed where they won't be buried by vines. Basil is an annual and grows quickly; plant it from transplants in late spring after the soil warms. Oregano, thyme, and marjoram are perennials and will come back year after year if you don't harvest them too heavily in their first season.
These herbs improve the flavor of squash dishes and attract pollinators. They also prefer drier soil than squash, so plant them on slightly raised spots at the bed edge where water drains faster. Space them 12 to 18 inches apart so they have room to spread without crowding the squash.
Plants to avoid planting with squash
Fennel releases compounds that inhibit the growth of nearby plants, including squash. Don't plant it in the same bed. Potatoes compete with squash for nutrients and space, and both attract similar pests, so the pest pressure increases rather than decreases. Brassicas (cabbage, broccoli, cauliflower, kale) also compete heavily for nitrogen and can stunt squash growth.
Cucumbers and melons are technically compatible with squash, but they attract the same pests and diseases. If you're already managing squash bugs or powdery mildew, adding cucumber or melon to the same bed will make those problems worse. Save them for a different bed or plant them at least 10 feet away.
Spacing and timing for a productive bed
In a standard 4-by-8-foot raised bed, plant two or three squash plants (depending on the variety—check the seed packet for mature vine spread). Space them 24 to 36 inches apart. Plant beans or peas in a 2-foot row along one edge. Fill the remaining space with lettuce, spinach, and radishes in the first month, and plant herbs at the corners and edges.
Plant everything at the same time if you're starting from seed, or stagger plantings if you're using transplants. Beans and peas can go in a week before squash if you want them established first. Greens and radishes can go in at the same time as squash or even a week later—they'll mature before the squash vines take over. Check the seed packet for days to maturity and work backward from your expected squash flowering date (usually 40 to 50 days after planting) to time everything right.
Watering and feeding a mixed squash bed
Squash needs consistent moisture—about 1 to 2 inches per week depending on heat and rainfall. Water at the base of plants in the morning to keep leaves dry and reduce disease. Shallow-rooted greens and herbs need more frequent watering but less total water. In a raised bed with good drainage, you can water the whole bed daily in summer without overwatering the squash, as long as the soil drains well.
Add compost or aged manure to the bed before planting. Beans and peas will add nitrogen as they grow, so you may not need additional fertilizer. If squash leaves start to yellow mid-season, side-dress with compost or use a balanced fertilizer (like 5-5-5) around the base of the plants, keeping it 6 inches away from the stem. Don't over-fertilize with nitrogen, or you'll get lots of leaves and few flowers.
Frequently Asked Questions
Can I plant squash with tomatoes in the same raised bed?
Tomatoes and squash can share a bed, but they have different water needs. Tomatoes prefer drier soil between waterings, while squash likes consistent moisture. If you plant them together, water at the base of each plant separately—water squash more often and let tomato soil dry out slightly between waterings. Plant them on opposite sides of the bed so you can manage each area's moisture independently.
How much space do squash vines actually need?
Summer squash vines spread 3 to 4 feet in all directions. Winter squash spreads even more—up to 6 feet. In a 4-by-8-foot bed, plant no more than two or three plants. If you're growing a compact variety (check the seed packet), you can fit three. Companion plants should be harvested before the vines expand, or they'll be shaded and stop producing.
What if squash bugs appear even with marigolds and nasturtiums?
Companion plants reduce pest pressure but don't eliminate it. Check plants twice a week for orange egg clusters on the undersides of leaves and crush them by hand. Remove any yellow, wilting leaves that show feeding damage. In heavy infestations, hand-pick bugs in early morning when they're sluggish, or use row covers over young plants before bugs arrive.
Can I plant squash with onions or garlic?
Yes. Onions and garlic are shallow-rooted and won't compete with squash. They also repel some pests. Plant them at the edges of the bed in fall (for spring harvest) or early spring (for summer harvest). They'll be done before squash vines spread, so there's no shading conflict.
Should I remove squash flowers to let the plant focus on vine growth?
No. Squash flowers are where the fruit develops. Remove only male flowers (the ones without a small fruit behind them) if you have too many and want to reduce the number of fruits. Female flowers have a tiny squash behind the flower base. Let them develop into mature fruit.