Roof Pitch Calculator

Worldwide

Last Updated:

Use this roof pitch calculator to find the pitch from a rise and run, a roof height and span, or an angle. Get the pitch in degrees and percent, the rafter length with overhang, the roof height and the cut angles, in feet and inches or metric. Free, no sign-up.

Quick answer: Roof pitch is the rise in inches for every 12 inches of run: divide the rise by the run and multiply by 12. A 6 inch rise over 12 inches is a 6/12 pitch, 26.57 degrees or a 50% slope. On a 24 ft gable with a 1 1/2 inch ridge board and a 12 inch overhang, each common rafter is 14 ft 5 9/16 in.

Roof pitch calculator

Showing the example from the Quick answer: a 6/12 gable roof 24 ft wide. Change any field to use your own roof.

Sets every length field
Lean-to includes shed and skillion roofs
Pick the two numbers you have
in
Height the roof climbs over the run. Required
in
Level distance you measured over. Required
ft
Outside wall to outside wall. Optional, gives the rafter length
in
Past the wall at the eave. Optional, blank means none
in
A 2x board is 1 1/2 in. Optional, blank means none

Enter your measurements above to see the roof pitch.

Roof pitch

—

Pitch—
Angle—
Percent slope—
Rise per meter—
Pitch multiplier—
Hip and valley factor—
Roof height—
Rafter to the wall—
Overhang on the slope—
Rafter with overhang—
Plumb cut—
Speed Square setting—

Minimum slope check, 2021 IRC (US)

    Side view of the roof

    📐 The roof pitch formulas

    Pitch = rise ÷ run × 12. Angle = arctan(rise ÷ run). Percent slope = rise ÷ run × 100. Pitch multiplier = √(pitch² + 144) ÷ 12. Hip and valley factor = √(pitch² + 288) ÷ 12. Rafter run = half the span less half the ridge board (the whole span on a lean-to). Rafter length = rafter run × multiplier, and the overhang on the slope = level overhang × multiplier. Roof height = run to the ridge × rise ÷ run.

    How to use the roof pitch calculator

    1

    Choose what you measured

    Pick Rise and run if you measured with a level, Roof height and span if you measured the building, or enter an angle, a pitch in 12 or a percent slope.

    2

    Set the roof shape

    Gable has two slopes meeting at a ridge, hip adds hip rafters at the corners, and lean-to has one slope from a high wall to a low wall.

    3

    Enter the span

    Type the building width from the outside of one wall to the outside of the other. It gives the roof height and the rafter length.

    4

    Add the overhang and ridge board

    Type the overhang measured level from the wall, and the ridge board thickness. Leave the ridge board blank for trusses or rafters that meet with no board.

    5

    Read the pitch and the cuts

    The result gives the pitch in 12, degrees, percent and rise per meter, the rafter length to the wall and with the overhang, the cut angle and the Speed Square number, with the code check below.

    How to calculate roof pitch with rise and run

    Roof pitch says how far a roof climbs for a set distance across. In the US and Canada it is written as a rise over a run of 12, so a 6/12 roof rises 6 inches for every 12 inches it runs. The run is always measured level, never along the slope. The roof pitch formula is the rise divided by the run, multiplied by 12.

    You do not have to measure over exactly 12 inches. A rise of 4 inches over a 9 inch run is 4 ÷ 9 × 12 = 5.33, so a 5.33/12 pitch. A rise of 7 feet over a 14 foot run is 7 ÷ 14 × 12 = 6, a 6/12 pitch, because the units cancel. That is why the calculator takes the rise and run in the same unit, and why a measurement in meters gives the same pitch as one in inches.

    The same slope has four common names. The pitch is 6/12. The angle is 26.57 degrees. The percent slope is 50%, the rise as a share of the run. And the rise per meter is 500 mm. The calculator gives all four, so you can match whatever the shingle bundle, the plans or the roofer uses.

    How to measure roof pitch: four ways

    From the attic with a level. It keeps you off the roof. Hold a level against the underside of a rafter so it reads level, mark 12 inches along it from where it touches, and measure straight up from that mark to the rafter. The number of inches is the pitch. In metric, mark 1,000 mm along the level and the rise in millimeters is the rise per meter.

    From measurements, without getting on the roof. Measure the width of the building from the outside of one wall to the outside of the other. Then measure the height from the top of the wall to the peak, from inside the gable or off a ladder at the gable end. If you choose Roof height and span, the calculator halves the span for you on a gable or hip roof.

    From a picture. A photo taken square-on to a gable end keeps the shape of the roof. Measure the height of the triangle and its width in pixels on screen and enter them as the roof height and span. Only the ratio matters, so the units do not. A photo taken at an angle makes the roof look flatter or steeper than it is.

    With an angle finder or a phone. A digital level, an angle finder or a phone's level app laid on a rafter or on the roof surface reads the angle in degrees. If you choose Angle in degrees, the calculator turns it into a pitch in 12. Getting onto a roof is dangerous, and the attic or the ground gives the same answer.

    How to calculate roof pitch in degrees and in metric

    The angle is the inverse tangent of the rise divided by the run. For a 6/12 roof that is arctan(6 ÷ 12) = arctan(0.5) = 26.57 degrees. To go from degrees to a pitch, take the tangent and multiply by 12: a 30 degree roof is tan(30°) × 12 = 6.93, so close to a 7/12 pitch.

    Where the plans give the pitch in degrees, the formula above converts it. To work it out with metric measurements, measure the rise over a level meter: 500 mm per meter is the same slope as 6/12, and 268 mm per meter is a 15 degree roof. If you switch the units to millimeters, every length field takes millimeters, while the pitch, angle and percent stay the same because they are ratios.

    Roof pitch chart: angles, percent and rafter length

    Every value in this chart is our arithmetic from the formulas above. The rafter column is the rafter length for each foot of level run, the multiplier is the same thing as a ratio, and the hip and valley factor is the length of a hip or valley rafter for each unit of common run.

    Roof pitches in degrees, percent and rise per meter, with rafter length factors
    PitchAngleSlopeRise per meterRafter per foot of runMultiplierHip and valley factor
    1/124.76°8.3%83 mm12.04 in1.00351.4167
    2/129.46°16.7%167 mm12.17 in1.01381.4240
    2 1/2/1211.77°20.8%208 mm12.26 in1.02151.4295
    3/1214.04°25%250 mm12.37 in1.03081.4361
    4/1218.43°33.3%333 mm12.65 in1.05411.4530
    5/1222.62°41.7%417 mm13.00 in1.08331.4743
    6/1226.57°50%500 mm13.42 in1.11801.5000
    7/1230.26°58.3%583 mm13.89 in1.15771.5298
    8/1233.69°66.7%667 mm14.42 in1.20191.5635
    9/1236.87°75%750 mm15.00 in1.25001.6008
    10/1239.81°83.3%833 mm15.62 in1.30171.6415
    12/1245.00°100%1000 mm16.97 in1.41421.7321
    14/1249.40°116.7%1167 mm18.44 in1.53661.8333
    16/1253.13°133.3%1333 mm20.00 in1.66671.9437
    18/1256.31°150%1500 mm21.63 in1.80282.0616
    24/1263.43°200%2000 mm26.83 in2.23612.4495

    To use the chart by hand, multiply the level run in feet by the rafter per foot of run. A 12 ft run at 6/12 needs 12 × 13.42 = 161 inches of rafter before the ridge board comes off. For the roof area and shingles at a given pitch, the roofing calculator applies the same multiplier to the floor plan.

    Rafter length calculator: with overhang and ridge board

    A common rafter runs from the ridge down to the outside of the wall, then carries on past it as the overhang, or tail. Three things set its length: the run, the pitch and the overhang.

    The run is half the span on a gable or hip roof. Where the rafters butt against a ridge board, each one stops half the board's thickness short of the center, so take that off the run. A 2x ridge board is 1 1/2 inches thick, the minimum dressed dry size in the American Softwood Lumber Standard, so each rafter loses 3/4 inch of run. Multiply what is left by the pitch multiplier. Then measure the overhang level from the wall and multiply it by the same multiplier to get the tail on the slope.

    Worked example in feet and inches. A 24 ft gable at 6/12 with a 1 1/2 inch ridge board and a 12 inch overhang. The run is 144 − 0.75 = 143.25 inches. The multiplier for 6/12 is 1.1180, so the rafter is 160.16 inches (13 ft 4 3/16 in) to the wall. The overhang adds 12 × 1.1180 = 13.42 inches, for 173.57 inches, or 14 ft 5 9/16 in. That is the example the calculator opens on.

    The lengths are measured along the pitch line, the line a framer lays out on, from the plumb cut at the ridge to the plumb line over the outside of the wall. The plumb cut at the top is not square across the board: on a 6/12 roof it sits 26.57 degrees off square, which is also the miter setting on a saw that reads 0 for a square cut. The seat cut of the birdsmouth is level, at right angles to the plumb line. Buy stock longer than the result to leave wood for the cuts. A stair stringer is laid out the same way, rise over run, and the stair calculator works out its length and bottom cut.

    On a hip roof the common rafters are the same length as on a gable. The hip rafters run diagonally to the corners, so they are longer: the calculator gives the hip rafter's length on its pitch line before the ridge deduction, which depends on how the hip meets the ridge.

    Roof pitch height: how tall is the roof?

    The roof height is the rise from the top of the wall to the peak on the pitch line. On a gable or hip roof it is half the span times the rise per unit of run. A 24 ft wide house at 6/12 rises 12 × 6 ÷ 12 = 6 ft at the ridge. At 8/12 the same house rises 8 ft, and at 12/12 it rises 12 ft. This is the number to check against a height limit or to see if an attic room will have the headroom you want. The finished peak sits a little higher once the rafter depth and the roofing are added.

    Lean-to, shed and skillion roofs

    A lean-to roof has a single slope from a high wall to a low one. Australians call it a skillion, and in the US a shed roof is the same shape. Because there is no ridge, the whole width of the building is the run and there is no ridge board to take off.

    Worked example in millimeters. A lean-to 3,000 mm wide runs from a 2,700 mm wall down to a 2,400 mm wall. The rise is 300 mm over a 3,000 mm run, which is 100 mm per meter, a 10% slope, 5.71 degrees or a 1.2/12 pitch. The rafter is 3,000 × 1.0050 = 3,015 mm wall to wall, and a 300 mm overhang at each wall adds 603 mm on the slope, for 3,618 mm. That pitch is too low for asphalt shingles under the US code, so a lean-to this shallow needs a covering rated for it, such as lapped metal with sealant or standing-seam metal.

    Minimum roof pitch by roofing material

    A roof that is too flat for its covering lets water back up under the laps. In the US, the 2021 International Residential Code, which sets model rules many states and cities adopt, gives these minimums, and the calculator checks your pitch against each one:

    Minimum roof slope by covering, 2021 IRC
    Roof coveringMinimum pitchSection
    Asphalt shingles2/12 (two layers of underlayment from 2/12 up to 4/12)R905.2.2
    Clay and concrete tile2 1/2/12 (two layers of underlayment up to 4/12)R905.3.2
    Metal panels, lapped, no lap sealant3/12R905.10.2
    Metal panels, lapped, with lap sealant1/2/12R905.10.2
    Standing-seam metal1/4/12R905.10.2

    Above 21/12, asphalt shingles are installed as the maker's approved instructions say (R905.2.6). Outside the US, follow your own building rules and the roofing maker's minimum pitch, which can differ from these. Your local code governs everywhere.

    Common mistakes when working out roof pitch

    Measuring the run along the slope. The run is level. Measuring along the roof surface gives the rafter length, not the run, and makes the pitch look lower than it is.

    Using the full span as the run on a gable. A gable roof has two slopes, so each covers half the span. Only a lean-to uses the whole width.

    Forgetting the ridge board. Rafters that butt a ridge board stop short of the center by half its thickness. If you skip it, every rafter comes out 3/4 inch too long in run, a little more on the slope.

    Adding the overhang flat. A 12 inch overhang is longer than 12 inches on the rafter. Multiply it by the pitch multiplier, as the calculator does.

    ⚠️ Disclaimer This calculator works out roof geometry: pitch, angles and line lengths. It does not size rafters, check spans, loads, snow or wind, or design trusses, and its minimum slope check follows the 2021 International Residential Code as read on November 24, 2026. Your local code and the roofing maker's instructions govern. For structural work, use a licensed builder or engineer.

    Frequently Asked Questions

    Divide the rise by the run and multiply by 12. The answer is the pitch in inches of rise per 12 inches of run. A roof that climbs 10 inches over a 24 inch run is 10 ÷ 24 × 12 = 5, so a 5/12 pitch, about 22.62 degrees. If you measure the rise over exactly 12 inches with a level, the rise is the pitch: 6 inches over 12 is a 6/12 roof.
    Take the inverse tangent of the rise divided by the run: angle = arctan(rise ÷ run). A 4/12 pitch is arctan(4 ÷ 12), which is 18.43 degrees. Going the other way, pitch = tan(angle) × 12, so a 20 degree roof is a 4.37/12 pitch and a 45 degree roof is 12/12. Pick Angle in degrees in the calculator to convert a reading from a phone or a digital level.
    Measure it from the ground or from the attic. In the attic, hold a level against the underside of a rafter, mark 12 inches along it and measure straight up to the rafter: that rise in inches is the pitch. From outside, measure the width of the building and the height from the top of the wall to the peak, then use Roof height and span. A straight-on photo of a gable end works the same way, because only the ratio matters: measure the height and the width in pixels and enter them as the height and span.
    Swanson Tool Co., which makes the Speed Square, describes a one-number method. Hold the pivot point against the rafter's top edge, turn the square until the rise number on the COMMON scale lines up with that same edge, and mark along the square: that line is the plumb cut. For a 6/12 roof the number is 6. The calculator shows that number for your pitch. For a hip or valley rafter, Swanson says to use the same rise number on the HIP-VAL scale.
    Work out the run first. On a gable roof that is half the span, less half the ridge board. Multiply the run by the pitch multiplier, √(rise² + 144) ÷ 12, then add the overhang times the same multiplier. A 28 ft gable at 8/12 with a 1 1/2 inch ridge board has a run of 167.25 inches, and the 8/12 multiplier is 1.2019, so the rafter is 201.01 inches (16 ft 9 in) to the wall. A 16 inch overhang adds 19.23 inches on the slope, for 220.24 inches, or 18 ft 4 1/4 in.
    No. The length runs along the pitch line, from the plumb cut at the ridge to the plumb line over the outside of the wall, and the birdsmouth is cut where that plumb line meets the wall: a level seat cut that sits on the wall plate and a plumb heel cut. The tail for the overhang carries on past it. How deep a birdsmouth may be cut is set by your local code and the lumber, and this calculator does not size it.
    A 12/12 roof is 45 degrees, and every foot of run needs 16.97 inches of rafter (a multiplier of 1.4142). On a 24 ft wide gable with a 1 1/2 inch ridge board, the rafter is 202.59 inches (16 ft 10 9/16 in) to the wall, and a 12 inch overhang brings it to 219.56 inches (18 ft 3 9/16 in). Buy the next stock length up to leave wood for the cuts.
    A lean-to, shed or skillion roof has one slope, so the whole width is the run. Subtract the low wall height from the high wall height to get the rise, then divide by the width. A shed 12 ft wide with a 10 ft high wall and an 8 ft 6 in low wall rises 18 inches over 144 inches, which is a 1.5/12 pitch, a 12.5% slope or 7.13 degrees. Choose Lean-to and Roof height and span to get the rafter length with an overhang at each wall.
    Under the 2021 International Residential Code, asphalt shingles need at least 2/12 and two layers of underlayment up to 4/12 (R905.2.2). Clay and concrete tile need 2 1/2/12 (R905.3.2). Lapped metal panels need 3/12 without lap sealant or 1/2/12 with it, and standing-seam metal 1/4/12 (R905.10.2). The calculator checks your pitch against each. Your local code and the maker's instructions govern.

    Sources & Methodology

    The figures on this page that are not arithmetic come from these publications:

    Pitch = rise ÷ run × 12. Angle = arctan(rise ÷ run). Percent slope = rise ÷ run × 100. Multiplier = √(pitch² + 144) ÷ 12; hip and valley factor = √(pitch² + 288) ÷ 12. Rafter run = span ÷ 2 − ridge board ÷ 2 (span on a lean-to); rafter length = run × multiplier; overhang on the slope = level overhang × multiplier; hip rafter = span ÷ 2 × hip and valley factor. Roof height = run to the ridge × rise ÷ run. The plumb cut is the roof angle off square. Every chart and example figure is our arithmetic from these formulas. Imperial lengths are rounded to the nearest 1/16 inch.