Most vegetables need at least 6 hours of direct sun a day, and fruiting crops such as tomatoes, peppers, squash and melons do best with 8 or more. Root vegetables and brassicas like broccoli will produce in 4–6 hours. Leafy greens like lettuce, arugula, chard and parsley manage with as little as 3–4 hours. The chart below sorts common crops into low, medium and high-sun groups so you can match each bed to the light it actually gets.

Vegetable sunlight chart

Hours mean direct, unshaded sun, not just daylight. The figures are the minimum for a worthwhile harvest; almost every crop grows faster with more sun, except in very hot climates where afternoon shade helps leafy greens.

CropSun groupMinimum direct sun
Lettuce (leaf and cos/romaine)Low3–4 hours
Arugula (rocket)Low3–4 hours
Asian greens (bok choy, mizuna, mustard)Low3–4 hours
SpinachLow3–4 hours
Swiss chardLow3–4 hours
ParsleyLow3–4 hours
Mint, chivesLow3–4 hours
BeetsMedium4–6 hours
CarrotsMedium4–6 hours
RadishesMedium4–6 hours
TurnipsMedium4–6 hours
PotatoesMedium4–6 hours (more is better)
BroccoliMedium4–6 hours
Cabbage, kale, cauliflowerMedium4–6 hours
PeasMedium4–6 hours
Bush beansMedium–high6 hours
TomatoesHigh6–8+ hours
Peppers and chilliesHigh6–8+ hours
Eggplant (aubergine)High6–8+ hours
OkraHigh6–8+ hours
CucumbersHigh6–8+ hours
Zucchini, summer and winter squashHigh6–8+ hours
CornHigh6–8+ hours
Pole beansHigh6–8+ hours
Watermelon, cantaloupeHigh8+ hours
StrawberriesHigh6–8+ hours
BasilHigh6–8 hours

A simple way to remember it: if you eat the leaves, it tolerates shade. If you eat the root, it needs moderate sun. If you eat the fruit, it needs full sun.

Low sun: 3–4 hours a day

Leafy greens and many herbs grow leaves, not fruit, so they need less energy. They also prefer cool conditions and bolt (run to seed) in strong heat. A bed that gets only morning sun or dappled light can be the best spot in the garden for them in summer, extending their season by weeks. Expect slightly slower growth than in full sun.

Medium sun: 4–6 hours a day

Root crops and cool-season brassicas sit in the middle. Beets, carrots, radishes and turnips need enough light to build a swollen root, and broccoli and cabbage need enough to form a head, but none of them needs all-day sun. Broccoli, cabbage and peas also bolt or stop producing in prolonged heat, so a bed with afternoon shade can suit them in warm climates.

High sun: 6–8+ hours a day

Fruiting crops need the most light, because turning flowers into fruit takes a lot of energy. With less than 6 hours of direct sun, tomatoes, peppers, squash and melons grow leaves but flower and fruit poorly. If your garden has only one fully sunny bed, save it for these crops. Our 10 tips for growing tomatoes covers the rest of what tomatoes need.

How to measure the sun your garden gets

Pick a clear day, ideally in late spring or early summer, and check each bed every hour from mid-morning to late afternoon. Note whether it’s in full sun, dappled shade or full shade. Add up the hours of full sun to see which group each bed belongs to.

Things to watch for:

  • Season changes. The sun is lower in spring and autumn, so a fence or building casts a much longer shadow than in midsummer. A bed in full sun in June may be half-shaded in April.
  • Trees in leaf. A spot that’s sunny in early spring may be shaded once nearby trees leaf out.
  • Filtered light counts for less. Sun through a tree canopy or shade cloth is weaker than direct sun.

In the northern hemisphere, the sunniest spots usually have a clear view to the south; in the southern hemisphere, to the north.

Layout tips by sun

  1. Tall crops on the shady side. Put tomatoes, pole beans and corn along the north edge of a bed (south edge in the southern hemisphere) so they don’t shade shorter plants.
  2. Use summer shade on purpose. Lettuce planted just behind a row of tomatoes or climbing beans gets the afternoon shade that keeps it from bolting.
  3. Move containers to the light. Pots of tomatoes, peppers and herbs can follow the sun around a patio or balcony. See the veggie container guide for pot sizes.
  4. More sun means more water. Full-sun beds dry out faster. The garden watering schedule shows how often each crop needs a soak.

If you’re building a new bed, site it before anything else; the raised bed gardening guide and square foot gardening chart cover the rest. More guides are on our gardening hub.

When sun is limited

Don’t try to force tomatoes into a 4-hour spot. A shady bed planted with lettuce, chard, spinach, Asian greens, parsley and radishes will give you far more food than a struggling tomato plant. Grow the heat-lovers in containers on the sunniest patch of the patio or driveway instead.

Frequently asked questions

How much sun does a vegetable garden need?

At least 6 hours of direct sun a day for most vegetables, and 8 or more for fruiting crops like tomatoes, peppers and melons. A garden with 3–6 hours can still grow leafy greens, herbs and many root crops.

What vegetables need the most sun?

Tomatoes, peppers, eggplant, okra, cucumbers, squash, corn and melons. Watermelon and cantaloupe are among the hungriest for sun and heat, and fruit best with 8 or more hours.

What vegetables grow in shade?

No vegetable grows in deep shade, but lettuce, arugula, spinach, Swiss chard, Asian greens, parsley, mint and chives manage with 3–4 hours of direct sun. Beets, radishes and peas cope with partial shade too.

Is morning or afternoon sun better for vegetables?

Morning sun is generally better. It dries dew off the leaves early, reducing disease, and it’s less harsh than afternoon sun. In hot climates, morning sun with afternoon shade is ideal for leafy greens and cool-season crops.

Some links on this page may be affiliate links — if you buy through them we may earn a small commission at no extra cost to you. We only link to gear we'd genuinely use ourselves.