Hip Rafter Calculator
A hip roof from its footprint and pitch: the four hips, the ridge between them…
A hip roof from its footprint and pitch: the four hips, the ridge between them, the common rafters and the jack rafters that step down along each hip.
Pitch
More options1½ in ridge board · 16 in on centre
Rafter spacing, on centre
Rafter
ExampleEach hip rafter
22 ft ¼ in
Four hips rising 5 in every 16.97 (3.54/12, 16.4°) and a 12 ft ridge; jack rafters step down 17 5/16 in every 16 in.
Enter yours to see your result.
- Common rafter
- 16 ft 2 3/16 in
- Hip factor
- 1.474
- Hip rise
- 5 ft 10 in
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department. Terms
My shopping list
Add each part of a job and print one list. It stays on this device.
How this works: 2 sources,
How this works
Method
On a hip roof with the same pitch on every side, each hip runs from a corner of the building at 45° in plan to the end of the ridge. Its run is the common rafter’s run times √2, about 16.97 in for every 12 in of common run, while it climbs the same height, so the hip is flatter than the roof: its pitch is the roof’s pitch over 16.97. Its length is the common run times the hip factor √(2 + (pitch ÷ 12)²). Full method
Sources
- Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths) (National Institute of Standards and Technology, 2025)
- 2025 California Residential Code, Section R905 Requirements for roof coverings (the IRC’s section numbers) (California Building Standards Commission, 2025)
How it’s tested
3 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Limits
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: roof pitch from a rise, a span or an angle, drawn as a gable you can drag, with rafter length, pitch to degrees and hip rafter pages.
How the hip rafter is worked out
On a hip roof with the same pitch on every side, each hip runs from a corner of the building at 45° in plan to the end of the ridge. Its run is the common rafter’s run times √2, about 16.97 in for every 12 in of common run, while it climbs the same height, so the hip is flatter than the roof: its pitch is the roof’s pitch over 16.97. Its length is the common run times the hip factor √(2 + (pitch ÷ 12)²).
A worked example: a 36 × 24 ft house at 6/12 with 18 in overhangs. The common run is 12 ft (less half the ridge board); the hip factor at 6/12 is 1.5, so each hip is 17 ft 10⅞ in to the ridge and 20 ft 1⅞ in with its tail. The ridge is 36 − 24 = 12 ft, and jack rafters at 24 in centres get 26 13/16 in shorter each.
The jack rafters run from the wall plate up to the hip, parallel to the commons, and each is one spacing times the slope factor shorter than the one before. The hip itself is usually a size deeper than the commons so the jacks’ cuts land fully on it; the cheek cuts where jacks meet the hip are at 45° in plan.
hip = (width ÷ 2 − ridge ÷ 2 + overhang) × √(2 + (pitch ÷ 12)²); jack step = spacing × √(1 + (pitch ÷ 12)²)
- Rafters and hips are dimension lumber, dressed smaller than named: a 2×10 is 1½ × 9¼ in and a 2×12 1½ × 11¼ in, dry. Source: Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths).
Hip factors and lengths by pitch
For a 40 × 28 ft hip roof (14 ft common run), no overhang or ridge allowance; jacks at 16 in on centre.
| Pitch | Hip factor | Hip pitch | Hip length | Jack step |
|---|---|---|---|---|
| 3/12 | 1.436 | 3/16.97 (2.12/12) | 20 ft 1¼ in | 16½ in |
| 4/12 | 1.453 | 4/16.97 (2.83/12) | 20 ft 4⅛ in | 16⅞ in |
| 5/12 | 1.474 | 5/16.97 (3.54/12) | 20 ft 7 11/16 in | 17 5/16 in |
| 6/12 | 1.5 | 6/16.97 (4.24/12) | 21 ft | 17⅞ in |
| 7/12 | 1.53 | 7/16.97 (4.95/12) | 21 ft 5 in | 18½ in |
| 8/12 | 1.563 | 8/16.97 (5.66/12) | 21 ft 10 11/16 in | 19¼ in |
| 9/12 | 1.601 | 9/16.97 (6.36/12) | 22 ft 4 15/16 in | 20 in |
| 10/12 | 1.641 | 10/16.97 (7.07/12) | 22 ft 11¾ in | 20 13/16 in |
| 12/12 | 1.732 | 12/16.97 (8.49/12) | 24 ft 3 in | 22⅝ in |
Sources
The geometry is exact trigonometry. Code minimum slopes are informational: the roofing maker’s instructions and the code your town adopts decide.
Common questions
How do you calculate a hip rafter length?
Multiply the common run (half the building’s width) by √(2 + (pitch ÷ 12)²). At 6/12 the factor is 1.5, so a 12 ft common run makes an 18 ft hip, before the tail and the ridge allowance.
What does 16.97 mean on a hip rafter?
The hip’s run for every 12 in of common run: 12 × √2 = 16.97 in. On a framing square you lay out the hip with the roof’s rise on the tongue and 17 on the blade.
How long is the ridge on a hip roof?
The building’s length minus its width, when all four sides have the same pitch. A 40 × 28 ft house has a 12 ft ridge; a square house has none, the hips meet at a point.
How much shorter is each jack rafter?
One spacing times the slope factor. At 6/12 with 16 in centres, each jack is 16 × 1.118 = 17.9 in shorter than the last.