Roof Geometry: Gable, Hip & Shed

Ridge height, common and hip rafter lengths, ridge length and roof surface area from building size and pitch.

How it works — Roof Geometry: Gable, Hip & Shed

W rise ℓ θ

Inputs

W
Building width (span) (ft)
θ
Roof pitch (°)

Formula

  • rise = run·tan θ
  • A = plan / cos θ

Results

rise
Ridge height above the wall plate
ℓ
Common rafter length
A
Roof surface area
Reset

Results

Enter your values and press Calculate. The defaults are a worked example.

Formula

rise = run·tan θ · A = plan area / cos θ

Formulas are evaluated in SI units; inputs and results are converted.

Show the math

Worked solution

Press Calculate to see every step with your values substituted.

Assumptions

  • Equal pitch on every roof plane; overhangs at the same pitch.

References

  • IRC R802 — roof framing
  • Carpentry and building construction references for hip and valley geometry

Results are for preliminary design and education. Verify against the governing code and have critical work checked by a licensed professional engineer.

Sign in

or with email

Forgot password?