Hip Roof Framing Calculator

Count the commons and hips in a hip roof, get each member length and the ridge, and total the framing from span, length, pitch and spacing.

Quick answer: a 30 by 40 ft hip roof at 6:12, with 2 ft spacing and a 1 ft overhang, needs 12 common rafters at 17.89 ft and 4 hips at 24.00 ft — 310.7 ft of framing. The ridge is a separate 10.00 ft, and jack rafters are not included.

  • Common and hip counts
  • Rafter, hip and ridge lengths
  • Total framing, jacks excluded

Hip framing inputs and results

Each hip consumes half a span of ridge, so a short building can have no ridge at all.

Hip roof planbuilding spanroof depthridge (orange), hips to the corners
Both the building span and the roof depth are plan dimensions; the hips follow the corners. → total framing length
Total framing length
310.7 ft
12 commons at 17.89 ft · 4 hips at 24.0 ft · ridge 10.0 ft
Common rafters
12
Rafter length
17.89 ft
Hip length
24.0 ft
Ridge
10.0 ft

Common rafters are counted along the shortened ridge; the jack rafters filling the hip ends are a separate count.

Show calculation

What this hip roof framing calculator works out

A hip roof has four planes instead of two, and the framing changes with it. Where a gable roof uses one run of identical rafters per side, a hip adds a short ridge, four hip rafters running diagonally out to the corners, and jack rafters filling the triangles either side of each hip.

This page counts the commons and the hips, gives the length of each, and totals their footage. It also reports the ridge length, because on a hip roof the ridge is short and has to be ordered as its own member.

What it does not count is the jacks — and on a hip roof that is not a small omission. The jacks are often the largest single group of members on the roof, and they are a separate calculation with their own stepped lengths. The total here is commons plus hips only.

What a normal result looks like. A 30 by 40 ft hip roof at 6:12 with 2 ft spacing and a 1 ft overhang needs 12 commons at 17.89 ft and 4 hips at 24.00 ft, for 310.7 ft. The ridge is 10.00 ft. Four hips account for 96 ft of that total — a third of the timber in less than a tenth of the members.

If you are comparing roof shapes, this is the number that surprises people. A gable on the same footprint needs fewer, longer members; a hip needs more, and four of them are the expensive diagonal type.

Hip roof framing under construction, with common rafters along the ridge and hip rafters running diagonally to the corners.
Commons run square to the ridge; hips run diagonally to the corners. The two are different lengths.

What each hip roof framing input and result means

Five inputs, five results. Three of the results are lengths, one is a count, and one is a total that deliberately leaves something out.

The five inputs.
FieldUnitWhat to enter
Building spanfeetThe shorter plan dimension — the width the roof spans across. Outside face to outside face.
Building lengthfeetThe longer plan dimension, along the ridge. It must be at least the span, or there is no ridge to frame.
Pitchrise per 12The common rafter pitch as rise over 12. A 6:12 roof is entered as 6.
Rafter spacingfeetCentre-to-centre spacing in feet. 16 in is 1.333, 24 in is 2. It drives the common count only.
OverhangfeetHorizontal projection at the eaves. Added to the run before both the pitch factor and the diagonal are applied.
The five results, and what each one is for.
ResultUnitWhat it means
Rafter lengthfeetThe cut length of one common rafter, overhang included, measured to the ridge centre line. Every common on the roof is this length.
Common rafterscountCommons on both long sides, counted along the ridge rather than the building length, including one at each end of the run.
Hip lengthfeetThe cut length of one hip rafter. All four are the same length on a rectangular plan with equal pitches.
RidgefeetBuilding length minus span. Reported separately because it is ordered as its own member.
Total framing lengthfeetCommons plus hips. The ridge and the jacks are not in this figure — add them yourself if you are pricing the whole roof.

Lengths are displayed to two decimal places and counts are whole numbers. Nothing is rounded up to a stock length, so every figure is a member length rather than an order.

How to use the hip roof framing calculator

Five fields, and the results update as you type. The one to get right first is which dimension is which.

  1. Span is the width across the roof, between the two walls the commons land on. It is the smaller number on a normal rectangular building.
  2. Length is the long dimension, along the ridge line. If you swap these two, the ridge comes out negative and the calculator will tell you.
  3. Pitch as rise per 12 — the common pitch, not the hip's.
  4. Rafter spacing in feet, so 16 in is 1.333 and 24 in is 2.
  5. Overhang measured horizontally, not along the slope.

Read the ridge first. It should be length minus span and it should be positive. If it comes out zero the building is square and the roof is a pyramid with no ridge at all; if it comes out negative, the span and length are the wrong way round.

Then read the count. Commons only exist where there is ridge above them, so the count follows the ridge, not the building. That is why a 40 ft building can need only 12 commons while a 34 ft one needs just 6.

Hip roof framing formulas

run = span ÷ 2
pitch factor = √(1 + (pitch ÷ 12)²)
common rafter = (run + overhang) × pitch factor
hip plan run = (run + overhang) × √2
hip = √(hip plan run² + rise²)
ridge = length − span
commons = 2 × (⌊ridge ÷ spacing⌋ + 1)

The hip plan run is the diagonal to the corner, which is why the square root of two appears. Before the rise is added, the hip is already 41% longer than the common in plan — and the rise is then applied to that longer base.

The common count uses the ridge rather than the building length, because a common rafter can only sit where there is a ridge above it. Beyond the ends of the ridge the plane is filled with jacks, which lean against the hips at ever-shorter lengths.

The ridge formula is worth understanding rather than just using. Ridge = length − span works because each hip consumes half the span at each end of the building: the ridge has to stop a half-width short of each end wall. That only holds when all four planes are at the same pitch. Change the pitch at one end and the ridge moves, and the formula stops being true.

Each member is just a common rafter on its own line. If you want one in isolation rather than a whole roof, the rafter length calculator gives it from the run, pitch and overhang.

Why a hip roof has four equal hips

A hip roof is a rectangle with all four edges sloping inward. Two of the resulting planes are trapezoids and two are triangles, and the four hips are the lines where they meet.

That geometry explains everything odd about hip framing. The ridge is short because the hips eat into both ends. The hips are longer than the commons because they travel diagonally. And there are four of them rather than two gable ends, which is why a hip roof uses more timber than a gable on the same footprint.

All four hips are the same length on a rectangular plan at equal pitch. That is not obvious, and it trips people up: the two hips at the ends of the building look shorter because the ridge is closer to them, but the plan distance from ridge end to corner is identical at every corner.

The ridge is the building length minus the span. A 40 ft building 30 ft wide has a 10 ft ridge. Make the building square and the ridge disappears entirely — you are framing a pyramid, not a hip roof.

The area is a separate question from the frame. Sloped area, squares and waste are handled by the hip roof calculator, and the two numbers are routinely confused: a roof can need more timber than its area suggests, because the hips are long and the cuts are wasteful.

Comparing shapes is worth doing before you commit, and the other profiles are their own calculations rather than variations on this one. A gambrel breaks each slope into two bands, so it needs the gambrel roof framing calculation. A mansard runs those two bands around all four sides, which is the mansard roof framing calculator. Neither scales from the numbers on this page, because the ridge and the member counts behave differently in each.

A hip rafter running diagonally from the ridge to the corner of the building, with jack rafters landing against it.
The hip carries the jacks. Its length is set by the diagonal run, not by half the span.

Hip roof jack rafters, and why they are excluded

Everything on a hip roof that is not a common or a hip is a jack. They run square to the ridge like commons, but stop short against a hip, so each one is shorter than the last as you work down the plane. On a typical hip roof they are the most numerous member by a wide margin.

They are excluded from this page for a reason rather than an oversight. A jack is not one length; it is a series, and the series depends on the jack spacing, which is often different from the common spacing. Folding that into the same total would produce a number that looks precise and is not.

Two things you can work out from what is here. The step between one jack and the next is the jack spacing multiplied by the common pitch factor — at 6:12 with jacks at 16 in centres that is 17⅞ in. And the number of jacks per hip face is roughly the half span divided by the jack spacing, because that is how far the plane runs from the ridge down to the eave.

Price them separately and add them to the total on this page. On a large hip roof the jacks can easily exceed the commons and hips combined, so leaving them out of a quote is not a rounding error.

Hip roof framing code requirements

Three provisions do most of the work on a hip roof, and none of them is about counting.

IRC R802.4.3 covers the hips themselves: not less than 2 in nominal in thickness, not less in depth than the cut end of the rafter, and supported at the ridge by a brace to a bearing partition or designed to carry and distribute the specific load at that point. A hip concentrates load where it meets the ridge, which is exactly why the brace clause exists.

IRC R802.3 sets the ridge: not less than 1 in nominal thickness and not less in depth than the cut end of the rafter. Where ceiling joists or rafter ties do not provide continuous ties across the structure, the ridge has to be supported by a wall or designed as a beam.

IRC R802.2 is the one that applies to every roof and is most often forgotten on a hip: the assembly must provide continuous ties across the structure so that roof thrust is not applied to the supporting walls. A hip roof has no gable ends to brace against, so the tie detail carries more of the load path, not less.

There is one more worth knowing for shallow roofs. R802.4.4 requires that where the pitch is less than 3:12, the members supporting rafters — including ridges, hips and valleys — be designed as beams rather than sized from the rafter tables.

Worked hip roof framing examples

Example 1 — 30 by 40 ft at 6:12, 2 ft spacing

Run
30 ÷ 2 = 15.00 ft
Rafter
(15 + 1) × 1.1180 = 17.89 ft
Hip plan run
16 × 1.4142 = 22.63 ft
Hip
√(22.63² + 8.00²) = 24.00 ft
Ridge
40 − 30 = 10.00 ft
Commons
2 × (5 + 1) = 12
Total
12 × 17.89 + 4 × 24.00 = 310.7 ft

Twelve commons and four hips. The hips account for 96 ft of the total despite being only four members.

commons = 12; hips = 4; total = 310.7 ft

Example 2 — a narrower building at a steeper pitch

Inputs
24 by 36 ft, 8:12, 1.5 ft spacing, 1.5 ft overhang
Run
12.00 ft
Rafter
13.5 × 1.2019 = 16.22 ft
Hip
√(19.09² + 9.00²) = 21.11 ft
Ridge
36 − 24 = 12.00 ft
Commons
2 × (8 + 1) = 18
Total
18 × 16.22 + 4 × 21.11 = 376.5 ft

More total framing on a smaller roof, because tighter spacing gives eighteen commons instead of twelve.

commons = 18; hips = 4; total = 376.5 ft

Example 3 — shortening the building by 6 ft

Inputs
30 by 34 ft, 6:12, 2 ft spacing, 1 ft overhang
Run
15.00 ft
Rafter
(15 + 1) × 1.1180 = 17.89 ft
Hip
√(22.63² + 8.00²) = 24.00 ft
Ridge
34 − 30 = 4.00 ft
Commons
2 × (2 + 1) = 6
Total
6 × 17.89 + 4 × 24.00 = 203.3 ft

Six feet off the length took the ridge from 10 ft to 4 ft, and the commons from twelve to six. The hips did not change at all, because their length depends on the span, not the length. This is the relationship that makes hip roofs behave so differently from gables as a building gets longer.

commons = 6; hips = 4; total = 203.3 ft

What spacing costs on a hip roof

The 30 by 40 ft roof at 6:12, 1 ft overhang, at five spacings. The hip length and hip count never move — only the commons do.

Common rafter count against spacing, 30 by 40 ft at 6:12. Ridge 10 ft, 4 hips at 24.00 ft in every row.
Spacing Commons Commons length Hips Total framing
1 ft22393.5 ft96.0 ft489.5 ft
16 in16286.2 ft96.0 ft382.2 ft
19.2 in14250.4 ft96.0 ft346.4 ft
24 in12214.7 ft96.0 ft310.7 ft
32 in8143.1 ft96.0 ft239.1 ft

Two things to take from it. The hips are a fixed 96 ft whatever you do with spacing, so they are a floor under the material cost. And the range between 1 ft and 32 in centres is more than double, which is why the spacing decision matters more than any other on this page.

Hip roof framing limitations

  • Commons and hips only. Jacks, plates, ridge beam, blocking and bracing are separate. The jacks are usually the largest omission, so add them before you price anything.
  • Rectangular plan. An L-shaped or T-shaped hip roof is several roofs joined together and needs several calculations, plus the valleys where they meet.
  • Equal pitch on all planes. The ridge formula and the equal hip lengths both depend on it. A different pitch at the ends moves the ridge and makes the four hips different lengths.
  • No waste. The total is member length before cutting. Hip work generates more offcut than gable work, because the members come out of stock at an angle.
  • No sizing. Member depth and grade are a span-table question. R802.4.3 sets a floor, not a design.
  • No ceiling joists or ties. Those are a separate takeoff, and on a hip roof they carry more of the load path because there are no gable ends to brace against.
  • No ridge deduction. Members are figured to the centre line, so each is slightly long where it meets the ridge board.
  • Not a hipped gable. A roof with gables at the ends and hips elsewhere is a mixed shape. The gable portion needs its own gable end framing calculation, and this page will overstate the hips.
  • Other profiles are different calculations. A gambrel breaks each slope into two bands; a mansard runs two bands around four sides. Neither scales from the numbers on this page, and the member counts behave differently in each.

Roof Pitch Resources and Guides

Reference values for the pitches that set every member length.

Frequently asked questions

The area page returns the roof surface and the total hip length. This page returns the framing takeoff: how many common rafters, how many hips, and the total linear feet of member to order. One is a materials quantity for the covering, the other is a timber quantity for the frame.

Because a hip roof has four sloping planes. The ridge is shortened at each end by half the span, so its length is the building length minus the span. A 40 ft building 30 ft wide has a 10 ft ridge. On a gable the ridge would run the full 40 ft.

Its plan run is half the span times the square root of two, because it travels diagonally to the corner. Its length is that run combined with the rise. On a 30 ft span at 6:12 with a 1 ft overhang, the hip is 24.0 ft against a common rafter of 17.9 ft.

Because their number and lengths depend on how the last jack lands, which varies with the spacing and the layout. Counting them here would mean assuming a layout. The jack rafter calculator returns the full stepped series and the count.

Along the ridge, at your spacing, on both sides — one more than the number of spaces, doubled for the two planes. On a 10 ft ridge at 2 ft centres that is six positions per side, so twelve commons.

No. It changes the length of every member but not how many there are. It does increase the total linear footage, because each rafter and each hip is longer.

They are separate linear takeoffs. The plates run the perimeter of the building; the ridge beam runs the ridge length and is a structural member in its own right. This page reports the ridge length so you can order it, but does not size it.

It is the sum of member lengths before waste. Add a waste allowance for cutting and for the fact that timber comes in fixed lengths. The roof lumber calculator converts a count and a length into board feet.

Because it travels further in plan. The common rafter crosses half the span; the hip crosses half the span diagonally, which is 1.41 times as far, before the rise is added. On the default example the hip is 6.1 ft longer than the common rafter.

No. It counts and measures them. Whether a 2 by 8 is adequate at that span and spacing is a span-table question. Framing geometry and structural adequacy are different jobs, and this page only does the first. IRC R802.4.3 does set a floor for the hips — not less than 2 in nominal thick, and not less deep than the cut end of the rafter — but a floor is not a design.

Because each one covers the same plan distance. A hip starts at the end of the ridge, which is half the span in from the side wall, and finishes at a corner, which is half the span from the centre line. Both legs of that plan triangle are half the span, so every hip has the same plan run regardless of how long the building is. They look different on the drawing because the ridge is nearer the end ones, but the numbers are identical.

Roughly the half span divided by the jack spacing, on each of the eight faces — four hips with two faces each. On a 30 ft span with jacks at 2 ft centres that is about 7 per face, so 56 in total. Treat that as an order-of-magnitude check rather than a cutting list: the exact series depends on where the first jack lands and whether the spacing is measured along the plate or square to the ridge.

Then the ridge is zero and you are framing a pyramid roof, not a hip roof. The four hips meet at a single point. The calculator will still return a result, because zero is a valid ridge length, but the commons count collapses to the two members at each end and the number stops being meaningful. If your building is within a foot or two of square, treat it as a pyramid and calculate it that way.

Where these numbers come from

All of it is geometry. The hip plan run is the diagonal to the corner, the hip length combines that with the rise, and the counts follow from the ridge length and the spacing. Nothing here depends on a rule of thumb.

No table is involved and no member is sized. The page measures and counts; whether the members are adequate is a separate question answered by a span table or a designer. The code provisions quoted above come from Chapter 8 of the International Residential Code.

  • International Residential Code, Chapter 8 — Roof-Ceiling Construction (International Code Council). Sections R802.2, R802.3, R802.4.3 and R802.4.4.
  • Your own measurement of the span and the length, taken at both ends where the building allows.
  • The design pitch and the intended rafter spacing.
  • A span table or designer for member size, grade and the ridge brace.

Counting the jacks too?

The jack rafters fill the triangles between the hips and the commons, in a stepped series of lengths.

Scroll to Top