Hip & Ridge Length Calculator
Calculate main ridge length, hip line length, and valley linear feet from building dimensions and roof pitch for accurate ridge cap and hip shingle ordering
Enter building dimensions and roof type to calculate ridge and hip line lengths
Quick presets
Total Linear Feet
268 LF
Ridge: 20 LF • hip roof
Professional Calculator
Extended parameters for precise calculations
Estimated Materials
60 bundles
Roof Area
1,792 sq ft
Squares
17.9
Detailed Breakdown
How to Use This Calculator
Dimensions tab: Enter your building length, width, and roof pitch, then select the roof configuration. The calculator instantly computes the main ridge length (building length minus building width for a standard hip) and the total hip line length using the 3D diagonal formula that accounts for both the plan-view diagonal and the vertical rise from the pitch. For a gable roof, the ridge equals the full building length and there are no hip lines. For a cross-hip, the calculator adds the intersecting ridges and additional hip lines at the cross junction.
Ridge & Hip Lines tab: This tab provides a more detailed breakdown. You can add valleys (from additions, wings, or dormers) and dormer ridge lines. The calculator computes each valley's actual length based on the horizontal run and pitch angle. Dormer ridges are typically 4-8 feet each and add two short valley lines per dormer. The output is a complete inventory of every linear element on your roof — main ridge LF, total hip LF, total valley LF, and dormer ridge LF — all adjusted for the actual 3D length including pitch factor.
Materials tab: Enter the linear footage totals from the previous tabs and select your ridge cap product and ridge vent type. The calculator converts linear feet to material quantities: ridge cap bundles (accounting for different coverage rates between factory and field-cut products), ridge vent sections with overlap allowance, and valley flashing pieces. The waste factor applies on top of the base quantities to ensure you have enough material for cuts and fitting at intersections.
The Formula
Main Ridge Length (standard hip) Ridge LF = Building Length - Building Width Example: 50 ft long, 30 ft wide → Ridge = 50 - 30 = 20 LF Note: If Length ≤ Width, ridge = 0 (pyramid hip)
Hip Line Length (each) Run = Building Width / 2 Rise = Run × (Pitch Rise / 12) Hip Length = √(Run² + Run² + Rise²) = Run × √(2 + (Pitch/12)²) Example: 30 ft wide, 5/12 pitch → Run = 15, Rise = 6.25, Hip = √(225 + 225 + 39.06) = 22.1 ft each Total for 4 hips = 4 × 22.1 = 88.4 LF
Valley Length Valley LF = √(2 × Run² + Rise²) Example: 12 ft run, 5/12 pitch → Rise = 5, Valley = √(288 + 25) = 17.7 LF
Ridge Cap Bundles Bundles = (Total Ridge LF + Total Hip LF) × (1 + Waste%) / Coverage per Bundle Example: (20 + 88.4) × 1.10 / 25 = 4.77 → order 5 bundles
Ridge Vent Sections Sections = Ridge LF × 1.05 (overlap) / Section Length Example: 20 LF × 1.05 / 4 ft = 5.25 → order 6 sections (4-ft)
Example Calculation
Tom has a simple rectangular hip roof on his 50-foot by 30-foot ranch home with a 5/12 pitch. He is ordering materials for a full re-roof and needs to know the ridge cap, ridge vent, and hip shingle quantities.
Step 1: Main Ridge Length
• Ridge = Building Length - Building Width = 50 - 30 = 20 LF of main ridge
Step 2: Hip Line Length (each of 4 hips)
• Run = 30 / 2 = 15 ft
• Rise = 15 × (5/12) = 6.25 ft
• Hip length = √(15² + 15² + 6.25²) = √(225 + 225 + 39.06) = √489.06 = 22.1 ft per hip
• Total hip lines: 4 × 22.1 = 88.4 LF
Step 3: Total Linear Feet Needing Ridge Cap
• Ridge: 20 LF
• Hips: 88.4 LF
• Total: 108.4 LF
Step 4: Ridge Cap Bundles (IKO Hip & Ridge @ 25 LF/bundle)
• 108.4 × 1.10 (10% waste) = 119.2 LF
• 119.2 / 25 = 4.77 → Order 5 bundles ($35-$50 each = $175-$250)
Step 5: Ridge Vent (shingle-over, 4-ft sections)
• Vent runs along main ridge only: 20 LF
• 20 × 1.05 (overlap) / 4 = 5.25 → Order 6 sections ($8-$15 each = $48-$90)
Step 6: Summary
• Ridge cap shingles: 5 bundles
• Ridge vent: 6 four-foot sections
• No valleys or dormers on this simple roof
• Total ridge/hip materials cost: $225-$340
Frequently Asked Questions
How do I calculate the main ridge length on a hip roof?
How do I calculate hip line length from dimensions and pitch?
How many bundles of ridge cap do I need for a hip roof?
How do I measure valley length on a roof?
Should I install ridge vent along the entire ridge on a hip roof?
Related Calculators
Hip Roof Calculator
Calculate total area, materials, and cost for a hip roof
Ridge Cap Calculator
Estimate ridge cap shingle bundles and installation cost
Valley Calculator
Calculate valley flashing, ice shield, and shingle quantities
Roof Pitch Calculator
Determine roof pitch from rise and run measurements
Rafter Length Calculator
Calculate rafter length from span and pitch