Roof Pitch and Rafter Calculator
Enter the pitch as rise per 12 (6 for a 6/12 roof), as an angle or as a percent, then the run — half the building's span — and the overhang. You get the other two ways of writing the pitch, the pitch factor, the rafter length to the ridge, the tail, a matching hip or valley rafter, and how much roof surface a plan area becomes.
- Pitch (rise in 12)
- 6
- Slope (%)
- 50%
- Pitch factor (slope multiplier)
- 1.118
- Rise, wall plate to ridge line
- 7 ft (7' 0")
- Common rafter to ridge (line length)
- 15.652 ft (15' 7 13/16")
- Rafter tail (overhang along slope)
- 1.118 ft (1' 1 7/16")
- Total rafter with tail
- 16.771 ft (16' 9 1/4")
- Hip or valley rafter (equal pitches)
- 21 ft (21' 0")
- Sloped roof area (same unit as plan area)
- 1,677.05
FreeNo sign-upPrivate — runs in your browser, nothing is uploaded
Checked against 14 reference cases · Wikipedia, IRC 2021 Chapter 9, NIST SP 811 · Reviewed · How we check
Quick answer
A 6/12 roof rises 6 in for every 12 in of run, which is atan(6/12) = 26.57° or a 50% slope. Its pitch factor is √(1 + 0.5²) = 1.118, so a 14 ft run needs a 15.652 ft (15' 7 13/16") rafter line to the ridge, and 1,500 ft² of plan becomes 1,677.05 ft² of roof surface.
Formula & method
Pitch conversions
k = pitch ÷ 12 = tan θ = percent ÷ 100 θ = atan k f = √(1 + k²) = 1 ÷ cos θ
- k — rise per unit of run (6/12 → 0.5)
- θ — roof angle from horizontal, degrees
- f — pitch factor (slope multiplier): sloped length or area per unit of level length or area
Rafters and area
rafter = run × f tail = overhang × f rise = run × k hip = √(2·run² + rise²) sloped area = plan area × f
- run — level distance from the outside of the wall plate to the ridge centre line (half the span on a symmetric gable)
- overhang — level projection of the eave beyond the wall
- hip — hip or valley rafter where two planes of the same pitch meet at 45° in plan
Rafter lengths are line lengths to the ridge centre line. Deduct half the ridge-board thickness (measured level) when cutting.
Common pitches: angle, percent, pitch factor and rafter length per foot of run
| Pitch | Angle · % · factor · common / hip rafter per ft of run |
|---|---|
| 2/12 | 9.46° · 16.67% · 1.0138 · 12.17 / 17.09 in |
| 3/12 | 14.04° · 25% · 1.0308 · 12.37 / 17.23 in |
| 4/12 | 18.43° · 33.33% · 1.0541 · 12.65 / 17.44 in |
| 6/12 | 26.57° · 50% · 1.1180 · 13.42 / 18.00 in |
| 8/12 | 33.69° · 66.67% · 1.2019 · 14.42 / 18.76 in |
| 9/12 | 36.87° · 75% · 1.2500 · 15.00 / 19.21 in |
| 12/12 | 45° · 100% · 1.4142 · 16.97 / 20.78 in |
Examples
Example 1: 6/12 gable, 28 ft span
- Input
- Pitch 6, run 14 ft, overhang 1 ft, plan 1,500 ft²
- Result
- 26.57°, 50%, factor 1.1180; rafter 15.652 ft (15' 7 13/16"), with tail 16.771 ft (16' 9 1/4"); sloped area 1,677.05 ft²
- Why
- k = 6 ÷ 12 = 0.5, so the factor is √1.25 = 1.1180. 14 × 1.1180 = 15.652 ft to the ridge; the 1 ft overhang adds 1.118 ft along the slope. The roof rises 7 ft from plate to ridge line.
Example 2: 30° roof in metres
- Input
- Angle 30°, run 4 m, overhang 0.5 m, plan 120 m²
- Result
- Pitch 6.928/12, 57.74%, factor 1.1547; rafter 4.619 m; sloped area 138.56 m²
- Why
- tan 30° = 0.5774, so the pitch is 12 × 0.5774 = 6.928 in 12 and the factor is 1 ÷ cos 30° = 1.1547.
Example 3: 12/12 hip roof
- Input
- Pitch 12, run 10 ft, no overhang
- Result
- 45°, factor 1.4142; common rafter 14.142 ft; hip rafter 17.321 ft (17' 3 7/8")
- Why
- The hip runs diagonally across the corner, √2 × 10 = 14.142 ft level, while rising the same 10 ft, so its length is √(2 × 10² + 10²) = 17.321 ft.
When to use this tool
- Converting a pitch from drawings (6/12), a site angle (30°) or a percent into the other forms.
- Cutting common rafters and estimating hip or valley stock for an equal-pitch roof.
- Turning a footprint area into roof surface area for shingles, underlayment or sheathing estimates.
Common mistakes
- Using the full span as the run. On a symmetric gable the run is half the span, measured to the ridge centre line.
- Treating pitch and angle as the same number. A 6/12 pitch is 26.57°, not 6° and not 50°; percent and degrees only agree at 0.
- Applying the common-rafter factor to hips and valleys. They run diagonally across the plan and are longer: on a 6/12 roof 18 in per foot of common run instead of 13.42 in.
- Forgetting the ridge board. The line length runs to the ridge centre; shorten each rafter by half the ridge thickness measured level.
- Ordering roofing from plan area. Shingles, membrane and sheathing cover the sloped area, so multiply the plan area (including overhangs) by the pitch factor, then add waste.
Assumptions
What the result takes for granted:
- All roof planes share one pitch; the hip/valley formula assumes 45° in plan (a regular hip).
- The overhang is measured level from the wall line.
- Lengths stay in the unit you pick; feet and inches also show a tape-measure fraction to 1/16 in.
Limitations
Where this tool stops — and what to use instead:
- It does not check minimum slopes for roof coverings, snow or wind loads, or rafter sizing. For example, IRC 2021 R905.2.2 allows asphalt shingles only on slopes of 2/12 or steeper, with extra underlayment below 4/12.
- Unequal-pitch hips, dormers and curved roofs need a separate layout.
- Areas exclude waste, starter courses and ridge caps.
Frequently asked questions
How do I convert roof pitch to degrees?
Divide the rise by 12 and take the arctangent: θ = atan(rise ÷ 12). A 4/12 roof is atan(0.3333) = 18.43°, a 6/12 roof 26.57° and a 12/12 roof 45°.
What is a pitch factor?
The number you multiply a level length or area by to get the sloped length or area: √(1 + (rise ÷ 12)²). For 6/12 it is 1.118, so 1,000 ft² of plan is 1,118 ft² of roof surface.
How do I calculate rafter length?
Multiply the run (half the span, wall to ridge centre) by the pitch factor, then add the overhang times the same factor. A 14 ft run on a 6/12 roof is 14 × 1.118 = 15.652 ft before the ridge-board deduction.
How do I measure roof pitch?
Hold a level against the rafter or roof surface, mark 12 in along it from the roof, and measure straight down (or up) to the roof: that distance is the rise per 12. Or measure the angle with a digital level and use the Angle tab.
What is the difference between pitch and slope in percent?
Both describe rise over run. Pitch writes it per 12 units (6/12), percent per 100 (50%). The percent is the pitch divided by 12, times 100.
How long is a hip rafter?
For two roof planes of the same pitch meeting at a 45° corner, the hip runs √2 times the common run, so its length is √(2·run² + rise²). On a 6/12 roof that is 18 in per foot of common run.
Sources & references
- Wikipedia — Roof pitch (rise over run, degrees, percent)
- ICC — 2021 International Residential Code, Chapter 9 Roof Assemblies (R905 roof coverings)
- NIST SP 811 — Guide for the Use of the International System of Units (inch = 25.4 mm exactly)
External references open in a new tab. We are independent and not affiliated with these organizations.
- Free
- No sign-up
- Runs entirely in your browser — nothing is uploaded.
- Formula and method shown above
Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.
Built and reviewed by HIFreeTools against the formula shown above and any authoritative references cited on this page. See our methodology and editorial standards below.
Related tools
- Stair CalculatorConstruction
- Slope CalculatorMath
- Pythagorean Theorem CalculatorMath
- Trigonometry CalculatorMath
- Square Footage CalculatorMath
- Paint CalculatorMath
- Tape Measure Calculator (Feet, Inches & Fractions)Construction
- Board Foot CalculatorConstruction
- Dew Point CalculatorConstruction
- Brick and Block CalculatorConstruction
Embed this tool on your site
Free to embed, no sign-up. Paste this code where you want the tool to appear: