How far does a shed have to be from the property line?
It depends on your city, and often on the shed's height. Many cities want a shed a few feet, often 5, from the side and rear lot lines and keep it out of the front yard, while some let a small shed sit right on the back line.
Examples from city rules
A few examples, as each city's own page put it in November 2026:
- Fairfax County, VA lets a shed 8½ feet tall or less sit anywhere in the side or rear yard. One between 8½ and 12 feet tall must be at least 5 feet from the side and rear lot lines. No shed may go in the front setback, or in any front yard on a lot of 36,000 square feet or less.
- San Jose, CA lists a 0-foot side and rear setback for accessory buildings on a typical interior lot, 10 feet on the street side of a corner lot, 4 feet on a key lot, and 60 feet from the front.
- Seattle, WA says that in neighborhood residential zones you usually can't put a shed within 10 to 15 feet of the front lot line or 5 feet of the side lines, but it can go in the back yard.
- Sioux Falls, SD lets a shed in the rear yard that's more than 10 feet from the house sit as close as 2 feet to the property line, overhang included.
- Mt. Lebanon, PA wants every shed at least 5 feet from all side and rear lot lines, measured from its outermost point, and none in a required front yard.
So the same 8-foot shed could sit right on the back line in San Jose or Fairfax County, 2 feet from it in Sioux Falls, and 5 feet from it in Mt. Lebanon. That's why it pays to look up your own city's numbers.
How to measure it
- From the closest point. Sioux Falls counts the overhang and Mt. Lebanon measures from the shed's outermost point, so measure from the roof edge, not the wall, unless your city says otherwise.
- To the lot line, not the fence. A fence may not sit on the line. Your plat and the corner pins show where it is.
- On a corner lot, two sides face a street. The street side often has a bigger setback, like San Jose's 10 feet.
- From the house too. Some rules depend on the distance to the house, like Sioux Falls' 10 feet.
- Around easements. Sheds often can't go on a utility or drainage easement, even where the setback allows it. Your plat shows them. More on sheds and easements.
Before you pick a spot
- Your city's side, rear and front setbacks for sheds
- Whether they change with the shed's height or size
- Whether they're measured to the wall or the roof edge
- How far the shed must be from the house
- The street side, if you're on a corner
- Any easements on your plat
- Your homeowners' association's rules, if you have one
See the distances before you build
The Odd Jobs shed & fence site plan takes your city's setbacks and shows them as dashed lines. As you place the shed, it lists the distance to each lot line, so you can see at once whether it clears them. Then it draws the to-scale site plan many permit desks ask for, with a project data sheet, in one PDF. The preview is free, so you can check it against your city's rules before you pay $19. No account.
Check your city
Setbacks, how they're measured and the height limits that change them all differ from city to city, and zoning districts within a city can differ too. Fairfax County notes that subdivision covenants can add their own rules, which the county doesn't enforce. Your city's zoning office has the final word, so check your city before the shed arrives.