Roof Pitch & Rafter Calculator

Convert roof pitch, angle, rise, run, and rafter length for a simple roof measurement.

Calculator

Rise and Run

Pitch Ratio

: 12
Pitch x:12 means the roof rises x inches for every 12 inches of horizontal run.
ft

Angle in Degrees

°
ft

Roof Width or Span

: 12

Attic Measurement

in
in
ft

Optional Roof Details

ft
ft
ft
Allowance only — not a structural design recommendation.

Scenario Comparison

Enter a pitch and an optional horizontal run for each scenario. All scenarios share the same unit system.

:12
ft
:12
ft
:12
ft

Results

Estimated Roof Pitch

Angle
Slope
Rafter Length
Roof Multiplier
This classification is provided for general context only. It does not determine whether a roof is safe to access or whether a homeowner should work on it.

Roof Triangle Diagram

Right triangle: rise (vertical) + run (horizontal) = rafter (hypotenuse)

Detailed Breakdown

MetricValueHow Calculated

What This Means

Material Compatibility Guide

Based on published slope references. Local code, manufacturer instructions, roof assembly details, and professional judgment control. Verify all material choices independently.

Pitch RangeMaterial Categories to InvestigateNotes & Cautions

Assumptions

    Scenario Comparison

    Comparing multiple pitch scenarios for the same horizontal run. A steeper pitch increases rafter length and roof surface area. Confirm design choices with a qualified roofing professional.

    ScenarioPitchAngleSlope %Rafter LengthMultiplierMaterial Category

    Rafter Length Comparison

    Measurement Notes — Roof Pitch & Rafter Calculator

    How to Use This Calculator

    Choose a measurement method and enter the values you have. Each method converts your input into the same set of pitch, angle, slope, and rafter results.

    • Pitch Ratio: Enter the first number in a pitch like 4:12, 6:12, or 8:12. Add an optional run to estimate rafter length.
    • Rise and Run: Enter the vertical height change and the horizontal distance. Do not enter the sloped rafter length as the run.
    • Angle in Degrees: Enter the roof angle if that is the format you have (e.g., from an inspection report). Add an optional run for rafter length.
    • Roof Width or Span: Enter the full horizontal span of the building and the pitch. The calculator uses half the span as the run for a simple centered gable roof.
    • Attic Measurement: Place a level horizontally, measure a known horizontal distance (default 12 inches), and measure the vertical rise to the rafter at the end of that distance.

    Advanced Options

    • Eave Overhang: Add horizontal overhang to estimate the sloped rafter tail length.
    • Roof Length: Add the ridge direction length for a simple gable roof area estimate.
    • Board Allowance: Optional extra length for trimming or layout. Not a structural value.
    • Scenario Comparison: Enable to compare up to three pitch scenarios side by side.

    Understanding Roof Pitch

    What Is Roof Pitch?

    Roof pitch describes how steep a roof is. In residential construction, it is written as a ratio such as 6:12, meaning the roof rises 6 units vertically for every 12 units of horizontal run.

    The same steepness can be expressed in several formats:

    • Pitch ratio — 4:12, 6:12, 8:12, and so on
    • Angle in degrees — useful in engineering and some inspection reports
    • Slope percentage — vertical rise divided by horizontal run, multiplied by 100
    • Rise and run — actual vertical and horizontal measurements
    • Roof surface multiplier — how much longer the sloped surface is compared with the horizontal plan area

    Roof pitch matters because it affects drainage, roof appearance, roof surface area, material options, access difficulty, and framing measurements. A small pitch change can make a noticeable difference in rafter length and roof surface area.

    When Is This Calculator Useful?

    • Understanding pitch notation in an inspection report
    • Planning a shed, porch, patio cover, or simple gable roof
    • Comparing roof design options before meeting a contractor
    • Estimating rafter line length as a rough planning figure
    • Checking whether a roof is in a low-slope or steep-slope range
    • Understanding which roofing material categories may require special attention at a given pitch
    • Converting between pitch formats (ratio, degrees, percentage)

    Common Mistakes to Avoid

    • Measuring along the roof surface and calling it the run
    • Using the full building width instead of half-span for a centered gable roof
    • Treating material guidance as code approval
    • Ignoring overhang, ridge thickness, birdsmouth cuts, and framing details
    • Forgetting that local building code and manufacturer instructions control installation requirements

    Limitations

    This calculator uses geometry. It does not design a roof structure, size rafters, confirm load capacity, evaluate roof condition, inspect drainage, check permits, or replace a qualified roofing professional. Results are estimates for planning and informational purposes only.

    The material compatibility guidance is based on published slope references from sources including the 2024 International Residential Code Chapter 9, NRCA slope guidance, and the Asphalt Roofing Manufacturers Association. Local codes, manufacturer instructions, roof assembly details, and professional judgment can change what is appropriate for a specific roof.

    Formula and Method

    Core Formulas

    All calculations are based on right-triangle geometry. Rise, run, and rafter form a right triangle.

    Pitch ratio: rise ÷ run

    Pitch x:12: (rise ÷ run) × 12

    Angle: arctan(rise ÷ run) — using the inverse tangent function. See Mathematics LibreTexts and Clark University Math for background on the tangent and arctangent relationships.

    Slope percentage: (rise ÷ run) × 100

    Rafter length — the hypotenuse of the right triangle, calculated using the Pythagorean theorem:
    rafter = √(rise² + run²)

    Roof surface multiplier: √(1 + pitchRatio²)

    Simple gable roof area: roof length × rafter length to ridge × 2

    Sloped overhang: horizontal overhang ÷ cos(angle)

    Worked Example: 6:12 Pitch, 10-Foot Run

    A roof has a 6:12 pitch and a 10-foot horizontal run.

    • Pitch ratio: 6 ÷ 12 = 0.5
    • Angle: arctan(0.5) ≈ 26.6°
    • Slope: 0.5 × 100 = 50.0%
    • Rise over 10 ft run: 10 × 0.5 = 5 ft
    • Rafter length: √(10² + 5²) = √125 ≈ 11.18 ft
    • Roof surface multiplier: √(1 + 0.5²) ≈ 1.118

    For a 24-foot span (12-foot run each side) with 6:12 pitch:

    • Ridge rise: 12 × 0.5 = 6 ft
    • Common rafter to wall: √(12² + 6²) ≈ 13.42 ft

    Note on material guidance: The material compatibility table is not a pure formula. It is an interpretation layer based on published roof slope references and industry guidance. Local code, manufacturer instructions, underlayment requirements, and professional judgment control what is appropriate for a specific roof.

    Rounding Rules Used in This Calculator

    OutputRounding
    Pitch (x:12)2 decimal places
    Angle1 decimal degree
    Slope percentage1 decimal percent
    Roof surface multiplier3 decimal places
    Rafter length (imperial)Nearest 1/16 inch in feet and inches; 2 decimal feet in table
    Rafter length (metric)Nearest millimeter (small values) or centimeter (larger values)
    Roof area (imperial)Nearest square foot
    Roof area (metric)Nearest tenth square meter

    Why Trust This Calculator

    • Uses transparent right-triangle formulas for pitch, angle, slope percentage, and rafter length — the same geometry used in standard framing references.
    • Separates formula-based geometry results from judgment-based roofing material guidance, so users can see what is a calculation and what is an interpretation.
    • Supports five input modes so users can enter the measurement format they actually have — pitch ratio, rise and run, angle, roof span, or attic measurement.
    • Shows assumptions, rounding rules, and limitations directly with the results instead of hiding them in fine print.
    • Links to reputable sources including the 2024 IRC Chapter 9, NRCA, OSHA, ENERGY STAR, U.S. DOE, and the Asphalt Roofing Manufacturers Association.
    • Provides a detailed result breakdown including a visual diagram and labeled table so users can verify the numbers and understand the geometry.
    • Reviewed for clarity, factual accuracy, and appropriate limitations by the Homebase Calculators Editorial Team.

    Sources and Methodology

    This calculator converts roof measurements using right-triangle geometry. It first normalizes the selected input mode into a common rise/run ratio (pitch ratio). From that ratio, it calculates pitch x:12, roof angle in degrees, slope percentage, rafter line length estimate, ridge rise for simple gable roofs, and roof surface multiplier. When roof span is provided, the calculator assumes a simple centered gable roof and uses half the span as the horizontal run.

    Material guidance is based on published roof slope references and should be treated as a screening tool only. Local codes, roof assembly design, climate, manufacturer instructions, underlayment requirements, drainage details, and professional judgment can change what is appropriate for a specific roof.

    What This Calculator Includes

    • Pitch conversion (rise/run to x:12 format)
    • Angle conversion in degrees
    • Slope percentage
    • Rafter line length estimate from actual run or half-span
    • Ridge rise estimate for simple centered gable roofs
    • Roof surface multiplier
    • Optional simple gable roof area estimate (when roof length is provided)
    • Sloped eave overhang estimate (when overhang and run are provided)
    • Pitch-based material compatibility guidance
    • OSHA slope classification note for context
    • Printable measurement notes

    What This Calculator Excludes

    • Structural rafter design, sizing, or lumber grade selection
    • Snow load, wind load, and seismic design
    • Fastener schedule or nail spacing
    • Permit approval or code compliance verification
    • Roof condition inspection or drainage evaluation
    • Warranty requirements or insurance guidance
    • Full roofing cost estimates
    • Safety plans for roof access

    Sources

    Helpful Resources

    These resources can help you understand roof slope requirements, material specifications, safety considerations, and energy-related roofing decisions.

    External Resources

    Related Homebase Calculators

    Need Help Verifying Your Numbers?

    You can verify roof pitch from building plans, a recent inspection report, an attic measurement, or a contractor's written estimate. If you measure from inside the attic, remember that insulation, uneven framing, old roof layers, and access limits can make measurements approximate.

    For roof repairs, replacements, structural changes, permitting, or material selection, confirm the numbers with a qualified roofing contractor, structural professional, manufacturer instructions, or your local building department. Do not climb onto a roof just to use this calculator. Roof access can be dangerous, and calculator results are estimates for informational purposes only.

    Useful Documents to Gather

    • Roof inspection report
    • Building plans or framing drawings
    • Contractor estimate or scope of work
    • Manufacturer installation instructions for the roofing product
    • Local building department guidance or permit requirements
    • Warranty documents
    • Insurance inspection notes, if applicable

    This calculator provides estimates for informational purposes only. The Homebase Calculators Editorial Team reviews formulas, assumptions, and explanatory content for consistency and clarity. Always confirm measurements and material choices with a qualified professional and your local authority having jurisdiction.

    Frequently Asked Questions (FAQs)

    Roof pitch describes how much a roof rises compared with its horizontal run. A 6:12 pitch means the roof rises 6 inches for every 12 inches of horizontal distance. The same roof can also be described as an angle in degrees (about 26.6° for 6:12) or a slope percentage (50% for 6:12).

    Divide the rise by the run, then multiply by 12 to convert to x:12 format. For example, a 5-inch rise over a 10-inch run equals 0.5, and 0.5 × 12 equals a 6:12 pitch. Make sure the run is horizontal — not the sloped roof surface or rafter length. Use the Rise and Run mode in this calculator to enter your measurements directly.

    The calculator treats the rise, run, and rafter as a right triangle and applies the Pythagorean theorem: rafter length equals the square root of rise squared plus run squared. This gives a line-length estimate — not a finished cut list. It does not include birdsmouth cuts, ridge adjustment, or structural details.

    Yes, for a simple centered gable roof. The Roof Span mode divides the total span by two to estimate the horizontal run from the wall plate to the ridge. This works well for straightforward gable roofs. Complex roofs with offset ridges, hips, valleys, dormers, or additions need more detailed layout and professional framing plans.

    Low-pitch roofs usually need roofing systems specifically designed for low-slope drainage and water resistance. Some metal panel systems, membrane systems, and modified bitumen products may be possible depending on the exact slope, seam design, drainage, local code, and manufacturer requirements. Standard steep-slope shingle products should not be assumed to be suitable for very low pitches without verification. See the material guidance table in the calculator results for slope-range context.

    A 2:12 pitch is at or near the minimum slope referenced by some residential code guidance for asphalt shingles, but it often requires additional underlayment layers or special installation details. The 2024 IRC Chapter 9 and the Asphalt Roofing Manufacturers Association both emphasize that local code and manufacturer instructions control whether a specific product may be used at a given slope. This calculator shows a "verify carefully" note for 2:12 — not automatic approval or rejection.

    No. Pitch and angle describe the same steepness in different formats. Pitch is written as rise per 12 units of run — for example, 6:12. Angle is measured in degrees above horizontal. A 6:12 pitch equals approximately 26.6°. This calculator converts freely between the two formats and also expresses the same steepness as a slope percentage.

    No. Rafter sizing depends on span, spacing, lumber species, grade, loads (live load, snow load, dead load), roof covering weight, local code, and structural design requirements. This calculator estimates rafter line length as a geometry figure only — not a structural recommendation. Use local span tables, building code references, or consult a qualified structural professional for rafter sizing.

    No. Do not climb onto a roof just to take measurements for this calculator. Safer options include using the Attic Measurement mode, checking building plans or framing drawings, reviewing an inspection report, reviewing a contractor's written estimate, or asking a qualified professional. Per OSHA 29 CFR 1926.501, roof access involves real fall hazards that require proper fall protection equipment and training in professional settings. Homeowner access situations vary, but the risk is real.

    Report an Error or Share Feedback

    Found a calculation error, outdated source, broken assumption, or something unclear on this page? Contact the Homebase Calculators Editorial Team so we can review it. We update pages when corrections are warranted.

    By Homebase Calculators Editorial Team

    Last updated: May 2026