NC State Extension Publications

 

As long as you have sunlight, you can grow vegetables on a patio, balcony, or a doorstep. Some vegetables and herbs can even be grown inside by a bright window, or under grow lights. Three to six hours of full sunlight is enough to grow plants to eat their leaves (collards, kale, lettuce, mustards, spinach, Swiss chard, etc.). With five to six hours of sunlight, you can grow those leafy greens and also plants to eat the roots (carrots, beets, radishes, turnips). With six or more hours of sunlight, you can grow leafy greens, root crops, and plants to eat the fruit (beans, cucumber, eggplant, melons, peppers, tomatoes). For a plant to produce fruit, it must go through its entire life cycle: growth, flowering, and fruit set. They require a long season and a minimum of six hours of full sunlight.

Container gardens are a great strategy when space is limited, and the pots can add a splash of color, interest or elegance. The larger the container, the easier it is to grow vegetables, and drainage holes are essential. Consider the material, weight, color, drainage and size when selecting a container.

Window boxes are another option. In addition to their traditional uses and placement, consider using window boxes for vertical gardening by placing them at the base of a trellis or fence and training vining vegetables (peas, beans, cucumbers) to grow up.

Vertical gardening is a great way to grow lots of food with a small footprint. For example, grow fruiting vines on your fence. Fences are ideal for growing vining vegetables such as peas, beans, cucumbers and melons. Six to 8 ft along a fence could provide enough cucumbers to eat fresh and to pickle. If growing heavy fruit, like melons, tie a piece of hose or netting to the fence to create a hammock for each fruit to support the weight.

If you are growing in the ground, have your soil tested and follow the recommendations for amending. If you are growing in a container, purchase potting soil (do not use dirt from your garden, as it can bring weeds, insects and diseases).

To learn more about vegetable gardening in small spaces, see the Extension Gardener Handbook chapters on vegetable gardening and container gardening which have guidance on watering and fertilizing.


Table 1. Planting Guide for Growing Vegetables in Limited Space
Crop Season* Cold Tolerance** Spacing in inches Light*** Where to Plant

Snap beans (Bush)

Su

L

2 to 3

FS

Borders

Snap beans (Pole)

Su

L

6 to 8

FS

Borders and screens

Beets

Sp/Fa

L

3 to 4

PS

Containers of medium depth

Broccoli

Sp/Fa

M

12 to 18

PS

Single plant in deep container or borders

Brussels Sprouts

Sp/Fa

H

15 to 18

PS

Single plant in deep container or borders

Cabbage

Sp/Fa

H

12 to 18

PS

Borders

Cantaloupe

Su

L

20 to 24

FS

Along fences or trellis

Cauliflower

Sp/Fa

M

20 to 24

PS

Single plant in deep container or borders

Carrots

Sp/Fa

M

3 to 4

PS

Deep container

Collards

Sp/Fa

H

12 to 18

PS

Borders

Cucumbers

Su

L

6 to 8

FS

Along fences or on trellis; good temporary screen

Eggplant

Su

L

18 to 24

FS

Border; only 1 or 2 plants needed

Leafy Greens

Sp/Fa

H

1 to 4

PS

Containers of medium depth (5 to 6 inches) or borders

Onions (Sets)

Sp/Fa

H

2 to 3

FS (bulbs) PS (green)

Medium deep containers

Peppers (Sweet)

Su

L

12 to 16

FS

Deep containers or borders

Potato (Irish)

Sp

M

10 to 12

FS

Single plant in deep pot or border

Radish

Sp/Fa

H

1 to 2

PS

Window boxes; container of shallow to medium depth

Squash

Su

L

12 to 15

FS

Deep container or borders

Tomato

Su

L

18 to 24

FS

Large, deep container or vertical

*Sp = Spring, Su = Summer, F = Fall

** L = Low tolerance, susceptible to cold injury; plant only after average last frost date. M= Medium tolerance, withstands some but not severe cold; plant 1-3 weeks before last frost. H = High tolerance, withstands short periods of sub-freezing temperatures.

*** FS = Full sun; PS = Partial shade. Vegetables indicated as growing in partial shade can also be grown in full light. When plants can only get light part of the day, such as beside a building, the morning sun exposure is preferred. ***All crops can be grown in ground beds. Where suitable for container culture, the size or depth of the container is indicated.

Acknowledgment

Skip to Acknowledgment

The Author would like to thank Larry Bass, Extension Horticultural Specialist, who authored an earlier version of this publication and Emmanuel Torres Quezada and Julie Sherk for review of this edition.

Author

Extension Specialist (Consumer & Community Horticulture) & Professor
Horticultural Science

Find more information at the following NC State Extension websites:

Publication date: Aug. 25, 2026

N.C. Cooperative Extension prohibits discrimination and harassment regardless of age, color, disability, family and marital status, gender identity, national origin, political beliefs, race, religion, sex (including pregnancy), sexual orientation and veteran status.