Surveyors.io

Can I build a shed on the property line, and how close can you actually build?

Aug 3, 2026 · 9 min read

Surveyor matcher

Traverse

3 matched · licensed in · near

Free for clients · You choose who to talk to

Almost certainly not. Nearly every US municipality requires a detached shed to sit some distance back from the property line, and the common range is 3 to 10 feet from side and rear lines, with front yard setbacks of 15 to 30 feet where a shed is allowed in front at all. A handful of jurisdictions permit accessory structures right at the rear or side line in specific zoning districts, usually with conditions about height, eaves and fire rated walls, but that is the exception you have to go find in writing, not the default you can assume.

The bigger trap is the one almost nobody sees coming: your shed can be small enough to need no building permit and still be illegal where you put it. Those are two different bodies of law, administered by two different offices, and only one of them cares about the size of the shed.

How close can I build a shed to the property line?

It depends on your zoning district, and the honest answer is that you have to look it up for your specific parcel. What follows is the range most American jurisdictions land in, useful for planning but not a substitute for your own code.

Which lineTypical required setbackWhat tends to change it
Side property line3 to 10 feetZoning district, lot width, shed height, eave overhang
Rear property line3 to 15 feetWhether an alley runs behind, corner lot status, easements
Front property line15 to 30 feetMost codes simply prohibit accessory structures in the front yard
From the house or another structure5 to 10 feetFire separation requirements in the building code
From a septic field, well or easementVaries, often 10 feet or moreHealth department rules and the recorded easement language

Two houses on the same street can carry different numbers. Setbacks are attached to the zoning district, the lot configuration and sometimes the specific subdivision plat, so a corner lot, a flag lot or a lot with an alley easement behind it can have requirements the identical house four doors down does not. Read your own parcel, not the neighborhood.

Where to find it: search your city or county site for the zoning ordinance section on "accessory structures." Most publish a one page handout because this is the question their counter staff answer most often. If you cannot find it in ten minutes, call the zoning or planning department rather than the building department. They are frequently different desks and only one of them sets setbacks.

Do I need a permit to build a shed?

Often not, and this is where people get into trouble. The International Residential Code, which most US jurisdictions adopt in some form, exempts from permit "one-story detached accessory structures used as tool and storage sheds, playhouses and similar uses, provided the floor area does not exceed 200 square feet." Older code editions and many local amendments set the threshold lower, commonly at 120 square feet, which is why a 10 by 12 shed is permit free in one town and permitted in the next one over.

The exemption also evaporates the moment the shed stops being a plain shed. Run electrical service to it, plumb a sink, install a heater, put in a second story, or pour a foundation that qualifies as a permanent structure, and you are generally back in permit territory regardless of floor area.

Does a permit exemption mean I can ignore setbacks?

No, and the code says so explicitly. The IRC states that exemption from permit requirements "shall not be deemed to grant authorization for any work to be done in any manner in violation of the provisions of this code or any other laws or ordinances of this jurisdiction."

Read that sentence twice, because it is the whole problem in one line. Zoning setbacks are a separate ordinance. A shed under the permit threshold still has to comply with them, along with any easements on your lot, any recorded subdivision restrictions and whatever your HOA has adopted. "The building department told me I did not need a permit" is not a defense to a setback violation, because the building department was answering a question about the building code and the setback lives in the zoning code.

The practical version: not needing a permit means nobody inspects your shed. It does not mean nobody can make you move it. In fact it makes enforcement more likely to arrive late, after the shed is built and full, usually via a neighbor complaint.

What happens if I build a shed too close to the property line?

The outcomes run from mildly annoying to genuinely expensive, roughly in this order.

You apply for a variance and pay for it. If the encroachment is modest and there is a hardship argument, most zoning boards have a process. Expect an application fee, a public hearing where your neighbor can object, and several weeks to a few months. Approval is not guaranteed and boards are generally less sympathetic when the structure is already built.

You move the shed. Zoning enforcement can require it, and the remedy for a setback violation is compliance, not a fine you can absorb. Relocating a built shed usually means disassembly or a crane, plus a new pad.

It surfaces at closing, years later. This is the common one. A buyer's survey shows the shed sitting inside the setback or over the line, the title company flags it, and suddenly the sale depends on your fixing something you forgot about in 2019. Unpermitted or non conforming structures are a standard reason closings get delayed.

Your neighbor has a claim. If the shed is actually across the boundary rather than merely inside the setback, that is an encroachment on someone else's land, and the neighbor can generally require its removal. Time does not automatically cure it in your favor either. In some states long, open and uninterrupted use can eventually mature into a prescriptive right, but that cuts against the person who let it happen, and it takes years of the kind of neighbor relationship nobody wants.

How are shed setbacks measured?

From the property line, and that is the sentence that catches people. Not from the fence, not from the hedge, not from where the lawn stops. Fences are frequently built inside the true line, sometimes by a foot or more, and a shed measured off a fence inherits every inch of that error.

Two other measurement details matter. Most codes measure to the nearest point of the structure, which usually means the eave or roof overhang rather than the wall. A shed with a 12 inch overhang set exactly 5 feet from the line at the wall may be 4 feet at the drip line and fail. And where a shed sits on a slab or deck, some jurisdictions measure from the edge of that, not the shed itself. Ask your zoning office which point they measure to before you stake it out.

Do HOA rules and easements override the zoning setback?

They stack on top of it. You have to satisfy all of them, and the strictest one governs.

Recorded subdivision plats often carry their own building lines that are tighter than the municipal zoning setback, and because they are recorded against your lot, they run with the land. HOA covenants can add rules about shed size, siding, color, roof pitch and location, and can require written architectural approval before you build. Easements are the most absolute of the three: a utility easement along the rear ten feet of your lot may mean no permanent structure there at all, even if the zoning setback is only three feet, because the utility has a recorded right to dig it up.

All three of those things are shown or referenced on a boundary survey, which is a large part of why one is worth ordering before you build rather than after.

How do I find my property line before building a shed?

Start by looking for the corner monuments the original survey left. On a platted subdivision lot there is usually an iron pipe or capped rebar at each corner, often a few inches below grade, and a metal detector plus the recorded plat will find them more often than people expect. Our guide to how to find property pins walks through the method.

If the pins are missing, disturbed, or you find two and they do not agree with the plat, stop measuring and hire a surveyor. A lot survey on a typical platted residential lot runs $450 to $900 and takes one to three weeks, and it gives you the corners physically marked, your existing improvements located, the recorded easements and the plat setback lines on one sealed drawing. Compared to relocating a finished shed, or losing a variance hearing, that is inexpensive certainty. Having the corners marked also makes the rest of the project easier, which is why the same visit is usually worth pairing with property line marking if you are fencing as well.

One more note if you are hiring out the build rather than doing it yourself: before anyone digs a post hole on your lot, ask the contractor for a current certificate of insurance naming their general liability and workers compensation coverage, and check the expiry date rather than just accepting the PDF. Damage to a buried utility line or an injury on your property is the kind of thing homeowners discover the hard way that their own policy was not written for.

A short checklist before you order the shed

In this order, because each step can change the answer to the next one.

1. Find your zoning district and pull the accessory structure setbacks for side, rear and front, and the maximum size and height allowed without a special approval.

2. Check the recorded plat and your title documents for building lines and easements. These are frequently stricter than the zoning code and they are the ones people miss.

3. Get HOA architectural approval in writing if you have an HOA, before you buy anything.

4. Establish where the line actually is. Find the pins or get the lot surveyed. Do not measure from a fence.

5. Stake the shed footprint and measure to the line at the eave, not the wall, and add a foot of margin if you have room. Setback compliance is not a place to be exactly at the number.

6. Confirm whether a permit is required at your floor area and for your specific features, and get the answer from the building department rather than the shed vendor.

The bottom line

You can almost never build a shed on the property line, and the permit exemption that makes a small shed easy to buy does nothing to protect you from the setback rule that makes it hard to place. The two questions are decided by different offices under different ordinances, and only one of them will send you a letter about it, usually after the shed is built.

The whole problem is cheap to avoid and expensive to fix. If you are not certain where your line runs, or your only reference point is a fence somebody else built, describe the lot in the matcher on the lot survey page and compare up to three quotes from license verified, insured surveyors in your county, usually within about 24 hours.

Need it done right? Compare up to 3 quotes from licensed, insured land surveyors near you, usually within 24 hours. Free for clients.

Get matched quotes