Rafter LengthCalculator
Common RafterHip RafterValley RafterJack RafterShed & Lean-ToBirdsmouthRafter AngleRoof PitchRafter SpanRafter SizeGambrel RafterRafter Length ChartHow-To GuideAboutReport an Error
Home › Valley Rafter Length Calculator
Roof Framing Tools

Valley Rafter Length Calculator

Calculate the diagonal rafter that supports the inside corner where two equal-pitch roofs meet. Get its line length, cut length, tail, ridge deduction and cut angles from the common run and pitch.

Valley Rafter Calculator

Results update as you type
Units
ft
/ 12
in
in

Your valley rafter — 12 ft run · 6/12 pitch

Cut this valley length
19 ft 4 7/8 in
Buy a20 ft board
Line length
18 ft 0 in
Valley angle
19.5°
Plumb cut
70.5° saw 19.5°
Seat cut
19.5° saw 70.5°
Tail at corner
18 in
Pitch on the valley
4.24 / 12
Per ft of run
18 in
Rise
6 ft 0 in
Valley Geometry

The inside corner follows hip geometry

A valley rafter sits beneath the internal angle formed by two intersecting roof planes. It supports the ends of jack rafters and carries the framed corner while the finished valley above it directs water down to the eave. For the main roof members, the standard rafter length calculator handles the commons; this page solves the diagonal valley, and the matching hip rafter length calculator covers the same plan geometry at an outside corner. The distinction matters for installation and flashing even where the length equations coincide.

On a regular intersection with equal pitches, the valley bisects the plan angle and runs at 45 degrees. Its horizontal run is therefore the common run multiplied by sqrt(2), while the rise is unchanged. Because that rise is spread over a longer run, the valley is shallower than the common rafter. Its angle is atan(tan(common pitch angle) / sqrt(2)), and its line length is sqrt(valley run squared + rise squared). At a 6/12 common pitch, for example, the valley acts at 4.24/12 over its own run and stands at 19.5 degrees.

Using The Calculator

Inputs, outputs and the adjustments that locate the board

Enter the common run for the roof plane, its pitch, the horizontal overhang where the valley reaches the eave, ridge or intersecting member thickness. Work from the plans' controlling intersection rather than measuring a convenient shingle valley on an existing roof. Surface valleys can be offset by roofing build-up and do not necessarily reveal the centerline of the framing member below.

The output distinguishes the theoretical line length from the cut length. The diagonal tail is overhang x sqrt(2) / cos(valley angle), and the ridge deduction is (ridge thickness / 2) x sqrt(2) / cos(valley angle) when the end condition uses that centerline deduction. Angles are stated from the top edge of the board so the plumb and seat cuts can be transferred without silently changing reference. If another framing method states an angle from vertical or from the board's end, convert it before marking.

Common pitchValley rise per 12 in of valley runValley angleValley length per 1 ft of common run
4/122.83/1213.3°17.44 in
5/123.54/1216.3°17.69 in
6/124.24/1219.5°18.00 in
8/125.66/1225.2°18.76 in
10/127.07/1230.5°19.70 in
12/128.49/1235.3°20.78 in
These formulas cover regular valleys between equal pitches. They do not model a valley that is shifted by unequal slopes.
Worked Example

Worked example: a 12-foot common run at 6/12

Suppose the intersecting roof has a 12 ft common run at 6/12. The common rafters rise 6 ft over that run. The valley's horizontal distance is not 12 ft; it is the diagonal across a square plan corner, 12 ft multiplied by sqrt(2), which is 16 ft 11 5/8 in rounded to the nearest sixteenth. Combining the diagonal run with the same 6 ft rise produces a valley line length of exactly 18 ft and a valley pitch angle of 19.5 degrees.

For a board with a 12 in horizontal overhang and a 1.5 in ridge member, the tail contributes 18 in along the valley slope. The ridge deduction contributes a subtraction of 1 1/8 in. Add and subtract those from the 18 ft line length to get a 19 ft 4 7/8 in cut length. Verify which end condition your framing plan uses before cutting: some valley layouts terminate at another structural member rather than at a conventional ridge centerline.

Step 1 · Run & Rise

Project the run diagonally

The 12 ft common run becomes 16 ft 11 5/8 in in plan because 12 x sqrt(2) = 16.9706 ft. The rise remains 6 ft.

Valley angle: 19.5°
Step 2 · Slope Length

Find the line length

Combine the diagonal run and rise as a right triangle: sqrt(16.9706^2 + 6^2). The result is the clean benchmark for this pitch and run.

Line length: 18 ft 0 in
Step 3 · Adjustments

Finish at the eave and ridge

Add an 18 in diagonal tail for a 12 in horizontal overhang, then subtract a 1 1/8 in ridge deduction for a 1.5 in ridge board.

Cut length: 19 ft 4 7/8 in
Framing The Valley

Layout, bearing and the finished valley above it

Mark the plumb and seat cuts from the top edge of the board, then test the valley in position before using it as a pattern. Its ends should bear as intended, the birdsmouth or lower connection should not float, and its top should support the intersecting planes without pushing either plane out of line. Because the valley is concealed after the roof is built, correct a twisted or crowned board now rather than relying on jack rafters to pull it into place.

Treat the structural valley and the weather surface as related but separate systems. Woven shingles, closed-cut valleys and open metal valleys place different demands on the surface above the board, and underlayment laps are critical where two drainage paths merge. Follow the roofing manufacturer's instructions and local code for flashing width, fasteners and ice-barrier requirements. No length calculation can compensate for a valley surface that directs water under the roof covering.

A valley concentrates runoff. Framing accuracy and the roofing manufacturer's valley and underlayment instructions both have to be satisfied.
Limits & Checks

Equal-pitch valleys only

This calculator assumes the two roof planes have the same pitch, their wall plates form the expected plan geometry, and the valley follows the 45-degree bisector. It provides conventional framing geometry for board layout and material estimation. It does not size the valley member for structural load. Valleys collect load from both roof planes, so member size, species, grade, supports and any doubled or engineered construction must come from the project design, span resources and local code.

Unequal pitches move the valley away from the 45-degree plan line and create different angles on each side. A dormer intersection may also involve sleepers, a valley board laid over an existing roof, or a structural valley with a different support condition. Do not force those cases into the equal-pitch equation. Establish the actual intersection in plan and elevation, then calculate each side from that geometry or follow the engineered framing plan.

Methods & Sources

How we calculate

Every result on this page comes from the method described above, using standard framing geometry and the published data credited below. Found a number that looks wrong? Use Report an Error — every report is read.

• Roof Framing — Marshall Gross
• American Wood Council — https://awc.org
• International Residential Code (2021), Chapter 8 — Roof-Ceiling Construction — https://codes.iccsafe.org/content/IRC2021P2/chapter-8-roof-ceiling-construction
Questions

FAQs

How is a valley rafter different from a hip rafter?

The valley lies where two roof surfaces drain toward each other. A hip carries an outside corner and sheds water away on both sides, while a valley concentrates runoff and needs compatible flashing or a woven or metal valley system.

Why does the valley use the same sqrt(2) formula as a hip?

The equal-pitch geometry is the same: hip run equals common run x sqrt(2), and hip or valley length is sqrt(hip run^2 + rise^2). The difference is application and installation, not this basic length triangle.

Is the valley pitch also 6/12?

No. Dividing 6 by sqrt(2) gives 4.24 because the same rise is spread over a longer diagonal run. The valley angle is 19.5 degrees even though both intersecting common rafters are at a 6/12 pitch.

Can I use this result where the two roof pitches differ?

Only if both roof planes have the same pitch and the valley bisects their plan angle at 45 degrees. Unequal pitches shift the valley line and require plan geometry for the actual intersection.

Does the valley board carry water like a gutter?

Both matter. The valley board supports the jack rafters and roof planes, while the finished valley surface and flashing manage the concentrated water. A correct board length does not excuse incompatible flashing, underlayment or shingle detailing.

Why does one end of my valley not land where expected?

Recheck the common run, ridge or intersection point, and both plate lines. In remodeling, unequal wall heights, sagging plates and roof planes that are not truly equal pitch are common causes.

The Full Family

More rafter calculators