Hip Rafter Calculator (Length & Cut Angle)
Size hip rafters instantly.
🕒 Last updated: September 4, 2026
Inputs
ℹ️Hip Roof: a standalone rectangular building hipped on all 4 corners. Hip & Valley: a wing/addition meeting a main roof — 2 valleys at its base, 2 hips at its far end. The rafter geometry is identical either way; only the corner labeling differs.
ℹ️Either dimension can go in either field — whichever is smaller automatically governs pitch, hip run, and jack run.
ℹ️If equal to the width, this becomes a pyramid hip roof with no ridge.
ℹ️Rise per 12 inches of run, applied uniformly to all roof planes — this calculator assumes equal pitch throughout.
ℹ️Horizontal projection of the rafter tail past the outer wall face, before any fascia trim.
ℹ️Hip/valley rafters commonly get bumped up one size from the commons, since they span considerably further for the same building width.
Waste
ℹ️Accounts for damaged pieces and layout adjustments on common and jack rafters — 10% is a common estimating default. Not applied to the fixed 4 hip/valley rafters.
Cost
Total Rafters Needed
116
110 common/jack (+10% waste) + 2 king common + 4 hip
Hip Rafter Length
22.41 ft
268.88" including overhang tail
Common Rafters
Run: 167.25" (13.94 ft)
Line length: 186.99"
Total (with 12" overhang): 200.41" (16.70 ft)
Plumb cut angle: 26.57°
Count: 22 (20 in-line, 10 per side + 2 king common)
Hip Rafters
Run: 236.53" (19.71 ft)
Line length: 250.88"
Plumb cut angle: 19.47° (shallower than common — longer diagonal run)
Count: 4
Jack Rafters
Per side: 10 (8 sides total)
Shortest: 31.31" — Longest: 192.3"
Increases by 17.89" per step, from the corner toward the common rafter.
Count: 80
Ridge Board
Length: 12 ft
Stock: 12 ft boards
Count: 1
Birdsmouth (Common Rafter Seat Cut)
Seat cut: 3.5"
Notch depth: 1.57" (max 1.81")
Heel height: 1.75"
Height above plate: 6.36"
Hip and jack rafters have their own compound seat/side cuts, not computed here — lay these out with a speed square or rafter table referencing the angles above.
Assumptions Used
Standard US light-frame stick construction, equal pitch on all roof planes. The shorter of your two entered dimensions always governs the ridge height, hip run, and jack rafter run — the longer dimension only sets the ridge length. Common rafter count includes king common rafters — the rafter from the center of each hip end wall (or each wall, for a pyramid hip) straight to the ridge end or apex — in addition to the in-line commons along the ridge. Hip and valley rafters are geometrically identical pieces of lumber (a valley is simply a hip turned inward at a roof intersection instead of an outside building corner), computed with direct trigonometry, not a code-table lookup. Jack rafter lengths follow the standard carpentry-table method (spacing × common rafter unit length factor per step) rather than a lookup table. Compound side-cut and backing-bevel angles — where a hip or jack rafter meets the ridge or another hip — are not computed here; lay those out with a speed square or rafter table referencing the plumb-cut angles shown above, the same scope boundary as this site's plain Rafter Calculator. This is a quantity and geometry takeoff only, not a substitute for an engineered design where required (long spans, unusual loads, or a girder/hip beam condition).
Bill of Materials
Main material: 22 pcs + recommended tools
+−
Bill of Materials
Main material: 22 pcs + recommended tools
Computed items reflect your entered dimensions and spacing; consumables below are general recommendations — actual needs vary by product, wind/seismic zone, and site conditions.
For Your Job
Common Rafters
Hip Rafters
Jack Rafters
Ridge Board
Rafter Ties / Connectors
General Tools & Consumables
Rafter ties / hurricane clips
Ridge board hangers/straps
Roof sheathing (OSB/plywood)
Framing nailer or hammer
Speed square / rafter square
Tape measure
Chalk line
4 ft level
Temporary bracing lumber
Safety harness & fall protection
Plan-view diagram simplified for clarity (not to scale) — jack rafter positions shown schematically, not an exact count match.
Looking for the verification checklist, reference tables, tips, or common mistakes?See the complete Hip Roof / Hip & Valley Rafter Calculator.
Hip rafter length and cut angle
A hip rafter's run is the common rafter's run scaled by √2 (it travels diagonally across a square corner), with the same rise — so its length and cut angle come directly from that right-triangle relationship.
This page defaults to a 28 ft building width at a 6/12 pitch — edit the inputs above to match your actual roof.
Hip Roof Calculator Formula: How Is It Determined?
Common, hip/valley, and jack rafter geometry, calculated separately and combined into a material takeoff.
Step 1 — Common Rafter (governs pitch height)
Run = (Width − Ridge Thickness) ÷ 2
Rise = Run × (Pitch ÷ 12)
Line Length = Run ÷ cos(Angle)
Ridge Length = Length − Width (0 if equal — a pyramid hip)
The shorter of your two entered dimensions ("Width") governs the ridge height and every downstream hip/jack calculation — the longer dimension only sets how much straight ridge exists between the hips.
Step 2 — Hip / Valley Rafter
Hip Run = Common Run × √2
Hip Rise = Common Rise (same ridge height)
Hip Length = √(Hip Run² + Hip Rise²)
Hip Angle = arctan(Hip Rise ÷ Hip Run) — shallower than the common angle
A hip or valley rafter travels diagonally across a square corner — its run is the common run scaled by √2, with the same rise, giving a longer, shallower-angled piece of lumber. This is why hip and valley rafters use identical math regardless of whether the corner is convex (hip) or concave (valley).
Step 3 — Jack Rafters
Common Difference = Spacing × Common Unit Length Factor
Jacks per Side = ceil(Common Run ÷ Spacing) − 1
Jack Length (step n) = n × Common Difference
Each jack rafter is one fixed length increment shorter than the next, all the way down to the corner — the standard carpentry-table method for jack rafter differences, applied here as direct trigonometry.
Worked Example
This example walks through your current inputs above, using the same steps as the Formula section.
Input Values Used
| Input | Value | Why it is used |
|---|---|---|
| Width / Length | 28 ft / 40 ft | Sets common run, hip run, and ridge length |
| Pitch | 6/12 (26.57°) | Sets rise for all rafter types |
| Spacing | 16" O.C. | Sets rafter counts |
Step 1 — Common Rafter
| Calculation | Result |
|---|---|
| Run | 167.25" |
| Rise | 83.63" |
| Total length (with overhang) | 200.41" |
| Ridge length | 12 ft |
Step 2 — Hip Rafter
| Calculation | Result |
|---|---|
| Run | 236.53" |
| Angle | 19.47° |
| Total length (with overhang) | 268.88" |
Step 3 — Jack Rafters & Totals
| Calculation | Result |
|---|---|
| Jacks per side (8 sides total) | 10 |
| In-line common rafters | 20 |
| King common rafters | 2 |
| Total rafters (with 10% waste on in-line commons/jacks) | 116 |
Therefore, this 28×40 ft 6/12 pitch hip roof needs approximately 116 rafters total (22 common, 4 hip, 80 jack).
Related Calculators
Disclaimer: This calculator provides approximate results for planning and estimation purposes only. Actual requirements may vary based on site conditions, materials, workmanship, and local building regulations. Always consult a qualified engineer, architect, or construction professional before making final decisions.