COC

Rafter Length Calculator

Calculate the exact length of a common roof rafter from rise and run, from a roof pitch and building width, or including the overhang past the wall plate — instantly, with the roof pitch angle and ratio shown alongside every result.

✓ Five calculators in one   ✓ Pitch, rise, run & overhang   ✓ Works on mobile

Rafter Length Calculator

Enter a valid rise (≥ 0) and run (> 0)
Enter a valid pitch (≥ 0) and run (> 0)
Enter a valid rise, run (> 0), and overhang (≥ 0)
Enter a valid rise (≥ 0) and run (> 0)
Enter a valid building width (> 0) and pitch (≥ 0)
Rise Run Rafter

What Is a Rafter Length Calculator?

A rafter is one of the sloped structural members that runs from a building's wall plate up to the ridge, forming the triangular framework a roof's covering — shingles, metal panels, tiles — is attached to. Calculating rafter length correctly, before cutting lumber, is one of the most fundamental pieces of roof framing math, and it comes down to a straightforward application of the Pythagorean theorem: a rafter is the hypotenuse of a right triangle formed by the roof's vertical rise and horizontal run.

Run is the horizontal distance the rafter spans — typically half the building's width for a simple gable roof, since the rafter travels from the outer wall to the centered ridge. Rise is the vertical height the rafter climbs over that same horizontal distance, determined by the roof's pitch. Roof pitch itself is conventionally expressed in construction as a ratio of rise to a 12-inch run — a "6/12 pitch" roof rises 6 inches for every 12 inches (1 foot) of horizontal run, equivalent to a rise-to-run ratio of 0.5, or roughly a 26.57-degree slope angle. Because rafter length depends directly on both rise and run, and pitch is simply the ratio between them, any two of the three values (rise, run, pitch) are enough to derive the rafter length and the third value.

The basic calculation — Rafter Length = √(Rise² + Run²) — gives the length of the "common rafter" measured from the ridge to the outside edge of the wall plate. In practice, actual rafter cutting also needs to account for the overhang (also called the eave or tail), the portion of the rafter that extends past the wall plate to create roof drip edge and protect the walls below — and, for full construction accuracy, adjustments for the ridge board thickness and the birdsmouth notch cut where the rafter sits on the wall plate. This calculator focuses on the core geometric rafter length calculation, including an overhang mode, which covers the fundamental math every more detailed framing calculation builds on.

Getting rafter length right matters because it's one of the first cut measurements in roof framing, and an error here propagates through the entire roof structure — rafters cut too short leave gaps at the ridge or wall plate; rafters cut too long waste material and require rework. Roofing contractors, framers, and DIY builders all rely on this calculation constantly, whether planning material orders before a job starts or cutting a pattern rafter on-site to use as a template for the rest.

This calculator covers the practical ways rafter length actually gets calculated on a job. Rafter Length from Rise & Run handles the direct Pythagorean calculation when both measurements are known. Rafter Length from Pitch & Run starts from the roof's pitch specification (rise per 12 inches) and a known run, deriving the rise and rafter length together. Rafter Length with Overhang adds the eave extension to the core rafter length, giving the true total cut length. Roof Pitch Calculator works the other direction, converting a known rise and run into a pitch ratio, percentage grade, and slope angle. And Rafter Length from Building Width starts from the overall building width and roof pitch — the two figures most commonly known at the planning stage — and derives everything else. Every mode calculates live as you type and shows the exact formula used for every result.

The Complete Guide to Rafter Length

Everything framers, roofers, and DIY builders ask about calculating roof rafter length correctly.

What is a rafter?

A rafter is a sloped structural framing member running from a building's wall plate (top of the wall) to the ridge at the roof's peak, forming the triangular structure that supports the roof covering and transfers roof loads down to the walls.

Rise, run, and the roof triangle

A simple gable roof forms a right triangle: run is the horizontal distance from the outer wall to the center ridge line, rise is the vertical height gained over that distance, and the rafter itself is the hypotenuse connecting them. This is exactly the geometric relationship the Pythagorean theorem describes.

The rafter length formula

Rafter Length = √(Rise² + Run²). This calculates the straight-line length of the common rafter from the ridge to the outer edge of the wall plate, before any overhang, ridge board thickness, or birdsmouth notch adjustments.

Understanding roof pitch

Roof pitch is conventionally expressed as rise per 12 inches of run — a "6/12" or "6-in-12" pitch means the roof rises 6 inches for every 12 inches (1 foot) of horizontal run. This standardized notation lets builders communicate roof steepness without needing to reference the specific building's dimensions.

Converting pitch to rise

Given a pitch (rise per 12) and a known run, actual rise is calculated as Rise = Run × (Pitch ÷ 12). A 6/12 pitch over a 12-foot run gives a rise of 12 × (6÷12) = 6 feet.

Pitch ratio, percentage, and angle

The same roof steepness can be expressed three ways: as a pitch ratio (6/12), as a percentage grade (Rise ÷ Run × 100), or as an angle in degrees (arctan(Rise ÷ Run)). All three describe the identical slope, just in different conventions common to different trades and contexts.

Common rafter vs. hip and valley rafters

A common rafter runs perpendicular to the wall plate, straight up to the ridge, and is what the standard rise-run-rafter formula calculates directly. Hip and valley rafters, which run diagonally at the corners or intersections of a more complex roof, follow a related but more involved three-dimensional calculation, since they span both the building's width and length dimensions simultaneously.

Calculating rafter overhang

The overhang (or eave) is the portion of the rafter extending past the wall plate, continuing at the same roof slope. Because it continues along the identical pitch angle, the extra length it adds to the total rafter is proportional to the ratio between the overhang distance and the run: Extra Length = Overhang × (Rafter Length ÷ Run).

Ridge board and birdsmouth adjustments

In full construction practice, the theoretical rafter length calculated from rise and run needs two further adjustments: subtracting half the ridge board's thickness (since the rafter meets the ridge board, not a zero-thickness point), and accounting for the birdsmouth notch cut where the rafter rests on the wall plate. These adjustments are typically applied by a framer during layout, on top of the core geometric length this calculator provides.

Building width and rafter run

For a simple gable roof with a centered ridge, run is exactly half the total building width (measured to the outside of the wall framing), since the rafter travels from the outer wall to the building's centerline. This makes overall building width, combined with the specified roof pitch, enough information to derive every other rafter dimension.

Roof pitch and material selection

Roofing material manufacturers often specify minimum pitch requirements — very low-pitch roofs may require different underlayment or material types than steeper roofs, since water drainage behavior changes significantly with slope, making an accurate pitch calculation relevant beyond just rafter length.

Framing square and speed square methods

Traditional roof framing uses a framing square or speed square marked with pitch angle graduations to lay out rafter cuts directly on lumber, applying the same underlying rise-run-pitch relationship this calculator computes numerically, just through a physical measuring tool instead.

Common rafter length calculation mistakes

The most frequent error is using the building's full width instead of half the width (the actual run) for a centered-ridge gable roof. Confusing pitch notation — treating a "6/12" pitch as a 6% grade or a direct 6-foot rise, rather than 6 inches of rise per 12 inches of run — is another common mistake. Forgetting to account for overhang when ordering rafter material, mixing units (inches and feet) without converting, applying the common-rafter formula directly to hip or valley rafters without the additional geometry they require, and rounding intermediate calculations too early round out the most common errors.

Best practices for rafter length calculations

Always confirm whether "run" in a given calculation means half the building width or the full width, since this is the single most common source of a doubled or halved rafter length error. Keep pitch, rise, and run in consistent units throughout a calculation. Add overhang as a distinct, explicit step rather than folding it into the core rise-run calculation. And treat the calculated common rafter length as the starting point for a full framing layout, not the final cut measurement, since ridge board thickness and birdsmouth notching still need to be applied on-site.

How the Calculator Works

Four steps from your known roof dimensions to an accurate rafter length.

1

Choose Your Known Values

Select rise and run, pitch and run, building width and pitch, or add an overhang.

2

Enter Your Measurements

Type in your roof dimensions or pitch specification in feet or standard rise-per-12 notation.

3

Automatic Geometric Calculation

The calculator applies the Pythagorean rafter length formula instantly to your specific values.

4

Review the Full Result

See rafter length, pitch ratio, pitch angle, and — where relevant — the overhang-adjusted total length.

Rafter Length Formulas

The core equations behind every calculation on this page.

Rafter Length

Length = √(Rise² + Run²)

Rise from Pitch

Rise = Run × (Pitch ÷ 12)

Pitch Angle

Angle = arctan(Rise ÷ Run)

Pitch Percentage

Grade % = (Rise ÷ Run) × 100

Total Length with Overhang

Total Length = Rafter Length + [Overhang × (Rafter Length ÷ Run)]

Step-by-Step Examples

Eight worked calculations covering every mode on this page.

Example 1 — Basic Rafter Length

Rise = 6 ft, Run = 12 ft Length = √(6² + 12²) = √(36+144) = √180 = 13.42 ft

Example 2 — From Pitch and Run

Pitch = 6/12, Run = 12 ft Rise = 12 × (6÷12) = 6 ft Length = √(6²+12²) = 13.42 ft

Example 3 — Steeper Pitch Comparison

Pitch = 9/12, Run = 12 ft Rise = 12 × (9÷12) = 9 ft Length = √(9²+12²) = 15.0 ft

Example 4 — Rafter Length with Overhang

Rise = 6 ft, Run = 12 ft, Overhang = 1.5 ft Rafter Length = 13.42 ft Extra = 1.5 × (13.42÷12) = 1.68 ft Total = 15.10 ft

Example 5 — Roof Pitch Calculation

Rise = 6 ft, Run = 12 ft Pitch Ratio = (6÷12)×12 = 6/12 Angle = arctan(6÷12) = 26.57°

Example 6 — From Building Width

Building Width = 24 ft, Pitch = 6/12 Run = 24÷2 = 12 ft Rise = 12 × (6÷12) = 6 ft Length = 13.42 ft

Example 7 — Low-Slope Roof

Pitch = 3/12, Run = 14 ft Rise = 14 × (3÷12) = 3.5 ft Length = √(3.5²+14²) = 14.43 ft

Example 8 — Steep A-Frame Style Roof

Pitch = 12/12, Run = 10 ft Rise = 10 × (12÷12) = 10 ft Length = √(10²+10²) = 14.14 ft (45° angle)

Quick Reference Tables

Common roof pitches, angles, and rafter lengths for a 12-foot run.

Common Roof Pitches and Angles

PitchAngle
3/1214.04°
4/1218.43°
6/1226.57°
8/1233.69°
12/1245.00°

Rafter Length by Pitch (12 ft Run)

PitchRafter Length
3/1212.37 ft
4/1212.65 ft
6/1213.42 ft
8/1214.42 ft
12/1216.97 ft

Roof Pitch Categories

Pitch RangeDescription
Under 3/12Low-slope
3/12–6/12Standard slope
7/12–9/12Steep slope
10/12+Very steep

Benefits of Using This Calculator

Why framers, roofers, and DIY builders rely on a dedicated rafter length tool.

Instant Calculations

Every mode updates live as you type — no manual square-root math required.

📐

Multiple Starting Points

Calculate from rise and run, pitch and run, or building width and pitch.

🏠

Overhang-Ready

Get the true total rafter length including eave overhang, not just the core triangle.

📏

Pitch Conversion

See pitch as a ratio, percentage grade, and angle all at once.

🔨

Job-Site Ready

Get material estimates and cut-length starting points before lumber is ordered.

📱

Mobile-Friendly Interface

Every field and result card is fully responsive across phones, tablets, and desktops.

Practical Applications

Real situations where accurate rafter length calculations matter.

  • Residential roof framing — calculate common rafter lengths for a new build or addition.
  • Roofing material estimation — order the correct lumber length before framing begins.
  • DIY shed and outbuilding construction — frame a simple gable roof accurately.
  • Deck and porch roof covers — calculate rafters for smaller attached roof structures.
  • Roof replacement projects — verify existing rafter dimensions during a re-roof.
  • Carport and garage construction — plan roof framing for standalone structures.
  • Construction estimating — quickly project framing material needs for a bid.
  • Architectural design — check roof pitch and rafter dimensions against a design concept.
  • Building code compliance — verify roof pitch meets minimum requirements for chosen materials.
  • Solar panel installation — understand roof angle and rafter layout for mounting planning.
  • Trade school and apprentice training — teach and practice fundamental roof framing math.
  • General DIY planning — quickly check rafter dimensions before starting a project.
Rafter Run

Common Mistakes

Avoid these errors when calculating rafter length.

Using full building width instead of half

For a centered-ridge gable roof, run is half the building width — using the full width doubles the calculated rafter length incorrectly.

Misreading pitch notation

A "6/12" pitch means 6 inches of rise per 12 inches of run — not a 6-foot rise or a 6% grade.

Forgetting overhang

Ordering material based on the core rafter length alone, without adding the eave overhang, leaves rafters short.

Mixing units

Combining a pitch specified in inches with a run measured in feet without converting produces an incorrect rise.

Applying common rafter math to hip or valley rafters

Hip and valley rafters need additional three-dimensional geometry beyond the simple rise-run formula.

Ignoring ridge board thickness

The theoretical rafter length doesn't account for the ridge board's thickness, which shortens the actual cut length slightly.

Skipping the birdsmouth notch adjustment

Final on-site rafter length still needs the birdsmouth notch layout applied at the wall plate.

Rounding too early

Rounding an intermediate rise or rafter length before completing a multi-step calculation compounds small errors.

Frequently Asked Questions

Fifteen common questions about rafter length calculations, answered directly.

How do I calculate rafter length?

Use Rafter Length = √(Rise² + Run²), applying the Pythagorean theorem to the roof's vertical rise and horizontal run.

What is rise and run in roof framing?

Run is the horizontal distance the rafter spans (typically half the building width); rise is the vertical height gained over that distance.

What does a 6/12 roof pitch mean?

It means the roof rises 6 inches for every 12 inches (1 foot) of horizontal run.

How do I find rise from pitch and run?

Use Rise = Run × (Pitch ÷ 12). For example, a 6/12 pitch over a 12-foot run gives a 6-foot rise.

How do I calculate rafter length including overhang?

Calculate the core rafter length first, then add Overhang × (Rafter Length ÷ Run) to get the total length.

How is roof pitch converted to an angle?

Use Angle = arctan(Rise ÷ Run). A 6/12 pitch corresponds to approximately 26.57 degrees.

Is run half the building width or the full width?

For a standard gable roof with a centered ridge, run is half the total building width, since the rafter spans from the outer wall to the centerline.

Does this work for hip or valley rafters?

No — this calculator covers common rafters; hip and valley rafters require additional three-dimensional geometry beyond this formula.

Does the calculated length account for the ridge board?

No — it calculates the theoretical common rafter length; subtracting for ridge board thickness is a separate on-site adjustment.

Is this calculator accurate?

Yes — it applies the standard Pythagorean rafter length formula precisely to your inputs, with the formula shown alongside every result.

Is it free to use?

Yes, all five calculator modes are completely free with no sign-up required.

Does it work on mobile?

Yes — the layout and all input fields are fully responsive across phones, tablets, and desktops.

Can I calculate rafter length from building width alone?

Yes — the Rafter Length from Building Width mode above derives run, rise, and rafter length from width and pitch.

What is a steep vs. low-slope roof pitch?

Roughly under 3/12 is considered low-slope, 3/12 to 6/12 is standard, and above 7/12 is generally considered steep.

Can DIY builders use this calculator?

Yes — it's designed to be usable without a construction background, while still applying the correct professional framing formulas.

Calculate Rafter Length Instantly

Calculate accurate rafter lengths, roof pitch, and overhang measurements for your next framing project using the calculator above.