What Is an Urban Garden? Meaning, Types and How to Start

Last verified: November 19, 2026 · Written by the UrbanAgLaw.org Editorial Team · Reviewed by Janelle Orsi

Cherry tomato plant with green and orange fruit growing in a terracotta pot on a balcony
Quick answer: An urban garden is any space in a city or town where people grow vegetables, herbs, fruit or flowers: a pot on a balcony, a raised bed in a backyard, a rooftop, a sunny windowsill or a plot in a shared community garden. Urban gardening is the practice of growing food and plants in those spaces. Most urban gardens need only sun, water and clean soil, but city rules on soil, zoning, water and selling produce can matter once a garden grows beyond a few pots.

What is an urban garden?

An urban garden is a garden in a built-up area. What makes it different from a rural or large suburban garden is not the plants but the conditions: little space, shade from buildings, hard surfaces that store heat, soil that may be compacted or contaminated, and more rules about what you can build and where.

Urban gardens are part of the wider field of urban agriculture. The USDA’s National Agricultural Library describes urban agriculture as growing, processing and distributing food and non-food agricultural products in urban and suburban areas, and notes there is no single federal definition, so each city sets its own. As a working rule, an urban garden mostly feeds the gardener, a household or a community group, while an urban farm grows to sell.

Where
Balconies, patios, windowsills, backyards, front yards, rooftops, vacant lots, schoolyards and shared community garden sites.
What grows best
Leafy greens and herbs in small or shady spaces; tomatoes, peppers and squash where there are 6 or more hours of direct sun.
Main limits
Sunlight, water access, soil quality, weight on balconies and roofs, and permission from the landlord, HOA or landowner.
When rules matter most
Building structures, gardening on land you do not own, keeping animals, using rain barrels, and selling what you grow.

Types of urban gardens

Most urban gardens fall into six types. Many gardeners combine them, for example containers on a balcony plus a plot in a community garden.

Urban garden types compared
TypeBest forWhat to check first
Container gardenBalconies, patios, steps and rentersPot size, drainage holes, daily watering in summer, weight on a balcony
Raised-bed gardenYards and lots where the ground soil is poor or untestedClean fill soil, HOA or front-yard rules, setbacks for larger beds
Community gardenPeople without their own space; neighborhood groupsA written land agreement, soil testing, zoning, water hookup and liability
Rooftop gardenApartment and commercial buildings with a usable roofLoad limits, roof access and waterproofing, building permits
Indoor or windowsill gardenHerbs and greens year round in apartmentsWindow direction and hours of light; grow lights for fruiting crops
Vertical garden or green wallVery small footprints, fences and wallsSecure mounting, irrigation and drainage onto neighbors or walls

For a shared site, our step-by-step guide to starting a community garden covers land agreements, rules and funding.

Community garden beds with vegetables and flowers beside a red brick building
Community gardens divide a shared lot into beds; the group usually needs a land agreement with the owner.

What an urban garden needs: sun, containers, soil and water

  • Sun. Warm-season crops (tomato, pepper, eggplant, squash) need 6 to 8 hours of direct sun; cool-season crops (lettuce, spinach, Asian greens) need 3 to 5 hours (University of Maryland Extension). Southern and western exposures are sunnier and warmer; northern and eastern ones shadier and cooler.
  • Containers. Every pot needs drainage holes. A single tomato plant needs a pot at least 20 inches wide; peppers and eggplants can do well in a 14-inch pot; smaller pots suit herbs and greens; pots should be at least as tall as they are wide (Penn State Extension).
  • Growing mix. Use a soilless potting mix, not garden soil, which is heavy and drains poorly in a container. Finished compost can make up to half the mix (Penn State Extension). Gravel or pot shards in the bottom of a container do not improve drainage (University of Maryland Extension).
  • Water and food. Most container vegetables need watering at least once a day in hot weather. Add a slow-release fertilizer at planting and a soluble fertilizer every two to four weeks (Penn State Extension).
  • Heat and wind. Brick, concrete, blacktop and metal reflect and release heat, which can stress plants. Tall plants in light pots can blow over, so heavier pots help on windy balconies.
  • Plant choice. Look for compact “bush” or “determinate” varieties. Sweet corn, watermelon, winter squash and zucchini are better grown in the ground than in pots (Penn State Extension).
Young tomato plant and a tray of lettuce growing in planters beside a sunny window
Lettuce and other greens get by with 3 to 5 hours of direct sun; tomatoes need 6 to 8, according to University of Maryland Extension.

Is city soil safe for an urban garden?

City soil can carry lead, petroleum residues or other contaminants from old paint, traffic and past industry. EPA’s guidance for gardens on vacant and reused land is a good checklist even for a backyard:

  • Research the site’s history. A vacant or abandoned lot may be a brownfield and may be contaminated.
  • Test the soil for nutrients and pH, and for the amount and type of contamination, before you plant in the ground.
  • Grow above ground if needed. Fill raised beds with safe soil, and make the areas around them safe too.
  • Cover paths with clean soil, weed cloth and mulch to cut exposure to soil, reduce weeds and save water.
  • Think about children. Children face higher health risks from contamination, so play areas and paths near beds need to be safe.

Our guides on soil testing for lead and contaminants and raised beds and cleanup explain lab tests, lead levels and what to do with the results.

Overgrown urban garden with tall plants and purple flowers in front of apartment towers
Urban gardens fit into whatever space a city leaves: a strip of ground between apartment blocks can grow food and flowers.

Rules to check before you start an urban garden

A few pots on your own balcony rarely raise legal questions. These are the points where city gardeners most often run into rules, with our guide for each:

Rooftop urban garden with raised beds of herbs and vegetables next to city buildings
A rooftop garden: raised beds put clean soil above the roof surface. Check weight limits with the building owner first.

Benefits of urban gardening

The USDA’s National Agricultural Library says urban agriculture can bring environmental, economic and social benefits to the surrounding community. For a single gardener or a neighborhood group, those benefits usually look like this:

  • Fresh food close to home, picked when it is ripe, especially useful where stores with fresh produce are far away.
  • Lower food costs for crops that are expensive to buy, such as herbs, salad greens and cherry tomatoes.
  • Pollinators and green space. EPA notes that planting flowers with vegetables brings pollinators and beneficial insects that boost crops.
  • Community. Shared gardens give neighbors a reason to meet and work together, and a place for schools and youth programs to teach growing and nutrition.
  • A path to more. Some gardeners go on to sell at farm stands or markets, or start an urban farm; see entrepreneurial urban agriculture.
Dense green plants and flower beds on a city rooftop with brick buildings behind
Mixing flowers with vegetables brings pollinators and beneficial insects, according to EPA guidance.

How to start an urban garden: a first-season plan

  1. Measure your light. Count the hours of direct sun on your balcony, yard or window over a day. Under 5 hours: plan on greens and herbs.
  2. Check the rules for your spot. Lease, HOA, landowner permission, and soil history if you will plant in the ground.
  3. Pick the format. Containers if you rent or have hard surfaces; raised beds if your soil is poor or untested; a community garden plot if you have no space.
  4. Get the right containers or beds. Drainage holes, the right size for the crop, and a plan for weight on balconies and roofs.
  5. Fill with good growing mix. Soilless potting mix with up to half compost in containers; clean soil in raised beds.
  6. Start with easy crops. Lettuce, kale, herbs, bush beans and a compact tomato or pepper variety in the sunniest spot.
  7. Set up watering. Containers can need water every day in summer; a nearby tap, self-watering pots or a drip line save time. Water until it drains out of the bottom.
  8. Feed and observe. Fertilize containers every two to four weeks, note what grows well, and expand next season.

Frequently asked questions

What is urban gardening?

Urban gardening is growing vegetables, herbs, fruit or flowers in a city or town: in containers on a balcony or windowsill, in raised beds in a yard, on a rooftop, indoors or in a shared community garden.

What is the difference between an urban garden and an urban farm?

There is no legal line that applies everywhere. In practice, an urban garden mostly feeds the gardener, a household or a community group, while an urban farm grows to sell. Selling usually brings more rules, such as zoning for sales, food safety and business permits. See what is urban farming.

What are the main types of urban gardens?

Container gardens, raised-bed gardens, community gardens, rooftop gardens, indoor or windowsill gardens, and vertical gardens or green walls.

How much sun does an urban garden need?

University of Maryland Extension says warm-season crops such as tomatoes, peppers, eggplant and squash need 6 to 8 hours of direct sun, and cool-season crops such as lettuce, spinach and Asian greens need 3 to 5 hours.

Is it safe to grow food in city soil?

It can be, but test first. EPA advises researching a site’s history because a vacant lot may be contaminated, testing the soil, and using safe soil in raised beds if needed. See soil testing for lead and contaminants.

Do I need permission to garden on a balcony or rooftop?

If you rent, check your lease and ask the landlord; if you own a condo or live under an HOA, read the rules. For rooftops, ask the building owner about weight: University of Maryland Extension notes that one 20-inch container of moist potting mix and plants can weigh 100 pounds.

Can I sell vegetables from my urban garden?

Often yes, but selling is regulated separately from growing. Your city may limit sales from home, and processed foods such as jam fall under cottage food laws. See selling vegetables from home and cottage food laws.

Sources

  • USDA National Agricultural Library: Urban Agriculture (definition and the note that there is no single federal definition), as summarized in our what is urban farming guide
  • Penn State Extension, Container Vegetable Gardening: Four Keys to Success, by Erin Kinley (updated March 30, 2026)
  • University of Maryland Extension, Growing Vegetables in Containers and Salad Tables (updated September 10, 2026)
  • U.S. EPA, Know Before You Grow: Understanding Site Risks for Garden and Growing Activities (EPA-560-F-21-201, October 2021)
  • The primary sources named in our soil, zoning, homeowners association, building code, water and cottage food guides linked above

This page is general information, not legal advice. Rules differ by city and state; check with your city, landlord or HOA before you build or sell.