Hip Roof Calculator
Hip and jack rafter lengths, the ridge, and the roof area of a hip roof, by a published framing method with each equation shown.
By Marko Visic, BSc Physics · Updated November 25, 2026
The building
Measure the building at the outside of the wall framing, and the overhang level from the wall to the rafter tails. The longer side is taken as the length.
The framing
Run 22 ÷ 2 = 11 ft, or 11 × 12 = 132 in: the units of run for the commons and the hips alike.[1] The 45° thickness of 1.5 in stock is 1.5 × √2 = 2.12 in, half of it 2.12 ÷ 2 = 1.06 in, and half the 90° thickness 1.5 ÷ 2 = 0.75 in.[2]
Ridge: line length 28 − 22 = 6 ft, the building's length less its span.[1] With the hips framed against the ridge (single cheek cuts), each end gains half the ridge's thickness and half the hip's 45° thickness: 6 × 12 + 2 × (1.06 + 0.75) = 75.62 in (6 ft 3 5/8 in).[1]
Hip rafter: unit line length √(16.97² + 4²) = 17.44 in per foot of run[1], line length 11 × 17.44 = 191.84 in (15 ft 11 13/16 in) to the center of the ridge. Take 2.12 ÷ 2 = 1.06 in (1 1/16 in) off the top, measured level: half the 45° thickness of the ridge board.[1]
Tail: the commons' projection is 24 ÷ 12 = 2 ft, so the hip's tail is 2 × 17.44 = 34.88 in (2 ft 10 7/8 in) past the plate.[1]
The hip rises 4 in for every 16.97 in of its own run; lay it out on the square at 4 and 17.[1] Its slope is atan(4 ÷ 16.97) = 13.26°, or 4 × 12 ÷ 16.97 = 2.83 in per 12 in.[1] Bevel its top edge to the roof planes at atan(4 ÷ 17.44) = 12.92° (backing), or drop the hip 0.75 × 4 ÷ 16.97 = 0.18 in (3/16 in) with a deeper birdsmouth.[1]
Hip jacks: shortened common rafters with the common unit line length √(12² + 4²) = 12.65 in.[1] They keep the commons' spacing from the ridge end common, half the span from the corner, so the longest is 16 in closer to the corner, and with the hips at 45° each jack's run is its distance from the corner.[1] The spacing is 16 ÷ 12 = 1.333 ft of run, so neighbors differ by 1.333 × 12.65 = 16.86 in (16 7/8 in), the common difference.[1]
| Run, in = 132 − k × 16 | Units = run ÷ 12 | Length, in = units × 12.65 |
|---|---|---|
| 116 | 9.667 | 122.29 = 10 ft 2 5/16 in |
| 100 | 8.333 | 105.41 = 8 ft 9 7/16 in |
| 84 | 7 | 88.55 = 7 ft 4 9/16 in |
| 68 | 5.667 | 71.69 = 5 ft 11 11/16 in |
| 52 | 4.333 | 54.81 = 4 ft 6 13/16 in |
| 36 | 3 | 37.95 = 3 ft 1 15/16 in |
| 20 | 1.667 | 21.09 = 1 ft 9 1/16 in |
| 4 | 0.333 | 4.21 = 4 3/16 in |
Take 1.06 in (1 1/16 in) off the top of each jack, half the hip's 45° thickness, measured level.[1] Jack tails are figured like common tails: 2 × 12.65 = 25.3 in (2 ft 1 5/16 in).[1] 132 ÷ 16 = 8.25 → 9 spacings reach the corner, so 9 − 1 = 8 jacks sit on each side of each hip, 4 × 2 × 8 = 64 in all.
Roof surface: at the roof edges 28 + 2 × 2 = 32 by 22 + 2 × 2 = 26 ft, 32 × 26 = 832 sq ft in plan; pitch multiplier √(1 + (4 ÷ 12)²) = 1.054093, so 832 × 1.054093 = 877.01 sq ft of roof, or 877.01 ÷ 100 = 8.77 squares.[3]
Edges: eaves 2 × (32 + 26) = 116 ft; each hip from the eave corner (11 + 2) × 17.44 = 226.72 in, or 226.72 ÷ 12 = 18.89 ft; hip and ridge cap 4 × 18.89 + 6 = 81.56 ft.
A hip roof calculator turns a building's length, width and pitch into the ridge length, the hip and jack rafter lengths and the roof area. This one follows the U.S. Navy's Builder Basic: hips are figured on a 16.97 in unit run, jacks on 12 in, and the ridge's line length is the length minus the width.[1]

Drawing: CalculateMyRoof · CC BY 4.0 · How to reuse
How it works
Common rafters run square to the walls and use a unit run of 12 in: the rafter climbs one unit rise for every foot of run.[1] A hip runs at 45° to the walls, across the diagonal of each foot of common run, so its unit run is √(12² + 12²) = 16.97 in, rounded to 17 in on the framing square.[1] Hips and commons cover the same units of run, half the building's width, so each rafter's line length is its unit line length (the bridge measure) times that run.[1]
The ridge's line length is the building length minus the span, its width; the overhang doesn't change it.[1] A hip framed against the ridge gets a single cheek cut at the top; one framed between the ridge end common rafters gets a double cheek cut.[1] The ridge board is cut longer than its line length by an amount that depends on that joint, and the hip is cut shorter at the top by half the 45° thickness of whatever it meets, measured level.[1]
Hip jacks are common rafters cut short where they meet the hip, on the same spacing as the commons. The ridge end common sits half the span from the corner, so the longest jack stands one spacing closer to the corner, and each loses half the hip's 45° thickness at the top.[1]
Worked example
A building 22 by 28 ft at 4:12 with a 24 in overhang, the hips framed against the ridge (single cheek cuts) and the rafters 16 in on center:
- Run 22 ÷ 2 = 11 ft, or 11 × 12 = 132 in; overhang 24 ÷ 12 = 2 ft of run.
- Stock: the 45° thickness of 1.5 in lumber is 1.5 × √2 = 2.12 in, half of it 2.12 ÷ 2 = 1.06 in, and half the 90° thickness 1.5 ÷ 2 = 0.75 in.[2]
- Ridge: line length 28 − 22 = 6 ft, cut to 6 × 12 + 2 × (1.06 + 0.75) = 75.62 in (6 ft 3 5/8 in) with the hips framed against it.[1]
- Hip: unit line length √(16.97² + 4²) = 17.44 in; line length 11 × 17.44 = 191.84 in (15 ft 11 13/16 in), less 1.06 in (1 1/16 in) at the ridge; tail 2 × 17.44 = 34.88 in (2 ft 10 7/8 in), the hip's bridge measure times the commons' projection.[1]
- Hip slope atan(4 ÷ 16.97) = 13.26°; backing bevel atan(4 ÷ 17.44) = 12.92°, or a drop of 0.75 × 4 ÷ 16.97 = 0.18 in (3/16 in).[1]
- Jacks: common unit line length √(12² + 4²) = 12.65 in; spacing 16 ÷ 12 = 1.333 ft, so the common difference is 1.333 × 12.65 = 16.86 in (16 7/8 in).[1]
- The longest jack runs 132 − 16 = 116 in, 116 ÷ 12 = 9.667 ft, and is 9.667 × 12.65 = 122.29 in (10 ft 2 5/16 in) long, less 1.06 in, half the hip's 45° thickness, at the hip.[1] 132 ÷ 16 = 8.25 → 9 spacings reach the corner, so 9 − 1 = 8 jacks sit on each side of each hip, 4 × 2 × 8 = 64 in all.
- Roof surface: 28 + 2 × 2 = 32 by 22 + 2 × 2 = 26 ft at the eave edges, 32 × 26 = 832 sq ft in plan; multiplier √(1 + (4 ÷ 12)²) = 1.054093, so 832 × 1.054093 = 877.01 sq ft of roof, or 877.01 ÷ 100 = 8.77 squares.[3]
- Hips for cap: each (11 + 2) × 17.44 = 226.72 in from the eave corner, 226.72 ÷ 12 = 18.89 ft; hips and ridge 4 × 18.89 + 6 = 81.56 ft.
Hip roof formulas
- Run = width ÷ 2, in feet: the units of run for commons and hips.
- Ridge (line length) = length − width.[1]
- Hip unit line length = √(16.97² + rise²); hip length = run × that.[1]
- Common and jack unit line length = √(12² + rise²); a jack's length = its distance from the corner in feet × that.[1]
- Common difference = spacing ÷ 12 × the common unit line length.[1]
- Hip slope = atan(rise ÷ 16.97); backing bevel = atan(rise ÷ hip unit line length).[1]
- Roof area = plan area at the eave edges × √(1 + (rise ÷ 12)²); every plane of a hip roof has the same pitch, so one multiplier covers the triangles too.
The backing bevel comes from the geometry of the two roof planes meeting over the hip: the tangent of the bevel equals the sine of the hip's slope, which is the rise divided by the hip's unit line length.
How to measure a hip roof
- Length and width. For framing, measure the building at the outside of the wall framing. For shingles, measure the roof at its eave edges, or add the overhang to each side.
- Overhang. Measure it level, straight out from the wall to the edge of the rafter tails.
- Pitch. Find the rise per foot of run with the roof pitch calculator, from a level and tape, an angle or your phone. A hip roof has the same pitch on all four sides unless it was framed otherwise.
For a roof that isn't a simple rectangle, the roof area calculator takes measured planes.
Shingles for a hip roof
Shingles cover the roof surface, and hip and ridge cap covers the hips and the ridge. In the worked example that is 877.01 sq ft, 8.77 squares, and 4 × 18.89 + 6 = 81.56 ft of hips and ridge, each hip measured from the eave corner. The shingle calculator turns those into bundles of a named shingle, and the roofing calculator lists every material for a hip roof.
Common questions
How do you calculate a hip rafter length?
Multiply the run, half the building's width, in feet by the hip's unit line length. On a 22 ft wide building at 4:12 that is 11 × 17.44 = 191.84 in (15 ft 11 13/16 in), where √(16.97² + 4²) = 17.44.[1] Then take half the ridge's 45° thickness off the top and add the tail.[1]
How do you find the ridge length of a hip roof?
Subtract the width from the length: 28 − 22 = 6 ft is the line length.[1] The board itself is cut longer for the hips to bear on: with the hips framed against it, 6 × 12 + 2 × (1.06 + 0.75) = 75.62 in.[1]
How do you calculate the area of a hip roof?
Take the plan area at the eave edges and multiply it by the pitch multiplier: 32 × 26 = 832 sq ft in plan and 832 × 1.054093 = 877.01 sq ft of roof at 4:12, with √(1 + (4 ÷ 12)²) = 1.054093. The triangular ends need nothing extra: they slope at the same pitch as the long sides.
Why does a hip rafter use a longer unit run?
The hip crosses each foot of run on the diagonal of a square: √(12² + 12²) = 16.97 in. The calculation uses that figure and the framing square rounds it to 17 in.[1]
What is the pitch of a hip rafter?
It is flatter than the roof. At 4:12 the hip rises 4 in per 16.97 in of its own run: atan(4 ÷ 16.97) = 13.26°, or 4 × 12 ÷ 16.97 = 2.83 in per 12 in.[1] The roof planes on either side keep their 4:12.
How do you calculate hip jack rafters?
Each jack's run is its distance from the building corner, and neighbors differ by the common difference, the spacing in feet times the common unit line length: 1.333 × 12.65 = 16.86 in at 16 in on center and 4:12.[1] The worked example has 8 on each side of each hip, 4 × 2 × 8 = 64 in all.
How do you work out a pyramid hip roof?
Enter the same length and width. The ridge's line length, length minus width, comes to nothing, so the four hips meet at the peak; their lengths and the jacks work out the same way.[1]
Methodology & sources
The framing method is the U.S. Navy's Builder Basic (NAVEDTRA 14043A, October 2010), chapter 10, on hip rafters, the hip roof ridge and hip jacks, read on Nov 20, 2026. The engine is tested on every build against the manual's own worked numbers: a hip rafter on a 30 ft span at 8:12, its tail over an 18 in overhang, and the common difference of hip jacks 16 in on center, each within 1/16 in.[1]
The hip slope, the backing bevel and the drop are geometry, calculated with the equations shown: the tangent of the bevel equals the sine of the hip's slope, and the drop is half the hip's thickness taken at the hip's slope.[1] Unit line lengths are printed to two decimals, as the manual prints them, and every result is computed from the numbers as printed.
Assumptions: one pitch on all four sides of a rectangular building; ridge, hips and commons in 2x stock, 1 1/2 in thick;[2] jacks on the commons' spacing from the ridge end common rafter; the overhang taken level to the rafter tails; lengths measured along the rafter's measuring line, with deductions measured level. The calculator doesn't cover unequal pitches or rafter sizes; the valley rafter calculator works the valleys where an addition meets the roof, and the rafter length calculator lays out a common rafter with its birdsmouth.
Sources
- [1] U.S. Navy, Naval Education and Training Professional Development and Technology Center. Builder Basic, NAVEDTRA 14043A (October 2010), Chapter 10: Rough Carpentry. p. 10-51, p. 10-74, p. 10-76, p. 10-91, pp. 10-73 to 10-74, pp. 10-73, 10-89 and 10-95, pp. 10-75 to 10-76, pp. 10-76 to 10-77, pp. 10-77 to 10-79, pp. 10-88 to 10-89, pp. 10-89 to 10-90. Retrieved Nov 20, 2026. media.defense.gov
- [2] U.S. Department of Commerce, NIST. Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (January 2025). Table 3. Retrieved Oct 28, 2026. nist.gov
- [3] National Roofing Contractors Association. Roofing Guidelines glossary: Square. Retrieved Oct 9, 2026. nrca.net
Change log: first published November 25, 2026.
Related
- Rafter length calculator
- Valley rafter calculator
- Roof area calculator
- Roof pitch calculator
- Roof volume calculator
- Shingle calculator
- Roof flashing calculator
- Roof sheathing calculator
- Roofing square
- Roof pitch chart
By Marko Visic, BSc Physics. Updated November 25, 2026.