Setbacks explained: how close can you build to the property line?
A setback is the minimum distance a building or structure has to stay from a property line. Your local zoning rules set them, and they're the number one reason a deck, shed or addition gets sent back for changes.
They're also often smaller than people expect, which is exactly why a few feet matter.
Front, side and rear
Most zoning codes set three setbacks for each zoning district:
- Front: from the street line to the front of the building
- Side: from each side lot line
- Rear: from the back lot line
They differ by district, and they're usually different for the house than for accessory structures like sheds, decks and pools. It's common for a house to need 20 feet or more from a side line while a small shed or low deck can sit within 5 or 10 feet. The exact numbers are local, so look them up for your address.
Size can change the rule
Many codes set different setbacks by size or height. A small shed might be allowed close to the line, while a bigger one, or a detached garage, has to stay much farther back. Going one size up can move the line you have to stay behind by 10 feet or more, so check before you order.
Things that catch people out
- Corner lots often have two front yards, so the bigger front setback applies on both street sides.
- What counts as the structure. Some codes measure to the foundation, some to the eaves, stairs or a landing. Read your zoning code's definitions, or ask how they measure.
- Distance from other buildings. Some towns, cities and counties also set a gap between a shed and the house.
- No permit doesn't mean no setback. A shed that's exempt from a building permit still has to meet zoning setbacks (IRC 2021 R105.2).
- Other setbacks stack on top. Wetlands, septic systems and wells have their own required distances, set by other offices. A homeowners association (HOA) can add its own limits too, and they are sometimes stricter than zoning.
- The property line itself. A setback is only as good as the line you measure from. Online parcel lines can be off by several feet, sometimes more.
How to find your setbacks
- Find your zoning district on your local zoning map (usually on the town, city or county website, or your property's assessor record).
- Open the zoning code (called an ordinance or bylaw, depending on where you live) and find the table of dimensional requirements.
- Look for a separate section on accessory structures, decks, pools or sheds. That's where the smaller numbers are usually located.
- Call the building or zoning department to confirm. They'd rather answer a question now than reject a permit later.
For a step-by-step walkthrough, with what to ask the zoning office, see how to find your town's setbacks.
If your project doesn't fit
You can shrink it, move it, or ask your local zoning board for relief. A variance is hard to get on purpose. The usual tests ask whether something special about your lot causes a real hardship, one you didn't create yourself (American Planning Association). Wanting a bigger deck doesn't count; a steep, narrow or oddly shaped lot might.
How Magic Site Plan helps
Place your deck or shed on your lot and Magic Site Plan shows the distance to every property line as you move it. Where we are able to find the setback for your address, we show it next to your project, with where it came from, and flag anything that looks too close. Where we can't find it, we say so, and you can enter the number from your local code. We never say "pass" or "approved", because only your building department decides that.