Ridge Length Calculator
Free Ridge length Calculator for roofing projects. Enter dimensions to get material lists and cost estimates. Free to use with no signup required.
Reviewed by Abdullah, Technical Content Specialist
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)\nRidge = 40 + (2 x 1) = 42 feet\nBest lumber: 2 x 22 ft boards or 3 x 14 ft boards\nRidge 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\nRidge = 50 - 30 = 20 feet\nBest lumber: 1 x 20 ft board\nRidge 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.
References
Reviewed by Abdullah, Technical Content Specialist ยท Editorial policy