Rafter length is a core rafter result

This rafter calculator also serves as a rafter length calculator for simple common-rafter geometry. It uses the right triangle formed by horizontal run, vertical rise, and the rafter slope line. For pitch X:12, the base geometric line length is run × sqrt(12² + X²) ÷ 12.

The reported line is geometric. It is not an exact stock length or a complete cut schedule because ridge, plate, fascia, tail, and connection details can change layout endpoints.

Choose the measurements you actually know

Run + pitch and run + angle model the same triangle. Span + pitch is a shortcut for a simple symmetrical gable only: it assumes run is half the building span. Ridge thickness and the selected layout reference can affect the exact field run, so that assumption stays visible in the result.

For a shed or lean-to roof, use run + pitch or run + angle. A simple single-slope roof uses the same right-triangle calculation.

Keep overhang separate from the base line

The optional overhang is entered as a horizontal projection. Its sloped contribution equals horizontal overhang multiplied by the pitch multiplier. The calculator reports base rafter line, overhang contribution, and total geometric slope length separately so the extension is auditable.

overhang slope length = horizontal overhang × pitch multiplier

Birdsmouth and cuts need project details

A birdsmouth combines a level seat with a plumb cut near the wall support. The common-rafter diagram is schematic and does not locate a cut, prescribe notch depth, or claim a safe cut. Member dimensions, bearing, connections, and applicable requirements must be resolved for the actual project.

Common-rafter geometry has clear limits

This tool does not determine allowable span, required rafter size, spacing, structural capacity, load resistance, or code compliance. Those decisions depend on species and grade, member dimensions, loads, supports, connections, and applicable design rules.

Hip, valley, and jack rafters require additional plan geometry. A-frame, gambrel, dormer, and intersecting roofs are also outside this simple common-rafter model. Need to find or convert the slope first? Use the Roof Pitch Calculator.

Last reviewed: October 5, 2026.