FreeCalculatorZone

Roof Pitch Calculator

Estimate roof slope, angle, and rafter length from rise, run, and span inputs for quick roofing planning.

Roof pitch details

Rise

inches per 12" run

Run

horizontal distance in inches

Span

total roof width in feet

Choose a common roof slope preset for a fast setup.

Enter values and click Calculate to see the roof pitch, angle, and rafter length.

What is a Roof Pitch Calculator?

Our Free Roof Pitch Calculator is an essential architectural and framing tool designed for roofing contractors, carpenters, and DIY homebuilders. It instantly translates standard architectural rise-and-run ratios into precise rafter lengths, roof angles, and vertical heights, ensuring perfect geometric alignment for any roofing project.

In the construction industry, roofs are rarely described by their exact degree of angle. Instead, they are defined by their "Pitch Ratio"—the number of inches the roof rises vertically for every 12 inches it extends horizontally. Understanding how a 4:12 pitch differs structurally and aesthetically from a 12:12 pitch is the foundational first step of any residential or commercial roofing build.

This calculator eliminates complex trigonometric math. By inputting your desired rise, run, and the total span of your building, the tool automatically calculates the exact hypotenuse (rafter length) required to frame the roof. It also provides the exact interior peak height, which is critical for planning attic space, vaulted ceilings, or HVAC ductwork clearances.

The Pitch Ratio

The industry standard for describing slope. A 4:12 roof rises 4 inches for every foot of horizontal travel. A 12:12 roof rises 12 inches per foot, creating a perfect 45-degree angle.

Rafter Length (Hypotenuse)

The diagonal length of the lumber required to frame the roof, extending from the top of the exterior wall plate to the center ridge beam.

How to Use This Calculator

Follow these exact steps to determine the framing geometry of your roof:

  1. Step 1: Enter the Rise: Input how many inches you want the roof to vertically rise per foot. If you aren't sure, click one of the common presets below the input fields.
  2. Step 2: Enter the Run: The run is almost always standard at 12 inches. Only change this field if you are working with non-standard European metric plans.
  3. Step 3: Enter the Building Span: Measure the total outside-to-outside width of the building in feet. The calculator will automatically divide this in half to determine the run for a single rafter.
  4. Step 4: Use Presets: For rapid planning, click the 4:12, 6:12, 8:12, or 12:12 preset buttons to instantly load the most common residential roof slopes.
  5. Step 5: Review Results: Click calculate to instantly view your Roof Angle in degrees, the exact Rafter Length required, and the total vertical rise at the center peak.

The Roof Pitch Mathematical Formula

Carpenters use classical Pythagorean geometry and trigonometry to frame roofs. The calculator uses the following logic to generate your results:

Roof Angle = Arctangent(Rise ÷ Run) × (180 ÷ π)
Total Center Rise = (Rise per 12") × (Total Span ÷ 2)
Rafter Length = √ [ (Total Center Rise)² + (Span ÷ 2)² ]

Example Calculation in Action

Imagine you are building a detached two-car garage. The building is exactly 24 feet wide (the span). You want a standard, walkable 6:12 roof pitch:

  • Rise: 6 inches
  • Run: 12 inches
  • Total Building Span: 24 feet (Half-span = 12 feet)

First, the calculator divides the 24-foot span in half (12 feet) because a rafter only covers half the building. Because the pitch is 6:12, the roof rises 6 inches for every foot of that 12-foot half-span, resulting in a center peak height of exactly 6 feet. Finally, using the Pythagorean theorem, it calculates the diagonal rafter length to be exactly 13.42 feet, with a roof angle of 26.6 degrees.

Reference Data: Common Roof Pitches & Uses

Different roof pitches serve entirely different structural and aesthetic purposes. Use this industry guide to choose the right pitch for your climate and roofing material:

Pitch RatioDegreesClassificationBest Suited For
1:12 to 3:124.8° to 14.0°Flat / Low SlopeCommercial buildings, rubber roofing, arid climates
4:12 to 6:1218.4° to 26.6°ConventionalStandard residential homes, highly walkable for repairs
7:12 to 9:1230.3° to 36.9°Steep SlopeHeavy snowfall areas, homes with large attic spaces
10:12 to 12:1239.8° to 45.0°Very SteepVictorian architecture, A-frames, slate or cedar shingles

When This Calculator Is Useful

  • Material Selection: Standard asphalt shingles cannot be installed on a roof with a pitch lower than 3:12 because water will back up under them. This calculator helps verify your slope allows for your desired material.
  • Lumber Ordering: The "Rafter Length" output allows carpenters to know exactly how long of a 2x6 or 2x8 board they need to purchase before cutting.
  • Attic Planning: The "Center Rise" output instantly tells homeowners if their new roof will have enough vertical clearance to build a living space or bedroom inside the attic.

Common Mistakes to Avoid

Forgetting the Overhang

The "Rafter Length" provided by this calculator only gets you from the center ridge down to the exterior wall plate. You must physically add 1 to 2 feet of extra lumber to create the soffit/overhang (the tail).

Confusing Span and Run

The Span is the ENTIRE width of the building. The Run of a rafter only covers HALF of that span. Entering the full span into a manual math equation without dividing by two will result in rafters that are twice as long as needed.

Ignoring Ridge Board Thickness

When cutting rafters, you must deduct half the thickness of the center ridge board (usually 3/4 of an inch) from your mathematical rafter length so the boards fit perfectly flush against the ridge.

Using Degrees Instead of Ratio

Never order materials or talk to a roofer using degrees (e.g., "I have a 33-degree roof"). Always translate the angle back into a Pitch Ratio (e.g., "I have an 8:12 roof") to avoid miscommunication.


Disclaimer

This calculator provides theoretical geometric measurements for standard gable roofs and is strictly intended for preliminary planning and estimation. It calculates pure plumb-line mathematical lengths and does NOT account for rafter tails (overhangs), birdsmouth seat cuts, ridge board deductions, or complex hip/valley intersections. Always consult with a licensed framing contractor or structural engineer, and physically verify measurements on-site before cutting expensive lumber.

Frequently Asked Questions

Roof pitch is expressed as inches of rise per 12 inches of run. This calculator uses your rise and run values to show the slope as a standard pitch ratio.

Yes. It converts the rise and run into a roof angle in degrees using a trigonometric function, giving a clear incline value.

Rafter length is the diagonal distance from the wall plate to the ridge. The calculator estimates it from half the roof span and the center rise using the Pythagorean theorem.

The roof span is used to find the horizontal distance for one side of the roof. The tool uses half the span to estimate the rafter length for each roof half.

This tool gives a planning estimate. Final rafter lengths should be confirmed with a detailed roof design and local building requirements.