Ridge Length Calculator
Calculate roof ridge board length for gable, hip, and Dutch hip roofs. Includes lumber recommendations, ridge cap bundles, and ridge vent quantities.
Ridge Length Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Gable: Ridge = Length + 2 x Rake; Hip: Ridge = Length - Width
Worked example โ Ridge = 42 ft, 2 ridge cap bundles, 11 ridge vent sections
Formula
Gable: Ridge = Length + 2 x Rake; Hip: Ridge = Length - Width
For a gable roof, the ridge runs the full building length plus any rake overhangs at each end. For a hip roof, the ridge is shorter because the hipped ends replace the gable extensions, making the ridge equal to the building length minus the building width. For a Dutch hip, the ridge is intermediate between gable and full hip lengths.
Worked Examples
Example 1: Gable Roof with Overhangs
Problem:Calculate ridge length for a 40 x 24 ft gable roof with 12-inch rake overhangs.
Solution:Ridge length = building length + (2 x rake overhang) Ridge = 40 + (2 x 1) = 42 feet Best lumber: 2 x 22 ft boards or 3 x 14 ft boards Ridge cap bundles = ceil(42/25) = 2
Result:Ridge = 42 ft, 2 ridge cap bundles, 11 ridge vent sections
Example 2: Hip Roof โ No Ridge Overhang
Problem:Calculate ridge length for a 50 x 30 ft hip roof.
Solution:Ridge length = building length - building width Ridge = 50 - 30 = 20 feet Best lumber: 1 x 20 ft board Ridge cap bundles = ceil(20/25) = 1
Result:Ridge = 20 ft, 1 ridge cap bundle, 5 ridge vent sections
Frequently Asked Questions
How do you calculate ridge board length for a gable roof?
For a simple gable roof, the ridge board length equals the building length plus the rake overhangs on both ends. The rake overhang is the horizontal distance the roof extends beyond the gable end walls. If the building is 40 feet long with 12-inch rake overhangs on each end, the ridge board is 42 feet. For roofs without rake overhangs (flush gable), the ridge board equals the building length. Always add a few inches for trimming when ordering lumber.
How is the ridge length different for a hip roof versus a gable roof?
A hip roof has a shorter ridge than a gable roof because the hipped ends eliminate the need for the ridge to extend the full building length. For a standard equal-pitch hip roof, the ridge length equals the building length minus the building width. If the building is 40 feet long and 24 feet wide, the hip ridge is 16 feet. For a perfectly square building, the ridge length would be zero, creating a pyramid hip roof where all four hip rafters meet at a single peak point.
What size ridge board do I need?
The ridge board should be at least one size deeper than the rafters. For 2x6 rafters, use at least a 2x8 ridge board. For 2x8 rafters, use a 2x10 ridge. This ensures the rafters bear fully against the ridge board. The ridge board is typically 1.5 inches thick (nominal 2x lumber). For engineered ridge beams that carry structural loads, the sizing is determined by engineering calculations based on span, load, and species. Non-structural ridge boards serve as a nailing surface and alignment guide for the rafters.
How much ridge vent do I need?
Ridge vent should run the entire length of the ridge for maximum attic ventilation. The standard recommendation is 1 square foot of net free ventilation area for every 150 square feet of attic floor area, split equally between ridge (exhaust) and soffit (intake) vents. Most ridge vent products provide 18 square inches of net free area per linear foot. For a 40-foot ridge, you would install 40 feet of ridge vent. Always ensure adequate soffit intake venting to match the ridge exhaust capacity for proper balanced airflow.
How is the ridge worked out on an L-shaped or cross-gable roof?
Break the plan into rectangles and give each wing its own ridge. The main wing is measured as usual from its length, width and rake overhang. The secondary wing's ridge runs from its outer end back to where its roof planes cut into the main roof, and valley rafters carry that intersection. When both wings have the same span and pitch the two ridges sit at the same height and the secondary one dies into the main ridge; a narrower wing rides lower and stops part way up the main slope.
What is a Dutch hip and how does it change the ridge?
A Dutch hip, also called a Dutch gable, stops the hip partway up and finishes the top of the end with a small gable wall. Because the hip is truncated, the ridge does not pull back the full half-width at each end, so its length falls between the full gable value and the pure hip value. The deeper the little gable, the longer the ridge. It is chosen to keep a gable vent or a decorative end wall while retaining the hip roof's lower wind exposure.
When do I need a structural ridge beam instead of a ridge board?
A ridge board is only a nailing and alignment member; the rafters form a triangle with the ceiling joists or rafter ties, and those ties absorb the outward thrust at the wall plates. Remove the ties, as in a cathedral or vaulted ceiling, and the triangle is gone, so the peak must be carried in bending by a structural ridge beam supported on posts down to the foundation at each end. That beam is sized by span, load and species, and is usually far deeper than a nominal 2x ridge board.
How should a long ridge board be spliced?
Ridge stock is not made in unlimited lengths, so a 42 foot ridge is built from two or three pieces. Land every joint on a rafter pair, so that opposing rafters bear against the board on both sides of the splice and hold it in line, and stagger the joint away from the middle of the span if a structural member is involved. Butt the ends square, keep the top edge flush so the rafter plumb cuts seat fully, and scab a cleat over the joint where it is a non-structural board.
How do I estimate ridge cap for both the ridge and the hips?
Cap shingles run along every peak line, not just the main ridge, so on a hip roof you must add the sloped length of all four hip rafters to the ridge length before working out bundles. Cap is sold by linear coverage per bundle, so divide the total peak length by the coverage figure printed on the wrapper and round up. Ordering off the ridge length alone is a classic shortfall on hip roofs, where the hips can easily exceed the ridge itself.
Why does length minus width fail when the two roof slopes have different pitches?
That shortcut assumes symmetry: equal pitch on all four planes puts the hip at 45 degrees in plan and moves the ridge end back exactly half the width. If the end slopes are shallower than the main slopes, the hips lay over at less than 45 degrees and the ridge ends move back further, shortening the ridge; steeper ends do the opposite. Unequal-pitch roofs, and buildings that are not a simple rectangle, need the ridge located from a scaled roof plan rather than a formula.
References
Background & Theory
History
Reviewed for accuracy by Abdullah, Technical Content Specialist ยท Editorial policy
Related Calculators
๐งฎAnchor Bolt Embedment Length Calculator
Calculate anchor bolt embedment length with inputs, formulas, and instant results.
๐งฎRebar Development Length Calculator
Calculate rebar development length with inputs, formulas, and instant results.
๐งฎEquivalent Length Fittings Calculator
Calculate equivalent length fittings with inputs, formulas, and instant results.
๐งฎRafter Length Calculator
Calculate rafter length with inputs, formulas, and instant results.
๐งฎCeiling Fan Downrod Length Calculator
Calculate the correct downrod length for ceiling fans based on ceiling height.
๐งฎColumn Load Calculator
Calculate axial load capacity for columns based on material, section, and effective length.
๐งฎFence Post Spacing Calculator
Calculate optimal fence post spacing and total post count from fence length and terrain.
๐งฎConstruction Equipment CO2 Calculator
Calculate carbon footprint construction equipment with inputs, formulas, and instant results.