CalculateMyRoof

Valley Rafter Calculator

Valley rafters, their jacks and the valleys' length on the roof for a gable addition that shares the main roof's pitch, worked the way the Navy trains its builders, with the lining the code asks for in each valley.

By Marko Visic, BSc Physics · Updated November 25, 2026

The roofs

Spans are wall to wall at the outside of the framing; the overhang goes in its own field. The wider span is taken as the main roof.

The framing

Runs: main roof 28 ÷ 2 = 14 ft, addition 24 ÷ 2 = 12 ft: the units of run.[1] The valley's unit of run is the diagonal of the 12 in square, √(12² + 12²) = 16.97 in.[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 (1 1/16 in).[4]

Valley rafters: unit line length √(16.97² + 6²) = 18 in per foot of run. The addition is narrower, so its ridge sits lower.[1] The long valley runs from an inside corner to the main ridge: 14 × 18 = 252 in (21 ft 0 in), framed to the ridge with a single side cut. The short valley runs from the other inside corner to the long one: 12 × 18 = 216 in (18 ft 0 in), cut square.[1]

Tail: 12 ÷ 12 = 1 ft of overhang, 1 × 18 = 18 in (1 ft 6 in) past the plate, figured as for a hip rafter, with a double side cut that makes an inside corner.[1] A valley rafter needs no backing or dropping.[1] It rises 6 in for every 16.97 in of its own run: atan(6 ÷ 16.97) = 19.47°, or 6 × 12 ÷ 16.97 = 4.24 in per 12 in.

Valley jacks: shortened common rafters with the common unit line length √(12² + 6²) = 13.42 in.[1] The spacing is 16 ÷ 12 = 1.333 ft of run, so the common difference is 1.333 × 13.42 = 17.89 in (1 ft 5 7/8 in).[1] The jack one spacing from the top of its valley is one common difference long, the next two, and so on.[1]

Valley jacks on one side of a valley, from its top down
Run, in = k × 16Length, in = k × 17.89
1617.89 = 1 ft 5 7/8 in
3235.78 = 2 ft 11 3/4 in
4853.67 = 4 ft 5 11/16 in
6471.56 = 5 ft 11 9/16 in
8089.45 = 7 ft 5 7/16 in
96107.34 = 8 ft 11 5/16 in
112125.23 = 10 ft 5 1/4 in
128143.12 = 11 ft 11 1/8 in
144161.01 = 13 ft 5 in
160178.9 = 14 ft 10 7/8 in

On the main roof the run is 14 × 12 = 168 in and 168 ÷ 16 = 10.5 → 11 spacings reach the plate, so 11 − 1 = 10 jacks sit along a valley side; on the addition the run is 12 × 12 = 144 in, 144 ÷ 16 = 9 spacings, so the first 9 − 1 = 8. Take 2.12 ÷ 2 = 1.06 in off the top of each jack (half the 45° thickness of the ridge) and the same off the bottom (half the 45° thickness of the valley rafter).[1] Between the long and short valleys, valley cripples lose half the 45° thickness of each valley at their ends.[1]

The valleys on the roof: each runs from the eave corner to the top of the addition's roof, (12 + 1) × 18 = 234 in, or 234 ÷ 12 = 19.5 ft; both valleys 2 × 19.5 = 39 ft. Measured on a plan, each foot of valley is 18 ÷ 16.97 = 1.0607 ft on the roof.

Valley lining: for asphalt shingles, an open valley lined with metal needs a lining at least 24 in wide[3], such as galvanized steel at least 0.0179 in thick.[3] Two plies of mineral-surfaced roll roofing also work, 18 in and 36 in wide.[3] A closed valley takes one ply of smooth roll roofing or self-adhering underlayment 36 in wide.[3]

Size: the IRC requires hip and valley rafters at least 2 in nominal thick and no shallower than the cut end of the rafters, braced at the ridge to a bearing partition or designed for the load there.[2]

How do you calculate a valley rafter? Multiply its unit line length by its units of run. Its unit of run is the diagonal of the 12 in square, √(12² + 12²) = 16.97 in.[1] At 6:12 the unit line length is √(16.97² + 6²) = 18 in per foot of run, and over a 24 ft addition, a run of 24 ÷ 2 = 12 ft, the valley rafter is 12 × 18 = 216 in (18 ft 0 in).[1]

A 24 ft addition on a 28 ft main roof at 6:12, in plan: the long valley, 21 ft 0 in, runs to the main ridge and the short valley, 18 ft 0 in, to it
The worked example in plan, to scale: the long valley runs from one inside corner to the main ridge, the short valley from the other corner to the long one, where the lower addition ridge ends.

Drawing: CalculateMyRoof · CC BY 4.0 · How to reuse

How it works

Enter the two spans, the pitch both roofs share, the overhang and the rafter spacing. The calculator halves each span for the run, works out the valley's unit line length from the pitch and multiplies the two. If the addition is the narrower of the two, pick how it is framed: a long valley to the main ridge with a short one framed to it, or an addition ridge hung from the main ridge with two short valleys.[1] It then lists the valley jacks, the valleys' length on the roof and the lining the 2024 IRC requires under your covering.

Worked example

A 24 ft addition meets a 28 ft main roof, both at 6:12, with 12 in overhangs and rafters 16 in on center.

  • Runs: 28 ÷ 2 = 14 ft and 24 ÷ 2 = 12 ft.
  • The long valley runs from an inside corner to the main ridge, 14 × 18 = 252 in (21 ft 0 in), with a single side cut at the ridge; the short valley runs from the other corner to it, 12 × 18 = 216 in (18 ft 0 in), cut square.[1]
  • Tails: 12 ÷ 12 = 1 ft of overhang, 1 × 18 = 18 in past the plate.[1]
  • Jacks: the common unit line length is √(12² + 6²) = 13.42 in and the spacing 16 ÷ 12 = 1.333 ft, so the common difference is 1.333 × 13.42 = 17.89 in: the first jack below the top of a valley is 17.89 in long, the second 2 × 17.89 = 35.78 in.[1]
  • On the roof each valley is (12 + 1) × 18 = 234 in, or 234 ÷ 12 = 19.5 ft; the two take 2 × 19.5 = 39 ft of lining.

Valley jacks and cripples

A valley jack runs from a valley rafter up to a ridge. Where a long and a short valley are framed, a valley cripple runs between the two, and a hip valley cripple runs from a hip to a valley.[1] Jacks are shortened common rafters, with the common rafter's unit length, so the shortest one is one common difference long: the spacing in feet times that unit length.[1] Counted from the top of a valley, the second jack is two common differences long, the third three.[1]

Each valley jack loses half the 45° thickness of the ridge at its top and half the 45° thickness of the valley rafter at its foot; a valley cripple loses half the 45° thickness of each valley.[1] In 1 1/2 in stock that is 1.5 × √2 ÷ 2 = 1.06 in, measured level.[4]

Does a roof valley have to be 45 degrees?

In plan, yes, when both roofs have the same pitch: the valley then runs at 45° to the walls and the ridges, parallel to a hip rafter.[1] With unequal pitches it doesn't. Where the two planes meet, the valley's angle from the main roof's wall in plan is the arctangent of the addition's rise over the main roof's: an 8:12 addition on a 6:12 main roof puts it at atan(8 ÷ 6) = 53.13°. The Navy calls such roofs rare and says they need special framing methods, so the calculator works equal pitches only.[1]

How to measure a roof with a valley

On the roof, a valley runs from the eave corner to the top of the addition's roof. Its length is the addition's run plus the overhang, both in feet, times the valley's unit line length: (12 + 1) × 18 = 234 in for each valley in the example above. From a drawing or an aerial image, measure the valley's length in plan and scale it up: at 6:12 a foot of valley in plan is 18 ÷ 16.97 = 1.0607 ft on the roof. The roof area calculator gives the roof's surface to go with these lengths.

Valley lining by roof covering

What the 2024 IRC asks of a valley, by covering
CoveringValley lining or flashing
Asphalt shinglesOpen valley: metal at least 24 in wide, such as galvanized steel 0.0179 in thick, or two plies of mineral-surfaced roll roofing, 18 in and 36 in wide. Closed valley: smooth roll roofing or self-adhering underlayment 36 in wide.[3]
Clay or concrete tileMetal reaching 11 in from the centerline each way, with a 1 in rib and 4 in end laps; at 3:12 and steeper, a 36 in strip of underlayment under it.[3]
Metal roof shinglesMetal reaching 8 in from the centerline each way, with a 3/4 in rib and 4 in end laps, over a 36 in strip of underlayment.[3]
SlateSheet metal at least 15 in wide, zinc-coated, at least 0.0179 in thick.[3]
Wood shinglesNo. 26 gage metal reaching 10 in from the centerline each way below 12:12, 7 in at that slope and steeper, with 4 in end laps.[3]
Wood shakesNo. 26 gage metal reaching 11 in from the centerline each way, with 4 in end laps.[3]

Under asphalt shingles, valley linings go in before the shingles, by the manufacturer's instructions.[3] Where January's average daily temperature is 25°F or lower, the strip under a tile valley is cemented to the roofing underlayment below 7:12, or is a self-adhering sheet.[3] For an ice barrier run up the valleys, the ice and water shield calculator counts the pieces.

What size should a valley rafter be?

The IRC requires hip and valley rafters at least 2 in nominal thick and no shallower than the cut end of the rafters framed to them, supported at the ridge by a brace to a bearing partition or designed to carry the load there.[2] Below 3:12, ridges, hips and valleys that carry rafters have to be designed as beams.[2] The calculator gives lengths, not sizes; the rafter length calculator lays out a common rafter with its birdsmouth.

Valley rafter formulas

  • Run = span ÷ 2, in feet: the units of run.[1]
  • Valley unit of run = √(12² + 12²) = 16.97 in.[1]
  • Valley unit line length = √(valley unit of run² + rise²); line length = run × unit line length; tail = overhang in feet × unit line length.[1]
  • Common difference = spacing in feet × √(12² + rise²); valley jack k = k × the common difference.[1]
  • Valley on the roof = (the addition's run + the overhang in feet) × the valley unit line length.
  • Plan angle, unequal pitches = atan(the addition's rise ÷ the main roof's rise).

Common questions

How do you frame a valley rafter?

Lay it out like a hip rafter: total run, unit line length, line length. A valley needs no backing or dropping, and its tail takes a double side cut the other way round, forming an inside corner.[1] With equal spans the two valleys meet the ridges at one point and each loses half the 45° thickness of the ridge at the top.[1] With a narrower addition, one method runs a long valley to the main ridge and frames a short one to it.[1]

What is the difference between a hip and a valley rafter?

A hip runs over an outside corner and a valley under an inside one. With the same pitch and the same run they are the same length, since both run at 45° in plan.[1] A valley needs no backing or dropping.[1] The hip roof calculator works the hip side, its backing included.

How long is a valley jack rafter?

A whole number of common differences.[1] At 6:12 and 16 in on center the common difference is 1.333 × 13.42 = 17.89 in, so the jacks below the top of a valley are 17.89 in, 2 × 17.89 = 35.78 in and so on, before the shortening at each end.[1]

Methodology & sources

The valley method is the U.S. Navy's Builder Basic training manual, Chapter 10. In a few places the manual misprints the valley's unit of run; its own equation and worked examples give √(12² + 12²) = 16.97 in, which this page calculates.[1] The lining and framing rules are from the 2024 IRC, the lumber thickness from PS 20. The rest is the arithmetic above, tested on every build.

Assumptions: both roofs have the same pitch and meet at a square corner, with the same overhang; lengths run along the rafter's measuring line to the center of what it frames to, with allowances measured level, for 2x stock. The long and short method's own allowances are drawn in the manual rather than written out, so the calculator gives that method's cuts and leaves its allowances to the drawing.

Sources

  1. [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-79, p. 10-80, p. 10-81, p. 10-82, p. 10-84, p. 10-89, p. 10-90, p. 10-91, pp. 10-73 and 10-81, pp. 10-82 to 10-83, pp. 10-89 to 10-90. Retrieved Nov 19, 2026. media.defense.gov
  2. [2] International Code Council. 2024 International Residential Code, Chapter 8: Roof-Ceiling Construction (Oct 2026 version). Sections R802.4.3, R802.4.4. Retrieved Nov 19, 2026. codes.iccsafe.org
  3. [3] International Code Council. 2024 International Residential Code, Chapter 9: Roof Assemblies (Oct 2026 version). Sections R905.2.8.2, R905.3.9, R905.4.6, R905.6.7, R905.7.7, R905.8.9. Retrieved Nov 19, 2026. codes.iccsafe.org
  4. [4] 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

Change log: first published November 25, 2026.

Related

By Marko Visic, BSc Physics. Updated November 25, 2026.