Roof Hip & Valley Calculator

Estimate hip and valley rafter lengths from roof dimensions, pitch, and layout.

Result

Enter values and calculate to see results here.

Roof Hip & Valley Calculator

Hips and valleys are diagonal intersections where roof planes meet. Hips form external corners that shed water, while valleys form internal channels that collect and direct water—making valleys especially critical for flashing and waterproofing. This calculator estimates hip or valley member length for a regular 45° plan layout with equal pitches, using common rafter run and rise. It is a planning aid for framing and material estimates, not a substitute for detailed roof layout or flashing design.

In a regular layout, the diagonal plan run is longer than the common run by √2 because the member travels at 45° across the corner in plan view. The sloping length is computed from that diagonal run and the rise. Irregular roofs with unequal pitches or non-square corners require different plan angles and more advanced calculations.

Formula

Common Rafter = √(Run² + Rise²)
Plan Diagonal Run = Run × √2
Hip/Valley Length = √((Plan Diagonal Run)² + Rise²)
Angle = arctan(Rise / Plan Diagonal Run)

The member’s horizontal projection increases by √2 in a regular 45° corner. Combining that with rise gives the true sloping length. Multiply by quantity for total linear footage across multiple hips or valleys.

Key Differences

ElementFunctionNote
HipExternal intersectionOften finished with hip caps; check nailing and support.
ValleyInternal water channelRequires robust underlayment/flashing per code and manufacturer.

Because valleys concentrate water, detailing quality is critical to long-term performance. Always follow product instructions and local building requirements.

Frequently Asked Questions

Does this assume a 45° corner?

Yes. It is for regular hip/valley geometry; irregular plans need plan-angle-specific math.

Why is it longer than a common rafter?

The diagonal plan run is longer (Run×√2), increasing the sloped length.

Can I use this for ordering flashing?

Use the length as a baseline and add laps, extensions, and waste per detail requirements.

Is rise total building height?

No, use rise over the common run entered (consistent with pitch).

Are hips and valleys calculated the same?

Geometrically similar here, but their construction and waterproofing details differ.

References

Disclaimer: This tool provides planning estimates only, not a contract, guarantee, engineering determination, or professional advice. Verify measurements, local code requirements, material specifications, and safety conditions with qualified professionals before purchase or work.