TapForge Studios

Roof Pitch and Rafter Length Calculator

Enter the roof pitch (inches of rise per 12 inches of run), building width and length and the overhang. You get the rafter length, roof angle, ridge height, roof area and number of roofing squares for a simple gable roof.

Your numbers

: 12
feet
feet
inches

Result

Enter your numbers to see the result.

Take this to the job site

The same tools, and more, in apps that work offline when there is no signal.

GableForge: Home Inspection

GableForge: Home Inspection

Utilities/Misc.

GableForge helps home inspectors report roof pitch, condition and defects on site, with photos, and send a clean PDF report from the roof or the driveway.

BuildSmith: Construction Calc

BuildSmith: Construction Calc

NICET/Tools

37 trade calculators, code tables and converters for the whole job site, fast and offline.

Read the how-to guide

The math

  • Angle = arctan(pitch ÷ 12)
  • Run of one side = width ÷ 2 (plus the overhang for the rafter tail)
  • Rafter length = run × √(pitch² + 144) ÷ 12
  • Ridge height above the top plate = (width ÷ 2) × pitch ÷ 12
  • Roof area = 2 × rafter length (with overhang) × building length. One roofing square = 100 sq ft.

Add 10 to 15% waste for shingles (more for hips, valleys and dormers). Rafter length here is along the slope from the ridge centerline to the tail; subtract half the ridge board thickness and add the birdsmouth depth when cutting.

Worked example

A 6:12 roof on a 28 × 40 ft house with a 12 in. overhang: angle 26.6°, rafter length (15 ft run) 16.8 ft, ridge height 7 ft, and about 13.4 squares of roof before waste.

Frequently asked questions

What does 6:12 mean?

The roof rises 6 inches for every 12 inches of horizontal run. It is a 26.6 degree slope.

How many shingles do I need?

A bundle covers 33.3 sq ft, so three bundles per square. Add 10 to 15% for waste and starter courses.

Does this handle hip roofs?

No. It covers a simple gable roof. Hip and valley rafters are longer and need extra calculation.

Related calculators

See all calculators →

Sample exam questions on this topic

Video walkthroughs on YouTube. The TapForge channel posts walkthroughs of these calculators and app demos. Subscribe to the channel.

This calculator gives an estimate for planning and is not tax, legal or engineering advice. Confirm code-related results against the code edition adopted in your jurisdiction and with your authority having jurisdiction, and follow the manufacturer's instructions.