Skip to main content
Roof Math·6 min read·REV 2026-11-28

How to Calculate Roof Pitch: Formulas, Worked Examples & Conversions

Step-by-step guide to calculating roof pitch (X:12), degrees, slope percentage, rafter length, and pitch multiplier with clear worked examples.

INTERACTIVE TOOL / Run your exact project dimensions immediately.

Open Roof Pitch Calculator

Roof pitch measures how steeply a roof rises relative to its horizontal span. In the United States and Canada, builders express roof pitch as a ratio over 12 inches — such as 4:12, 6:12, or 8:12 — meaning the roof climbs 4, 6, or 8 inches vertically for every 12 inches it travels horizontally.

Understanding the core right-triangle math behind roof pitch lets you verify framing layouts, convert between degrees and X:12, and check contractor estimates with confidence.

Step 1: Identify Rise and Run Correctly

Every roof pitch calculation starts with two perpendicular measurements forming a right triangle:

  • Rise: The vertical height from the top of the exterior wall plate up to the peak (ridge).
  • Run: The horizontal distance from the exterior wall plate to the point directly beneath the ridge.

Common Mistake to Avoid: Do not confuse Span with Run. On a standard symmetrical gable house that is 24 feet wide (Span = 24 ft), the Run is 12 feet (half of the total span). On a single-slope shed (lean-to) roof, Run equals the full horizontal width between the low wall and high wall.

Step 2: Calculate Roof Pitch (X:12)

First make sure Rise and Run are converted to the same unit (both feet, both inches, or both meters). Then apply:

Pitch (X:12) = (Rise ÷ Run) × 12

Worked Example

Suppose a gable roof rises 6 feet over a horizontal run of 12 feet (24-foot total house width):

  • Pitch = (6 ÷ 12) × 12 = 6:12

What if your measurements are mixed — say 48 inches of rise over a 12-foot run?

  • Convert 48 inches to feet: 48 ÷ 12 = 4 ft
  • Pitch = (4 ÷ 12) × 12 = 4:12

You can skip manual decimal conversions by switching between FT, FT+IN, IN, M, and CM directly inside our Roof Pitch Calculator, which preserves your physical measurements whenever you change units.

Step 3: Convert Pitch to Degrees and Slope Percentage

Architectural plans, solar calculators, and digital angle finders often use degrees or percentages instead of X:12.

Pitch to Angle (Degrees)

Angle (°) = arctan(Rise ÷ Run) × (180 ÷ π)

For a 6/12 roof pitch:

  • arctan(6 ÷ 12) = arctan(0.5) = 26.57°

Pitch to Slope Percentage (%)

Slope (%) = (Rise ÷ Run) × 100

For a 6/12 roof pitch:

  • (6 ÷ 12) × 100 = 50.0%

Note that a 100% slope is NOT vertical (90°) — it is a 12/12 roof pitch equal to 45.0°, where rise equals run.

Step 4: Calculate Rafter Length & Pitch Multiplier

Using the Pythagorean theorem, the sloped common rafter length (before adding eave overhang) is:

Rafter Length = √(Rise² + Run²)

For our 6 ft rise and 12 ft run:

  • Rafter Length = √(6² + 12²) = √(36 + 144) = √180 = 13.42 ft

To find the Roof Pitch Multiplier (also called the slope factor), calculate the hypotenuse for a unit run of 12:

Pitch Multiplier = √(1 + (Pitch ÷ 12)²)

For 6/12: √(1 + 0.5²) = √1.25 = 1.1180.

Quick Conversion Table for Common Pitches

Roof PitchAngle (°)Slope (%)Pitch MultiplierCommon Application
3/1214.04°25.0%1.0308Porches, sheds, low-slope garages
4/1218.43°33.3%1.0541Ranch homes, standard shingle min
5/1222.62°41.7%1.0833Suburban gables (exact 5-12-13 triangle)
6/1226.57°50.0%1.1180Classic US residential home
8/1233.69°66.7%1.2019Steep snow-belt & bonus-room roofs
12/1245.00°100.0%1.4142Tudor gables, chalets, A-frames

Need all pitches up to 24/12? Bookmark our printable Roof Pitch Chart, or compute rafter cut angles and lumber stock lengths with our Rafter Length Calculator.

Disclaimer: All calculations, material counts, and cost ranges on RoofPitchHub are for planning and educational reference only. Local municipal amendments, wind/snow load engineering, and manufacturer specs may exceed baseline IRC minimums. Always verify local building codes and consult a licensed roofing contractor or structural engineer before construction. See Terms & Disclaimer.

MORE FIELD GUIDES

ALL GUIDES