How Much Sun Does a Vegetable Garden Need? (2026): The Beginner's Yard Map

Heads up: some links below are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. Here's our full affiliate & advertising disclosure.

Before you build a single bed or buy a single seed, there is one question to answer — and it is the question more first gardens fail on than any other: where does the sun actually fall in your yard? A garden in the wrong spot will never thrive, no matter how good your soil or how faithfully you water. Tomatoes in shade stay small and fruitless. Lettuce in full afternoon sun bolts and turns bitter. The good news is that mapping your yard's sun takes one day, a notebook, and no special tools — and it is the highest-value hour you will spend on your garden all year. Here is how to do it, what each light level can grow, and what to do if your yard is shadier than you hoped.

The rule: 6 hours minimum, 8 for fruit

Most vegetables need at least 6 hours of direct sunlight a day to grow well, and the fruiting crops — tomatoes, peppers, cucumbers, squash, beans, eggplant — do best with 8 or more hours. That is direct sun, not bright shade: sun that actually falls on the leaves, unfiltered by trees, fences, or the house. Leafy greens are the flexible ones: lettuce, spinach, kale, and chard can produce on 4 to 6 hours, and in hot climates they actually prefer a little afternoon shade, which keeps them from bolting. Root crops sit in the middle — carrots, beets, and radishes want about 6 hours but will manage with less, producing smaller roots. Herbs vary: basil and rosemary want full sun, while parsley, cilantro, and mint tolerate partial shade. The pattern is simple: the more a plant has to ripen — fruit, flowers, seeds — the more sun it needs. Leaves are cheaper to grow than tomatoes, and the plant knows it.

How to map your yard in one day

Do this on a sunny day in late spring, after the trees have leafed out — a spot that looks sunny in March may be shaded by June, when the canopy fills in. You need a notebook, a pen, and three check-ins:

  • Morning (around 9 a.m.): Walk the yard and sketch the sunny and shady areas. Note where the house, fences, and trees cast shadows.
  • Midday (around noon): Walk it again. The sun is highest now, so this is the brightest your yard gets — any spot still shaded at noon is genuinely shady.
  • Afternoon (around 3 or 4 p.m.): Walk it a third time. Afternoon sun is the most productive for fruiting vegetables, and this is the check that catches the spots that look sunny at breakfast but are shaded by the fence all afternoon.

Mark each area with its total hours of direct sun, and you have your map. A spot that is sunny at all three check-ins is your full-sun garden site — put your tomatoes and peppers there. A spot sunny at two of three is partial sun — lettuce, herbs, and root crops. A spot sunny at one or none is shade, and no vegetable will be happy there. If you want to be precise, a cheap sun calculator or a phone app can do the same job, but the three-walk method is free and it teaches you your yard in a way no app does. One more thing: check drainage while you are out there. Dig a small hole, pour in water, and if it is still sitting there an hour later, the spot holds water and will cause root problems — pick somewhere flatter and better drained.

What to grow in each light level

Direct sun per dayWhat grows well there
8+ hours (full sun)Tomatoes, peppers, squash, cucumbers, beans, eggplant, corn, melons
6–8 hoursMost vegetables; carrots, beets, onions, garlic, potatoes, herbs
4–6 hours (partial sun)Lettuce, spinach, kale, chard, cilantro, parsley, mint, radishes
3–4 hoursA few hardy greens and herbs; not enough for most vegetables
Under 3 hoursNot a vegetable garden spot — try shade flowers or containers you can move

Notice the pattern: the plants at the top of the table are the ones that have to ripen fruit, and the plants at the bottom are the ones you eat for their leaves. If your yard only gives you partial sun, you can still grow a wonderful salad garden — lettuce, spinach, herbs, radishes, and peas — and that is a real garden, not a consolation prize.

The north-side rule (and why rows run north to south)

Once you have picked your sunny spot, one more layout rule matters: in the Northern Hemisphere, put your tallest plants on the north side of the bed, so their shadows fall away from the garden instead of across it. Tomatoes, trellised cucumbers, and pole beans go north; peppers and eggplant in the middle; lettuce, carrots, and herbs on the south side, where nothing shades them. In a traditional row garden, run the rows north to south, so the morning sun hits one side and the afternoon sun hits the other, and every row gets its fair share. In a raised bed, the same idea applies: tall at the back (north), short at the front (south). It is a small detail, and it is the difference between a bed where everything gets sun and a bed where the tomatoes shade the lettuce all summer.

What if my yard is shady?

First, be honest about it: measure before you assume. Many yards have more sun than their owners think, especially in the front yard, where the house does not block the southern sky. If the back yard is genuinely shady, consider the front — a vegetable garden in the front yard is perfectly respectable, and it gets the sun the back yard does not. Containers are the other answer: a tomato in a 5-gallon pot on the sunny side of the house will outproduce a tomato in a shady bed every time, and you can move pots as the seasons change. And if you truly have less than 4 hours of direct sun anywhere, focus on what thrives in it — a salad garden of lettuce, spinach, herbs, and radishes is a real harvest, and it is far better than a sun-starved tomato plant that breaks your heart. Our garden size guide will help you match the space to the light you have, and our square foot gardening guide shows how to fit a lot of food into one sunny bed.

FAQ

Can I grow tomatoes with 5 hours of sun?
They will grow, but they will not thrive — expect fewer, smaller fruits and a later harvest. Tomatoes really want 6 to 8 hours, and 8 or more is best. If 5 hours is all you have, grow a compact cherry variety like Sweet Million in a container on your sunniest spot, and put your leafy greens in the bed instead.
Is morning sun or afternoon sun better?
Both count, but morning sun has a bonus: it dries dew off the leaves early, which reduces fungal disease. Afternoon sun is hotter and more intense, which fruiting plants love. A spot that gets both — sun from mid-morning through late afternoon — is ideal.
Does the sun change through the season?
Yes, and this is the trap. A spot that is sunny in April can be shaded by June, when trees leaf out and the sun's angle changes. Map your yard after the trees have leafed out, in late spring, so you are measuring the summer sun your plants will actually get.
Can I just use a sun calculator app?
You can, and some are good — but the three-walk method in this article is free, takes one day, and teaches you things an app cannot, like which spots stay wet after rain and which get wind. Do the walks first; use an app to double-check if you want.
What grows in a spot that only gets 3 hours of sun?
Not much, honestly — a few herbs like mint and parsley, and some leafy greens in a pinch, but they will be slow and leggy. If that is your only spot, use containers you can move into the sun, or consider the front yard, a sunny side yard, or a community garden plot.