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. It's the simplest roof design to build — one edge sits high on the wall of your house or shed, and the opposite edge slopes down to a lower wall or posts. You see them on additions, carports, storage sheds, and covered porches.
Lean-to roofs are cheaper and faster to frame than pitched roofs because they use fewer materials and simpler angles. They also shed water in one direction, which makes drainage straightforward. The main trade-off is that they don't create much interior headroom and they're less visually interesting than a peaked roof.
Key Takeaways
- A lean-to roof needs a high attachment point on an existing wall and a lower support point on the opposite side, with a slope of at least 4 inches of rise per 12 inches of horizontal run to drain water.
- You'll need to install a ledger board bolted to the existing structure, then build posts or a wall to support the lower edge of the roof.
- Rafters run from the high point to the low point and are spaced 16 or 24 inches apart depending on snow load and rafter size.
- Flashing where the roof meets the existing wall prevents water from running behind the ledger board and rotting the structure.
- Local building codes require permits and inspections for roof work, and snow load requirements vary by region.
Determining slope and span
The slope of your lean-to is the angle at which it rises. Building codes and water drainage both require a minimum slope of 4 inches of rise for every 12 inches of horizontal distance — written as 4:12. Steeper slopes (6:12, 8:12) shed water faster and look better, but they require taller support posts or a higher attachment point on the wall.
The span is the horizontal distance from the high wall to the low support point. Measure this distance carefully because it determines rafter length and the size of posts you'll need. A 12-foot span needs bigger rafters than an 8-foot span. If your span is longer than 16 feet, you may need to add a center support post or use larger rafters — your local building department can tell you what's required in your area.
Sketch the roof on paper with the slope and span marked. This drawing becomes your reference for cutting rafters and setting post heights. If you're unsure about slope or span calculations, ask the building inspector when you pull your permit — they see these measurements every day and can confirm yours are right.
Installing the ledger board
The ledger board is a horizontal beam bolted to the existing wall where the roof will attach. It carries half the weight of the roof and must be fastened securely. Remove any siding where the ledger will sit — the board needs to bolt directly to the rim joist or band board of the existing structure, not to siding.
Bolt the ledger every 16 inches using ½-inch lag bolts or through-bolts that go completely through the rim joist. Drill pilot holes first so the bolts don't split the wood. If the existing wall is concrete or block, use concrete anchors rated for the load. Space bolts in a staggered pattern — don't line them all up vertically.
Install flashing above the ledger board before you attach it. The flashing is a bent metal strip that sits under the siding (or on top of the wall if there's no siding) and over the ledger. Water running down the wall will hit the flashing and drip away from the ledger instead of pooling behind it. Nail the flashing to the wall, then bolt the ledger underneath it.
Building posts or a support wall
The low side of the roof needs support. For a small lean-to (under 12 feet wide), you can use posts set on concrete footings. For larger structures or where you want more interior space, build a short wall.
If you're using posts, dig holes below the frost line — your local building department will tell you how deep that is in your area, usually 3 to 4 feet. Set posts in concrete footings so they won't heave up and down with frost. Posts are typically 4x4 or 6x6 depending on span and snow load. The top of each post should be at the height you calculated for the low edge of your roof.
If you're building a wall, frame it the same way you'd frame any exterior wall — bottom plate, studs 16 inches apart, top plate. Set it on a concrete footing or on the ground if local code allows. The height of the top plate determines the low edge of your roof slope.
Cutting and installing rafters
Rafters are the angled beams that run from the ledger board down to the posts or wall. They're usually 2x6, 2x8, or 2x10 depending on span and snow load. Your building department can tell you which size you need.
Calculate rafter length using the Pythagorean theorem or a rafter calculator (search "rafter length calculator" online). You need the horizontal span and the vertical rise. For example, a 12-foot span with a 4:12 slope has a rise of 4 feet, giving a rafter length of about 12 feet 5 inches (accounting for the angle).
Cut the bird's mouth — the notch where the rafter sits on the ledger board and the support wall. The bird's mouth keeps the rafter from sliding and distributes its weight evenly. Cut it so the rafter sits flat on both surfaces. Space rafters 16 inches apart for most residential roofs, or 24 inches apart if snow load is light and rafter size is large enough.
Nail or bolt each rafter to the ledger board with at least three 16-penny nails or bolts. At the low end, nail the rafter to the top plate of the wall or to the post. If you're using posts instead of a wall, you may need a beam running across the tops of the posts for the rafters to sit on.
Sheathing, flashing, and roofing material
Once rafters are in place, cover them with roof sheathing — usually ½-inch plywood or OSB. Nail it down with 8-penny nails spaced 6 inches apart around the edges and 12 inches apart in the field. Sheathing ties all the rafters together and provides a base for roofing material.
Install drip edge along the low edge of the roof. Drip edge is an L-shaped metal strip that hangs over the edge and directs water away from the fascia board. Nail it to the sheathing before you install roofing material.
Where the roof meets the existing wall, install step flashing — short pieces of metal bent at a right angle that sit under each course of roofing material and behind the siding of the wall. Step flashing prevents water from running behind the roofing and into the wall. Overlap each piece so water runs down and out.
Install roofing material — asphalt shingles, metal, or whatever matches your existing roof. Follow the manufacturer's nailing pattern and overlap requirements. The roofing material should cover the top of the drip edge and sit on top of the step flashing.
Getting a permit and passing inspection
Roof work requires a building permit in most jurisdictions. Contact your local building department before you start. They'll tell you what documents you need (usually a sketch showing dimensions, slope, and materials), what the inspection schedule is, and what code requirements explore in your area — particularly snow load, wind load, and frost depth.
Inspectors typically want to see the ledger board bolted correctly, posts set on proper footings, rafters spaced and fastened correctly, and flashing installed before roofing material goes on. Schedule inspections at the right stages — after the ledger and posts are done, after rafters are up, and after sheathing and flashing are installed but before roofing material covers them.
Building codes vary by location. A lean-to in a snowy climate needs larger rafters and closer spacing than one in a dry climate. A lean-to in a high-wind area may need hurricane ties or other fastening. The permit process ensures your roof meets the requirements for your specific location.
Frequently Asked Questions
What's the minimum slope for a lean-to roof?
The minimum is 4 inches of rise per 12 inches of run (4:12). This slope sheds water adequately for most climates. Steeper slopes drain faster and look better but require taller posts or a higher wall attachment.
Can I attach a lean-to to a brick or stone wall?
Yes, but you'll need concrete anchors instead of bolts. Use anchors rated for the weight you're supporting — your building department or a structural engineer can calculate the load. Drill into mortar joints if possible rather than through the brick or stone itself.
Do I need a permit for a small lean-to shed?
Most jurisdictions require a permit for any permanent roof structure, even small ones. Some allow unpermitted work on very small structures (under 100 or 200 square feet), but rules vary. Call your building department before you start — the cost of a permit is usually less than the cost of tearing down unpermitted work.
What size posts do I need?
Post size depends on span, snow load, and the weight of roofing material. A 12-foot span in a light-snow area might use 4x4 posts, while a 16-foot span in a heavy-snow area needs 6x6 or larger. Your building department can tell you what's required, or a structural engineer can calculate it from your specific measurements.
How do I prevent water from leaking where the roof meets the wall?
Install flashing above the ledger board and step flashing where the roof meets the wall. The flashing must sit under the siding of the existing wall and over the roofing material so water runs down and out. Seal all flashing seams with roofing cement or caulk rated for the temperature range in your area.