Roof framing

Free Rafter Calculator

Calculate rafter length, cut angles, birdsmouth dimensions, and material needs for common roof layouts.

Rafter Calculator

Quick tools

Set units once. Reopen recent results anytime.

Scenario presets

Pick the framing layout

Use a garage, shed, hip-roof, or barn-style preset.

Width of building (outside wall to outside wall)

: 12

Standard Slope (Most common residential)

Common: 12" residential, 18-24" for better protection

Advanced Options

Standard 2x material = 1.5"

10% recommended for standard projects

Quick checks

Check run, rise, and overhang before cutting lumber

Quick checks

Separate geometry from final structural sizing

Quick checks

Use roof type and spacing to narrow the framing plan

Framing setup

Check the framing plan before you cut lumber

Use the calculator to solve length and angles. Then verify member size with span tables.

Before you cut or order rafters

1

Confirm span, run, and overhang

A small span mistake compounds into wrong rafter length, birdsmouth placement, and sheathing layout.

2

Separate geometry from structural sizing

The calculator can solve length and angles quickly, but final member size still depends on span tables, load, and code.

3

Know the roof system you are framing

Gable, shed, hip, and ridge-beam layouts create different cut logic and different follow-up checks for ties or supports.

What usually breaks the first estimate

Spacing assumptions

Moving from 16-inch to 24-inch spacing changes sheathing, load path, and the acceptable member range.

Load and snow exposure

Snow country or heavy roofing systems can invalidate a member size that looks fine on a generic table.

Ridge and seat-cut constraints

Birdsmouth depth, bearing, and ridge thickness all need room in the board before the geometry is truly buildable.

Lock the geometry first. Then verify the structural call with span tables or engineering.

Fast planning rules

Start with the framing rules that change the cut list

Check rafter length, spacing, and rough member size before you order lumber.

24-ft span at 6/12 pitch

A common rafter is about 13.4 feet long before you add overhang or ridge adjustments.

Start with half the building span as the run. Then convert pitch into rise.

Most common spacing

16 inches on center is the standard residential starting point, while 24 inches on center is usually reserved for lighter loads or engineered layouts.

Snow load, sheathing, roofing weight, and code can change the final spacing.

Typical lumber size choice

Short spans may work with 2x6 or 2x8 rafters, but longer spans and heavier roof loads often push projects into 2x10, 2x12, or engineered lumber.

Use the calculator for planning. Confirm the final size with span tables or an engineer.

How to Use This Rafter Calculator

Use this calculator to estimate rafter length, cut angles, and framing quantity. It works best after you confirm span, pitch, and overhang.

Understanding Roof Framing Basics

Start with these key terms:

  • Span - The total width of the building from outside wall to outside wall
  • Run - Half the span (for standard gable roofs) - the horizontal distance from wall to ridge
  • Rise - The vertical height from the top plate to the ridge
  • Pitch - The roof slope expressed as rise per 12 inches of run (e.g., 6:12)
  • Rafter Length - The actual length of lumber needed, measured along the rafter
  • Overhang - How far the rafter extends past the wall (the eave)

Step 1: Select Your Roof Type

Different roof styles require different framing approaches:

  • Gable (Two-Slope) - The most common residential roof. Two sloped surfaces meeting at a central ridge. Simple to frame with straight common rafters.
  • Hip (Four-Slope) - All four sides slope toward the walls. More complex framing with hip rafters, jack rafters, and common rafters. Better wind resistance.
  • Shed (Single-Slope) - One sloped surface, often used for additions, porches, and outbuildings. Simplest framing with rafters running in one direction.
  • Gambrel (Barn Style) - Two different slopes on each side, creating more headroom in the attic. Common on barns and Dutch colonial homes.

Step 2: Enter Building Dimensions

Measure carefully - accurate dimensions are critical for proper fit:

  • Building Span - Measure from the outside of one wall to the outside of the opposite wall
  • Building Length - The length of the ridge (parallel to the rafters)
  • Overhang - Typical residential overhangs are 12-24 inches. Longer overhangs provide better weather protection.

Step 3: Determine Roof Pitch

Roof pitch is expressed as a ratio of rise to run. For example, a 6:12 pitch rises 6 inches for every 12 inches of horizontal run.

Pitch Angle Description
2:12 - 3:12 9° - 14° Low slope - requires special roofing (membrane or built-up)
4:12 - 6:12 18° - 26° Standard residential - most common, works with shingles
7:12 - 9:12 30° - 37° Medium steep - good water runoff, harder to walk on
10:12 - 12:12 40° - 45° Steep - excellent for snow, requires safety equipment
13:12+ 47°+ Very steep - specialty construction, dramatic appearance

Understanding Rafter Cuts

Every rafter requires three basic cuts to fit properly:

Plumb Cut (Ridge Cut)

The plumb cut is made at the top of the rafter where it meets the ridge board. This cut is vertical (plumb) when the rafter is in position. The angle is determined by the roof pitch.

How to mark: Set your framing square with the pitch (e.g., 6 on the tongue, 12 on the blade) and mark along the tongue for the plumb cut.

Birdsmouth Cut

The birdsmouth is a notch cut where the rafter sits on the wall's top plate. It consists of:

  • Seat Cut (Level Cut) - Horizontal cut that rests on the top plate
  • Heel Cut (Plumb Cut) - Vertical cut against the outside of the wall

Rule of thumb: The seat cut depth should not exceed 1/3 of the rafter depth to maintain structural integrity. For a 2x6 rafter (5.5" actual), maximum seat cut is about 1.8".

Tail Cut (Fascia Cut)

The tail cut is made at the end of the overhang where the fascia board attaches. This is typically a plumb cut, but can be modified for different fascia styles.

Rafter Sizing Guide

Rafter size depends on span, spacing, species, grade, and loads. Here are general guidelines for Douglas Fir #2 with 16" spacing and normal residential loads:

Rafter Size Maximum Span Best Use
2x4 8-10 feet Small sheds, porches
2x6 12-14 feet Most residential roofs
2x8 16-18 feet Wider spans, heavier loads
2x10 20-22 feet Large spans
2x12 24+ feet Maximum residential spans

Important: Always verify with local building codes and span tables. Snow loads, wind loads, and lumber species significantly affect allowable spans.

What's the minimum roof pitch for shingles?

Most asphalt shingles require a minimum 4:12 pitch. Lower pitches (2:12 to 4:12) may require ice and water shield underlayment. Below 2:12, you'll need low-slope roofing like modified bitumen, EPDM, or TPO.

How we checked this page

Written by: TheSiteMath Editorial Team
Reviewed by: TheSiteMath editors (formula, source, and update review)
Last reviewed: 2026-03-20
Publisher: TheSiteMath
Scope: U.S. construction material estimating, calculator workflows, and project planning guidance for contractors and homeowners.
What we checked:
  • Formulas checked against trade and source material
  • Verified against: American Wood Council span and framing guidance, Roof-framing layout and measurement references, Current U.S. framing material pricing benchmarks
  • Price ranges used for planning, not as fixed quotes
  • Examples checked in the live calculator
Methodology:
  • Example quantities and explanations on this page are cross-checked against the matching live calculator on TheSiteMath.
  • This framing content is scoped for U.S. planning and estimating workflows, not for stamped engineering or permit approval.
  • We review formulas, material assumptions, and practical steps against category-appropriate references before publishing updates.
  • We refresh pages when calculator logic, supplier assumptions, or pricing guidance materially changes.
  • Readers should confirm final dimensions, structural requirements, and local code obligations with qualified local professionals.
Editorial standards: We review pages before publication and update them when formulas or pricing need a fix. If you spot an issue, please contact us .

For our review process, corrections policy, and monetization disclosure, see the Editorial Standards page.

Framing FAQ

Rafter questions that change cuts, spacing, and lumber choice

These questions help visitors separate framing geometry from structural sizing so the calculator does not get mistaken for a generic span-table shortcut.

How do I calculate rafter length?

Rafter length is calculated using the Pythagorean theorem: Length = √(Run² + Rise²). For a 24-foot building with 6:12 pitch: Run = 12 feet, Rise = 6 feet, Length = √(144 + 36) = 13.4 feet. Add overhang for total length.

What spacing should I use for rafters?

16 inches on center is most common and provides good strength with standard sheathing. 24 inches on center is acceptable for light loads with proper sheathing. 12 inches on center is used for heavy snow areas or tile roofs.

Do I need a ridge board or ridge beam?

A ridge board is non-structural and just keeps rafters aligned - requires collar ties or ceiling joists. A ridge beam is structural and carries the roof load - required for cathedral ceilings without ceiling joists, needs posts at each end.

How do I handle hip rafters?

Hip rafters run at 45° from corners to the ridge. They're longer than common rafters and require compound cuts. Hip length = √(Run² + Rise² + Run²) × 1.414. Hip roofs also require jack rafters running from wall to hip rafter.

What's the minimum roof pitch for shingles?

Most asphalt shingles require minimum 4:12 pitch. Lower pitches (2:12 to 4:12) may require ice and water shield underlayment. Below 2:12, you'll need low-slope roofing like modified bitumen, EPDM, or TPO.