What a lean-to roof is and why you'd build one

A lean-to roof is a single-sloped roof that leans against an existing wall or structure. One edge sits high on the wall you're attaching to; the other edge is lower, creating the slope that sheds water. You build one when you need to add covered space to a shed, garage, house, or outbuilding without the cost and complexity of a full pitched roof.

The lean-to is the simplest roof design to frame and build. It requires fewer materials than a gable or hip roof, takes less time, and the math is straightforward. The trade-off is that a single slope doesn't shed snow or water as aggressively as steeper roofs in heavy-rain or snow climates, so lean-tos work best in moderate weather or for structures where water runoff isn't the main concern.

Key Takeaways

  • A lean-to roof slopes from a high point on an existing wall down to a lower edge, and you attach it by bolting a ledger board to the wall and running rafters from that ledger to the lower edge.
  • The slope (pitch) should be at least 3 inches of rise for every 12 inches of run to shed water, though 4:12 or steeper is safer in wet climates.
  • You need to find the ledger board to the rim joist or band board of the existing structure with bolts spaced 16 inches apart, and you must flash the joint to prevent water from running behind the ledger.
  • Rafters are typically spaced 16 or 24 inches apart, sized based on the span and snow load in your area, and must be tied to the ledger and the lower beam with proper fasteners.
  • Local building codes require permits for most lean-tos, and inspectors will check the ledger attachment, rafter sizing, and flashing before you cover the roof.

Determining the slope and span of your lean-to

Before you cut a single board, measure the distance from the wall where you'll attach the ledger to the outer edge of the roof. This is your span. Measure the height of the wall at the attachment point and decide how low the far edge will be. The difference between these two heights is your rise.

The slope is expressed as rise over run — for example, 4:12 means 4 inches of rise for every 12 inches of horizontal distance. A 3:12 slope is the minimum for water shedding; 4:12 or steeper is better in rainy areas. If your span is 12 feet (144 inches) and you want a 4:12 slope, your rise will be 48 inches (4 feet). Write down both the slope and the exact rise; you'll need both to size the rafters and cut the bird's mouth notches where they sit on the lower beam.

Check your local building code for minimum slope requirements. Some jurisdictions specify a steeper minimum if snow load is a concern. The code will also tell you the maximum rafter spacing and the rafter size required for your span and local snow load — this is not something to guess at.

Installing the ledger board and flashing

The ledger board is the horizontal board you bolt to the existing wall. It carries one end of the rafters and must be fastened directly to the rim joist or band board of the structure — not to siding, not to sheathing, but to the solid framing underneath. If the wall has siding, you must remove it where the ledger will sit, down to the sheathing and rim joist.

Cut the ledger to length (it should span the width of your lean-to) and position it on the wall. Drill holes through the ledger and into the rim joist, spaced 16 inches apart. Use ½-inch galvanized bolts with washers and nuts; do not use nails or screws. Tighten the bolts firmly so the ledger sits flush against the wall. If the wall is not perfectly flat, shim behind the ledger with metal shims so it doesn't rock.

Flashing is critical. Slide metal flashing (typically L-shaped or Z-shaped) under the siding above the ledger and over the top of the ledger, so water running down the wall is directed away from the joint. The flashing should extend at least 4 inches up the wall and 4 inches out over the ledger. Nail or screw the flashing to the wall and ledger with corrosion-resistant fasteners. This step prevents water from pooling behind the ledger and rotting the rim joist — it is not optional.

Building the lower beam and end walls

The lower beam (or front beam) is the horizontal member at the far end of the lean-to, where the rafters land. It sits on posts or on the walls of the structure you're covering. If you're building a lean-to on a shed, the lower beam might rest on the top plates of the shed's side walls. If you're building on open ground, you'll need to set posts in concrete footings below the frost line for your area.

Size the lower beam based on the span of the rafters and the load it will carry. A 2×8 or 2×10 is typical for residential lean-tos with a span under 12 feet. Make sure the beam is level and at the correct height — remember that the rise you calculated earlier is the vertical distance from the ledger to the top of this beam.

If the lean-to has end walls (walls at the sides), frame them now with studs and plates. The studs should be cut to fit between the ledger board and the lower beam, sloping to match the roof pitch. End walls are not always necessary — some lean-tos are open on the sides — but they add rigidity and weather protection.

Cutting and installing the rafters

Rafters are the sloped boards that run from the ledger to the lower beam. They must be sized for the span, the spacing (usually 16 or 24 inches on center), and the snow load in your area. Your local building code or a rafter sizing table will tell you what size to use. For a 12-foot span with 16-inch spacing and moderate snow load, 2×6 rafters are common; longer spans or heavier loads require 2×8 or larger.

Each rafter needs two cuts: a bird's mouth notch where it sits on the lower beam, and an angled cut where it meets the ledger. The bird's mouth is a notch cut into the bottom of the rafter so it sits flat on the beam. To lay out the bird's mouth, measure down from the top of the rafter a distance equal to the depth of the beam (usually 1.5 inches for a 2×8), then measure horizontally along the bottom a distance equal to the thickness of the rafter (1.5 inches). Connect these points with two lines and cut along them. The rafter will now sit on the beam with the notch bearing the load.

The top end of the rafter is cut at an angle to match the slope. If your slope is 4:12, the angle is about 18.4 degrees. A speed square or rafter square makes this cut straightforward — align the square to the 4 and 12 marks on the rafter, and the edge of the square shows you the angle to cut. Cut all rafters to the same dimensions, then test-fit the first one before cutting the rest.

Install the rafters by nailing or bolting them to the ledger with at least three 16-penny nails or two ½-inch bolts per rafter. Nail or bolt the bird's mouth to the lower beam with at least two 16-penny nails per rafter. Space the rafters 16 or 24 inches on center along the ledger and beam, depending on your code and rafter size. Brace the rafters temporarily with diagonal bracing until the roof sheathing is installed — this keeps them from racking (twisting out of plane).

Adding sheathing, underlayment, and roofing

Once the rafters are in place and braced, cover them with roof sheathing — usually ½-inch plywood or OSB (oriented strand board). Nail the sheathing to the rafters with 8-penny nails spaced 6 inches apart around the edges and 12 inches apart in the field (the middle). Leave a ⅛-inch gap between sheets to allow for expansion. Sheathing ties the rafters together and provides a base for the roofing material.

Next, install underlayment — a water-resistant layer that goes under the final roofing. Roofing felt (15-pound or 30-pound) or synthetic underlayment both work. Lay it horizontally, starting at the lower edge of the roof, overlapping each course by 4 to 6 inches as you work upward. Nail or staple it to the sheathing. This layer catches any water that gets past the roofing and directs it down and out.

Finally, install the roofing material — asphalt shingles, metal panels, standing seam, or whatever matches your climate and budget. Follow the manufacturer's instructions for fastening and overlap. At the upper edge where the roof meets the ledger, use flashing to direct water away from the joint. At the lower edge, install a drip edge so water runs off cleanly and doesn't soak the fascia or soffit.

Getting a permit and passing inspection

Most jurisdictions require a building permit for a lean-to roof, even if it's small. The permit process involves submitting a sketch or plan showing the dimensions, the slope, the rafter size, and how the ledger is attached. The inspector will want to see that the ledger is bolted to the rim joist (not just nailed to siding), that the flashing is installed, and that the rafter size matches the code requirements for your span and snow load.

Inspections typically happen at two points: after the ledger is installed and flashed (before you cover it), and after the sheathing and underlayment are down but before the final roofing goes on. The inspector may also check the lower beam and posts if they're new. Passing inspection means the structure will be safe and will shed water properly. Skipping the permit to save time usually costs more in the long run if the roof fails or if you try to sell the house later.

Frequently Asked Questions

Can I attach a lean-to roof to a brick or stone wall?

Yes, but you must still bolt the ledger to solid framing, not just to the brick. If the wall is brick veneer over wood framing, remove the brick where the ledger will sit, bolt to the rim joist underneath, and then rebuild the brick around the ledger. If the wall is solid masonry with no wood framing behind it, you'll need to use special masonry anchors or bolts rated for the masonry type — consult your local building department or a structural engineer.

What's the minimum slope for a lean-to roof?

Most codes require at least 3:12 (3 inches of rise per 12 inches of run) for water shedding. In areas with heavy snow or rain, 4:12 or steeper is safer. A flatter slope sheds water more slowly and is more likely to pool or leak if the roofing material is damaged.

Do I need to remove siding before installing the ledger?

Yes. The ledger must bolt to the rim joist or band board, which is under the siding. Remove the siding down to the sheathing and rim joist, install and flash the ledger, then you can patch or replace the siding around it. Bolting a ledger over siding will fail because the siding will compress and the bolts will loosen.

How far apart should rafters be spaced?

Typically 16 or 24 inches on center. The spacing depends on the rafter size and the load. Your building code or a rafter sizing table will specify which spacing is allowed for your span and snow load. Closer spacing (16 inches) allows smaller rafters; wider spacing (24 inches) requires larger rafters.

What if the existing wall is not perfectly vertical?

Shim behind the ledger with metal shims so it sits level and flush against the wall. The bolts will pull the ledger tight, but if the wall is very crooked, the ledger may not sit flat. Use enough shims to keep the ledger level and to close any gaps between the ledger and the wall — gaps let water in.