Updated Roofing & Framing

Rafter Length Calculator

Estimate common, hip, valley and jack rafter lengths from roof pitch, run, overhang and units in feet/inches or metric, plus board feet and material cost.

Roof Pitch & Angle Common & Hip Rafters Jack Layout & Materials

Rafter Length, Roof Pitch & Material Estimator

Main field = feet or meters, extra field = inches or centimeters.
Use the roof pitch format that matches your plan or framing practice.
Example: 6 means a 6/12 pitch (6 units of rise for every 12 units of run).
Horizontal distance from outside of wall plate to center of ridge (does not include overhang).
Horizontal projection of eave beyond the wall line.
Depth of the seat cut in inches or centimeters; used for notes, not subtracted from length.
Thickness of ridge board in inches or centimeters. Used to slightly shorten common rafters at the ridge.

Why a Rafter Length Calculator Matters in Roof Framing

Rafter layout is one of the most geometry-heavy tasks in residential framing. A small change in roof pitch or run can produce a noticeable change in rafter length, birdsmouth location and overhang. Miscalculations show up quickly on site: rafters that are too short miss the ridge, rafters that are too long require trimming after installation, and inconsistent cuts lead to a wavy roof line. A dedicated rafter length calculator turns roof pitch, run and overhang values into clear rafter dimensions before any lumber is cut, so you can spot issues early and frame with confidence.

This rafter length calculator is built to bridge the gap between framing intuition and clean geometry. It accepts the formats carpenters and designers actually use—rise per 12, degrees or percent slope—and outputs practical numbers like common rafter length, hip and valley rafters, jack rafter lengths and board feet of lumber. Instead of juggling several formulas or running multiple one-off calculations, you can handle the main roof framing questions in a single interface.

Four Modes in One Rafter Length Calculator

Roof framing is more than just one kind of rafter. A typical roof might combine common rafters, hips and valleys where roof planes meet, and jack rafters that die into hips or valleys instead of running all the way to the ridge. On top of that, material and cost planning depends on how many rafters you have and how long they are. This rafter length calculator organizes that complexity into four focused modes:

  • Common rafter mode – calculates rise, run, length and angles for standard rafters.
  • Hip and valley mode – extends the geometry to hip and valley rafters with longer plan runs.
  • Jack rafter mode – generates a stepped series of jack rafter lengths based on a shortening increment.
  • Material and cost mode – converts rafter counts and lengths into board feet and estimated material cost.

All these modes share the same core pitch handling and unit system, so once you specify your roof pitch in the rafter length calculator, every mode interprets it consistently. You can move from common rafters to jacks and then to material takeoffs without re-entering basic roof information.

Entering Roof Pitch as Rise per 12, Degrees or Percent Slope

Roof pitch is described in several ways depending on region and profession. Carpenters often talk about a “6/12 roof,” meaning 6 inches of rise for every 12 inches of run. Designers and engineers might specify the same slope as a 26.6° angle or as a 50% grade. If a rafter length calculator only supports one format, you end up converting between systems by hand, which invites rounding errors.

This rafter length calculator supports all three common pitch formats:

  • Rise per 12 – you enter the rise that goes with 12 units of run (for example, 4, 6 or 8 for 4/12, 6/12 or 8/12).
  • Degrees – you enter the roof angle directly, matching many CAD drawings and design documents.
  • Percent slope – you enter the ratio of rise to run as a percentage, which some engineering documents favor.

Internally, the rafter length calculator converts your chosen format to a common slope ratio and angle. From that, it can compute rise from run, run from rise and rafter length from the Pythagorean theorem. This means you can read pitch from whichever source you have—framing square, blueprint or engineering table—and plug it in directly.

Computing Common Rafter Length from Run and Overhang

The most common question this rafter length calculator answers is: “How long should my common rafters be?” To do that, it needs to know:

  • The horizontal run from the outside of the wall plate to the center of the ridge.
  • The horizontal overhang you want beyond the wall line.
  • The roof pitch (in any of the supported formats).

The calculator adds the run and overhang together to find the total horizontal distance along the rafter’s line, then multiplies that by the slope ratio to find the total rise along that distance. Using those two components, it computes the rafter length along the top edge. The result is reported in inches and feet, and converted to centimeters and meters for metric awareness. It also shows the plumb cut angle, which is the same as the roof angle, so you know the angle to set on a miter saw or bevel gauge.

You can also enter a birdsmouth seat depth and an optional ridge thickness. The rafter length calculator treats these as adjustments and notes, rather than removing them directly from top-edge length. This reflects how most rafters are laid out in practice: cuts and seats are taken from the full calculated length during layout, using the plumb and seat lines to mark where the birdsmouth and ridge cuts belong.

Hip and Valley Rafters in the Rafter Length Calculator

Hip and valley rafters stand at 45° to the common rafters in plan view and run diagonally across the roof footprint. That longer plan run means hip and valley rafters are longer than common rafters for the same roof pitch. Estimating those lengths by hand involves extra geometry that many carpenters would rather not repeat for each job.

In the hip and valley mode, the rafter length calculator starts from your common rafter run and overhang. It uses the same roof pitch to compute the vertical rise but multiplies the horizontal run by the square root of two to account for the 45° diagonal path of a hip or valley. With that longer horizontal distance and the same vertical rise, the calculator applies the Pythagorean theorem again to find hip and valley rafter lengths. It also reports the common rafter length at the same time, making it easier to see the relationship between them.

The hip and valley outputs are useful both when you are cutting a small number of hips and valleys in a simple roof and when you are checking the numbers in more complex framing plans. The rafter length calculator is not a full 3D roof model, but it captures the essential geometry that drives the cut lengths you need at the saw.

Jack Rafter Layout and Length Steps

Jack rafters run from a wall plate up to a hip or down to a valley instead of reaching the ridge. Each jack rafter is shorter than the one next to it by a regular increment, which depends on the roof pitch and the horizontal step between rafters. Laying out those lengths by hand can be repetitive, especially when you have a long hip or valley with many jacks.

The jack mode in this rafter length calculator focuses on these stepped lengths. You provide:

  • The full common rafter run (from plate to ridge) and overhang.
  • The amount each jack rafter should be shortened in horizontal run compared to the previous one.
  • The total number of jacks you want to list.

The calculator computes the common rafter length first and then works backward, subtracting the horizontal shortening amount step by step. For each jack, it multiplies the available run by the slope ratio to find rise, then uses those to compute jack rafter length along the top edge. It outputs a concise summary that shows how many jacks were computed and what the shortest jack run ended up being. You can use those numbers as references when marking and cutting a series of jack rafters on site.

Rafter Material and Board Foot Estimation

Once you have a sense of how many rafters you need and how long they are, material planning becomes the next step. Roofing projects can use a surprising amount of lumber, especially when hips and valleys are involved. The material mode in this rafter length calculator turns rafter counts and lengths into board feet, which is the standard way to measure rough-sawn lumber volume.

You select a common framing size such as 2×6, 2×8, 2×10 or 2×12, and enter counts and average lengths for common, hip and jack rafters. The calculator uses the standard board foot formula—thickness in inches times width in inches times length in feet, divided by 12—to compute board feet per rafter type and for the whole roof. It then applies a waste factor to reflect culling, cutting and selection. If you enter a price per board foot, the rafter length calculator also outputs an approximate material cost just for the rafter stock.

This is especially useful when comparing different framing schemes. For example, you might use a rafter length calculator to compare a roof framed with 2×8 rafters at a moderate spacing versus a deeper 2×10 rafter at a wider spacing, then see how each option affects total board feet and lumber cost. Structural requirements still control what is allowed, but the cost side becomes much more transparent.

Unit Handling: Feet & Inches or Metric Dimensions

Roof drawings and site measurements do not always use the same unit system. Many framing plans are dimensioned in feet and inches, while some structural drawings or international projects use metric units. This rafter length calculator supports both systems with the same input style you may have seen in other calculators: a main field for feet or meters and an extra field for inches or centimeters.

When you work in imperial, you can enter something like 10 in the main field and 6 in the extra field to represent 10 feet 6 inches of rafter run. In metric, the same interface accepts 3 meters and 20 centimeters, for example. The calculator converts everything internally to a consistent base (inches for geometry and feet for board feet), then converts back to whichever unit is needed in the output. This reduces mental conversion errors and makes it easier to align the rafter length calculator with both the drawings you read and the tape measure you use on site.

Limitations and Safe Use of a Rafter Length Calculator

Like any planning tool, a rafter length calculator has limits. It is designed to handle the core geometry of rafters in typical gable and hip-style roofs, not every possible framing situation. It does not check span tables, bearing conditions, connection details, bracing or deflection limits. It also does not model complex intersections between multiple roof planes beyond the simple hip and valley relationships built into its formulas.

This is why the calculator is meant as an aid, not a replacement, for good framing practice and local building codes. You can use it to evaluate options, double-check mental math and prepare a material list, but final decisions about rafter size, spacing, spans and details must be checked against official code tables and, when required, reviewed by an engineer or qualified designer. Treat the outputs of the rafter length calculator as a starting point for those conversations rather than as an automatic approval of any particular design.

Best Practices for Using This Rafter Length Calculator

To get the most reliable results from this rafter length calculator, a few habits are helpful:

  • Measure or read roof run carefully from drawings, noting whether dimensions are inside or outside of plates.
  • Confirm roof pitch in a single format (rise per 12, degrees or percent) before entering it, and avoid round-offs if possible.
  • Use reasonable overhang values that match your design and local climate considerations.
  • When generating jack rafters, choose a shortening increment that matches your actual layout spacing.
  • Compare board foot and cost outputs against supplier quotes and, if necessary, add an extra margin for complex roofs.

With these practices, the rafter length calculator becomes a fast, transparent way to turn the essential geometry of a roof into working numbers you can use at the saw, on the job site and in your project budget.

FAQ

Rafter Length Calculator – Frequently Asked Questions

Helpful answers about roof pitch, common rafters, hips, jacks and material planning with this rafter length calculator.

This rafter length calculator estimates common rafter length, hip and valley rafters, jack rafters, roof rise, run, plumb cut angle and basic material needs from your roof pitch, run and overhang inputs.

The rafter calculator lets you enter roof pitch as rise per 12 units, degrees or percent slope. It converts between them internally so you can work in whichever format is most natural.

Yes. The hip and valley mode uses your common rafter run and roof pitch to estimate hip and valley rafter lengths based on their longer plan run and the same vertical rise.

The jack rafter mode uses your common rafter run, roof pitch and a shortening amount along the run to generate a table of jack rafter lengths that step down in regular increments.

Yes. You can work in feet and inches or meters and centimeters. Inputs use a main and extra field so you can enter mixed measurements without doing the conversions yourself.

You can specify horizontal overhang and a birdsmouth seat depth. The calculator focuses on top-edge rafter length and notes that cuts and seats slightly reduce the effective bearing length on the wall.

Yes. The material mode accepts counts and average lengths for common, hip and jack rafters along with lumber size, then estimates total board feet and an optional material cost based on your price per board foot.

No. This rafter calculator is for planning and estimating. Final span, sizing, connections and details must always comply with local building codes and be reviewed by qualified professionals.

The calculator includes a simple ridge thickness adjustment for common rafters but does not model full structural details, headroom or bearing conditions. Those still require detailed design.

No. All rafter calculations run locally in your browser. Roof pitch, run, overhang and material data are not uploaded or stored on any server.