US Roof Calculator

Hip Roof Calculator: Rafters, Ridge & Roof Area

A hip roof slopes on all four sides, which changes three figures carpenters and roofers need: the hip rafters run diagonally at 45° in plan, the ridge is shorter than the building, and the area still follows the same pitch multiplier. Enter length, width and pitch for all three — for a rectangular building with equal pitch on every side.

Home › Hip Roof Calculator

Calculate your hip roof

Your hip roof figures

Hip rafter length
—
Ridge length
—
Roof area
—

    For an equal-pitch hip roof on a rectangular building. Hip rafter length is the theoretical line length before ridge/end deductions and cuts.

    How hip roof geometry works

    Ridge length = building length − building width (equal pitch, rectangular plan) Roof rise = (width ÷ 2) × (pitch ÷ 12) Hip rafter = √( ((width ÷ 2) × √2)² + rise² ) (45° in plan, so its run is √2 × the common run) Roof area = plan area (incl. overhang) × pitch multiplier

    Worked example. A 40 ft × 30 ft building at 6/12: ridge = 40 − 30 = 10 ft. Rise = 15 × 0.5 = 7.5 ft. The hip rafter's horizontal run is 15 × √2 = 21.21 ft, so its length = √(21.21² + 7.5²) = √(450 + 56.25) = 22.5 ft. Roof area (no overhang) = 1,200 × 1.118 = 1,342 sq ft.

    Why is the ridge exactly length − width? Because each hip end is a triangle whose slope starts at the corner and reaches the ridge after traveling half the width horizontally. That consumes W/2 at each end — W in total — leaving L − W of full ridge. It only holds when every side has the same pitch; unequal pitches move the ridge off-center and this simple rule (and this calculator) no longer applies.

    Hip rafters vs common rafters

    The hip rafter is longer than the common rafter on the same roof (22.5 ft vs 16.77 ft in the example) because it travels diagonally: its plan run is √2 times the common run, while climbing the same rise. Jack rafters then run from eave to hip at decreasing lengths — framers step them down by a constant difference calculated from the spacing and pitch.

    Hip roof notes for pricing and materials

    • Area is not bigger — cutting is. A hip roof's surface follows the same multiplier as a gable roof over the same plan. What grows is waste: hips and rakes cut nearly every course, which is why material orders for hip roofs carry 15%+ waste instead of 10% (see the waste calculator).
    • Ridge cap runs further. You cap the ridge and every hip: total cap length = ridge + 4 × hip rafter length.
    • Ventilation differs. Hip roofs have little or no gable wall, so exhaust ventilation usually means ridge vent along a short ridge — check the numbers with the vent calculator.
    • Square buildings have no ridge. If length = width, the ridge length is zero and the roof is a pyramid (a "pavilion" hip) — the calculator returns ridge 0 ft, which is correct.

    Frequently asked questions

    How long is the ridge on a hip roof?

    For an equal-pitch hip roof on a rectangle: ridge length = building length − building width. A 40×30 ft building has a 10 ft ridge. On a square building the ridge vanishes and the roof becomes a pyramid.

    How do you calculate a hip rafter?

    The hip rafter runs at 45° in plan, so its horizontal run is the common run × √2. Its length is √(run² + rise²) where rise is the roof's total rise at the ridge. For a 30 ft wide building at 6/12: run 21.21 ft, rise 7.5 ft, hip rafter 22.5 ft.

    Is a hip roof more expensive than a gable roof?

    Usually yes, modestly: more framing labor (hip and jack rafters), more cutting waste (plan on 15%+), and far more ridge cap. The surface area itself — the main cost driver — is the same formula as a gable roof over the same footprint.

    Does this calculator work for unequal pitches?

    No. It assumes the same pitch on all four sides of a rectangular building, which is what makes the ridge centered and the length-minus-width rule true. Unequal-pitch ('irregular') hip roofs need full layout math per plane.

    How much ridge cap does a hip roof need?

    Ridge length plus the length of all four hips. In the worked example: 10 ft of ridge + 4 × 22.5 ft of hip = 100 ft of cap in total — one reason hip roofs surprise people at the materials counter.

    Sources & data

    Geometry: standard rise-over-run roof mathematics — pitch multiplier = √(1 + (rise/12)²), rafter length from the Pythagorean theorem — as published in roofing measurement references and framing practice.

    Data retrieved: 17 Nov 2026.

    Disclaimer: This page gives a preliminary estimate, not a contractor quote. Figures are based on national published cost ranges and standard geometry, with the assumptions shown on the page. Your actual price or measurement will vary with location, roof complexity and condition, material grade, and contractor. Always obtain written quotes and verify critical measurements before buying materials.

    Related calculators & guides

    Keep going with the tools and guides homeowners use alongside this one:

    Rafter Length Calculator

    Common rafter length, rafter count and cut angles from span, pitch and spacing.

    Roof Area Calculator

    True roof square footage and roofing squares from footprint and pitch.

    Roof Pitch Calculator

    Convert rise and run into pitch, angle in degrees, slope percent, multiplier and rafter length.

    Roof Waste Calculator

    The right waste percentage for your roof's complexity — and how much extra to order.

    Roof Vent Calculator

    Attic ventilation net free area under the 1:150 and 1:300 rules, split intake/exhaust.