How close can a detached garage be to the property line?
Often 3 to 5 feet from the side and rear lot lines, more along a street, and farther for a tall garage, but it depends on your city. A garage close to the house can also count as attached, with the house's bigger setbacks.
Examples from city rules
A few examples, as each city's or county's own page put it in November 2026:
- St. Paul, MN keeps detached garages at least 3 feet from interior lot lines, with the roof overhang at least a third of that distance or 1 foot, whichever is more. Garages must sit at least as far back from the front as the house, and one within 6 feet of the house counts as attached.
- Fairfax County, VA sizes the setback by height. Between 8½ and 12 feet tall, a garage needs 5 feet from the side and rear lines. Taller than 12 feet, it must be as far from the rear line as it is tall, and meet the lot's full side setback.
- San Jose, CA lets accessory buildings sit 0 feet from the side and rear lines on a typical lot, but a detached garage must be 45 feet back from the front, and corner lots need 10 feet on the street side.
- Duluth, MN notes that setbacks from property lines come from the state's residential code, to help keep fire from spreading. A detached garage may cover no more than 30% of the rear yard, and all accessory buildings together no more than 60%.
So the same garage might sit 3 feet from the side line in St. Paul, need 5 feet or more in Fairfax County depending on its height, and go right to the line in San Jose. Look up your own city's numbers before you design it.
What changes the distance
- Height. Taller garages often need more room, like Fairfax County's height-equals-distance rule above 12 feet.
- The roof overhang. St. Paul sets a separate minimum for the eaves, so measure to the roof edge too.
- Distance to the house. Close to the house, a garage can count as attached, with the house's setbacks.
- Corner lots. The street side usually needs more, like San Jose's 10 feet.
- Rear yard coverage. Limits like Duluth's 30% can cap the garage's size even where the setbacks fit.
What a garage permit's site plan often shows
- The whole lot, with its lines and their lengths
- Every building on the lot, and the driveway and paving
- The new garage's size and where it goes
- Its distance to each lot line and to the house
- Setback lines, easements, and lot or rear yard coverage if asked
St. Paul asks for exactly this: the whole property, every structure, the new garage with its size and distances from the property lines, and the driveways. If you can't find your property markers there, someone licensed has to locate them.
Before you settle on a spot
- Find your setbacks for accessory buildings in your zone, and how height and overhangs change them.
- Find your lot lines on your plat, and the corner pins on the ground.
- Check the distance to the house, in case the garage would count as attached.
- Work out coverage if your city limits it, for the lot or the rear yard.
Draw the garage on your site plan
The Odd Jobs site plan maker places a new garage, the house and anything else on your lot, draws your setbacks as dashed lines, and lists every distance to the lot lines and the coverage on a to-scale PDF. The preview is free, so you can see whether your garage fits before you pay $29. It draws the site plan, not the garage's building plans. No account.
Check your city
Garage setbacks, height rules and coverage limits differ from city to city and zone to zone. Your city's zoning office has the final word, so check your city before you build.