Rafter Length & Pitch Calculator
Calculate exact rafter cut measurements instantly. Enter your run, pitch, and overhang below to determine your total rafter length.
How to Use the Rafter Length Calculator
- 1. Enter Run: Measure the total horizontal distance from the exterior wall to the center ridge.
- 2. Enter Pitch: Input your desired roof slope (e.g., 4/12 or 6/12) into the roof rafter calculator.
3. Enter Overhang: Specify the tail extension to generate a precise cut list with our rafter size calculator.
Introduction

Framing a code-compliant roof can be intimidating, especially when manually calculating rise, run, and slope. Skipping complex trigonometry and geometry is essential to preventing expensive lumber waste and ensuring structural safety during your build.
Our free rafter length calculator completely eliminates the complicated math. By entering your horizontal span and desired pitch, this interactive rafter roof pitch calculator provides the exact measurements needed to confidently cut your boards and build a perfectly pitched roof.
How to figure rafter length?
To figure rafter length, use the Pythagorean theorem: square the total rise, square the total run, add them together, and find the square root. This calculates the exact diagonal measurement. For instant, code-compliant custom cuts and overhangs, use our automated roof rafter calculator above.
- 2x4 Rafters: Standard maximum span of 7 to 9 feet.
- 2x6 Rafters: Standard maximum span of up to 14 feet.
- 2x8 Rafters: Standard maximum span of up to 18 feet.
Frequently Asked Questions
Q. How to calculate rafter length using pitch?
A. To calculate rafter length using pitch, determine your rise (pitch multiplier) and run. For a 4/12 pitch, the roof rises 4 inches for every 12 inches of horizontal run. Multiply your total run by the pitch ratio to find the exact diagonal cut.
Q. What is the max span for a 2x6 rafter?
A. The standard max span for a 2x6 rafter spaced 16 inches apart is typically 14 feet and 4 inches when using #2 Southern Yellow Pine. Always consult local residential building codes and a structural rafter size calculator to verify exact load limits.
Q. How far can a 2x4 rafter span without support?
A. A standard 2x4 rafter spaced 16 inches on center can span a maximum of 7 to 9 feet without additional support, depending on the wood species and snow load. For larger unsupported spans, you must upgrade to 2x6 or 2x8 dimensional lumber.
Planning your next project? Browse our master hub of Free DIY Home & Garden Calculators to get instant material lists, spacing math, and budget estimates.