Skip to main content

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.

Skip to calculator
Construction & Engineering

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.

Last updated: December 2025

Calculator

Adjust values & calculate
Ridge Board Length โ€” Gable Roof
42.00 ft
504.0 inches | Single ridge board running the full building length plus rake overhangs
Ridge Cap Bundles
2
at 25 ft/bundle
Ridge Vent
11
4-ft sections
Recommended Lumber
3 x 14 ft
Total: 42 ft | Waste: 0.0 ft
Tip: When splicing ridge boards, the joint must occur over a rafter pair and be reinforced with plywood gussets or metal straps on both sides. Ensure the ridge is level and straight before installing rafters, as any deviation will telegraph through the entire roof plane.
Your Result
Ridge: 42.00 ft (Gable) | 2 cap bundles
Share Your Result
Understand the Math

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.

Last reviewed: December 2025

Worked Examples

Example 1: Gable Roof with Overhangs

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

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
Expert Insights

Background & Theory

The Ridge Length Calculator applies the following established principles and formulas. Structural and construction engineering is governed by fundamental load analysis, material science, and regulatory standards that ensure the safety and durability of built structures. The primary distinction in load analysis is between dead loads โ€” the permanent self-weight of structural elements, finishes, and fixed equipment โ€” and live loads, which represent variable occupancy, furniture, and environmental forces such as wind and snow. These are combined using factored load equations, such as the ASCE 7 formula U = 1.2D + 1.6L, where D is dead load and L is live load. Concrete mix design is governed by the water-cement (w/c) ratio, which is the primary determinant of compressive strength and durability. A w/c ratio of 0.40โ€“0.45 typically yields concrete with 28-day compressive strengths of 30โ€“40 MPa. Common mix ratios by weight for structural concrete are approximately 1 part cement : 1.5โ€“2 parts sand : 3 parts coarse aggregate. Structural steel is characterized by its yield strength (the stress at which permanent deformation begins, typically 250โ€“350 MPa for mild steel) and ultimate tensile strength (typically 400โ€“500 MPa). Mid-span deflection of a simply supported beam under a central point load is given by ฮด = FLยณ / (48EI), where F is force, L is span length, E is Young's modulus, and I is the second moment of area. Building insulation is rated by R-value, a measure of thermal resistance in units of mยฒยทK/W (SI) or ftยฒยทยฐFยทh/BTU (imperial). Higher R-values indicate greater resistance to heat flow. Foundation design depends on the allowable bearing capacity of the underlying soil, which ranges from approximately 75 kPa for soft clay to over 10,000 kPa for bedrock. Drainage gradients for surface water are typically specified as a minimum of 1โ€“2% slope away from building foundations to prevent hydrostatic pressure and water infiltration.

History

The history behind the Ridge Length Calculator traces back through the following developments. The history of construction engineering spans thousands of years of accumulated empirical knowledge and, more recently, rigorous scientific analysis. The ancient Egyptians built the Great Pyramid of Giza around 2560 BCE using an estimated 2.3 million stone blocks, demonstrating sophisticated logistics, geometry, and workforce organization. Roman engineers advanced the field dramatically through the use of pozzolanic concrete โ€” a mixture of volcanic ash, lime, and seawater โ€” enabling the construction of the Pantheon dome (43.3 m diameter, completed around 125 CE) and a vast network of aqueducts and roads across the empire. Cast iron emerged as a structural material during the Industrial Revolution, first used prominently in the Iron Bridge at Coalbrookdale, England, completed in 1779. Wrought iron and later steel allowed far greater spans and heights. The Eiffel Tower, completed in 1889, demonstrated the structural possibilities of wrought iron at scale and influenced the development of steel-frame skyscraper construction in Chicago and New York. Reinforced concrete was systematically developed by Joseph Monier, a French gardener, who patented iron-reinforced concrete pots and panels in the 1860s, and later by engineers including Franรงois Hennebique who created the first comprehensive reinforced concrete framing system in the 1890s. The 1906 San Francisco earthquake caused widespread devastation and galvanized the engineering profession to develop seismic design provisions. Subsequent earthquakes โ€” including the 1971 San Fernando and 1994 Northridge events โ€” drove successive improvements in seismic codes, base isolation technology, and ductile detailing of reinforced concrete and steel frames. Building codes became increasingly standardized in the twentieth century, with the International Building Code (IBC) first published in 2000 providing a unified model code adopted across much of the United States. Building Information Modeling (BIM) emerged in the 2000s as a digital workflow integrating architectural, structural, and MEP design into a unified three-dimensional model, fundamentally changing coordination practices across the industry.

Share this calculator

Explore More

Frequently Asked Questions

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.
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.
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.
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.
You may use the results for reference and educational purposes. For professional reports, academic papers, or critical decisions, we recommend verifying outputs against peer-reviewed sources or consulting a qualified expert in the relevant field.
All calculations use established mathematical formulas and are performed with high-precision arithmetic. Results are accurate to the precision shown. For critical decisions in finance, medicine, or engineering, always verify results with a qualified professional.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

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.

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.

Why might my result differ from another tool or reference?

Differences typically arise from rounding conventions, the specific version of a formula (for example, simple vs compound interest), or unit inconsistencies between inputs. Check that both tools are using the same formula variant and the same units. The References section links to the authoritative source behind the formula used here.

How do I get the most accurate result?

Enter values as precisely as possible using the correct units for each field. Check that you have selected the right unit (e.g. kilograms vs pounds, meters vs feet) before calculating. Rounding inputs early can reduce output precision.

References

Reviewed by Abdullah, Technical Content Specialist ยท Editorial policy