Roof framing

Hip rafter calculator

Enter a building width and a roof pitch to get the hip rafter for a regular hip roof: its length and run, the plumb, seat, and cheek cut angles, the backing angle and hip drop, and the jack rafter lengths. The calculator uses the same formulas as the CutOnce app and is checked against the app's test vectors.

Scott Brady

By

Software engineer in Seattle and DIY builder who builds the CutOnce construction calculator.

Updated

A regular hip sits on a square corner, so the common run is half the building width. Pitch is the common rafter's rise per 12 in of run.

Hip rafter length
21 ft
Hip run
19 ft 9-9/16 in
Ridge height
7 ft
Plumb cut
19.5°
Seat cut
70.5°
Cheek cut
43.3°
Backing angle
18.4°
Hip drop
1/4 in
Jack common difference
17-7/8 in
Jack side cut
41.8°
First jacks (long to short)
14 ft 10-7/8 in · 13 ft 5 in · 11 ft 11-1/8 in · 10 ft 5-1/4 in

Cheek cut angles are measured from the board's top edge. Subtract from 90° for the angle from square.

App StoreGoogle Play
Free to download. 7-day trial of everything.

What a hip rafter is

A hip rafter runs from the corner of the building up to the ridge, along the line where two roof planes meet. Seen from above, it crosses the corner at 45 degrees, so it covers 16.97 in of run for every 12 in a common rafter covers. It climbs the same rise over that longer run, which makes it longer than a common rafter and gives it a lower slope. On a 28 ft wide building at 6/12, the hip is 21 ft long and the common rafter is 15 ft 7-13/16 in.

Common runCommon runRidgeCommon rafterHip rafterJack rafters
The worked example drawn to scale from above: a 28 ft wide building with jacks 16 in on center. Each hip is the diagonal of a square whose sides are the 14 ft common run, so the hip run is 19 ft 9-9/16 in.

What to enter and what you get back

Inputs

Building width
The width of the hip end, measured between the outside faces of the wall framing. The calculator takes half of it as the common run. If you already know the run, enter twice the run. The limit is 100 ft.
Roof pitch
The rise of the common rafters per 12 in of run. Both roof planes at the corner must have this pitch. A roof with a different pitch on each side of the hip is an irregular hip, which the app solves and this page does not.
Hip stock thickness
The actual thickness of the hip: 1-1/2 in for 2x lumber, 1-3/4 in for a single LVL. It is used only for the backing angle and the hip drop. Leave it blank to skip those two results.
Jack spacing
The on-center spacing of the jack rafters along the wall plate, usually 16 or 24 in. Leave it blank to skip the jack results.

Results

Hip rafter length
The line length along the hip from the center of the ridge to the corner of the wall plates. It does not include the tail, and nothing has been taken off for the thickness of the ridge.
Hip run
The level distance the hip covers, measured on the diagonal from the corner to the ridge. It is the common run times 1.4142.
Ridge height
The total rise of the roof: the common run in feet times the rise per foot. The hip and the common rafters share it. The height above plate of the rafters adds to it.
Plumb cut and seat cut
The angles of the vertical and level cuts on the hip, both measured from a line square across the board. The plumb cut angle is the slope of the hip, and the seat cut is 90 degrees minus that.
Cheek cut
The angle of the side cuts where the hip meets the ridge, marked on the top edge of the hip and measured from the long edge of the board.
Backing angle and hip drop
Two ways to bring the top of the hip into the roof planes. The backing angle is the bevel to plane onto each side of the top edge. The hip drop is how much to lower the hip if the top is left square.
Jack common difference and side cut
Each jack rafter is longer than the one before it by the common difference. The side cut is the angle across the top edge of a jack where it meets the hip.
First jacks
The four longest jack lengths. Jacks are spaced from the corner, and each length runs from the wall plate to the centerline of the hip.

A worked 28 ft, 6/12 example

A 28 ft wide building at 6/12 with a 1-1/2 in hip and jacks 16 in on center, the calculator's opening values. Every figure comes from the function that drives the calculator.

Common run14 ft28 ft / 2
Hip run19 ft 9-9/16 in14 ft x 1.4142
Ridge height7 ft14 ft x 6 in
Hip rafter length21 ft14 ft x 18.00 in, where 18.00 is sqrt(6 squared + 16.97 squared)
Plumb cut19.5°arctan(6 / 16.97)
Seat cut70.5°90° less 19.5°
Cheek cut43.3°arctan(16.97 / 18.00)
Backing angle18.4°arctan(6 / 18.00)
Hip drop1/4 in0.75 in x 6 / 16.97, which is 0.27 in
Jack common difference17-7/8 in16 in x 13.42 / 12
Jack side cut41.8°arctan(12 / 13.42)

The common rafter on this roof is 15 ft 7-13/16 in, so the hip is 5 ft 4-3/16 in longer. At 16 in on center, 10 jacks fit on each side of the hip, from 1 ft 5-7/8 in at the corner to 14 ft 10-7/8 in.

How a hip rafter is calculated

  1. 01

    The common run is half the building width

    On a regular hip roof the ridge is centered, so the hip end and the two sides all have the same run. A 28 ft building has a 14 ft common run.

  2. 02

    The hip run is the common run times the square root of 2

    In plan, the hip is the diagonal of a square whose sides are the common run. The diagonal of a square is its side times 1.4142. Per foot of common run that is 16.97 in, the unit run of a hip. Framers round it to 17.

  3. 03

    The hip length is the hip run and the rise in a right triangle

    The hip climbs the same rise as the common rafters. For each foot of common run it rises 6 in and runs 16.97 in, so its length per foot is the square root of 6 squared plus 16.97 squared, which is 18.00 in at 6/12. Multiply by the 14 ft of run for 21 ft.

  4. 04

    The plumb and seat cuts come from the hip's own slope

    The hip rises 6 in for every 16.97 in of run, not for every 12 in. Its slope is the arctangent of 6 over 16.97, or 19.5 degrees. The common rafters on the same roof are at 26.6 degrees. The seat cut is square to the plumb cut.

  5. 05

    The drop comes from the hip thickness and the backing angle from the pitch

    The centerline of the hip crosses the plates at the corner. Its two edges cross the plate lines farther up the hip, half the hip thickness measured along the hip run. Over that distance the hip rises half the thickness times the rise over 16.97. That is the hip drop, 1/4 in for a 1-1/2 in hip at 6/12. The backing angle is the arctangent of the rise over the hip's unit length.

  6. 06

    The jacks step by a common difference

    Jacks are common rafters cut short where they meet the hip. A jack that is 16 in farther from the corner has 16 in more run, so it is longer by 16 in of run at the common rafter's slope: 17-7/8 in at 6/12. At 24 in on center the difference is 26-13/16 in.

How to lay out a hip rafter

  1. 01

    Mark the plumb cut at the ridge

    Pick a straight board and put the crown up. Draw a plumb line near the top end at the hip's plumb cut angle, 19.5 degrees at 6/12. On a framing square, hold the rise on the tongue and 17 on the body. On a speed square, use the hip-val scale. This line is the center of the ridge.

  2. 02

    Measure the line length to the seat

    From that plumb line, measure the hip length along the top edge and draw another plumb line. That is 21 ft in the example. This line is the outside corner of the wall plates. Do this before shortening or cutting the ridge end, because the cheek cuts remove the line you are measuring from.

  3. 03

    Shorten the hip for the ridge

    The line length runs to the center of the ridge, so the hip has to come back by half the 45 degree thickness of the ridge board. For a 1-1/2 in ridge that is 1-1/16 in. Back at the ridge end, measure it level, square off the first plumb line toward the seat, and draw a second plumb line. Measured along the edge of the board it is 1-1/8 in at 6/12. If the hip lands between two common rafters at the end of the ridge, use the thickness of a common rafter.

  4. 04

    Cut the cheeks

    A hip that fits into the corner between two rafters or two ridges gets two cheek cuts that meet in a point on its centerline. The point belongs on the shortened plumb line. On the top edge, mark the centerline where that line crosses it, and draw a line from the mark back to each face at 43.3 degrees from the long edge, the 6/12 figure. The two lines reach the faces half the hip thickness farther from the ridge, 3/4 in measured level for a 1-1/2 in hip. Draw a plumb line down each face from there and cut along it with the saw at a 45 degree bevel, so the two cuts meet at the centerline mark.

  5. 05

    Lay out the seat cut

    At the plumb line for the corner of the plates, measure down the same height above plate as the common rafters. If the hip will not be backed, take the hip drop off that height. Draw the level seat line from the mark toward the ridge end of the board. The section on dropping and backing below works through the numbers.

  6. 06

    Add the tail

    The hip tail covers the overhang on the diagonal, so its run is the overhang times 1.4142. A 12 in overhang gives the hip 16.97 in of tail run. At 6/12 that is 18 in of tail measured along the hip, against 13-7/16 in on a common rafter. The end of the tail gets two cheek cuts so the fascia from each side lands on it.

  7. 07

    Cut the jacks in pairs

    Lay out each jack like a common rafter from the plate up, with the same birdsmouth and tail. Its length to the centerline of the hip comes from the common difference. Shorten it by half the 45 degree thickness of the hip, 1-1/16 in measured level for a 1-1/2 in hip, which is 1-3/16 in along the jack at 6/12. The shortened length is measured on the centerline of the jack. Mark it on the centerline of the top edge and draw the side cut through the mark, 41.8 degrees from the long edge at 6/12. From the point where that line reaches the face you will saw from, draw a plumb line at the common rafter's angle, and cut along it with the saw at 45 degrees. Each length needs one jack beveled to the left and one to the right.

For the cuts on the common rafters, see How to cut rafters.

Hip rafter chart by pitch

Length and angles for a regular hip at each pitch. The length is per foot of common run, and the multiplier is the same figure divided by 12. The angles depend only on the pitch.

PitchHip length per ft of runMultiplierPlumb cutSeat cutCheek cutBacking angle
3/1217-1/4 in1.43610.0°80.0°44.6°9.9°
4/1217-7/16 in1.45313.3°76.7°44.2°12.9°
5/1217-11/16 in1.47416.4°73.6°43.8°15.8°
6/1218 in1.50019.5°70.5°43.3°18.4°
7/1218-3/8 in1.53022.4°67.6°42.8°20.9°
8/1218-3/4 in1.56325.2°64.8°42.1°23.1°
9/1219-3/16 in1.60127.9°62.1°41.5°25.1°
10/1219-11/16 in1.64130.5°59.5°40.7°26.9°
12/1220-13/16 in1.73235.3°54.7°39.2°30.0°

Jack rafter difference and side cut by pitch

The common difference between neighboring jacks at 16 and 24 in on center, and the side cut angle on the top edge of the jack.

PitchDifference at 16 in OCDifference at 24 in OCJack side cut
3/1216-1/2 in24-3/4 in44.1°
4/1216-7/8 in25-5/16 in43.5°
5/1217-5/16 in26 in42.7°
6/1217-7/8 in26-13/16 in41.8°
7/1218-1/2 in27-13/16 in40.8°
8/1219-1/4 in28-7/8 in39.8°
9/1220 in30 in38.7°
10/1220-13/16 in31-1/4 in37.5°
12/1222-5/8 in33-15/16 in35.3°

These are the figures printed in the rafter table on a framing square. Under the 6 in mark the table gives 18.00 for the length of the hip or valley per foot of run, 17-7/8 and 26-13/16 for the difference in length of jacks, 10-3/4 for the side cut of jacks, and 11-5/16 for the side cut of the hip or valley. To use a side cut figure, hold it on one arm of the square and 12 on the other, both on the same edge of the board, and mark along the arm that reads 12. That line is at the angle this chart gives.

Hip rafter length by building width

Line length of the hip for common building widths, from the center of the ridge to the corner of the plates. Add the tail and take off the ridge shortening before you cut.

Width4/126/128/1210/1212/12
16 ft11 ft 7-1/2 in12 ft12 ft 6-1/16 in13 ft 1-9/16 in13 ft 10-1/4 in
20 ft14 ft 6-3/8 in15 ft15 ft 7-5/8 in16 ft 5 in17 ft 3-7/8 in
24 ft17 ft 5-1/4 in18 ft18 ft 9-1/8 in19 ft 8-3/8 in20 ft 9-7/16 in
28 ft20 ft 4-1/8 in21 ft21 ft 10-11/16 in22 ft 11-3/4 in24 ft 3 in
32 ft23 ft 3 in24 ft25 ft 3/16 in26 ft 3-3/16 in27 ft 8-9/16 in
36 ft26 ft 1-13/16 in27 ft28 ft 1-11/16 in29 ft 6-9/16 in31 ft 2-1/8 in
40 ft29 ft 11/16 in30 ft31 ft 3-1/4 in32 ft 9-15/16 in34 ft 7-11/16 in

Dropping or backing the hip

The roof planes on each side of a hip meet along its centerline. A hip with a square top is too high at its two edges, because the edges sit closer to the ridge than the centerline does where they cross the plates. On a 1-1/2 in hip at 6/12 the edges are 1/4 in above the roof planes. Left alone, the sheathing rides on the edges of the hip and lifts off the jacks beside it. There are two fixes, and a hip gets one of them, not both.

Dropping: lower the whole hip by the hip drop. The drop is half the hip thickness times the rise over 16.97. Lay out the seat cut with the height above plate reduced by the drop, and the edges of the hip come down into the roof planes. The centerline then sits slightly below them. Most framed roofs are built this way because the drop costs no extra cuts.

Backing: bevel the top of the hip on both sides, from the centerline down to each edge, at the backing angle. At 6/12 that is 18.4 degrees. The seat cut keeps the full height above plate. Backing takes a table saw or a power plane and is used where the hip is exposed or the sheathing needs full bearing on the hip.

Hip drop by pitch and hip thickness. A doubled or engineered hip is thicker, so it drops more: a 3-1/2 in hip at 6/12 drops 5/8 in.

Hip thickness4/126/128/1210/1212/12
1-1/2 in3/16 in1/4 in3/8 in7/16 in1/2 in
1-3/4 in3/16 in5/16 in7/16 in1/2 in5/8 in
3 in3/8 in1/2 in11/16 in7/8 in1-1/16 in
3-1/2 in7/16 in5/8 in13/16 in1 in1-1/4 in

The seat cut on a hip

The hip has to hold the roof planes at the same height as the common rafters, so it starts with their height above plate. Take 2x6 common rafters at 6/12 with a 3-1/2 in seat, which have a height above plate (HAP) of 4-3/8 in. A dropped 1-1/2 in hip gets 4-3/8 in less the 1/4 in drop, or 4-1/8 in, measured down the plumb line at the corner from the top edge of the hip. The seat line is level from that mark.

A hip is usually deeper than the common rafters, and all of the extra depth comes out at the seat. A 2x8 hip at 6/12 is 7-11/16 in deep along a plumb line. With a 4-1/8 in HAP, the heel of the notch is 3-9/16 in tall, measured up the plumb line from the bottom edge of the hip to the seat. The notch reaches 3-3/8 in into the board measured square across it and leaves 3-7/8 in. The IRC limits a notch at the end of a sawn-lumber rafter to one quarter of its depth (R802.7.1, which applies R502.8.1). On a 2x8 that is 1-13/16 in, so this notch is over the limit. R802.7.1.1 permits a deeper notch on a cantilevered rafter only when at least 3-1/2 in of the rafter remains and the cantilever is no longer than 24 in. The cantilever to check is the hip's own, which is the overhang times 1.4142 in run, so a hip reaches 24 in with an overhang of about 17 in. A seat this deep is common on hips. Ask your building department or the roof's designer which rule applies to yours and how it measures the cantilever. The calculator does not check it, and the app's seat cut results for a hip are measured differently from the heel height here.

What size the hip needs to be

The calculator works out geometry and does not size the hip. The IRC requires hip and valley rafters to be at least 2 in nominal thickness and at least as deep as the cut end of the rafters that meet them (R802.4.3). The usual reading is that the cut end of a jack is its plumb cut, which is the stock depth divided by the cosine of the roof angle. A 2x6 jack at 6/12 has a 6-1/8 in plumb cut, so a 2x6 hip is too shallow for it and a 2x8 covers it. At 12/12 the same jack needs a 2x10 hip.

The smallest hip from 2x6 to 2x12 that is at least as deep as the plumb cut of the common and jack rafters.

Common rafters4/126/128/1210/1212/12
2x4 (3-1/2 in)2x62x62x62x62x6
2x6 (5-1/2 in)2x82x82x82x82x10
2x8 (7-1/4 in)2x102x102x102x122x12
2x10 (9-1/4 in)2x122x122x12over 2x12over 2x12

The same section requires a hip or valley to be supported at the ridge by a brace to a bearing partition, or to be designed to carry and distribute the load at that point. The rafter span tables in R802.4.1 are for common rafters, so have a long hip, or one that carries more than its jacks, sized by an engineer. Where the roof pitch is less than 3/12, the IRC requires ridges, hips, and valleys that support rafters to be designed as beams (R802.4.4), and the sizes in the table above do not apply. Section numbers follow the 2021 IRC. Your jurisdiction may have adopted another edition or amended it.

How we verify this math

Common mistakes

Laying out the hip with the common rafter's angle
The common rafters at 6/12 have a 26.6 degree plumb cut. The hip on the same roof has a 19.5 degree plumb cut. Use 17 on the body of the framing square for a hip, not 12, or the hip-val scale on a speed square.
Using the common rafter multiplier for the length
Multiplying the 14 ft run by the common rafter's length per foot gives 15 ft 7-13/16 in, which is the common rafter. The hip is 21 ft. Use the hip multiplier from the chart.
Measuring the ridge shortening along the board
The 1-1/16 in shortening is a level distance, measured square off the plumb line. Measured along the sloping edge it would be 1-1/8 in at 6/12, and the difference grows with the pitch.
Leaving a square-topped hip at full height
A 1-1/2 in hip at 6/12 that is neither dropped nor backed holds the sheathing 1/4 in off the jacks next to it. Drop the hip or back it.
Giving the hip tail the common rafter's overhang
A 12 in overhang is 16.97 in of run on the hip. A hip tail cut to the common rafter's tail length stops short of the fascia corner.
Cutting every jack with the bevel the same way
The jacks on the two sides of a hip are mirror images. Cut each length once with the saw tilted left and once tilted right.
Cutting jacks to the centerline length
The jack lengths run to the centerline of the hip. A jack cut to that length is too long by half the 45 degree thickness of the hip, 1-1/16 in of run for a 1-1/2 in hip.

Common questions

How long is a hip rafter?
Multiply the common run by the hip multiplier for the pitch. A 28 ft wide building has a 14 ft common run, and at 6/12 the multiplier is 1.500, so the hip is 21 ft. That is the line length from the center of the ridge to the corner of the plates, before the ridge shortening and without the tail.
How do you find the run of a hip rafter?
Multiply the common run by 1.4142, the square root of 2. The hip crosses a square corner on the diagonal, so it runs 16.97 in for every 12 in of common run. With a 14 ft common run the hip run is 19 ft 9-9/16 in.
What angle do you cut a hip rafter?
The plumb cut is the arctangent of the rise over 16.97. At 6/12 it is 19.5 degrees, and at 12/12 it is 35.3 degrees. The seat cut is 90 degrees minus the plumb cut. The cheek cuts at the ridge are made with the saw at a 45 degree bevel along the plumb line. The chart on this page lists every angle by pitch.
Why is the hip longer than the common rafter?
Both climb to the same ridge, but the hip travels farther to get there because it runs out to the corner on the diagonal. It covers 16.97 in of run for every 12 in the common rafter covers. At 6/12 that makes it 18.00 in long per foot of common run, against 13.42 in for the common rafter.
What is the difference between dropping and backing a hip?
Both keep the square top edges of the hip from standing above the roof planes. Dropping lowers the whole hip by cutting the seat deeper, 1/4 in for a 1-1/2 in hip at 6/12. Backing leaves the hip at full height and bevels both sides of its top edge, at 18.4 degrees for 6/12. Use one or the other.
How much do you drop a hip rafter?
Half the thickness of the hip times the rise over 16.97. For a 1-1/2 in hip at 6/12 that is 0.75 x 6 / 16.97, or 0.27 in, which rounds to 1/4 in. A 3-1/2 in hip at the same pitch drops 5/8 in. The table above lists other pitches and thicknesses.
How deep is the birdsmouth on a hip rafter?
Deep enough to leave the same height above plate as the common rafters, less the hip drop if the hip is not backed. With 2x6 commons at 6/12 and a 4-3/8 in HAP, a dropped 2x8 hip keeps 4-1/8 in above the plate, and the heel of its notch is 3-9/16 in tall, measured up the plumb line from the bottom edge to the seat. A hip one size deeper than the commons gets a much deeper notch than they do, and that notch can pass the IRC limits covered in the seat cut section above.
What size should a hip rafter be?
At least 2 in nominal thickness and at least as deep as the plumb cut of the rafters that meet it (IRC R802.4.3). In practice that is one lumber size deeper than the commons at moderate pitches: a 2x8 hip for 2x6 rafters at 6/12. The code does not give a span table for hips, so a long or heavily loaded hip needs an engineer. Below 3/12 the hip has to be designed as a beam (R802.4.4).
How are the jack rafters calculated?
Each jack is longer than the one below it by the common difference, which is the spacing times the common rafter's length per foot, divided by 12. At 6/12 and 16 in on center it is 17-7/8 in. All the jacks share one side cut, 41.8 degrees on the top edge at 6/12, and each is shortened by half the 45 degree thickness of the hip.
What is the unit run of a hip rafter in metric?
The ratio is the same in any unit: the hip runs 1.4142 times the common run. For every 1000 mm of common run a regular hip runs 1414 mm. This page works in feet and inches. The CutOnce app runs the hip and valley calculator in millimeters.
Is a valley rafter calculated the same way?
A regular valley has the same length and the same cut angles as a regular hip with the same run and pitch. Its jacks run from the ridge down to the valley instead of from the plate up to the hip. A valley is not dropped, because its top edges already sit below the roof planes. The valley rafter calculator on this site covers it.
Does this handle irregular (unequal pitch) hips?
This page solves the regular hip, where both roof planes have the same pitch. The app also solves irregular hips, where the two planes have different pitches. There the hip no longer crosses the corner at 45 degrees, and each side gets its own backing angle, drop, and jack lengths.
Why do both slopes show the same HAP on an unequal-pitch hip?
On an unequal-pitch hip the app holds one height above plate for both slopes. The slope with the shorter HAP sets it, which is not always the steeper one, and the birdsmouth on the other slope gets a deeper plumb cut so that both sides land at the same height. The matching HAP is intended and is not a rounding effect.

Frame the whole hip roof in the app

The app solves regular and irregular hips and valleys, adds the overhang, the ridge deduction, and the seat cut, lists every jack, and prints a cut plan. It works offline, and it is a one-time purchase with no subscription.

App StoreGoogle Play

See also