Roof framing

Valley rafter calculator

Enter the span of the roof that runs into the valley, the pitch, and the jack spacing. The calculator returns the valley rafter's line length and run, the ridge height, the plumb, seat, and cheek cut angles, and the common difference and side cut for the jack rafters. It solves a regular valley, where both roofs have the same pitch and meet at a right angle in plan, with the same formulas as the CutOnce app.

Scott Brady

By

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

Updated

Span is the width of the roof that dies into the valley; its half is the common run. Pitch is the common rafter's rise per 12 in of run. Both roofs share one pitch and meet at a right angle here (a regular valley).

Valley rafter length
18 ft
Valley run
16 ft 11-5/8 in
Ridge height
6 ft
Plumb cut
19.5°
Seat cut
70.5°
Cheek cut
43.3°
Jack common difference
17-7/8 in
Jack side cut
41.8°
Longest jacks
13 ft 5 in · 11 ft 11-1/8 in · 10 ft 5-1/4 in · 8 ft 11-5/16 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 valley rafter is

A valley rafter runs up the inside corner where two roofs meet, from the corner of the wall plates to the ridge. It crosses the corner on a diagonal, so it covers 16.97 in of run for every 12 in a common rafter covers. On a 24 ft wide roof at 6/12, the common rafters are 13 ft 5 in long and the valley is 18 ft.

Main ridgeValley rafterWing ridgeInside cornerValley jacksSpan 24 ftCommon run 12 ft
The worked example in plan, drawn to scale: a 24 ft wing meeting a main roof of the same span at 6/12, with jacks 16 in on center. Each valley runs at 45 degrees from an inside corner of the walls to the point where the ridges meet.

What to enter and what you get back

Inputs

Intersecting roof span
The width of the roof that the valley belongs to, in feet, measured across the outside of the wall framing. Half of it is the common run. The section below covers which roof to measure when the two spans differ.
Roof pitch
Rise per 12 in of common rafter run. The calculator assumes both roofs have this pitch. If you only have an angle in degrees, convert it with the roof pitch calculator.
Jack spacing
The on-center spacing of the rafters, usually 16 or 24 in. Leave it blank to skip the jack results.

Results

Valley rafter length
The line length along the top of the valley, from the center of the ridge to the corner of the wall plates. It does not include the ridge shortening or a tail.
Valley run
The level distance the valley covers in plan. It is the common run times the square root of 2.
Ridge height
The rise of the roof over the common run. The valley and the common rafters share it. Add the common rafter's HAP for the height of the ridge line above the top of the plate.
Plumb cut and seat cut
The angles for the cut at the ridge and the level cut at the plate. The plumb cut is the valley's slope. The seat cut is 90 degrees less the plumb cut.
Cheek cut
The angle the side cut makes on the top edge of the valley where it meets a ridge, measured from the edge of the board.
Jack common difference
How much longer each jack is than the one before it.
Jack side cut
The angle the jack's cut makes on its top edge where it meets the valley, measured from the edge of the board.
Longest jacks
The four longest line lengths in the run-down. The table further down lists all of them for the worked example.

Which span to enter

The valley's common run is half the span of one roof. Which roof depends on where the top of the valley lands. Every case here assumes the two roofs meet at a right angle and their wall plates are at the same height.

Both roofs have the same span
The two ridges are at the same height and meet at a point. Both valleys run from an inside corner to that point. Enter the span the two roofs share.
A narrower wing whose valleys stop at its own ridge
The wing's ridge is lower than the main ridge and ends on the slope of the main roof. A valley that runs from the inside corner to the end of the wing's ridge takes the wing's span.
A supporting valley that continues to the main ridge
Some roofs carry one valley past the wing's ridge up to the main ridge. That valley takes the main roof's span. With a 28 ft main roof and a 24 ft wing at 6/12, the supporting valley is 21 ft and the shorter valley is 18 ft. The shorter valley meets the supporting valley square in plan, so its top cut is a plumb cut with no cheek, shortened by half the thickness of the supporting valley.
A dormer
Use the width of the dormer across its wall framing. The result holds only when the dormer roof and the main roof have the same pitch.
Measured to the sheathing or siding
Take the sheathing and siding off each side first. The line length runs to the outside face of the wall framing.

A worked 6/12 example

A 24 ft wide intersecting roof at 6/12 with jacks 16 in on center, the calculator's opening values. Every figure comes from the function that drives the calculator.

Common run12 ft24 ft / 2
Valley run16 ft 11-5/8 in12 ft x 1.4142, the square root of 2
Ridge height6 ft12 ft x 6 in of rise per foot
Valley rafter length18 ftsquare root of (203.65 in squared + 72 in squared)
Plumb cut19.5°arctan(6 / 16.97)
Seat cut70.5°90° less the plumb cut
Cheek cut43.3°arctan(16.97 / 18.00), from the top edge
Jack common difference17-7/8 in16 in x 13.42 / 12
Jack side cut41.8°arctan(12 / 13.42), from the top edge

The valley is 4 ft 7 in longer than the 13 ft 5 in common rafter on the same roof. Both climb the same 6 ft, and the valley covers more run to do it.

How the numbers are calculated

  1. 01

    The unit run is 16.97 in

    In plan, a regular valley crosses a square whose sides are the common run. For every 12 in of common run it travels the diagonal of a 12 in square, which is 12 times the square root of 2, or 16.97 in. A framing square rounds this to 17. Over the 12 ft run in the example, laying out with 17 makes the valley 5/16 in longer than the calculated length.

  2. 02

    The length is the unit length times the feet of common run

    The valley rises the same 6 in per foot of common run as the common rafters. Its unit length is the square root of 6 squared plus 16.97 squared, which is 18 in at 6/12. Multiply by the 12 ft of common run and the line length is 18 ft. The same figure as a multiplier is 1.5000 per unit of common run.

  3. 03

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

    The valley is flatter than the roof because it covers more run for the same rise. Its slope is the arctangent of 6 over 16.97, which is 19.5 degrees. The common rafters on the same roof slope at 26.6 degrees. On a framing square the valley's plumb and seat cuts are laid out with 6 on the tongue and 17 on the body.

  4. 04

    The cheek cut is a line on the top edge

    Where the valley meets a ridge it is cut on a plumb plane that sits at 45 degrees to the valley in plan. On the sloped top edge, that cut shows as a line at 43.3 degrees from the edge of the board, or 46.7 degrees from square. The tangent of the angle is the unit run over the unit length.

  5. 05

    Each jack changes by one common difference

    Jacks at a fixed spacing meet the valley at points that are one spacing apart in run. Each one is longer than the last by the length of common rafter over one spacing: 16 in times 13.42 over 12, which is 17-7/8 in at 6/12. The jack's side cut is the same 45 degree plumb plane, and it shows on the jack's top edge at 41.8 degrees from the edge.

Laying out a valley rafter

  1. 01

    Draw the ridge plumb line

    Set the board crown up. Near the top end, draw a plumb line with a framing square held at 6 and 17, or with a speed square on its hip-valley scale at 6. This is the theoretical line at the center of the ridge.

  2. 02

    Measure the line length

    Measure 18 ft down the top edge from that line and draw a second plumb line. This is the building line. The center of the valley crosses the inside corner of the wall plates here.

  3. 03

    Shorten for the ridge and cut the cheeks

    Move the ridge line back by half the 45 degree thickness of the ridge, measured level. For a 1-1/2 in ridge that is 1-1/16 in level, or 1-1/8 in along the top edge of the board. The new line marks the center of the valley's thickness, so square it across the top edge and mark the center. Cut with the saw tilted to 45 degrees so the cut passes through that center mark. A valley that fits between two ridges gets a cheek on each side of the mark, and each cheek ends 3/4 in farther from the ridge at the face of the board, measured level. A valley that lands against one ridge gets a single cheek through the mark.

  4. 04

    Lay out the seat

    Measure the common rafter's HAP down the building line from the top edge and draw the level seat line. A valley takes no drop. Its top center line sits in both roof planes, and the edges of a 1-1/2 in valley at 6/12 sit 1/4 in below them.

  5. 05

    Fit the heel to the inside corner

    The wall plates reach farther toward the tail at the faces of the valley than at its center. On a 1-1/2 in valley the difference is 3/4 in, measured level. Cut the heel as a V that fits the corner, or move a square heel cut 3/4 in toward the tail.

  6. 06

    Add the tail

    A valley tail is longer than a common rafter tail by the same ratio as the rest of the board. A 12 in level overhang at 6/12 needs 1 ft 6 in of valley tail along the top edge. Many framers leave the tail long and cut it in place once the common rafter tails are set.

For the order of cuts on a common rafter, see How to cut rafters.

Valley length and cut angles by pitch

The length column is the line length of valley for each foot of common run. Multiply it by half the span in feet. The multiplier is the same figure per unit of common run. The angles depend only on the pitch. The cheek cut is measured from the edge of the board.

PitchValley length per ft of runMultiplierPlumb cutSeat cutCheek cut
3/1217-1/4 in1.436110.0°80.0°44.6°
4/1217-7/16 in1.453013.3°76.7°44.2°
5/1217-11/16 in1.474316.4°73.6°43.8°
6/1218 in1.500019.5°70.5°43.3°
7/1218-3/8 in1.529822.4°67.6°42.8°
8/1218-3/4 in1.563525.2°64.8°42.1°
9/1219-3/16 in1.600827.9°62.1°41.5°
10/1219-11/16 in1.641530.5°59.5°40.7°
12/1220-13/16 in1.732135.3°54.7°39.2°

Jack common difference and side cut by pitch

The common difference for jacks at 12, 16, and 24 in on center, and the side cut on the jack's top edge, measured from the edge of the board. These figures are the same for hip jacks and valley jacks.

Pitch12 in OC16 in OC24 in OCSide cut
3/1212-3/8 in16-1/2 in24-3/4 in44.1°
4/1212-5/8 in16-7/8 in25-5/16 in43.5°
5/1213 in17-5/16 in26 in42.7°
6/1213-7/16 in17-7/8 in26-13/16 in41.8°
7/1213-7/8 in18-1/2 in27-13/16 in40.8°
8/1214-7/16 in19-1/4 in28-7/8 in39.8°
9/1215 in20 in30 in38.7°
10/1215-5/8 in20-13/16 in31-1/4 in37.5°
12/1217 in22-5/8 in33-15/16 in35.3°

Jack rafters at a valley

A jack rafter is a common rafter cut short where it meets a hip or a valley. It has the same pitch, the same plumb cut, and the same spacing as the commons.

Valley jacks
Run from the valley up to a ridge. The shortest is at the top of the valley, next to the point where the valley meets the ridge. They get longer down the valley, away from that point.
Hip jacks
Run from the wall plate up to a hip. The shortest is at the outside corner of the building. They step by the same common difference as valley jacks.
Cripple jacks
Run from a valley up to a hip and touch neither the plate nor the ridge. They have a side cut at each end. Where the hip and the valley are parallel in plan, every cripple between them is the same length.

Jack run-down for the worked example

Line lengths for the 9 positions between the top of the valley and the inside corner, at 6/12 and 16 in on center. Jack 1 is nearest the top of the valley. Each length is the jack number times the 17-7/8 in common difference, and the last one is the full 13 ft 5 in common rafter.

JackDistance along the ridgeLine length
11 ft 4 in1 ft 5-7/8 in
22 ft 8 in2 ft 11-3/4 in
34 ft4 ft 5-11/16 in
45 ft 4 in5 ft 11-9/16 in
56 ft 8 in7 ft 5-7/16 in
68 ft8 ft 11-5/16 in
79 ft 4 in10 ft 5-1/4 in
810 ft 8 in11 ft 11-1/8 in
912 ft13 ft 5 in

Cutting valley jacks

  1. 01

    Find the first jack

    The run-down assumes the first jack sits one full spacing from the point where the center of the valley meets the center of the ridge. When the rafter layout carries through from the rest of the roof, the first jack lands somewhere else. Measure its distance from that point along the ridge, in feet, and multiply by 13.42 in at 6/12. The rest step by the common difference.

  2. 02

    Shorten both ends

    The line length runs from the center of the ridge to the center of the valley. Take off half the thickness of the ridge at the top, 3/4 in for a 1-1/2 in ridge. Take off half the 45 degree thickness of the valley at the bottom, 1-1/16 in for a 1-1/2 in valley and 2-1/8 in for a doubled one. Measure both level.

  3. 03

    Cut the top square and the bottom on a bevel

    Both ends are plumb cuts at the common rafter's angle, 6 on 12. The cut at the ridge is square across the board. For the cut at the valley, tilt the saw to 45 degrees and follow the plumb line. The 41.8 degree side cut is the line that cut leaves on the top edge. Use it to mark the board for a handsaw or to check a saw setting.

  4. 04

    Cut them in pairs

    When the rafter layout on both roofs starts the same distance from the top of the valley, each length is needed twice, once on each side of the valley, with the bevel leaning opposite ways. When the two layouts start at different points, find the first jack on each ridge separately. Mark the lengths along the center of each board's thickness.

Valley and hip rafters compared

A regular valley and a regular hip on the same pitch and run have the same line length and the same plumb, seat, and cheek angles. They differ in how they sit in the roof.

Corner
A hip runs to an outside corner of the building and sheds water to both sides. A valley runs to an inside corner and collects water from both roofs, so it is flashed or lined before the roofing goes on.
Top edge
A hip's edges stand above the roof planes, so a hip is backed or dropped. A valley's edges sit below the roof planes, 1/4 in on a 1-1/2 in valley at 6/12 and 1/2 in on a doubled one, so a valley needs neither.
Jacks
Hip jacks run from the plate up to the hip. Valley jacks run from the valley up to a ridge.
Load
Valley jacks bear on the valley at their lower ends, so a valley carries part of both roofs. The section on sizing below covers what the code asks of it.

Hip rafter calculator

Sizing and supporting a valley rafter

The calculator works out geometry. It does not size the valley. The rafter span tables in IRC R802.4.1 are for rafters at a regular spacing and do not cover a valley that carries jacks.

IRC R802.4.3: hip and valley rafters are at least 2 in nominal thickness and no less deep than the cut end of the rafters they carry. They are supported at the ridge by a brace to a bearing partition, or designed to carry and distribute the load at that point.

The cut end of a jack is its plumb cut, which is longer than the depth of the board. The cut end of a 2x8 jack at 6/12 is 8-1/8 in, so the valley is at least a 2x10, which is 9-1/4 in deep. The IRC does not define the cut end. This page reads it as the jack's plumb cut, and your building department decides. The table gives the cut end for each rafter size.

Plumb cut length of a jack rafter. Read as the cut end, it is the least depth for the valley the jack lands on.

Jack rafter4/126/128/1210/1212/12
2x6 (5-1/2 in)5-13/16 in6-1/8 in6-5/8 in7-3/16 in7-3/4 in
2x8 (7-1/4 in)7-5/8 in8-1/8 in8-11/16 in9-7/16 in10-1/4 in
2x10 (9-1/4 in)9-3/4 in10-5/16 in11-1/8 in12-1/16 in13-1/16 in
2x12 (11-1/4 in)11-7/8 in12-9/16 in13-1/2 in14-5/8 in15-15/16 in

At 12/12 the cut end of a 2x10 jack is 13-1/16 in, more than the 11-1/4 in depth of a 2x12 measured square across the board. Measured plumb, a 2x12 valley at 12/12 is 13-3/4 in deep. Ask your building department which measurement it uses before you frame it.

Where the roof pitch is less than 3/12, the IRC requires members that support rafters, such as ridges, hips, and valleys, to be designed as beams (R802.4.4). Long valleys are commonly doubled or made from engineered lumber at any pitch. Ask your building department what it requires for your span. Section numbers here follow the 2021 IRC, and your jurisdiction may have adopted another edition or amended it.

How we verify this math

Framed valley or California valley

This page lays out a framed valley, where a valley rafter spans from the plate to the ridge and the jacks from both roofs land on it.

A California valley, also called a blind or overlay valley, has no valley rafter. The main roof is framed and sheathed straight through. The wing's ridge runs onto the main roof, and the wing's jacks land on a board nailed flat to the main roof sheathing. The two roofs meet along nearly the same line, so the valley length from the calculator is close to the length of that line. The jacks need a different cut at the bottom: a level line on the face of the jack, beveled to the pitch of the main roof so it sits flat on the board. This page does not calculate it.

Common mistakes

Laying out the valley with the common rafter's numbers
A square held at 6 and 12 gives the common rafter's 26.6 degree plumb cut and its 13 ft 5 in length. The valley is laid out with 6 and 17. Its plumb cut is 19.5 degrees and its calculated length is 18 ft.
Entering the wrong roof's span
A valley that stops at the wing's ridge takes the wing's span. Using the main roof's span makes it too long.
Skipping the shortening
The line length runs to the center of the ridge. A valley cut to the full 18 ft is 1-1/8 in too long against a 1-1/2 in ridge.
Dropping or backing the valley like a hip
A hip is dropped because its edges stand above the roof. A valley's edges are already below it. Dropping the valley lowers its center line and leaves a dip in the sheathing.
Cutting every jack with the bevel the same way
Jacks on opposite sides of a valley are left and right hand. Cutting them all the same hand leaves none for the other side.
Using regular numbers on an irregular roof
When the two roofs have different pitches, or the wing meets the main roof at an angle other than 90 degrees, the valley does not run at 45 degrees in plan, and the lengths and angles on this page do not apply.

Common questions

How long is a valley rafter?
For a 24 ft wide roof at 6/12, the valley rafter's line length is 18 ft, measured from the center of the ridge to the corner of the wall plates. The board is cut 1-1/8 in shorter at a 1-1/2 in ridge, and a tail is added for the overhang.
What is the formula for valley rafter length?
On a regular roof, the length is the common run in feet times the square root of the rise per foot squared plus 16.97 squared. At 6/12 that is 12 ft times 18 in, which is 18 ft. The common run is half the span.
Is a valley rafter the same length as a hip rafter?
On a regular roof, yes. A hip and a valley with the same pitch and the same common run have the same line length and the same plumb, seat, and cheek cut angles. A hip is backed or dropped and a valley is not.
Which span do I use when the two roofs are different widths?
Use the span of the roof whose ridge the valley runs to. A valley that stops at the lower ridge of a narrower wing takes the wing's span. A supporting valley that continues to the main ridge takes the main roof's span.
What is the common difference for valley jack rafters?
It is the change in length from one jack to the next. It equals the spacing times the common rafter's length per foot of run. At 6/12 with jacks 16 in on center it is 17-7/8 in. At 5/12 it is 17-5/16 in at 16 in on center and 26 in at 24 in on center.
How do I measure the angle for a valley jack?
A valley jack has two angles. The plumb cut is the common rafter's angle, laid out with the rise and 12 on a framing square. The side cut is made with the saw tilted to 45 degrees along that plumb line. To mark the side cut on the top edge, the angle from the edge of the board is 41.8 degrees at 6/12 and 42.7 degrees at 5/12.
Which way do valley jacks run?
From the valley up to a ridge. The shortest valley jack is at the top of the valley and they get longer down the valley. Hip jacks run from the plate up to the hip, and the shortest is at the outside corner.
Does a valley rafter need to be backed or dropped?
No. The top center line of the valley sits in both roof planes and its edges sit below them, 1/4 in on a 1-1/2 in valley at 6/12. The sheathing bears along the center line.
What size board do I need for a valley rafter?
The IRC requires at least 2 in nominal thickness and a depth no less than the cut end of the jacks (R802.4.3). With 2x8 rafters at 6/12 the plumb cut of a jack is 8-1/8 in. Reading that as the cut end, the valley is at least a 2x10. Whether it also needs to be doubled or engineered depends on its span and load, which this calculator does not check.
Why is 17 used on a framing square for a valley?
The valley covers 16.97 in of run for every 12 in of common run, and 17 is that figure rounded. Holding the square at the rise and 17 gives the valley's plumb and seat cuts.
Does this handle valleys between two different pitches?
No. This page solves the regular valley, where both roofs have one pitch. The CutOnce app also solves the irregular valley, with a plan angle and a cheek cut for each side.
Does it work in metric?
This page works in feet and inches. The CutOnce app runs the same calculator in millimeters.

Cut the whole roof, offline

The app solves regular and irregular hips and valleys with an overhang, a ridge thickness, and a HAP, lists every jack, and prints a cut plan. It works with no signal.

App StoreGoogle Play

See also