Hip and valley rafter calculator

Enter the building width, roof pitch and overhang to get the hip or valley length, the board to buy and the cuts. Equal-pitch roofs only; check your local building code.

Enter your measurements

ft
Hip roof: the narrower side of the building. Valley: the width of the wing that meets the main roof.
in 12
Rise in inches for every 12 in of level run (6 = 6/12). A roofer’s pitch gauge or a level and tape will read it.
in
The same overhang as the common rafters. The hip’s own tail runs 1.414 times as far, diagonally across the corner.
The size of the common and jack rafters. The hip or valley must be at least as deep as their plumb cut.
ft
The longer side. Leave blank to skip the ridge length.
More options: Ridge · Thickness · Seat
in
The hip is shortened by half the ridge’s 45° thickness.
in
A 2× board is 1½ in thick; a doubled hip is 3 in. Sets the drop and backing.
in
Used for the height above plate (HAP) the hip must match. Usually the wall plate width.
Hip or valley length (top edge centre, with overhang)232-7/8 in (19 ft 4-7/8 in)
Board to buy20 ft boards (2×8)
Hip or valley board depth
2×8 or deeper — at least the 6-1/8 in plumb cut of the commons (IRC R802.4.3)
Ridge to building corner (no overhang)
214-7/8 in (17 ft 10-7/8 in)
Overhang (tail) along the hip or valley
18 in
Hip or valley length per unit of common run
18 in per foot of common run (16.97 in of hip run)
Hip or valley slope (plumb cut angle)
19.5 degrees
Side (cheek) cut
45° saw bevel on the plumb line; on the top edge the line runs 43.3° to the edge — 46.7° from square (framing square: 12 and 11-5/16, mark along the 12)
Drop the hip: deepen its seat by
1/4 in
Or back it: bevel line below the top edge, each side
1/4 in
Backing bevel (saw tilt)
18.4 degrees
Hip or valley HAP at the wall line
4-1/8 in
Common rafter HAP (for reference)
4-3/8 in
Total rise (wall line to ridge centre)
72 in (6 ft)
Ridge board length (hip roof)
147-5/8 in (12 ft 3-5/8 in)
How we got this

Common run = 24 ft ÷ 2 − ½ × 1.5 in ridge = 143.25 in

Hip factor √(2 + (6/12)²) = 1.5 (= √(16.97² + 6²) ÷ 12, 18 in per foot)

143.25 in × 1.5 = 214.88 in; + overhang 12 in × 1.5 = 18.00 in → 232.88 in = 232-7/8 in (19 ft 4-7/8 in)

Board: 232.88 + 2.56 plumb-cut allowance (7.25 in × 6/12 ÷ 1.414) = 235.44 in, + 1 in trim = 236.44 in → buy 20 ft boards (2×8)

Slope = atan(6/12 ÷ 1.414) = 19.5°

Drop = ½ × 1.5 in × 6/12 ÷ 1.414 = 0.27 in (1/4 in); backing line = ½ × 1.5 in × sin 19.5° = 0.25 in; bevel = atan(sin 19.5°) = 18.4°

HAP: common 6.15 in plumb − 1.75 in heel = 4.40 in; hip = 4.40 in − 0.27 in drop = 4-1/8 in

Ridge = 36 ft − 24 ft + 1.5 in ridge + 1.5 in × 1.414 hip = 147-5/8 in (12 ft 3-5/8 in)

  • Measured along the centre of the top edge, from the ridge cut to the tail. The run is shortened by half the ridge’s 45° thickness (1-1/16 in measured level along the hip) for a hip framed against the ridge board; if it frames between the end common rafters instead, use half the 45° thickness of a common rafter.
  • Dropping lowers the whole hip so its top corners sit in the roof planes: lay out the birdsmouth with the commons’ HAP, then cut the seat 1/4 in deeper. Backing bevels the top edge to a shallow ridge instead.
  • Cheek cuts: mark the plumb line at the hip slope (speed square: the pitch on the HIP-VAL scale; framing square: 17 and the rise), then cut along it with the saw set to a 45° bevel. At the ridge the hip gets a single cheek cut against the ridge board, or a double one between the end commons.
  • Hips and valleys must be braced at the ridge to a bearing partition, or designed to carry that load (IRC R802.4.3).
Check your codeHips and valleys must be at least 2 in nominal thick and as deep as the rafters’ cut ends, and be braced at the ridge to a bearing wall or designed as beams (IRC R802.4.3; below 3/12 pitch, R802.4.4). Confirm with your building department or an engineer before you cut.

For this job · affiliate link
Speed square (7 in)The HIP-VAL scale on a speed square marks hip and valley plumb cuts at the common rafter’s pitch number — no 17-inch framing-square layout needed.
View on Amazon (opens in a new tab)

Next: Now cut the jack rafters that run from the walls to the hips.

Hip or valley length by building width (same pitch and overhang)

Hip or valley length by building width (same pitch and overhang)
Building width (outside of wall plates)Hip or valley length (top edge centre, with overhang)Board to buy
12 ft124-7/8 in (10 ft 4-7/8 in)12 ft boards (2×8)
16 ft160-7/8 in (13 ft 4-7/8 in)14 ft boards (2×8)
20 ft196-7/8 in (16 ft 4-7/8 in)18 ft boards (2×8)
24 ft232-7/8 in (19 ft 4-7/8 in)20 ft boards (2×8)
28 ft268-7/8 in (22 ft 4-7/8 in)24 ft boards (2×8)
32 ft304-7/8 in (25 ft 4-7/8 in)Over 24 ft — engineered lumber or a different framing plan (2×8)

A hip or valley runs at 45° across the corner of the building, so for every 12 in a common rafter runs, it runs 16.97 in. Besides the length you get the side (cheek) cuts and how much to drop or back a hip so the sheathing lies flat. Sizes and supports come from your building code. New to this? Words explained.

Why a hip runs 16.97 for every 12

On an equal-pitch roof the hips and valleys run at 45° to the walls. While a common rafter moves 12 in toward the ridge, the hip moves 12 in in both directions at once — √(12² + 12²) = 16.97 in of level run — and climbs the same rise. So the hip uses the same pitch number as the commons, but over 16.97 instead of 12. That is the “length hip or valley per foot run” line of a framing square’s rafter table.

Plan of a rectangular hip roof showing the ridge along the middle, four hip rafters at 45 degrees from the corners, short jack rafters from one wall up to a hip, and dashed common rafters from the wall to the ridge.
Plan view of a hip roof. Hips run at 45° from each corner to the ends of the ridge; jack rafters run from the walls up to the hips, commons from the walls to the ridge.
common run = building width ÷ 2 − ½ ridge thickness
hip length per foot of common run = √(16.97² + rise²)   (inches)
hip length = (common run + overhang) × √(16.97² + rise²) ÷ 12
hip slope = atan(rise ÷ 16.97)

Example: a 24 ft wide hip roof at 6/12 with a 1½ in ridge and a 12 in overhang. The common run is 144 − ¾ = 143¼ in. At 6/12 the hip runs √(16.97² + 6²) = 18.00 in for every foot of common run, a factor of 1.5, so the hip is 214.88 in from ridge to corner and the overhang adds 18 in along the hip: 232.88 in, about 19 ft 4-7/8 in. With 2×6 commons the hip must be a 2×8 or deeper, and a plumb-cut tail plus trim makes a 236.44 in board — 20 ft stock.

Hip and valley figures for equal-pitch roofs. Drop is for a single 1½ in hip (double it for a 3 in hip). The side-cut column is the framing-square setting to the nearest 1/16 in: 12 on the tongue, the figure on the blade, mark along the tongue. The last column is the same line as an angle from square, for a speed square or a saw.
PitchHip per foot of runHip slopeDrop, 1½ in hipBacking bevelSide cut (square)Side cut from square
4/1217.44 in13.3°3/16 in12.9°12 & 11-11/1645.8°
5/1217.69 in16.4°1/4 in15.8°12 & 11-1/246.2°
6/1218.00 in19.5°1/4 in18.4°12 & 11-5/1646.7°
7/1218.36 in22.4°5/16 in20.9°12 & 11-1/1647.2°
8/1218.76 in25.2°3/8 in23.1°12 & 10-7/847.9°
9/1219.21 in27.9°3/8 in25.1°12 & 10-5/848.5°
10/1219.70 in30.5°7/16 in26.9°12 & 10-5/1649.3°
12/1220.78 in35.3°1/2 in30.0°12 & 9-13/1650.8°

Laying out a hip rafter

  1. Ridge cut. Mark the plumb line at the hip slope — on a speed square, pivot to the common pitch on the HIP-VAL scale; on a framing square, 17 on the blade and the rise on the tongue.
  2. Shorten it. Move the plumb line back by half the 45° thickness of the ridge, measured level — about 1-1/16 in for a 1½ in ridge. (Framed between the end common rafters instead, use half the 45° thickness of a common.)
  3. Cheek cuts. Cut the plumb line with the saw at a 45° bevel. A hip against the ridge board takes a single cheek cut; one between the end commons takes a double cut to a point.
  4. Birdsmouth. Lay out the seat and heel with the same height above plate (HAP) as the commons, then deepen the seat by the drop — or keep the commons’ HAP and back the top edge.
  5. Tail. Step the overhang off at the hip slope (it runs 1.414 times the commons’ overhang) and give the tail a double cheek cut so fascia meets it from both walls.

Backing or dropping a hip

A hip’s top edge is flat, but the two roof planes meet at its centre line. Left alone, its outside corners stick up above the jack rafters and the sheathing rocks. There are two fixes. Dropping lowers the whole hip: cut the birdsmouth seat deeper by half the hip’s thickness × rise ÷ 16.97 — about 3/8 in for a 1½ in hip at 8/12. Backing bevels both sides of the top edge to a shallow peak: mark a line on each face half the thickness × sin(hip slope) below the top edge and plane or rip down to it; the saw tilt for that bevel is atan(sin(hip slope)), 23.1° at 8/12. Dropping is the quicker fix; backing takes longer but leaves the sheathing bearing on the hip’s full width.

A valley is the opposite: its top corners already sit below the roof planes, so the Navy’s framing manual notes that a valley needs neither backing nor dropping. The sheathing bears on the jacks either side.

Valleys, ridges and supports

  • Equal-span valleys run from the inside corner to the ridge, the same length as a hip on the same width, shortened by half the ridge’s 45° thickness.
  • A narrower wing needs a long (supporting) valley to the main ridge and a short valley that frames against it; the short valley’s run is half the wing’s width.
  • Hip roof ridge. On an equal-pitch hip roof the ridge line length is the building length minus its width. Framed with the hips against the ridge, the board runs longer at each end by half its thickness plus half the hip’s 45° thickness.
  • Size and support. IRC R802.4.3: hips and valleys at least 2 in nominal thick and not less in depth than the cut end of the rafter, braced at the ridge to a bearing partition or designed to carry the load. Below 3/12, R802.4.4 makes ridges, hips and valleys beams. Long hips are often doubled or engineered (LVL) — a design question, not a geometry one.
CautionHips and valleys carry the jack rafters and a share of the roof load, and the point where they meet the ridge is heavily loaded. Size them from your code, the manufacturer’s tables or an engineer, and get a permit where one is required.
CalculatorJack Rafter Calculator →Next, the jack rafters: each one is shorter than the last by the common difference.

The common rafters on the same roof come from the rafter length calculator, which also gives the HAP the hip must match.

What you’ll need

As an Amazon Associate we earn from qualifying purchases. Links to products are affiliate links — they cost you nothing extra and help keep these calculators free.

Frequently asked questions

How long is a hip rafter for a 24 ft wide roof at 6/12?

About 232-7/8 in (19 ft 4-7/8 in) along the top edge with a 12 in overhang and a 1½ in ridge — 214-7/8 in from ridge to corner plus 18 in of tail. At 6/12 a hip runs exactly 18 in per foot of common run. With the tail cut and trim, that is a 20 ft board.

Why is 16.97 used for hip rafters?

A hip runs at 45° to the walls, so for each 12 in a common rafter covers, the hip covers the diagonal of a 12 × 12 square: √(12² + 12²) = 16.97 in. It rises the same amount as the common over that distance, so you lay out hips with 17 on the framing square (or the HIP-VAL scale on a speed square) instead of 12.

What is the difference between backing and dropping a hip?

Both stop the hip’s top corners from poking above the roof planes. Dropping deepens the birdsmouth so the whole hip sits lower — by half its thickness × rise ÷ 16.97, about 1/4 in for a 1½ in hip at 6/12. Backing bevels both sides of the top edge to match the roof planes instead.

Do valley rafters need to be dropped or backed?

No. A valley’s top corners sit below the roof planes on either side, so it needs neither — the sheathing bears on the valley jacks. Its tail cut is a double side cut in the reverse direction to a hip’s.

How big should a hip rafter be?

The 2021 IRC (R802.4.3) requires hips and valleys at least 2 in nominal thick and not less in depth than the cut end of the rafter — the common rafter’s plumb cut, which is deeper than the board. With 2×6 commons at 6/12 that cut is 6-1/8 in, so the hip is a 2×8 or deeper. Long or heavily loaded hips are often doubled or engineered.

What angle do I cut a hip rafter at the ridge?

Mark the plumb line at the hip slope — 19.5° off square at 6/12, 25.2° at 8/12 — then cut along it with the saw at a 45° bevel for the cheek cut. On the top edge the cut line runs about 43.3° to the edge — 46.7° from square — at 6/12 (framing square 12 and 11-5/16).

Sources