Roof Ridge Height Calculator
Compare Gable, Hip, and Shed ridge height, then estimate roof size, length, and area from span and pitch. This roof ridge height calculator ranks roof types by how tall they stand and doubles as a roof size estimator.
Ridge Height by Roof Type — Pick a Card to Compare
Educational reference. The ridge height and roof-size values on this page are geometric estimates for planning, takeoff, and type comparison. They are not prescriptive engineering guidance — verify against your local building code and a stamped roof plan before ordering material.
Roof Size Estimator: Height, Length, and Area
The estimator takes the span, pitch, overhang, and building length from the inputs above and returns the gable roof’s ridge height, sloped rafter length, ridge length, and total area. That makes it a roof dimension calculator in one pass — you get the height, the length along the slope, and the area for a shingle or sheathing takeoff. The area assumes a simple gable; add a 10–15% waste factor and adjust for hips, valleys, or dormers.
slored = (run+oh)/cos(pitch) = (12+1)/cos(26.57 deg) = 14.53'
area = 2 * slored * (bl+2*oh) = 2 * 14.53 * 42.00 = 1221 sq ft
Gable vs Hip vs Shed: How Ridge Height Changes by Roof Type
The single most important thing a roof ridge height calculator that compares types tells you is that the same span and pitch give very different heights depending on the roof form. A gable and a hip both peak at (span / 2) × (X / 12) because both slope across half the span to a central ridge — for a 24-foot span at 6/12 that is 6' 0". A shed roof slopes across the full span, so it peaks at span × (X / 12), which is double — 12' 0" for the same 24-foot, 6/12 example. That 2× difference is why a shed roof can blow a zoning height cap that a gable clears comfortably, and why choosing a roof form is a height decision, not just an aesthetic one.
Same 24′ span, same 6/12 pitch. Gable and hip peak at 6′; shed peaks at 12′ because it slopes across the full span.
The hip roof is the subtle case: it matches the gable’s ridge height but shortens the ridge board because hip rafters slope in from all four corners. So a hip and a gable of the same span and pitch have identical ridge height and identical attic volume at the peak — the difference is in the corners, not the ridge. The gambrel and mansard types stack two pitches per side, so their ridge height is the sum of a lower rise and an upper rise; the live numbers in the cards above assume a standard two-pitch split and are planning estimates, not exact values for a specific design. Use the scenario filter to walk each type and see how the ridge height moves before committing to a roof form.
A shed roof doubles the ridge height of a gable at the same span and pitch. If a zoning cap is tight, a gable or hip clears it where a shed fails.
The area estimator assumes a simple gable. Hip, valley, and dormer roofs add surface area the formula does not capture — add 10–15% waste and adjust for the actual roof plan.
Do not size a hip roof’s ridge board from the gable ridge length. The hip ridge is shorter; sizing from the gable length over-orders the ridge stock.
Frequently Asked Questions
What is a roof ridge height calculator and how is it different from a plain roof height calculator?▼
A roof ridge height calculator compares the ridge height across roof types — Gable, Hip, Shed, Gambrel, and Mansard — and also estimates roof size (sloped length, ridge length, and total area) from the span, pitch, and overhang. This page is that tool: pick a roof type to see its ridge height formula and a live example, then run the size estimator for area and length. It differs from a plain roof height calculator, which only returns the single gable rise from span and pitch; this page adds the type comparison and the roof-size estimation.
How do I use this roof ridge height calculator to compare roof types?▼
Enter the span (feet) and pitch (X/12) at the top, then click a roof-type card — Gable, Hip, Shed, Gambrel, or Mansard. The card highlights and shows that type’s ridge height for your span and pitch. A shed roof will show roughly double the gable ridge height because it slopes across the full span; a hip roof matches the gable height but with a shorter ridge. Use the filter to compare types side by side before choosing a roof form for a zoning or clearance target.
How does this page act as a roof size estimator?▼
The size estimator at the top takes span, pitch, overhang, and building length and returns the ridge height, the sloped rafter length (run plus overhang divided by the cosine of the pitch angle), the ridge length (building length plus two overhangs), and the total gable roof area (two planes times slored length times ridge length). That makes the page a roof size estimator — you get the height, the length, and the area in one pass, which is what most calculate-size-of-roof questions actually need.
How do I calculate the size of a roof (area and length)?▼
To calculate the size of a roof, you need three linked dimensions: the ridge height = (span / 2) × (X / 12); the sloped rafter length = (run + overhang) ÷ cos(pitch angle) where the pitch angle = atan(X / 12); and the total roof area = 2 × sloped length × ridge length for a gable. The roof length calculator portion of this page computes the sloped length and ridge length from your span, overhang, and building length, so you can calculate the size of a roof for shingle orders or sheathing takeoff in one place.
What is the ridge height of a shed roof versus a gable roof?▼
A shed roof has roughly double the ridge height of a gable roof at the same span and pitch, because the shed slopes across the full span while the gable slopes across half the span. For a 24-foot span at 6/12, a gable peaks at 6' 0" while a shed peaks at 12' 0" on the high side. That is the single biggest reason to use a roof ridge height calculator that compares types rather than a single-formula roof rise calculator — the same span and pitch give very different heights depending on the roof form.
What is the roof length calculator on this page?▼
The roof length calculator is the part of the size estimator that returns the sloped rafter length — the distance along the slope from the ridge to the fascia, including the overhang. It is computed as (run + overhang) ÷ cos(pitch angle), where run = span / 2 and the pitch angle = atan(X / 12). For a 24-foot span at 6/12 with a 1-foot overhang, that is (12 + 1) ÷ cos(26.57°) ≈ 14.54 feet of sloped rafter per side. This is the roof length you use to order rafter stock and sheathing.
Is this roof dimension calculator accurate enough for a shingle order?▼
The roof dimension calculator returns geometric dimensions for planning and takeoff — ridge height, sloped length, ridge length, and area. For a shingle order the area number is the right starting point, but add a waste factor (typically 10–15% for a simple gable, more for hips and valleys) and confirm against the actual roof plan, because hips, valleys, dormers, and rake details all add area that the simple gable formula does not capture. Treat the output as a planning estimate, not a cut order.
Why does the hip roof have the same ridge height as the gable?▼
Because the hip rafter slopes in from the corner but the main ridge still sits at the center of the span at the same pitch. So the ridge height of a hip roof equals the gable ridge height — (span / 2) × (X / 12) — for the same span and pitch. What changes on a hip roof is the ridge length (it is shorter, because the hip rafters eat into the building length at both ends) and the number of planes (four instead of two). The roof ridge height calculator on this page keeps the height the same and flags the ridge-length difference in the hip card note.
Does this roof rise calculator handle gambrel and mansard roofs?▼
Yes, with a caveat. The gambrel and mansard cards show an illustrative ridge height based on a standard two-pitch split (a steep lower pitch and a shallow upper pitch over equal quarter-span runs). Because real gambrel and mansard designs mix pitches freely, the live number is a planning estimate, not an exact value — for an exact ridge height on a specific gambrel or mansard design, compute each segment’s rise separately (lower rise + upper rise) from the actual pitches and runs on the plans. The card note flags this as an Edge Case for that reason.
Related Calculators
Floor Joist Span Calculator
Interactive floor joist span lookup with reference span char...
Roof Pitch Calculator
Interactive roof pitch calculator: convert X/12 to degrees, ...
Roof Truss Calculator
Roof truss span estimator and selection guide comparing King...
Rafter Lumber Size Calculator
Free rafter lumber size calculator for rafters, joists & bea...
Roofing Calculator
Free roofing calculator to estimate roof materials, pitch, r...
Roof Height Calculator
Free roof height calculator: enter span and pitch to get rid...
Rafter Angle Calculator
Free rafter angle calculator: get plumb cut, seat cut, and b...
I-Joist Span Calculator
I-joist span calculator with TJI span tables by series, spac...
Roof Truss Cost Calculator
Roof truss cost calculator estimates truss prices per type. ...
Lean-to Roof Calculator
Lean-to roof calculator finds rafter length, pitch, and slop...
Gable Roof Calculator
Gable roof calculator computes rafter length, plumb cut, roo...
Roof Overhang Calculator
Roof overhang calculator finds eave length, fascia height, a...
Pergola Rafter Calculator
Pergola rafter calculator finds rafter count, spacing, span,...
Metal Roof Calculator
Metal roof calculator estimates panel count, panel length, a...
Rafter Load Calculator
Rafter load calculator converts snow, dead, and live loads i...
Rafter Tie Calculator
Rafter tie calculator finds horizontal thrust, tie tension, ...
Gambrel Rafter Calculator
Gambrel rafter calculator computes upper and lower rafter le...
Gazebo Rafter Calculator
Gazebo rafter calculator sizes hip and common rafters for he...
Ridge Beam Calculator
Ridge beam calculator compares ridge board vs structural rid...
Rafter Tables
Rafter table calculator: length factors for 1/12 to 24/12 pi...
Rafter Insulation Calculator
Calculate insulation R-value, batt depth, and vent baffle ga...
Board Feet Calculator
Board feet calculator with the bd ft = (T×W×L)/12 formula, n...
Linear to Square Feet Calculator
Convert linear feet to square feet and back with material wi...
Stair Calculator
Stair calculator finds riser height, tread depth, stringer l...
Flat Roof Rafter Calculator
Flat roof rafter calculator for low-slope roofs: reference 2...
Dormer Rafter Calculator
Dormer rafter calculator for shed and gable dormers: rafter ...
LVL Beam Span Calculator
LVL beam span calculator with reference span charts by depth...
Header Size Calculator
Size a door or window header with our free calculator. Door ...
Wall Stud Calculator
Free wall stud calculator and estimator: stud count with ope...