Lumber Calculator

Freestanding Deck Next to a House: Rules and How to Build It

Updated October 2026

Yes, you can build a deck right next to a house without attaching it. Instead of a ledger bolted to the rim joist, a freestanding deck gets its own beam and footings along the house side. It avoids drilling through the house wall and the rot and leak risk that comes with a ledger. You pay for it with an extra row of footings, and you have to brace the deck against sway.

Freestanding vs. attached

Attached (ledger)Freestanding
House side supportLedger bolted to the house rim joistBeam on posts and footings
FootingsOne row (or more for deep decks)One more row along the house
Flashing and house penetrationsRequiredNone
Lateral stabilityHouse holds itNeeds knee braces or diagonal bracing
Works on brick veneer, stucco or cantilevered floorsNoYes

Footings next to the foundation

The soil within a few feet of a house is usually backfill: dirt pushed back after the basement or foundation was dug. It’s looser than undisturbed soil and can settle for years.

  • Footings within about 5 ft of the foundation should go at least as deep as the house footing, so they bear on undisturbed soil. In a full basement that can mean digging 6–8 ft, so many builders move the house-side beam out a few feet or use helical piers.
  • Footings must still reach below your frost line.
  • Keep footings clear of drain tile, window wells, gas lines and buried cable. Call 811 before you dig.

Your building department may have its own rule for footings near a foundation. Ask before you dig. For sizing, see deck footings.

Leave a gap at the wall

Hold the deck about 1” away from the siding, and keep the decking below the door threshold. That gap lets water drain and stops the deck from scraping or loading the house as it moves. Don’t fasten anything to the house, even trim, or it’s no longer freestanding.

Bracing a freestanding deck

An attached deck is held in place by the house. A freestanding one isn’t, so it can rack or sway, especially above a couple of feet.

  • Knee braces from each post to the beam, at roughly 45°, in both directions.
  • Diagonal bracing between posts on tall decks.
  • Post bases anchored to the footings, and the beam connected to the posts with rated hardware.

Low decks just above grade often need little bracing. Over about 2 ft high, plan for it. See 4x4 vs 6x6 deck posts for post sizing.

Permits and setbacks

The IRC exempts some small decks from permits: under 200 sq ft, no more than 30” above grade, not attached to the house and not serving the required exit door. Many towns don’t adopt that exemption, so check first.

Setbacks are zoning rules for how close a structure can sit to your property lines, not the house. They usually apply to decks whether attached or not. Your town’s zoning office or plot plan shows the distances, and a contractor or the permit office may ask you to measure them.

Plan the frame

The deck calculator has a freestanding option: it adds the house-side beam, posts and footings to the materials list and drops the ledger and flashing. For the overall build sequence, see how to build a deck.