How Close Can a Shed Be to a Property Line: Setbacks and Variances

In most places, a shed has to sit at least three to ten feet from a side or rear property line, with the exact minimum set by your city or county zoning code. The question of how close a shed can be to a property line has no single national answer because setbacks are local law, and the same shed can be legal in one town and illegal one street over. Size, height, foundation type, and whether your lot is a corner lot can all shift the number.

Where the Setback Number Comes From

Every city, county, or township writes its own zoning code specifying how far structures must sit from each property boundary. Many jurisdictions build on the International Residential Code, which sets baseline fire-separation rules for detached accessory structures. Under those rules, a shed placed closer than three feet to a lot line cannot have windows or other wall openings on the side facing that line, and roof overhangs cannot extend past the lot line itself.1ICC. 2018 International Residential Code Chapter 3 Building Planning Your local code may push the minimum further out to five, eight, or ten feet depending on the zoning district.

The fastest way to find your specific setback is to call or visit your city or county planning, zoning, or building department. Most municipal websites publish their zoning code online, and searching for “accessory structure” or “setback requirements” in the code will usually pull up the relevant section. If the site is hard to navigate, a short phone call to the planning office saves hours of digging.

What Changes the Required Distance

The standard setback is a starting point. Several features of the shed and the lot itself can adjust it up or down.

  • Shed size. Many jurisdictions use tiered rules where smaller sheds get more lenient placement. A shed under 100 or 120 square feet may be allowed closer to the line than one that’s 200 square feet. Some codes even waive interior side-yard and rear-yard setbacks entirely for the smallest structures.
  • Height. Taller sheds often trigger wider setbacks. A low-profile shed under eight feet tall may follow standard accessory-structure rules, while a two-story design can be subject to the same setbacks as the main house.
  • Foundation type. A shed bolted to a concrete slab is typically treated as a permanent structure, which means stricter setback and permit requirements. A prefabricated shed sitting on skids or gravel blocks may qualify for exemptions, because the jurisdiction considers it temporary or movable.
  • Corner lots. If your property sits at an intersection, you effectively have two front yards. The setback from each street-facing side is usually much larger than a standard side-yard setback to preserve sight lines for drivers. A shed that could sit five feet from a rear property line on an interior lot might need to be twenty feet or more from the street on a corner lot.

Other Lines That Limit Where a Shed Can Go

Setbacks are not the only invisible boundaries on your property. Several other rules can restrict placement even when you’ve cleared the lot-line distance.

Utility Easements

An easement grants a third party, usually a utility company, the right to access a strip of your property for maintenance or infrastructure. Building any permanent structure inside an easement is prohibited. If you put a shed on top of a buried gas line or sewer main, the utility can require you to remove it at your own expense when they need access. Your property deed or plat map should show recorded easements, and the local utility can confirm their locations.

Underground Lines and the 811 Rule

Even outside easements, buried utility lines can run through your yard. Before digging post holes, trenching for a foundation, or doing any excavation, you’re required to call 811, the national “Call Before You Dig” hotline. This free service notifies local utilities, which then send crews to mark the location of underground gas, electric, water, and cable lines on your property within a few business days.2U.S. Department of Transportation. Call 811 Before You Dig Hitting a gas line with a post-hole digger makes a setback violation look trivial.

Septic Systems

If your property uses a septic system, most local health codes require structures to stay at least ten to twenty-five feet from the drain field. A shed sitting on top of a drain field compresses the soil, damages the absorption lines, and blocks access for pump-outs and repairs. Your county health department can tell you where the drain field sits and how far away you need to build.

Fire Hydrants

A shed placed near a fire hydrant can create an access problem for firefighters. The NFPA fire code requires at least three feet of clear space around the circumference of every hydrant, with five feet of clearance in front of larger connections.3National Fire Protection Association. NFPA 1 and Fire Hydrant Accessibility If a hydrant sits near your planned location, measure carefully.

Distance From Your House

Local codes also set how far apart buildings on the same lot must be. A shed may need to sit six to ten feet from your house or any other building on the property. This separation slows fire spread between structures and keeps space open for maintenance access on all sides.

HOA Rules Can Be Stricter Than the City’s

If your property falls within a homeowners association, the HOA’s covenants and architectural guidelines apply on top of your municipal zoning code, and they’re often more restrictive. Where a city might allow a 200-square-foot shed five feet from the property line, the HOA might cap shed size at 120 square feet, ban metal or plastic construction, require colors that match your home’s exterior, and impose its own setback from fences or lot lines.

Most HOAs require you to submit plans to an architectural review committee before building. The committee typically wants a sketch or drawing showing the shed’s dimensions, proposed placement in the yard, and the materials you plan to use. HOA approval and a city permit are separate processes. You generally need both, and getting one does not guarantee the other. Building without HOA approval can result in fines or a demand to tear the shed down, even if the city considers it fully compliant.

Permits Are a Separate Question From Setbacks

The International Residential Code exempts one-story detached accessory structures from building permits as long as the floor area stays under 200 square feet.4ICC. 2021 International Residential Code Chapter 1 Scope and Administration That 200-square-foot threshold is a baseline. Your jurisdiction may adopt a lower cutoff, with 120 or 150 square feet being common, and any shed with electrical wiring, plumbing, or mechanical systems almost always needs a permit regardless of size.

Permit-exempt does not mean rule-exempt. Even a tiny shed that skips the permit process must still comply with setback distances and other placement rules. The IRC makes this explicit: exemption from a permit does not authorize work that violates any provision of the code.4ICC. 2021 International Residential Code Chapter 1 Scope and Administration Skipping a permit saves you the application fee and review, but it does not let you ignore the setback.

When a permit is required, expect to submit a simple site plan showing the shed’s dimensions and its distance from each property line. Permit fees for a basic shed typically run somewhere between $50 and $200, though larger or more complex projects can cost more.

Find the Property Line Before You Measure

You can’t measure a setback from a line you can’t find. Three common methods vary in cost and reliability.

The most accurate is hiring a licensed land surveyor, who will physically locate and mark the corners of your lot with iron pins or stakes. A boundary survey for a typical residential lot runs roughly $200 to $1,000, and larger or irregularly shaped properties can cost more. This is the only method that produces legally defensible results, which matters if you’re placing a shed close to the minimum setback and can’t afford to be off by a foot.

A cheaper starting point is your property’s plat map, an official drawing showing lot dimensions and boundary lines. You can obtain one from the county recorder’s or clerk’s office, and many counties make them available online at no charge. The limitation is that translating a scaled drawing to your actual yard, especially on uneven terrain or lots with no visible markers, is harder than it sounds without surveying equipment.

You can also look for existing survey markers, usually iron pins driven into the ground at each corner of your lot. A metal detector helps find pins that have been buried by soil or landscaping. Relying on old markers carries some risk. They may have been disturbed, or you may be finding a neighbor’s marker rather than your own. When in doubt, hire a surveyor.

If You Can’t Meet the Setback: Variance

If your property’s shape, slope, or other physical feature makes it impossible to meet the standard setback while still placing a shed in a usable location, you can apply for a zoning variance. The type you need for a placement issue is called an area variance, which is a request to deviate from physical dimensional requirements like setbacks or height limits rather than to change how the property is used.

Variance applications go to your local zoning board of appeals or adjustment. You’ll need to show that strict enforcement of the setback would create a practical difficulty or unnecessary hardship due to something specific about your property, not just that you prefer a different spot for the shed. A narrow, oddly shaped lot where every possible placement violates a setback is a much stronger case than wanting the shed closer to the fence for convenience. The board will also weigh whether the variance would negatively affect neighboring properties.

The process is neither quick nor cheap. Application fees vary widely by municipality, and you should budget for several hundred dollars at a minimum. You’ll likely need a site plan or survey showing the proposed placement, and some boards require a public hearing where neighbors can comment. The full process can take several weeks to a few months.

What Happens If You Build Too Close

The consequences of placing a shed too close to a property line reach well beyond a warning letter.

Fines and Removal Orders

When code enforcement discovers a violation, you’ll receive a formal notice specifying the problem and a deadline to fix it. If you don’t comply, daily fines start and accumulate until you do. The amount varies by jurisdiction, but fines of $50 to $500 per day are common, and they add up quickly while you decide what to do. If fines don’t resolve the issue, the municipality can seek a court order requiring you to move or demolish the shed at your own expense.

Neighbor Disputes and Lawsuits

Code enforcement isn’t the only threat. A neighbor who believes your shed encroaches on their property or violates setback rules can file a civil lawsuit seeking removal. These disputes often begin with a complaint to the city and can escalate to court if the neighbor feels the municipality isn’t acting fast enough. Legal fees in property-line disputes add up quickly, and you pay them regardless of who wins.

Adverse Possession Risk

If your shed or any part of it physically crosses onto a neighbor’s land and the encroachment goes unchallenged for long enough, the neighbor could eventually lose a strip of their property through adverse possession, or you could lose a strip of yours if a neighbor’s structure crosses the other direction. The required period of continuous, unchallenged occupation varies from as few as five years to as many as twenty or more depending on the state. The risk extends beyond the shed’s footprint to include any pathway or maintained area leading to it. If you discover an encroachment in either direction, address it in writing rather than assuming informal goodwill will last.

Problems When You Sell

An unpermitted shed or a known setback violation creates headaches at closing. Home inspectors routinely flag structures that appear to lack permits or sit too close to property lines, and buyers’ lenders may refuse to approve a mortgage on a property with unresolved code violations. In most states, you’re legally required to disclose unpermitted work you know about, even if a previous owner built the shed. Failing to disclose is considered fraud and exposes you to a lawsuit from the buyer after closing. The cleanest fix is to obtain a retroactive permit before listing the property, which means inviting an inspector to evaluate the shed and possibly making modifications to bring it up to code.