How to Build a Shed: Permits, Foundation, Framing, Roof and Siding

Infographic summarizing a backyard shed build: size, foundation, framing and time, beside a drawing of a gable-roof wood storage shed with double doors

Reader-supported: we may earn a commission when you buy through our links, at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Learn more

The short answer: check zoning setbacks and whether you need a permit (the model code exempts small sheds, but many towns set the limit lower). Build a level, compacted gravel pad, set pressure-treated skids on it, and frame a 2x6 floor at 16 in. on center topped with 3/4 in. plywood. Frame 2x4 walls on the floor deck with a header over the door, stand and brace them, then cut and raise rafters on a ridge board, tie them down, and sheathe the roof. Finish with drip edge, underlayment and shingles, then siding, trim, doors and paint.

At a glance
DifficultyAdvanced (but very doable for a patient beginner)
Time3 to 5 weekends for an 8x10 or 10x12 shed
CrewTwo people for raising walls and rafters
PermitOften not needed for small sheds, but setbacks and HOA rules still apply
Call a pro forSheds with electrical service, plumbing, a loft for living space, or a concrete slab on difficult ground

Step 1: Check permits, setbacks and HOA rules

The International Residential Code exempts one-story detached storage sheds up to 200 sq ft of floor area from a building permit, but many cities and counties use a smaller limit, often 120 sq ft. Even without a permit, zoning rules usually set how close a shed can be to property lines and the house, and how tall it can be. An HOA may control size, color and materials. Call your building and zoning departments before you buy lumber, and call 811 before you dig.

Pick a spot with good drainage, where water will not run toward the shed, with room to walk around all four sides for maintenance.

Step 2: Build the foundation

Cross-section of a shed foundation: compacted gravel pad about 4 inches deep extending past the shed footprint, pressure-treated 4x6 skids on the gravel, 2x6 floor joists on the skids, and plywood floor
A compacted gravel pad with treated skids is the simplest shed foundation: it drains, stays level and keeps wood off the soil.

Most backyard sheds sit on one of three foundations:

  • Gravel pad and skids (recommended for most sheds): strip the sod, dig out 4 to 6 in., add landscape fabric, and fill with compacted crushed gravel (not round pea gravel) that extends about a foot past the shed on every side. Set pressure-treated 4x4 or 4x6 skids rated for ground contact on the gravel.
  • Concrete blocks or piers: solid concrete blocks on compacted gravel under the skids or beams. Good on sloped yards, where the blocks can be stacked to level.
  • Concrete slab: best for heavy equipment and workshops, but more work and more likely to need a permit.

Level the skids side to side and end to end. Measure the diagonals of the layout so the shed starts square.

Step 3: Frame the floor

  1. Cut two rim joists to the shed length from 2x6 pressure-treated lumber.
  2. Mark joists at 16 in. on center and fasten 2x6 joists between the rims with galvanized nails or structural screws (or joist hangers).
  3. Set the frame on the skids, square it by matching the diagonals, and toe-screw or strap it to the skids.
  4. Glue and screw 3/4 in. tongue-and-groove plywood (or exterior-grade OSB flooring) to the joists, with the long edge across the joists and joints staggered.
Cordless pick
DEWALT

DEWALT 20V MAX 7-1/4 in. Brushless Circular Saw (DCS570B)

A full-size 7-1/4-inch cordless circular saw that cuts through 2x lumber in one pass, no cord to drag around the yard.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's
Complete kit
Makita

Makita 18V LXT Brushless Impact Driver Kit (XDT131)

A complete brushless impact driver kit with a battery and charger, a good match for the XFD131 drill.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's
Must have
Swanson

Swanson 7 in. Speed Square (S0101)

The original rafter square: marks square and 45-degree lines, finds angles and guides a circular saw for straight crosscuts.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's

Step 4: Frame and raise the walls

Framing diagram of a gable shed: 2x4 wall studs at 16 inches on center with double top plates, a door header with jack studs, rafters on a ridge board with collar ties, and hurricane ties at the wall plates
Typical gable shed framing: 2x4 studs at 16 in. on center, doubled top plates, a header over the door, and rafters tied down at each wall.
  1. Build each wall flat on the floor: bottom plate, top plate and 2x4 studs at 16 in. on center.
  2. Frame the door opening with king studs, jack studs and a header (two 2x6s or 2x8s with a 1/2 in. plywood spacer on edge for a typical shed door). Frame windows the same way, with a sill.
  3. Square each wall by matching the diagonals, then sheathe it now if you are using panel siding like T1-11 or LP SmartSide, which also braces the wall.
  4. Stand the walls, plumb them with a level, brace them, and nail the bottom plates to the floor.
  5. Add a second top plate that overlaps the corners to tie the walls together.

Step 5: Raise the rafters and sheathe the roof

  1. Pick a roof pitch from your plan; 4/12 to 6/12 sheds shed rain and snow well and take standard shingles.
  2. Cut one pattern rafter with the ridge cut and the bird's mouth that sits on the wall plate. Test it, then use it to trace the rest. A speed square has rafter scales for these angles.
  3. Set a ridge board and install rafter pairs at 16 or 24 in. on center to match your sheathing.
  4. Add collar ties in the upper third of the rafters and hurricane ties where the rafters cross the walls, and frame the gable ends.
  5. Sheathe the roof with 1/2 in. plywood or OSB, using H-clips between rafters if your plan calls for them.

Step 6: Roof it

  • Install drip edge along the eaves, then roofing underlayment (synthetic or felt), lapped like shingles, then drip edge along the rakes.
  • Install a starter strip and asphalt shingles, following the nailing pattern on the bundle. Cap the ridge.
  • Metal roofing is another good option for sheds; follow the panel maker's screw pattern.

Step 7: Siding, trim, doors and paint

  • Panel siding (T1-11 or engineered wood) is the fastest; lap siding looks more like a house.
  • Keep siding at least 6 in. above the ground where you can, and leave a small gap above any flashing so water drains.
  • Build doors from plywood with a 1x frame, or buy pre-hung shed doors. Use heavy strap or T-hinges and a hasp.
  • Prime and paint or stain every exposed surface, including cut ends. Add a ramp if you will roll a mower in.

Lumber and hardware shopping list (8x10 example)

  • Pressure-treated 4x6 skids and 2x6 floor joists rated for ground contact
  • 3/4 in. tongue-and-groove plywood flooring
  • 2x4 studs and plates; 2x6 or 2x8 header stock
  • 2x4 or 2x6 rafters and a ridge board
  • 1/2 in. roof sheathing, drip edge, underlayment, shingles and ridge cap
  • Panel or lap siding and trim
  • Hurricane ties, construction adhesive, galvanized nails and exterior screws
Outdoor builds
Several brands

Exterior Coated Wood Screws, 2-1/2 and 3 in.

Coated or stainless screws rated for outdoor and treated lumber, for raised beds, sawhorses and anything that lives outside.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's
Layout
IRWIN

IRWIN Tools STRAIT-LINE Chalk Line, Classic Reel, Blue, 100ft (IWHT48441BC)

A 100-foot IRWIN STRAIT-LINE chalk reel for snapping long layout lines on decks, sheds and floors.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's
Stairs and gutters
Little Giant

Little Giant Velocity Multi-Position Ladder

A multi-position ladder that works as an A-frame, extension ladder, staircase ladder or trestle. One ladder instead of three.

Check price on AmazonCheck price at Home DepotCheck price at Lowe's

When to call a pro

  • You want electricity in the shed; that needs an electrician and a permit
  • You plan to use it as a living space, office or bedroom, which falls under different code rules
  • The site is steep, wet or in a flood zone
  • You want a large shed that clearly needs engineered plans and a permit

Shed plans and guides from other sources

Related guides: how to build a deck, why you need a speed square, how to choose a circular saw, garage storage ideas and build a compost bin.

Frequently asked questions

Do I need a permit to build a shed?

It depends on your city or county. The model code exempts one-story storage sheds up to 200 sq ft, but many places set the limit at 120 sq ft, and zoning setbacks apply to every size. Call before you build.

What is the best foundation for a shed?

For most backyard storage sheds, a compacted crushed-gravel pad with pressure-treated skids. It drains well, stays level and is the easiest to build.

How long does it take to build a shed?

A first-time builder with a helper can usually frame, roof and side an 8x10 shed over three to five weekends. A kit can be faster.

Is it cheaper to build a shed or buy a kit?

Building from plans is often cheaper than a comparable kit, especially if you already own the tools, but kits save time on cutting and design.

Buy the tool that fits the job you actually do, not the biggest number on the box.

How we choose

Matched to the job

We recommend tools by the work you will do with them, from hanging a shelf to framing a shed, not by spec-sheet bragging.

Researched, not sponsored

Picks come from manufacturer specs and manuals, safety guidance and owner reviews. No brand pays for placement.

Honest about the money

Some links earn us a small commission at no cost to you. It never changes what we recommend. Our disclosure