Rafter Calculator

Last Updated: May 2026

This rafter calculator gives you exact rafter length, cut angles, and total count — no manual math needed.

Roof Dimensions
Enter a valid span (> 0).
Overhang & Ridge (For exact cut lengths)
Must be ≥ 0.
Must be ≥ 0.
Total Rafter Count (Optional)
Must be ≥ 0.
Rafter Cut List & Dimensions
Total Rafter Length (Buy this size)
Decimal: –
Rafter Line Length (Ridge cut to birdsmouth)
Tail Length (Birdsmouth to fascia)
Plumb Cut Angle (Ridge & Fascia cuts)
Level / Seat Cut Angle (Birdsmouth resting on plate)

How to Use This Rafter Calculator

Enter Your Building Span (Total Width, Not Half-Span). The biggest mistake happens right at the start. You must enter the total width of your building from the outside of one wall plate to the outside of the opposite wall plate. Do not enter the rafter run. The calculator automatically divides the span for you. If you put half the span in the box, every result will come out wrong.

Choose Your Roof Pitch (Rise Over Run)

Roof pitch tells you how steep the roof sits. It is written as a simple fraction, like 6/12. This just means for every 12 inches of horizontal run, the roof goes straight up by 6 inches.

Set Horizontal Overhang for Tail Length

This measures how far you want the roof to stick out past the exterior wall horizontally. Keep in mind, horizontal overhang is not the actual sloped length of the rafter tail. The tool does the math to convert your flat horizontal distance into the angled tail length.

Ridge Board Thickness: Why It Matters

A gable roof has a ridge board right at the top peak, and the rafters butt straight against it. Because of this, half the thickness of the ridge must be deducted from the total run. If you skip this step, your rafters end up too long, and the plumb cuts will not sit flush at the peak. A standard 2x ridge board is exactly 1.5 inches thick, which is the default setting here.

Optional: Rafter Count From Building Length and Spacing

If you are putting together a materials list, enter your total building length and the on-center spacing. The tool will tell you exactly how many sticks of lumber you need to buy for the job.

Understanding Your Results (What Each Number Means)

Rafter Line Length vs. Total Rafter Length: Don’t Confuse These

Line length measures from the tip of the ridge plumb cut straight down to the edge of the birdsmouth notch. Total rafter length adds the tail extension to that measurement. You buy lumber based on total length. You lay out your physical cuts using line length. Mixing these two numbers up is the number one ordering mistake guys make on job sites.

Tail Length and the Fascia Board Connection

This is the piece of the rafter hanging freely past the top plate. It holds up your fascia board and creates your soffit framing.

Plumb Cut Angle — Used at Ridge and Fascia

The calculator gives you the exact degree angle for your miter saw or speed square. You apply the exact same plumb cut angle twice: once at the top where the board meets the ridge, and once at the bottom tail end for the fascia attachment. They just face opposite directions.

Level Cut / Seat Cut Angle — The Birdsmouth

This angle sits completely flat on the wooden wall plate. The math rule on this never changes: your plumb cut angle plus your level cut angle always equals 90 degrees.

Total Rafter Count — How the Formula Works

To get the total piece count, the formula takes your building length, divides it by the rafter spacing, adds 1 for the starter piece on the end, and then multiplies by 2 to cover both sides of a standard gable roof.

Roof Pitch Chart: Common Pitches, Angles & Multipliers

PitchAngleRafter MultiplierCommon Use
4/1218.4°1.054Standard residential
6/1226.6°1.118Snow-load regions
8/1233.7°1.202Steeper aesthetics
12/1245.0°1.414Equal rise and run

Building codes classify roofs under 3/12 as low-slope roofs. These need entirely different waterproofing systems, like rolled roofing or rubberized membranes, instead of standard shingles. Your pitch directly dictates your material selection, not just the length of the wood you cut.

Rafter Calculation Formula: The Math Behind the Tool

We use right-angle geometry to find the exact lengths. You can use the Pythagorean theorem, where Rafter = √(Run² + Rise²). Or you can skip that and just use the pitch multiplier. You simply take your run and multiply it by the multiplier to get your line length.

Let’s look at a worked example: a 24 ft span, 6/12 pitch, 16″ overhang, and a 1.5″ ridge.

  • Span is 288 inches. Divide by 2 to get 144 inches of run.
  • Deduct half the ridge thickness (0.75 inches). The true run is 143.25 inches.
  • For a 6/12 pitch, the multiplier is exactly 1.118.
  • 143.25 × 1.118 = 160.15 inches of line length.

Do not round any numbers until the very end of the equation. To find your rise calculation (how high the ridge sits above the top plate), multiply the run by the pitch fraction. In this case, Run × (6 ÷ 12) gives you the total rise.

The Birdsmouth Cut: Seat Depth, Code Limits & Layout

A birdsmouth is the triangular notch cut out of the lower end of the rafter. It lets the angled board sit totally flat and transfers the heavy roof load straight down into the top plate and wall studs.

You cannot cut this notch as deep as you feel like. The International Residential Code (IRC R802.7.1) sets a strict seat cut depth limit. You are legally allowed to notch up to 1/3 of the rafter depth. If you are cutting a 2×8 board, the absolute maximum seat depth is roughly 2.4 inches. Violating this rule weakens the rafter structurally and causes sagging.

When framing, builders measure the plumb cut height at birdsmouth. This establishes the HAP (Height Above Plate). Keeping the HAP identical on every single rafter guarantees the roof plane is perfectly flat for sheathing.

Field tip: Always hook your tape measure and mark your birdsmouth cut from the top edge of the board down, not from the bottom up. Lumber widths fluctuate from the mill, but the top edge must stay completely flush.

Rafter Spacing: 12″, 16″, 19.2″ and 24″ On Center Explained

Builders usually space rafters 16 or 24 inches apart. But sometimes you see 19.2″ on center spacing on blueprints. This exists because 19.2 divides exactly five times into a standard 8-foot sheet of OSB or plywood. It reduces material waste at the edges while keeping the deck highly rigid.

Your spacing choices create different load and deflection trade-offs. Tighter spacing handles massive snow loads without bending. Going out to 24″ OC is structurally acceptable only when you have light live loads and you upgrade to deeper lumber, like 2x10s or 2x12s. A wider spacing reduces the total rafter count and drops your lumber budget, but always verify it meets your local wind and snow codes.

Common Rafter Sizing: What Lumber to Buy

Getting the total length from the calculator is only half the job. You still need to figure out what width of dimensional lumber can bridge that span without failing.

You find this by checking span tables to pick common rafter sizes (like 2×6, 2×8, 2×10, or 2×12) based on your specific pitch and spacing. The complete charts are listed in IRC Table R802.4.

When you go to the lumber yard, round your calculated total rafter length up to the next standard even-number length (8, 10, 12, 14, or 16 ft boards). Always add a 10–15% waste factor to your cart. You will absolutely need extras to cover layout mistakes, badly split boards, and extreme wood crowns.

Hip and Valley Rafters: Beyond the Common Rafter

This calculator handles common rafters that run straight up and down a standard roof.

If you are framing a hip roof, the math changes completely. A hip rafter runs at a 45-degree angle from the outside corner of the walls up to the ridge. Because it sits on a diagonal, it has a longer footprint and uses a different multiplier (diagonal run = run × 1.414 before applying the pitch). A valley rafter works with the exact same math, except it sits in an inside corner where two roof planes crash together.

Mistakes That Cause Short or Wrong Rafters

Even veteran carpenters ruin wood. Here is how to stop it:

  • Entering the half-span into the calculator instead of the full building span.
  • Forgetting the ridge board deduction, which pushes the birdsmouth layout too far down the board.
  • Using the line length result to order your lumber, completely forgetting to add the tail.
  • Not realizing the rafter tail plumb cut is a diagonal line. A 16-inch flat horizontal overhang demands more than 16 inches of wood to actually cover it.
  • Ignoring lumber crown. Every single board has a slight upward or downward bow. Always look down the edge of the board and install it with the crown facing up. The roof weight will push it flat over time.

Frequently Asked Questions (FAQs)

What is the difference between rafter span and rafter run?

Span is the total width across the entire building, measured from the outside of one wall to the outside of the opposite wall. Run is exactly half of the span. Rafters only travel the run distance to meet the ridge at the top center.

How do I calculate rafter length without a calculator?

Measure your total run. Find the pitch multiplier for your specific roof slope on a framing table (like 1.202 for an 8/12 pitch). Multiply your run by that multiplier to get the line length. Then add your overhang tail length.

What does rafter line length mean?

Line length is the precise distance from the top ridge cut to the very edge of the birdsmouth seat cut. It represents the structural span of the wood. It never includes the overhang section that hangs past the exterior wall.

What is the birdsmouth cut on a rafter?

It is a triangular notch cut into the lower section of a common rafter. This notch allows the angled piece of wood to sit perfectly flat on top of the horizontal wall plate. It transfers the heavy roof weight straight down the wall studs.

How many rafters do I need for a 20-foot building?

If you space them 16 inches on center, you divide 240 inches (20 ft) by 16 to get 15. Add 1 for the starter rafter at the edge, giving you 16. Multiply by 2 for both sides of the roof. You need 32 boards total.

What pitch is standard for a house roof?

Standard residential pitches usually fall between 4/12 and 9/12. A 4/12 to 6/12 pitch is extremely common because it sheds rainwater effectively while remaining safe and easy to walk on during construction or roof repairs.

How much overhang should a rafter have?

Most homes use a horizontal overhang somewhere between 12 and 24 inches. A longer overhang protects the wall siding from heavy rain and shades the windows in the summer, but it requires much thicker rafter tails to prevent long-term sagging.

What is the rafter multiplier and how do I use it?

The multiplier is a fixed math number based entirely on the roof slope. Instead of doing complex geometry formulas, you just multiply your horizontal run measurement by this number to instantly find the true diagonal length of the lumber.

Can I use this calculator for hip roof rafters?

No. This tool calculates standard common rafters used on basic gable roofs. Hip and valley rafters run at a diagonal 45-degree angle from the corners, which requires an entirely different span calculation and a longer length multiplier.

What is the maximum birdsmouth depth allowed by code?

According to residential building codes, the level seat cut notch cannot exceed one-third (1/3) of the rafter’s total depth. Cutting deeper than this limit removes too much continuous wood grain and structurally weakens the lower end of the rafter.

Grab your tape measure, plug your exact dimensions into the rafter calculator at the top of this page, and start laying out your lumber. Keep in mind, if you are working with extremely large spans, heavy snow load areas, or unusual pitches, you should always verify your final plans and material sizes with a structural engineer before you start cutting wood.


Sources & References

International Code Council (ICC): Section R802.7.1 confirms the birdsmouth notch limit (maximum 1/3 of rafter depth), and Section R802.4 confirms the legal span tables for 2×6, 2×8, 2×10, and 2×12 dimension lumber.

Residential Structural Design Guide: Chapter 5: Design of Wood Framing – verifies the correct load transfer geometries, rafter span equations, and structural connections for residential gable roof construction.


Other Similar Calculators


Qazi Raza Ul Haq - Developer of Expert Build Calc

About the Developer: Qazi Raza

Qazi Raza is a web developer and search engine optimization specialist who has spent years building programmatic calculators for real‑world construction, landscaping, and renovation projects. By combining engineering reference data with practical field standards, he designs tools that help homeowners, DIYers, and contractors estimate materials with confidence. Every calculator is built from verified density charts, compaction guidelines, and industry‑accepted formulas.