The first year I built a 4×4 raised bed, I planted it like a checkerboard with no plan at all. Broccoli sat next to tomatoes, onions crowded my beans, and by mid-July the whole thing looked like a traffic jam of leaves. Cabbage worms found the brassicas in about a week, and my basil never got enough sun because a pole bean trellis shaded it out by 10 a.m.
The next season I did it differently. I mapped every square before I planted a single seed, grouped plants by what they actually give each other, and tucked flowers into the corners. Same bed, same soil, but I harvested nearly twice as much and sprayed almost nothing.
Companion planting in square foot gardening works because a grid forces you to think about neighbors. Here’s how I plan mine, which pairings genuinely earn their space, and which combinations quietly wreck a bed.
What Companion Planting Means in a Square Foot Grid
Companion planting is the practice of growing certain plants near each other so they help one another. That help comes in a few real forms: pest confusion, beneficial insect attraction, shade for cool-season crops, nitrogen sharing, and better use of vertical and horizontal space.
Square foot gardening divides a raised bed into a grid of 12-inch squares. Each square gets a set number of plants based on their mature size — 1 tomato, 4 lettuces, 9 bush beans, 16 radishes. That grid is what makes companion planting so much easier here than in long garden rows.
In a traditional row garden, your “companion” might be 18 inches away. In a square foot bed, neighbors sit 6 to 12 inches apart. Roots interweave. Scents mingle. Whatever effect a companion plant has, it happens at close range, and it happens fast.
That closeness cuts both ways. Good pairings work harder in a grid. Bad pairings — heavy feeders shoulder to shoulder, or a sprawling squash swallowing three squares — cause problems faster too.
If you’re brand new to the grid method, start by reading through the best plants for square foot gardening so you know standard spacing before you start pairing anything.
Pro Tip: I’ve found that most companion planting failures aren’t really about plant chemistry — they’re about light. Before I worry about whether marigolds repel nematodes, I sketch where the shadows fall at 2 p.m. in July. Put your tallest plants on the north side of the bed in the US, always. A perfect pairing in the shade still fails.
>> Check out 3 Tier 47 x 47 x 22in Raised Garden Bed
Why Companion Planting Works Better in Raised Beds
I garden in Zone 6 with two 4×8 raised beds and one 4×4. The intensive spacing of square foot gardening means the soil is never bare, and that alone changes the pest picture.
Bare soil dries out, invites weeds, and lets flying pests spot your crops from above. A full grid shades the soil, keeps moisture steady, and visually breaks up the pattern that pests like cabbage moths and flea beetles use to find host plants. When your broccoli is surrounded by dill, nasturtiums, and onions instead of more broccoli, a moth has a much harder time locking on.
There’s a soil argument too. Different crops pull different nutrients at different depths. Carrots and radishes mine the lower 6 to 10 inches. Lettuce and spinach feed shallow. Pair them, and neither one starves. That layered feeding is only possible when your bed has real depth and quality mix — I use a blend based on the guidance in this square foot vegetable gardening soil mix guide, and refresh a few inches of compost each spring.
The Best Companion Pairings for Square Foot Beds
These are the combinations I plant every single year because they consistently earn their squares.
Tomatoes + Basil + Marigolds
This is the classic, and it’s earned it. Basil grows about 12 to 18 inches tall and sits comfortably in the squares directly around a caged tomato without competing for light. The strong oils appear to confuse thrips and whiteflies, and basil’s flowers pull in hoverflies whose larvae eat aphids.
My layout: one tomato per square in the center-north row, basil in the two squares to its south, and a French marigold tucked into the corner. Marigold roots release compounds that suppress root-knot nematodes over a full season.
Give the tomato a cage or stake at transplant time, not in July. For variety selection and spacing, this walkthrough on growing tomatoes in a square foot garden covers determinate versus indeterminate choices, and there’s a separate guide for cherry tomatoes in square foot gardening if you want snacking varieties. For the flower side, the details in growing marigolds in square foot gardening explain why French types outperform African ones in tight grids.
Carrots + Onions + Radishes
This trio is my favorite space saver. Onions and their scent mask carrots from the carrot rust fly, whose larvae tunnel through roots and ruin them. In return, carrots don’t compete for the shallow zone where onion bulbs swell.
Plant 16 carrots per square, 9 onions per square, and use radishes as a marker crop. Carrots take 14 to 21 days to germinate. Radishes pop in 4 days, marking the row and breaking soil crust for slower carrot seedlings. Pull the radishes at 25 to 30 days, right before carrots need the room.
For seeding depth and thinning schedules, see the guides on growing carrots in a square foot garden, onions in square foot gardening, and radishes in a square foot garden.
The Three Sisters, Scaled Down
Corn, beans, and squash is a traditional Native American planting. In a 12-inch grid it needs adjusting, because standard corn wants 4 plants per square and squash wants a full 2 to 3 squares.
My scaled version uses a 3×3 block of squares. Corn fills the center 4 squares at 4 plants each. Pole beans climb the corn stalks and fix nitrogen at the roots. One bush summer squash goes in a corner square where its broad leaves shade soil and its prickly stems discourage raccoons.
Timing matters. Plant corn first. Wait until stalks hit 8 inches — usually 14 to 18 days — then sow beans at the base. Beans planted too early will pull the stalks over.
Details on both crops are in growing corn in square foot gardening and square foot gardening pole beans.
Brassicas + Aromatic Herbs + Nasturtiums
Cabbage, broccoli, and Brussels sprouts all take a full square each and all attract the same pests: cabbage worms, aphids, and flea beetles.
I ring them with dill, oregano, and thyme. Dill’s umbrella flowers feed parasitic wasps that lay eggs inside cabbage worms. Oregano and thyme form low mats that hide the base of the plants from egg-laying moths.
Nasturtiums work as a trap crop. Aphids prefer them to cabbage. I plant two nasturtiums at the bed edge, let the aphids gather there, and either hose them off weekly or pull the whole plant in August. It’s honest organic pest control that costs nothing.
Crop-specific guides worth reading: growing cabbage in square foot gardening, Brussels sprouts in square foot gardening, square foot gardening broccoli, and growing oregano in a square foot garden. If something is already chewing holes in your leaves, the diagnostic in what is eating my cabbage leaves will narrow it down.
Lettuce + Peas + Taller Neighbors
Lettuce bolts — turns bitter and sends up a flower stalk — once soil temperatures pass about 75°F. Companion planting solves this without any spray or fuss.
I plant 4 leaf lettuces per square directly on the south side of a pea trellis in spring, then transition those same squares to the shade of pole beans or cucumbers in summer. That living shade drops leaf temperature 5 to 8 degrees and buys me three extra weeks of harvest.
Peas also fix nitrogen. When they finish in June, I cut the vines at soil level and leave the roots in the bed. Those nodules release nitrogen right where a follow-up crop of lettuce or bok choy will use it. See growing peas in a square foot garden and bok choy square foot gardening for succession timing.
Peppers + Basil + Low Herbs
Bell peppers take one square each and hate root competition. Basil and parsley stay shallow-rooted enough not to bother them, and both flower late in the season to feed pollinators.
Peppers also benefit from a windbreak. In open Zone 5–7 beds, I plant a row of taller eggplant on the windward side. Both are nightshades with the same water and feeding needs, so they’re genuinely compatible. Start with square foot gardening bell peppers, square foot gardening parsley, and growing eggplant in a square foot garden. The pairing case is made in detail in planting eggplant and peppers together.
Combinations to Avoid in a Tight Grid
Some plants simply shouldn’t share a fence line, and 12 inches of separation makes bad pairings worse.
Onions, garlic, and legumes. Alliums release sulfur compounds that suppress the Rhizobium bacteria beans and peas rely on for nitrogen fixation. Keep them at least 3 feet apart. My garlic lives in its own dedicated bed — see growing garlic in square foot gardening for a fall planting schedule.
Fennel with almost anything. Fennel exudes compounds that stunt tomatoes, beans, and most brassicas. I grow it in a container, well away from the beds.
Potatoes with tomatoes and eggplant. All three are nightshades sharing early blight and Colorado potato beetle. Cramming them together turns a small problem into a bed-wide one. If you see potato leaves turning black, that’s exactly the kind of disease that spreads fast in a dense grid.
Sprawling vines next to short crops. Pumpkins and watermelon will bury a lettuce square in three weeks. Grow them vertically or dedicate the space. Both square foot gardening for pumpkins and watermelon square foot gardening explain trellis strategies. The same goes for zucchini — growing zucchini in a square foot garden covers the vertical approach.
Two heavy feeders in adjacent squares. Corn next to cabbage next to tomatoes will strip your bed by August, no matter how good the pairing looks on paper.
Mapping Your Bed: A Real 4×8 Layout
Here’s how my main bed looked last May, north side at the top:
- Row 1 (north): 4 squares of pole beans on a trellis, 4 squares of corn
- Row 2: 2 tomatoes, 2 basil, 1 marigold, 1 pepper, 1 parsley, 1 bush squash
- Row 3: 2 squares carrots, 2 squares onions, 1 radish square, 1 dill, 1 broccoli, 1 nasturtium
- Row 4 (south): 4 squares lettuce, 2 squares spinach, 1 thyme, 1 oregano
Everything tall sits north. Everything short and shade-tolerant sits south. Herbs and flowers fill gaps between vegetable families instead of clustering.
Rotate families each year. Move nightshades to where the legumes grew, brassicas to where the roots grew. If your beds are new, preparing soil for a vegetable garden and the soil secrets guide will get your base right before season one.

Things to Keep in Mind
- Sun mapping comes before pairing. Watch your bed at 9 a.m., noon, and 3 p.m. before you draw a plan. In the Northern Hemisphere, tall crops belong on the north edge, always.
- Herbs need to flower to help. Dill, cilantro, and parsley only feed beneficial insects once they bolt. Let one or two go to flower instead of harvesting every stem.
- Don’t overcrowd chasing companions. A square foot grid is already intensive. Squeezing a fifth plant into a 4-per-square cell for “companion benefits” causes mildew and stunting.
- Trap crops need management. Nasturtiums packed with aphids must be sprayed off or removed by midsummer, or you’ve simply built an aphid nursery.
- Water at the base, early morning. Dense planting means slow-drying leaves. Overhead watering in a packed grid invites powdery mildew and blight. Mulch helps — the vegetable garden mulching guide covers depth and material.
- Rotate families annually. Companion planting reduces pests, but it doesn’t replace rotation. Move each plant family to a new section every year.
Frequently Asked Questions
Does companion planting actually work, or is it a myth?
Some of it is proven, and some is folklore. Trap cropping, beneficial insect attraction, shade partnering, and nitrogen fixation from legumes all hold up in real gardens and research. Claims about specific herbs “repelling” every pest are weaker. Focus on the mechanisms you can see working.
How many plants can I fit in one square foot?
It depends on mature size: 1 per square for tomatoes, peppers, cabbage, and broccoli; 4 per square for lettuce, basil, and Swiss chard; 9 for bush beans, spinach, and onions; 16 for carrots and radishes. Companion planting doesn’t change these numbers — it changes which squares sit next to each other.
What should I never plant next to tomatoes?
Keep tomatoes away from potatoes, fennel, and corn. Potatoes share blight and beetles, fennel stunts growth, and corn attracts the corn earworm, which is the same pest as the tomato fruitworm. Brassicas also compete heavily for nitrogen.
Can I use flowers instead of vegetables in some squares?
Absolutely, and you should. I give up 2 to 4 squares in every 4×8 bed to marigolds, nasturtiums, borage, or calendula. Those squares pay you back in pollination and pest reduction across the entire bed.
How far apart do incompatible plants need to be?
Three feet is a reasonable rule for chemical interference like fennel or alliums near legumes. For shared diseases like nightshade blight, separate them into different beds entirely, not just different squares.
Do herbs really keep bugs away in a square foot garden?
Aromatic herbs like oregano, thyme, and rosemary help by masking the scent of host plants, which makes it harder for pests to find them. They won’t eliminate an established infestation. Pair them with hand-picking and the methods in a solid natural pest routine for real results.
We covered how companion planting works inside a 12-inch grid, the pairings that genuinely earn their squares, the combinations that quietly sabotage a bed, and a real 4×8 layout you can copy. The best approach is simple: map your sunlight first, group plants by what they actually give each other, and save a few squares for flowers that feed your beneficial insects all season. I hope you found this article helpful.
You may also like:
- How to start a square foot garden from scratch
- Growing herbs in a square foot garden
- Square foot gardening spinach for spring and fall harvests
- Growing cucumbers in a square foot garden
- Square foot gardening lettuce for continuous cutting

Hello there! I’m Elsa, and gardening is my passion. As an avid gardener, I created GardeningElsa.com to share my knowledge and experience with fellow enthusiasts. My website is a comprehensive resource for gardeners of all levels, offering expert advice on a wide range of topics, including plants, flowers, herbs, and vegetable gardening. Whether you’re a beginner looking to start your first garden or a seasoned pro seeking to expand your knowledge, GardeningElsa.com has something for everyone. Read more about me.