Free calculator

Roof Pitch Calculator: Pitch, Angle & Rafter Length

Convert rise and run to x-in-12 pitch, roof angle in degrees, and rafter length — or work backwards from a known pitch. No sign-up; the math runs entirely in your browser.

By Basharat Ali, FounderCalculation reviewedUpdated October 2026

feet (or any unit)

feet (same unit)

Roof pitch

6 / 12

Angle

26.57°

Rafter length

13.42 ft

Steps: pitch = 6 ÷ 12 × 12; angle = arctan(rise ÷ run); rafter = √(rise² + run²).

Planning math only — rafter length here is the theoretical slope length. Real cuts need ridge and birdsmouth adjustments per your framing plan.

Estimated cost

What will it cost?

Enter your local store prices — prices vary by region.

  • Rafters (by linear foot)

    13.42 ft

    —

Estimate — prices vary by store and region. Check your local store for current pricing.

Worked example: 6-ft rise, 12-ft run

Full arithmetic, step by step:

  1. Pitch: (6 ÷ 12) × 12 = 6/12
  2. Angle: arctan(6 ÷ 12) = arctan(0.5) = 26.57°
  3. Rafter: √(6² + 12²) = √180 = 13.42 ft

The formulas

Pitch

Pitch = (rise ÷ run) × 12 — expressed as x-in-12.

Angle and rafter

Angle = arctan(rise ÷ run) in degrees; rafter = √(rise² + run²) — the Pythagorean slope length.

Frequently asked questions

What does a 6/12 roof pitch mean?

The roof rises 6 inches for every 12 inches of horizontal run — about 26.57 degrees. Pitch is always written as x-in-12 in US construction, so 6/12, 8/12, 12/12 (a 45-degree roof) are all just rise-over-12-inches-of-run.

How do you calculate roof pitch?

Measure the vertical rise and the horizontal run in the same units, then: pitch = (rise ÷ run) × 12. A 6-ft rise over a 12-ft run gives (6 ÷ 12) × 12 = 6/12. The calculator also gives you the angle and rafter length from the same two numbers.

What angle is a 6/12 roof pitch?

26.57 degrees. Angle = arctan(rise ÷ run), so arctan(6 ÷ 12) = arctan(0.5) = 26.57°. Common pitches: 4/12 = 18.43°, 8/12 = 33.69°, 12/12 = 45°.

What is a standard roof pitch for a house?

4/12 to 9/12 covers most US residential roofs. Below 3/12 is low-slope and needs special roofing materials (shingles generally require at least 2/12, and perform best at 4/12+). Steeper pitches shed snow and water faster but cost more to build and roof.

How long should my rafters be?

Start with the slope length: √(rise² + run²). For a 6/12 pitch on a 12-ft run that's √(36 + 144) = 13.42 ft — then add your eave overhang and account for the ridge board and birdsmouth cuts in the real framing layout. The calculator gives the theoretical length; your cut list adjusts from there.

How do you measure roof pitch on an existing roof?

Hold a level horizontally against the roof underside (or on top with a straight edge), measure 12 inches along the level from a point, then measure straight down from that mark to the roof surface — that drop in inches is your x-in-12 pitch. Enter rise and run in the calculator to get the angle too.

Keep estimating

Related calculators