Subscribe

ARCHITECTURE · July 5, 2026

Gable Roof Framing: Rafters, Trusses, and Layout

Gable roof framing with IRC numbers: rafter layout, birdsmouth bearing, 2x4 rafter ties vs 1x4 collar ties, span table values, uplift, and truss costs.

By The Roofing Brief Team. Last reviewed: October 2026.

Gable roof framing builds the classic two-sided triangular roof from a ridge board and pairs of common rafters that transfer roof loads down to the exterior walls, with ceiling joists or rafter ties resisting the outward thrust at the wall plate. You either stick-frame it rafter by rafter on site or set prefabricated gable trusses by crane. Under the 2021 International Residential Code, Chapter 8, opposing rafters may sit no more than 1 1/2 inches out of line at the ridge (R802.4.2), rafter ties must be at least 2×4 at no more than 24 inches on center (R802.5.2.2), and collar ties must be at least 1×4 at no more than 4 feet on center in the upper third of the attic (R802.4.6).

Gable roof framing decisions at a glance

Most framing questions on a gable roof come down to one of the conditions in this table. Each row names the code section an inspector will check; section numbers are from the 2021 IRC, and the 2024 edition uses the same numbers for these rules.

If your situation is Do this Code or source
Ceiling joists run parallel to the rafters and sit in the bottom third of the rafter height Use them as the tie and nail each heel joint to the table count (for example 5 16d common nails at 4:12, 16 in on center, 24 ft span, 20 psf ground snow) IRC R802.5.2, Table R802.5.2(1)
Ceiling joists do not run parallel to the rafters Add rafter ties of at least 2×4 at no more than 24 in on center, or design the ridge as a beam IRC R802.5.2.2, R802.3
Ties raised above the plate (HC/HR up to 1/3) Multiply the heel-joint nail count by 1.11 to 1.5 (1.5 at exactly 1/3) IRC Table R802.5.2(2)
Ties higher than 1/3 of the ridge height, or no ties (cathedral or vaulted ceiling) Structural ridge beam supported at each end by a wall or column, or engineered connections IRC R802.3, R802.5.2
Roof pitch below 3:12 Design the ridge, hips and valleys as beams with full bearing IRC R802.4.4
Wind 115 mph or less, Exposure B, pitch 5:12 or steeper, span 32 ft or less, rafters 24 in on center or closer Nail rafters to plates per Table R602.3(1); no separate uplift connector required IRC R802.11 exception
Any other wind case Size a tie-down for the uplift in Table R802.11 (118 lb per rafter at 24 ft span, 16 in on center, 115 mph, Exposure B, pitch under 5:12) IRC R802.11
Rake overhang over 12 in Outrigger (lookout) framing; ladder framing only for 8 to 12 in overhangs DOE Building America Solution Center

What are the parts of a gable roof frame?

A gable roof frame is a repeating structural triangle made from a ridge at the peak, sloping common rafters on both sides, and a horizontal tie at the base that stops the rafters from spreading. IRC R802.2 requires the roof-ceiling assembly to provide continuous ties across the structure so roof thrust is not applied to the supporting walls. The gable ends are the vertical triangular walls closed in with studs.

  • Ridge board: the horizontal member at the peak that rafters nail against. In a stick-framed roof it is usually a 1x or 2x board sized so it is not less than the cut end of the rafter (per IRC R802.3). It is a nailing and alignment reference, not a load-bearing beam, as long as rafter ties are present.
  • Common rafters: the primary sloping members, typically 2×6 through 2×12, that carry sheathing, underlayment, and roofing loads from ridge to wall plate.
  • Birdsmouth: the notch cut into each rafter where it sits on the top plate, made of a horizontal seat cut and a vertical heel (plumb) cut. The seat must give at least 1 1/2 inches of bearing on wood or metal, per IRC R802.6.
  • Plumb cut and tail cut: the plumb cut is the angled cut at the top where the rafter meets the ridge; the tail cut shapes the rafter end that forms the eave overhang. IRC R802.7.1.1 allows a notch in the overhang only if at least 3 1/2 inches of rafter depth remains and the cantilever is 24 inches or less.
  • Ceiling joists and rafter ties: horizontal members that connect opposing walls or rafters and absorb the outward thrust the sloping rafters generate (IRC R802.5.2).
  • Collar ties: horizontal members in the upper third of the roof that resist rafter separation under wind uplift. A ridge strap of at least 1 1/4 inch by 20 gage, nailed with three 10d common nails into each rafter, may replace them (IRC R802.4.6).
  • Gable end studs: vertical studs that fill in the triangular end wall below the end rafter, laid out at the same 16 or 24 inch spacing as the wall below.

How do you calculate gable roof geometry (run, rise, and pitch)?

Gable roof geometry comes from three numbers: the run, the rise, and the pitch. The run is the horizontal distance from the centerline of the ridge to the outside edge of the top plate, which is half the building width for a symmetrical gable. The rise is the vertical height the roof climbs over that run. Pitch is written as rise over 12 inches of run, so a 6/12 roof rises 6 inches for every 12 inches of run.

To find the theoretical rafter length, multiply the run by the rafter-per-foot factor for the pitch, or use the Pythagorean relationship: rafter length equals the square root of (rise squared plus run squared). On a 24-foot-wide building at 6/12, the run is 12 feet and the calculated rafter line length is about 13 feet 5 inches before you deduct for the ridge and add for the overhang.

Get the pitch decision right before you cut anything, because it drives rafter length, material takeoff, and code span limits. Our guide to calculating roof pitch walks through the 12-inch-run rule and conversion between ratio, degrees, and percent.

Pitch (rise/12) Angle (degrees) Rafter length per foot of run 24 ft wide, rafter line length
4/12 18.4 12.65 in ~12 ft 8 in
6/12 26.6 13.42 in ~13 ft 5 in
8/12 33.7 14.42 in ~14 ft 5 in
10/12 39.8 15.62 in ~15 ft 7 in
12/12 45.0 16.97 in ~16 ft 11 5/8 in

Rafter line length above is measured along the top edge from the ridge centerline to the wall plate, before the ridge deduction and overhang are applied. Worked for the 6/12 row: 12 ft of run times 13.42 in per foot equals 161.0 in, or 13 ft 5 in.

How do you lay out a common rafter?

You lay out a common rafter by marking the plumb cut at the ridge, stepping off the run in 12-inch increments to set the birdsmouth, then marking the tail cut for the overhang. The fastest field method is the step-off with a framing square and a pair of stair gauges clamped at the rise and 12-inch run for your pitch. Each step advances the square one foot of run along the rafter.

  1. Set the pitch on the square. Clamp stair gauges at the rise (for example 6 in) on the tongue and 12 in on the body. Every placement now traces one foot of run at the correct angle.
  2. Mark the ridge plumb cut. Scribe the plumb line at the top of the rafter. This is where the rafter meets the ridge board.
  3. Deduct half the ridge thickness. Measure back along the rafter, perpendicular to the plumb cut, by half the ridge board thickness (3/4 inch for a nominal 2x ridge, which is 1.5 inches thick) and mark a new parallel plumb cut. Skipping this makes the roof sit too wide.
  4. Step off the run. Walk the square down the rafter one foot at a time for the full run (12 times for a 12-foot run), keeping the body edge on the rafter top edge each step.
  5. Lay out the birdsmouth. At the last step mark the seat cut (horizontal) and the heel plumb cut. Size the seat so the rafter bears at least 1 1/2 in on the plate (IRC R802.6); a 2×4 wall gives a 3 1/2 in plate and a 2×6 wall a 5 1/2 in plate.
  6. Mark the tail and overhang. Continue past the birdsmouth by the overhang run, then cut the tail plumb, square, or with a soffit-return detail. Keep any tail notch to the R802.7.1.1 limit: 3 1/2 in of wood left and 24 in of cantilever at most.

Cut one rafter, test-fit it against the ridge and plate, then use it as the pattern to trace the rest. On a 40 ft long roof at 16 in on center, that pattern produces 31 rafters per side (480 in divided by 16 in is 30 spaces), or 62 commons in all.

What is the step-by-step gable roof framing sequence?

Gable roof framing follows a fixed order: brace the ridge to height, install common rafters in opposing pairs, tie the rafters at the plate, then fill the gable ends and sheathe. On a 24 ft wide roof at 6:12 the ridge line sits 6 ft above the plate line (12 ft of run at 6 in per foot), so the temporary posts must hold that height until the first rafter pairs lock it in.

  1. Mark rafter layout on the plates and ridge. Transfer the rafter spacing (commonly 16 or 24 inches on center) onto both top plates and the ridge board so every rafter lands opposite its partner.
  2. Set and brace the ridge board. Support the ridge at its calculated height (6 ft above the plate line on a 24 ft wide 6:12 roof) with temporary posts and diagonal bracing. The ridge stays temporary until enough rafters lock it in.
  3. Install the first rafter pairs. Nail opposing rafters to the ridge and toe-nail or hurricane-tie them at the birdsmouth. Rafters must sit within 1.5 inches of directly opposite each other across the ridge, per IRC R802.4.2.
  4. Fill in the remaining commons. Work outward in pairs to the ends, checking the ridge stays straight and level.
  5. Install ceiling joists or rafter ties. Fasten the horizontal tie to each rafter foot before you load the roof. At 4:12, 16 in on center and a 24 ft span, Table R802.5.2(1) calls for 5 16d common nails per heel joint at 20 psf ground snow and 9 at 50 psf; 10d common nails may substitute at 1.2 times the count.
  6. Frame the gable ends. Set the end rafters, then plumb-cut gable studs down to the end wall on the same 16 or 24 in layout as the wall below.
  7. Add collar ties and bracing. Install collar ties in the upper third and any purlin or knee bracing the span requires. IRC R802.4.5 allows purlins sized no smaller than the rafters, braced with 2x4s at 45 degrees or steeper, spaced no more than 4 ft on center.
  8. Sheathe the roof. Install roof decking, then underlayment. See our roof sheathing guide for OSB versus plywood and thickness by rafter spacing.

How do you frame the gable end wall?

Gable end framing closes the triangle under the end rafters and carries the rake overhang. Studs are cut with a plumb top matching the roof pitch (26.6 degrees at 6:12) and set on the layout of the wall below, and the rake detail depends on overhang depth.

Rake overhang depth Framing method Source
Up to 9 in of sheathing past the gable endwall Sheathing may cantilever without gable overhang framing 2024 IRC R803.2.3
8 to 12 in Ladder framing (blocking at 24 in on center between a fly rafter and the end rafter) DOE BASC
Over 12 in Outrigger (lookout) framing DOE BASC
High-wind regions, ladder framing Limit the overhang to 8 in FEMA guidance cited by DOE BASC

On a truss roof, the end of the building gets a gable end truss with vertical studs built in, and it is braced to the interior trusses per the truss designer’s plan or the SBCA BCSI guide that IRC R802.10.3 references. A gable vent cut into the end wall counts toward the attic’s net free vent area, which IRC R806.2 sets at 1/150 of the vented space, or 1/300 when both exception conditions are met, including 40 to 50 percent of the area in upper vents.

What does the IRC require for rafter ties, collar ties, and spans?

The International Residential Code sets the numbers that keep a gable roof standing: rafter ties near the plate resist thrust, collar ties near the ridge resist uplift separation, and span tables cap how far a given rafter can reach. Inspectors check these against the IRC Chapter 8 text, section by section.

  • Rafter ties (IRC R802.5.2 and R802.5.2.2): where ceiling joists are not parallel to rafters, rafter ties are required unless the ridge is designed as a beam. They must be at least nominal 2×4, spaced no more than 24 inches on center, and nailed per Table R802.5.2(1). The table assumes the ties sit at the bottom of the attic; raising them to one-third of the ridge height multiplies the nail count by 1.5, and above one-third the connection must be engineered.
  • Collar ties (IRC R802.4.6 in the 2021 IRC): where used, collar ties are at least nominal 1×4, spaced no more than 4 feet on center, and located in the upper third of the attic space. They resist rafter separation under wind uplift, not outward thrust.
  • Ridge offset (IRC R802.4.2): opposing rafters must meet the ridge board offset no more than 1.5 inches from each other and be connected with a collar tie or ridge strap, or be set directly opposite each other with a gusset plate.
  • Rafter spans (IRC R802.4.1 tables): rafter size is set by Tables R802.4.1(1) through (8), measured along the horizontal projection, based on species, grade, spacing, and load. For other species or loads the code points to the AWC span tables for joists and rafters.
  • Uplift (IRC R802.11): rafters need tie-downs sized from Table R802.11 unless one of the two exceptions applies. At 140 mph, Exposure B, 24 ft span and 16 in on center, the table gives 255 lb per connection under 5:12 and 237 lb at 5:12 or steeper.

Confusing a collar tie for a rafter tie is the most common framing error here: a 1×4 collar tie high in the roof (R802.4.6) does not stop the walls from spreading, while a 2×4 rafter tie low in the roof (R802.5.2.2) does. Treat the two as separate members with separate jobs.

Common rafter size and spacing reference

The spans below are copied from IRC Table R802.4.1(1), (3) and (5) for Douglas fir-larch No. 2 rafters, 10 psf dead load, ceiling not attached to rafters, L/180 deflection. Confirm against the edition and local amendments your jurisdiction adopted, and use the 20 psf dead load columns for tile or other heavy roofing.

Rafter size 16 in o.c., 20 psf roof live load 24 in o.c., 20 psf roof live load 16 in o.c., 30 psf ground snow 16 in o.c., 50 psf ground snow Source
2×6 14 ft 7 in 11 ft 11 in 12 ft 1 in 9 ft 10 in IRC Tables R802.4.1(1), (3), (5)
2×8 18 ft 5 in 15 ft 1 in 15 ft 4 in 12 ft 6 in IRC Tables R802.4.1(1), (3), (5)
2×10 22 ft 6 in 18 ft 5 in 18 ft 9 in 15 ft 3 in IRC Tables R802.4.1(1), (3), (5)
2×12 26 ft 0 in 21 ft 4 in 21 ft 8 in 17 ft 9 in IRC Tables R802.4.1(1), (3), (5)

Spans shrink at 24-inch spacing and under snow: a 2×8 drops from 18 ft 5 in at 16 in on center to 15 ft 1 in at 24 in on center, and to 12 ft 6 in under a 50 psf ground snow load. On the 24 ft wide example above (12 ft of run), a 2×6 at 16 in on center clears the 20 psf live load and 30 psf snow cases but not the 50 psf case, where a 2×8 is the smallest size that works.

How much uplift does each rafter connection resist?

IRC Table R802.11 lists the wind uplift each rafter-to-wall connection must carry. The values below are for Exposure B (suburban terrain) at 16 in on center; Exposure C (open terrain) values are higher.

Roof span 115 mph, pitch under 5:12 115 mph, 5:12 or steeper 140 mph, pitch under 5:12 140 mph, 5:12 or steeper Source
24 ft 118 lb 105 lb 255 lb 237 lb IRC Table R802.11
32 ft 145 lb 129 lb 319 lb 295 lb IRC Table R802.11
36 ft 160 lb 141 lb 351 lb 325 lb IRC Table R802.11

Where the wall framing species has a specific gravity of 0.42 or more and the table value is 200 lb or less, R802.11 lets the rafters be nailed to the plates per Table R602.3(1) instead of using a separate connector. Above 200 lb, specify a rated hurricane tie whose published uplift capacity meets the table value.

Should you use rafters or a gable truss?

Stick-framed rafters give you attic space and on-site flexibility; engineered gable trusses give you speed, longer clear spans, and a sealed design. HomeGuide’s 2026 roof truss guide prices wood trusses at $60 to $500 each and truss roofs at $5 to $14 per square foot installed, while its roof framing cost guide puts framing a roof at $6 to $15 per square foot. Cut-and-stack rafters win when you want usable attic volume, vaulted ceilings, or you are matching an existing framed roof.

Factor Stick-framed rafters Gable trusses
Labor and speed Slower, cut on site Faster, set in a day on many homes
Installed cost (HomeGuide, 2026) $6 to $15 per sq ft to frame a roof $5 to $14 per sq ft installed
Clear span Limited by IRC Table R802.4.1 spans (26 ft 0 in for a DF-L No. 2 2×12 at 16 in, 20 psf live load) Long spans without interior bearing walls
Attic and ceiling options Usable attic, vaulted possible Webs block storage; energy-heel available
Engineering Framer plus IRC span tables Truss design drawings approved before installation (IRC R802.10.1)
Field changes Flexible on site No cutting, notching or drilling without a registered design professional (IRC R802.10.4)

Truss members cannot be cut, notched, drilled or spliced without approval from a registered design professional (IRC R802.10.4), which is the trade-off for the speed. For truss families, spans, and pricing, see our breakdowns of roof truss types and roof truss cost by span.

Where does gable roof framing fit in the wider roof?

Framing is the skeleton; the gable roof also needs correctly detailed edges, ventilation, and the right pitch for its covering. Asphalt shingles need at least 2:12 under IRC R905.2.2, the attic needs net free vent area of 1/150 of its floor area under R806.2 (8 sq ft for a 1,200 sq ft attic), and the rake overhang follows the limits in the gable end table above.

For the broader design context, including gable variants, see our overview of the gable roof. A small attached structure uses the same 12-inch-run layout and the same R802.4.1 span tables at a smaller scale, as in how to build a porch roof.

Frequently asked questions

What is the difference between a rafter tie and a collar tie?

A rafter tie sits in the lower third of the roof near the wall plate and resists the outward thrust that would push the walls apart. A collar tie sits in the upper third near the ridge and resists rafter separation under wind uplift. Under the IRC, rafter ties are at least 2×4 at no more than 24 inches on center (R802.5.2.2) and collar ties at least 1×4 at no more than 4 feet on center (R802.4.6). They are not interchangeable, and using a high collar tie in place of a rafter tie is a common inspection failure.

Do you need a ridge board or a ridge beam for a gable roof?

A stick-framed gable roof with proper rafter ties needs only a ridge board at least 1 inch nominal and as deep as the rafter cut end (IRC R802.3), which is a nailing and alignment reference rather than a structural support. A structural ridge beam, supported at each end by a wall or column, is required when ceiling joists or rafter ties do not provide continuous ties across the structure, such as a vaulted or cathedral ceiling. Below 3:12 pitch, IRC R802.4.4 also requires the ridge to be designed as a beam. For sizing and cost, see our comparison of ridge beam vs ridge board.

How far apart are rafters spaced on a gable roof?

Common rafters are typically spaced 16 or 24 inches on center, and the IRC span tables also list 12 and 19.2 inch spacing. Wider spacing shortens the allowable span: a Douglas fir-larch No. 2 2×8 spans 18 ft 5 in at 16 inches on center but 15 ft 1 in at 24 inches on center under a 20 psf roof live load (IRC Table R802.4.1(1)). Wider spacing may also require thicker sheathing.

How do you deduct for the ridge board when cutting rafters?

You deduct half the ridge board thickness from the top of the rafter, measured horizontally from the ridge centerline. For a nominal 2x ridge that is 1.5 inches thick, that means shortening each rafter by 3/4 inch at the plumb cut. Measure the deduction perpendicular to the plumb cut line, then scribe a new parallel plumb cut. Missing this step makes the assembled roof sit wider than the building and throws off the overhang.

What size rafters do I need for a gable roof?

Rafter size is set by the IRC R802.4.1 span tables for your species, grade, spacing and load. For Douglas fir-larch No. 2 at 16 inches on center, 10 psf dead load and a 20 psf roof live load, the maximum spans are 14 ft 7 in for a 2×6, 18 ft 5 in for a 2×8, 22 ft 6 in for a 2×10 and 26 ft 0 in for a 2×12. Under a 50 psf ground snow load the same sizes reach 9 ft 10 in, 12 ft 6 in, 15 ft 3 in and 17 ft 9 in.

Can you frame a gable roof yourself?

An experienced DIY builder can frame a small, simple gable roof such as a shed or detached garage, where spans are short and loads are light. A full house means meeting the IRC tie, span and uplift rules (R802.4 through R802.11) and passing a framing inspection, and HomeGuide’s 2026 roof framing guide puts professional framing at $6 to $15 per square foot. Engineered trusses shift the span design to the truss maker, but the truss drawings still have to be approved before installation (R802.10.1).