RU EN
🏠 Home 🔨 Construction & DIY 🍕 Food & Drink 🐶 Pets & Animals ❤️ Health 💰 Finance 🚗 Auto & Transport 📂 Misc
← Home
Rafter Length & Roof Pitch Calculator: Find Ridge Height Online

Rafter Length & Roof Pitch Calculator: Find Ridge Height Online

Designing a roof for a house, shed, or garage? Our calculator removes the guesswork. Calculate the exact ridge height based on your desired roof pitch, or find the pitch angle if you already know the height. We automatically calculate the total rafter length (including the overhang) so you know exactly what size lumber to buy.

1. Building Dimensions:

Horizontal distance the roof extends past the wall.

2. What are you calculating?

Roof Geometry: Calculating Rafter Length

The roof framing is the skeleton of your house. Mathematical errors in the design phase can be extremely costly. If you buy standard 16-foot lumber but your rafter actually needs to be 16.5 feet long after calculating the overhang, you will have to splice the wood, structurally weakening the roof and wasting valuable construction time.

The Pythagorean Theorem in Construction

Calculating roof dimensions relies on the classic geometry of a right-angled triangle. If you visualize half of a symmetrical gable roof, the "run" (half the building span) is the base, the ridge height is the vertical leg, and the rafter board itself is the hypotenuse.

The rafter length is calculated using the formula: $$c = \sqrt{a^2 + b^2}$$

The roof pitch (angle) is calculated using trigonometric functions (tangent and arctangent). Our calculator instantly processes these complex formulas to give you exact material lengths.

Example of a Gable Roof Calculation:

Assume you are building a garage with a span (width) of 8 meters. You want a symmetrical gable roof. For aesthetic reasons, the ridge height must be exactly 3 meters. You also want a 0.5-meter horizontal eaves overhang.

Step 1: Since it is a gable roof, divide the span in half: 8 / 2 = 4 meters (this is the base run).
Step 2: Using the Pythagorean theorem, find the rafter length to the wall: $\sqrt{4^2 + 3^2} = \sqrt{16 + 9} = \sqrt{25} = 5$ meters.
Step 3: Add the overhang. Note that 0.5m is the horizontal projection. The actual sloped length of the overhang is calculated via trigonometry (resulting in about 0.62m).
Result: The total length of one rafter board is 5.62 meters, and the pitch angle is 36.8 degrees. A standard 6-meter board will be perfect for this job!

Frequently Asked Questions (FAQ)

What is the minimum roof pitch for metal roofing?
Building codes generally dictate that corrugated metal roofing and metal tiles require a minimum pitch of 14 degrees. A flatter roof drastically increases the risk of rainwater being blown up and under the seams by strong winds, and heavy snow can crush the panels.

How does roof pitch affect snow load?
The steeper the roof, the less snow can accumulate. For very steep roofs (over 60 degrees), snow load calculations are almost negligible because the snow slides off under its own weight. Shallow roofs (15-20 degrees) hold maximum snow loads, requiring thicker and more tightly spaced rafters to bear the weight.

Should I order longer rafters than the calculator outputs?
Yes, absolutely. The calculator provides the exact theoretical mathematical length. In the real world, you must cut angled birdsmouth joints to seat the rafter on the top plate, and plumb cuts for the ridge board. Experienced framers always order lumber at least 10-15% longer than the calculated measurement to allow for these cuts.