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
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.
Everything framers, roofers, and DIY builders ask about calculating roof rafter length correctly.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
Four steps from your known roof dimensions to an accurate rafter length.
Select rise and run, pitch and run, building width and pitch, or add an overhang.
Type in your roof dimensions or pitch specification in feet or standard rise-per-12 notation.
The calculator applies the Pythagorean rafter length formula instantly to your specific values.
See rafter length, pitch ratio, pitch angle, and — where relevant — the overhang-adjusted total length.
The core equations behind every calculation on this page.
Eight worked calculations covering every mode on this page.
Common roof pitches, angles, and rafter lengths for a 12-foot run.
| Pitch | Angle |
|---|---|
| 3/12 | 14.04° |
| 4/12 | 18.43° |
| 6/12 | 26.57° |
| 8/12 | 33.69° |
| 12/12 | 45.00° |
| Pitch | Rafter Length |
|---|---|
| 3/12 | 12.37 ft |
| 4/12 | 12.65 ft |
| 6/12 | 13.42 ft |
| 8/12 | 14.42 ft |
| 12/12 | 16.97 ft |
| Pitch Range | Description |
|---|---|
| Under 3/12 | Low-slope |
| 3/12–6/12 | Standard slope |
| 7/12–9/12 | Steep slope |
| 10/12+ | Very steep |
Why framers, roofers, and DIY builders rely on a dedicated rafter length tool.
Every mode updates live as you type — no manual square-root math required.
Calculate from rise and run, pitch and run, or building width and pitch.
Get the true total rafter length including eave overhang, not just the core triangle.
See pitch as a ratio, percentage grade, and angle all at once.
Get material estimates and cut-length starting points before lumber is ordered.
Every field and result card is fully responsive across phones, tablets, and desktops.
Real situations where accurate rafter length calculations matter.
Avoid these errors when calculating rafter length.
For a centered-ridge gable roof, run is half the building width — using the full width doubles the calculated rafter length incorrectly.
A "6/12" pitch means 6 inches of rise per 12 inches of run — not a 6-foot rise or a 6% grade.
Ordering material based on the core rafter length alone, without adding the eave overhang, leaves rafters short.
Combining a pitch specified in inches with a run measured in feet without converting produces an incorrect rise.
Hip and valley rafters need additional three-dimensional geometry beyond the simple rise-run formula.
The theoretical rafter length doesn't account for the ridge board's thickness, which shortens the actual cut length slightly.
Final on-site rafter length still needs the birdsmouth notch layout applied at the wall plate.
Rounding an intermediate rise or rafter length before completing a multi-step calculation compounds small errors.
Fifteen common questions about rafter length calculations, answered directly.
Use Rafter Length = √(Rise² + Run²), applying the Pythagorean theorem to the roof's vertical rise and horizontal run.
Run is the horizontal distance the rafter spans (typically half the building width); rise is the vertical height gained over that distance.
It means the roof rises 6 inches for every 12 inches (1 foot) of horizontal run.
Use Rise = Run × (Pitch ÷ 12). For example, a 6/12 pitch over a 12-foot run gives a 6-foot rise.
Calculate the core rafter length first, then add Overhang × (Rafter Length ÷ Run) to get the total length.
Use Angle = arctan(Rise ÷ Run). A 6/12 pitch corresponds to approximately 26.57 degrees.
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.
No — this calculator covers common rafters; hip and valley rafters require additional three-dimensional geometry beyond this formula.
No — it calculates the theoretical common rafter length; subtracting for ridge board thickness is a separate on-site adjustment.
Yes — it applies the standard Pythagorean rafter length formula precisely to your inputs, with the formula shown alongside every result.
Yes, all five calculator modes are completely free with no sign-up required.
Yes — the layout and all input fields are fully responsive across phones, tablets, and desktops.
Yes — the Rafter Length from Building Width mode above derives run, rise, and rafter length from width and pitch.
Roughly under 3/12 is considered low-slope, 3/12 to 6/12 is standard, and above 7/12 is generally considered steep.
Yes — it's designed to be usable without a construction background, while still applying the correct professional framing formulas.
Calculate accurate rafter lengths, roof pitch, and overhang measurements for your next framing project using the calculator above.