Planning a backyard shed: permits, size limits, digging safely, the base and anchoring
A small shed is one of the easiest outbuildings to build, but the rules that apply to it are local. Here is what to check before you buy materials.
Quick answer
- Permits depend on your town. The IRC model code exempts one-story detached accessory structures up to 200 sq ft from a building permit, but local codes change that: Baltimore uses 120 sq ft, Sacramento County 120 sq ft with a height limit, Virginia 256 sq ft (local building departments).
- Exempt doesn't mean anything goes: zoning, setbacks, easements, flood areas and HOA approvals can still apply, and adding electrical work needs a permit (Sacramento County, Fluvanna County VA).
- Call 811 before you dig, a few business days ahead, for any depth of digging. It's free (Common Ground Alliance).
- Wood touching the ground should be treated for ground contact (Use Category 4A or higher), shown on the end tag or stamp (American Wood Protection Association).
- Anchor it, even a small shed: building departments require sheds to be anchored against wind (Fluvanna County VA, Sioux Falls SD).
A shed looks like the simplest building project there is: a floor, four walls and a roof. The rules around it are the part people skip, and they are set by your town or county, not by a national standard. This guide covers what to check before you buy materials, using building department documents from five states, the Common Ground Alliance (811) and the American Wood Protection Association.
Skip to shed plans made for the size you choose (FitMyShed) ↓
Do you need a permit?
Many places build their rules on the International Residential Code (IRC), a model code. As local building departments publish it, the IRC exempts from a building permit "one-story detached accessory structures, provided that the floor area does not exceed 200 square feet" (City of Federal Way, Washington, citing IRC R105.2). But each state or city can change that number:
| Where | Permit-exempt shed (as published) |
|---|---|
| IRC model text (Federal Way, WA; Springville, UT, 2021 IRC) | One story, up to 200 sq ft of floor area |
| Baltimore City, MD | Up to 120 sq ft |
| Sacramento County, CA | Under 120 sq ft and under 9 ft tall (other conditions for 120 to 200 sq ft) |
| Virginia (Fluvanna County, 2015 USBC) | Up to 256 sq ft |
These are examples, not a list of every rule. Fluvanna County's guide refers to the 2015 Virginia code and Sacramento County's was updated in February 2024; your building department has the current version.
Exempt from a permit isn't exempt from the code. Springville, Utah, quotes the code itself: an exemption doesn't authorize work done in violation of the code or other local laws. Federal Way adds that separate permits may still be required, and that work in critical areas such as wetlands, streams and their buffers is not exempt.
Other approvals that still apply
- Zoning and setbacks. Sacramento County says every accessory structure, exempt or not, must meet its zoning standards, stay out of maintenance and public utility easements and front or side street setbacks, and stay 6 feet from the house and 3 feet from other structures. Your numbers will differ: ask.
- HOA, health, flood and land-disturbance approvals. Virginia's permit exemption doesn't cover approvals outside the building code, including zoning, health department, land disturbance, flood hazard areas and HOAs (Fluvanna County).
- Electricity. Adding electrical or plumbing to an exempt shed requires a permit in Sacramento County, and Virginia's exemption doesn't apply to electrical, plumbing or mechanical work (Fluvanna County).
- Not for living in. Sacramento County's exempt structures may not be used for human habitation.
Call 811 before you dig
Footings, ground anchors and even leveling the site can mean digging. The Common Ground Alliance runs 811, "the free national before-you-dig service":
- Contact 811 a few business days before you begin any digging, and wait until all utilities have responded before you break ground.
- Depth doesn't matter: some utilities are buried just inches below the surface, so every digging project requires contacting 811.
- Shovels are the second most common tool involved when buried utilities are damaged, after backhoes.
The base and the wood that touches the ground
For small sheds, Virginia's code, as Fluvanna County explains it, doesn't require footings when the eave height is 10 feet or less, the floor is no more than 18 inches above grade, the supports sit level on firm soil, wood in contact with the ground is pressure preservative treated for ground contact, and the shed is anchored against wind. Larger sheds generally need footings below the local frost depth, with an exception for structures under 600 square feet that still sets a 12-inch minimum depth for 256 to 600 square feet. Frost depth varies by place: your building department will tell you yours.
Ground-contact wood: the American Wood Protection Association (AWPA) classifies treated wood by use category. Wood in the ground, such as posts, is "Ground Contact, Use Category 4A or higher", while UC3 is for above-ground exterior use. AWPA's standard also calls for ground-contact treatment on parts used above ground when soil, leaves or debris may build up against them. The use category is on the end tag or treatment stamp, so check it before you buy skids or floor framing.
Anchoring against wind
Building departments are direct about anchoring:
- Sioux Falls, South Dakota: the building code requires sheds to be anchored to prevent overturning in high wind, "even for small sheds less than 200 square feet." On a concrete slab, its minimum is 1/2-inch anchor bolts embedded 7 inches; a shed set on the ground must be anchored at each corner, with anchors 4 to 5 feet deep depending on the soil.
- Fluvanna County, Virginia: anchoring is required regardless of size, type or permit exemption, and auger-type or strap-type anchors installed per the manufacturer's instructions are generally acceptable.
- FEMA's severe-wind guidance says to make sure sheds are firmly attached and in sound structural condition.
The Sioux Falls figures date from 2010 and are local. Follow your own building department and the anchor maker's instructions.
Plans: fixed sizes or made to measure
Once you know the size your rules allow, you need a plan for that size.
One option: FitMyShed, which says it builds a plan for the size you choose, from 4' to 20', with a gable or lean-to roof: a cut list showing which cuts come from which board, a shopping list with estimated prices, a step-by-step 3D build guide and printable framing drawings, for a one-time $37 (FitMyShed Manufacturer claim). Its materials calculator is free and needs no email. FitMyShed itself describes the plans as "a guide, not an engineered design" and tells builders to check local codes; material prices are estimates. We haven't tested it yet. See FitMyShed's materials calculator (affiliate link: we may earn a commission if you buy).
Whatever plan you use, check it against your local rules for size, height, setbacks and anchoring before you start, and be realistic about the work: FitMyShed says builders should be comfortable with a circular saw, a drill and a level, and have a helper.
More DIY projects
See our chicken coop plans, rain barrel guide and root cellar guide.
This page explains general guidance from public sources; it isn't engineering or legal advice. Check with your building department, and get professional help for structural or electrical work. See our safety disclaimer.
Frequently asked questions
Do I need a permit for a shed?
It depends on your town. The International Residential Code, the model code many places adopt, exempts one-story detached accessory structures whose floor area doesn't exceed 200 square feet from a building permit, as local building departments such as Federal Way, Washington, publish it. But local codes change the limit: Baltimore City uses 120 square feet, Sacramento County 120 square feet and under 9 feet tall, and Virginia's code 256 square feet. Call your building department before you build.
What size shed can I build without a permit?
Under the IRC model code, up to 200 square feet of floor area for a one-story detached accessory structure. Some places use smaller or larger limits (for example 120 square feet in Baltimore and Sacramento County, 256 square feet in Virginia). Even an exempt shed must still follow the building code, zoning and setbacks.
Do I need to call 811 before putting in a shed?
Yes if you'll dig at all, for footings, anchors or leveling. The Common Ground Alliance says every digging project, regardless of depth, requires contacting 811 a few business days in advance, because some utilities are buried just inches below the surface. 811 is free.
What wood should touch the ground under a shed?
Pressure-treated wood rated for ground contact. The American Wood Protection Association labels posts in the ground as Ground Contact, Use Category 4A or higher, and says the use category is on the end tag or treatment stamp. Virginia's code, as Fluvanna County explains it, also calls for wood in direct contact with the ground to be pressure preservative treated suitable for ground contact.
Does a small shed need to be anchored?
Building departments say yes. Sioux Falls, South Dakota, says the building code requires sheds to be anchored to prevent overturning in high wind, even small sheds under 200 square feet, and Fluvanna County, Virginia, says anchoring is required regardless of size or permit exemption. Methods depend on the base: anchor bolts into a slab, or ground anchors at each corner.
Sources
- Residential Permit Exemptions - International Residential Code (IRC), Section R105.2. City of Federal Way, Washington. www.federalwaywa.gov/node/1350 (accessed November 11, 2026).
- Work Exempt from Permits - 2021 IRC. City of Springville, Utah. www.springvilleutah.gov/community-development/wp-content/up… (accessed November 11, 2026).
- Permit Exempt Residential Accessory Structure (GI-20). Sacramento County Building Permits & Inspection, California. development.saccounty.gov/content/dam/cd/building/docs/tran… (accessed November 11, 2026).
- Work Exempt From Permit. Baltimore City, Maryland. s3.amazonaws.com/baltimorecity.gov.if-us-east-1/s3fs-public… (accessed November 11, 2026).
- Carports, Garages and Sheds - Virginia Residential Code Requirements. Fluvanna County, Virginia, Building Inspections. www.fluvannacounty.org/sites/default/files/fileattachments/… (accessed November 11, 2026).
- Anchoring of Storage Buildings Requirements. City of Sioux Falls, South Dakota, Planning and Building Services. www.siouxfalls.gov/files/assets/public/v/1/business-and-per… (accessed November 11, 2026).
- 811 Before you dig. Every dig. Every time.. Common Ground Alliance (call811.com). call811.com/ (accessed November 11, 2026).
- AWPA Preserved Wood Use Categories; U1-25 Use Category System (excerpt). American Wood Protection Association. awpa.com/images/standards/ResidentialInfographic2021.pdf (accessed November 11, 2026).
- Protect Your Property from Severe Winds. FEMA. www.fema.gov/sites/default/files/documents/fema_severe-wind… (accessed November 11, 2026).
- Shed plans made to fit your yard. FitMyShed. fitmyshed.com/ (accessed November 11, 2026).