Roofs

Hip roof calculator

A regular hip runs at 45° in plan, so its run is the common run times 1.414 and its length is the common run times √(2 + (pitch ÷ 12)²). On a 40 × 24 ft house at 6/12 the hip line length is 18′ 0″ and the ridge is 16 ft.

Framing Calculators editorial teamUpdated 3 sources

Calculator

Hip roof calculator

Common, hip and jack rafter lengths, ridge length and roof area for a rectangle.

ft
ft
in 12
in
More options

Type lengths the way you read a tape: 8' 9", 7 3/4 or 7.75. Metric: 2667 mm or 2.667 m.

42′ 0″26′ 0″
Hip rafter19′ 6″line 18′ 0″ + tail 18″
Common rafter14′ 6-7/16″
Ridge board16′ 0″

Hip roof

Rise at the ridge
6′ 0″
Hip pitch
6 in 16.97–°
Roof area
1,221 sq ft12.2 squares
Hip cap needed
78′ 0″
Commons on the ridge
26+ 2 king commons at the ends
Jack rafters
648 per spacing step (2 sides × 4 hips)

Jack rafter lengths (line length, before the hip deduction)

1′ 5-7/8″ · 2′ 11-3/4″ · 4′ 5-11/16″ · 5′ 11-9/16″ · 7′ 5-7/16″ · 8′ 11-5/16″ · 10′ 5-1/4″ · 11′ 11-1/8″

How it works. Common run = width ÷ 2. Hip line length = run × √(2 + (pitch ÷ 12)²). Ridge = length − width. Each jack rafter is shorter than the next by spacing × rafter factor. Roof area = footprint with overhangs × rafter factor.

Hip rafter calculator: hip rafter length

On a regular hip roof (every plane at the same pitch), the hip sits at 45° in plan, so for every 12 in of common run the hip runs 16.97 in. It rises the same amount as the common rafter over that longer run. Its length per foot of common run is √(288 + pitch²) inches: 18 in at 6/12.

Hip and valley length per foot of common run
PitchCommon rafterHip or valleyHip angle
3/1212.37 in17.23 in10°
4/1212.65 in17.44 in13.3°
5/1213 in17.69 in16.4°
6/1213.42 in18 in19.5°
7/1213.89 in18.36 in22.4°
8/1214.42 in18.76 in25.2°
9/1215 in19.21 in27.9°
10/1215.62 in19.7 in30.5°
12/1216.97 in20.78 in35.3°

The tool gives the theoretical line length; deduct half the 45° thickness of the ridge, measured level, where the hip meets it. For a hip rafter the IRC wants at least 2 in nominal thickness and a depth no less than the cut end of the rafters (R802.4.3)[1].

Jack rafters

Jack rafters run from the wall plate to the hip, each one shorter than the last by the spacing times the rafter factor. At 16 in spacing and 6/12 that common difference is 17-7/8″. The list in the results starts at the shortest jack; cut them in pairs, one left and one right, with a 45° side cut where they meet the hip.

  • King commons: one at the centre of each end wall, running to the end of the ridge.
  • Ridge commons: the regular rafters along the ridge between the hips.
  • Jacks: eight per spacing step on a full hip roof, two on each side of each of the four hips.

Ridge length and roof area

The ridge on a regular hip roof is the building length minus its width, because each hip eats half the width at each end. A square building has no ridge at all and becomes a pyramid roof. Roof area is the same as for a gable of the same pitch and footprint, which the roof calculator totals in squares.

Low slopes and loads

Below a 3/12 pitch, the IRC requires ridges, hips and valleys to be designed as beams (R802.4.4)[1]. Asphalt shingles stop at 2/12[2]. Common rafter sizes come from the rafter span tables[3]; the rafter calculator handles a common rafter's overhang and birdsmouth, and the roof pitch calculator converts the pitch to degrees for a saw.

Frequently asked questions

How do you calculate a hip rafter length?

Multiply the common run (half the width) by √(2 + (pitch ÷ 12)²). At 6/12 that is 1.5 × the run.

What is 16.97 on a framing square?

The hip run for 12 in of common run (12 × √2). Set the pitch on the tongue and 17 on the body to lay out hip and valley cuts.

How long is the ridge on a hip roof?

Building length minus building width, when all four sides share one pitch.

How many jack rafters does a hip roof have?

About eight for every spacing step along the common run: two per side on each of the four hips.

Sources

  1. 2021 International Residential Code, Chapter 8: Roof-Ceiling Construction (R802 rafters) · International Code Council, accessed November 13, 2026
  2. 2021 International Residential Code, Chapter 9: Roof Assemblies (R905 minimum slopes) · International Code Council, accessed November 13, 2026
  3. Span Tables for Joists and Rafters, 2024 Edition · American Wood Council, 2023