Every Single CalculatorOne place for every calculator
⌂Roofing

Hip rafter calculator

Enter the span of the building and the roof pitch to find the length of a hip or valley rafter and how much each jack rafter shortens.

Example: You are framing a hip roof and need the length of the hips and how much shorter each jack rafter gets.

Your numbers

This is for a regular hip roof, where the hip runs at 45 degrees on plan and every side has the same pitch.

ft
/12
in
Measured level.
in
  • Hip or valley rafter0
  • Common rafter0
  • Hip length per foot of run0
  • Jack rafter difference0
  • Hip plumb cut0

How the lengths are worked out

A hip rafter runs diagonally across the corner, so for every 12 inches a common rafter travels on plan, the hip travels 16.97. That makes it longer and gives it a shallower slope.

Hip length = run × √(2 + (pitch ÷ 12)²)

Jack rafter difference = spacing × √(1 + (pitch ÷ 12)²)

A worked example

A building 30 feet wide with a 6/12 roof and a 12 inch overhang has a run of 16 feet. The common rafter is 17 feet 10⅝ inches and the hip is exactly 24 feet. A 6/12 hip measures 18 inches for every foot of run, which is the figure on a framing square. Jack rafters 16 inches apart each shorten by 17⅞ inches.

Good to know

  • These are line lengths to the corner of the building. The real hip is shortened at the top by half the diagonal thickness of the ridge, and its edges are backed or dropped so the roof sheathing sits flat.
  • Valley rafters are the same length as hips at the same pitch and run.
  • The hip plumb cut is flatter than the common rafter's. On a speed square, use the hip and valley scale, not the common scale.
  • Hip rafters are usually one size deeper than the commons, so the jack rafters bear fully on them.

Common questions

What about the common rafters?

The rafter length calculator covers those in detail, including the ridge allowance and how many you need.

How we know this calculator is right

Before this calculator went on the site, 10 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: roofers, framers and carpenters.