Roofing calculator

Compound Slope Calculator

A compound slope calculator for slopes that run in two directions at once. A roof valley, a hip, a ramp with a cross-fall and a shower floor all slope in two directions, and the slope you walk on, drain on or cut a rafter to is neither of the two slopes, but their resultant. Enter the two pitches and the plan run to get the resultant slope, angle and percent grade, the sloped length and, where two equal pitches meet at a square corner, the hip or valley rafter length.

  • Free to use
  • No sign-up
  • Formula and sources shown
Compound Slope Calculator

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app
6

Roof pitch in inches per 12 in of run: 6 means 6/12. A 1:12 ramp is 1; a 1/4 in per foot fall is 0.25.

6

The slope in the second direction, at right angles to the first in plan, the second roof plane, the ramp cross-fall, or the second drainage fall.

10

Horizontal distance in plan, not along the slope. For a valley, use the common run of the rafters.

Resultant slope

8.49 in 12

35.3°, 70.7% grade

Slope A angle

26.6°

Slope B angle

26.6°

Sloped length over run

12.25 ft

Length per foot of plan

1.225 ft

Hip / valley rafter length

15.00 ft (×1.500)

Hip / valley slope

19.5°

ADA ramp check (max 1:12)

Fails, over 1:12

Drainage check (min 2%)

Passes. Drains

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Resultant gradient = √(m₁² + m₂²); resultant angle = arctan(resultant); sloped length per ft of plan run = √(1 + m₁² + m₂²); hip/valley factor = √(2 + m²)

Worked example. Two 6/12 roof planes meeting at a square valley, over a 10 ft common run: each slope is 0.5 rise per foot of run, so the resultant gradient is √(0.5² + 0.5²) = 0.707, or 8.49 in 12, a 35.3° angle and a 70.7% grade. The sloped surface is 12.25 ft long over the 10 ft plan run, and the valley rafter itself is 10 × 1.5 = 15 ft long, running at its own slope of 19.5°.

Two 6/12 roof planes meeting at a square valley do not make a 6/12 valley. They make an 8.49 in 12 resultant slope at 35.3°, a 70.7% grade, and a valley rafter 15 ft long over a 10 ft common run. The slope you walk on, drain on or cut a rafter to is the resultant of the two directions, and it is always steeper than either one on its own. This page works out that resultant, the angle, the percent grade, the sloped length and the hip or valley rafter length.

Key takeaways

  • •Two 6/12 slopes at right angles give a resultant of 8.49 in 12, 35.3°, 70.7% grade, steeper than either slope alone, because the resultant is the hypotenuse of the two.
  • •The sloped surface is 12.25 ft long over a 10 ft plan run at 6/12 and 6/12, or 1.225 ft of surface per foot of plan.
  • •Where two equal pitches meet at a square corner, the hip or valley rafter is the common run × √(2 + m²): 1.5× for 6/12, so 15 ft over a 10 ft run, at its own slope of 19.5°.
  • •A valley drains more slowly than the roof planes around it, because its own slope is shallower, 19.5° against 26.6° for 6/12, which is why valleys need wider flashing and more care.
  • •An accessible ramp must pass in both directions at once: 1:12 maximum running slope and 1:48 maximum cross slope. The resultant is the check that catches a ramp that passes forward and fails sideways.
  • •A near-flat roof needs at least 1/4 in per foot (2%) of fall in the resultant direction, not just in one direction, or water ponds.
  • •The resultant formula only applies where the two slopes are at right angles in plan. If the corner is not square, the hip and valley figures do not apply either.
  • •Resultant slope in pitch form reads like a framing-square number: 8.49 in 12 for two 6/12 planes, 17 in 12 for two 12/12 planes.

How to use the compound slope calculator

  1. Enter the first slope as a pitch. Rise in inches per 12 in of run. A 6/12 roof is 6; a 1:12 ramp is 1; a 1/4 in per foot fall is 0.25.
  2. Enter the second slope the same way. For a roof valley, this is the pitch of the second plane; for a ramp, it is the cross-fall; for a floor, it is the fall in the second direction.
  3. Enter the plan run in feet. The horizontal distance the slope covers, measured on the plan, not along the slope. For a valley, use the common run of the rafters.
  4. Read the resultant slope in three forms: pitch (in 12), angle in degrees, and percent grade. All three describe the same slope, and different trades want different forms.
  5. Read the sloped length: the length of surface over your plan run, and the length per foot of plan run, which is the multiplier for material takeoff.
  6. If the two pitches are equal, read the hip or valley rafter length and its own slope, the numbers for cutting the rafter and sizing the flashing.
  7. Check the two flags: the ADA ramp check, which fails if the resultant is steeper than 1:12, and the drainage check, which fails if the resultant is under 2%.

Worked examples

1. The default: two 6/12 roof planes at a square valley, 10 ft common run

  • Each slope: 6/12 = 0.5 rise per foot of run; each angle 26.6°
  • Resultant gradient: √(0.5² + 0.5²) = √0.5 = 0.707, or 8.49 in 12
  • Resultant angle: arctan(0.707) = 35.3°; percent grade: 70.7%
  • Sloped length per foot of plan run: √(1 + 0.25 + 0.25) = 1.225 ft, so 12.25 ft over the 10 ft run
  • Total rise over the run: √(5² + 5²) = 7.07 ft
  • Valley rafter: factor √(2 + 0.25) = 1.5, so 10 × 1.5 = 15 ft, at its own slope of 19.5°

2. A wheelchair ramp: 1:12 forward, 1:48 cross-fall, 30 ft long

  • Forward slope: 1/12 = 0.0833 (8.33%); cross slope: 1/48 = 0.0208 (2.08%)
  • Resultant gradient: √(0.0833² + 0.0208²) = 0.0859, or 1.03 in 12, 8.59% grade, 4.9°
  • The resultant is steeper than the 1:12 running-slope limit, so the ramp fails the ADA check in its steepest direction even though each direction passes on its own
  • Sloped length: 30 × √(1 + 0.00694 + 0.00043) = 30.11 ft. Barely longer than the plan run, because the slopes are shallow
  • Fix: reduce the cross-fall to 1:60 or flatten the forward slope to 1:13, then re-check the resultant

3. A shower floor falling to a drain: 1/4 in per ft in both directions, 5 ft run

  • Each fall: 0.25/12 = 0.0208 rise per foot of run (2.08%)
  • Resultant gradient: √(0.0208² + 0.0208²) = 0.0295, or 0.35 in 12, 2.95% grade, 1.7°
  • Sloped length per foot: √(1 + 0.00043 + 0.00043) = 1.0004 ft, so 5.00 ft over the 5 ft run. The surface is barely longer than the plan
  • Total fall at the drain: √(1.25² + 1.25²) = 1.77 in of fall from the far corner
  • Drainage check passes: the resultant is over the 2% minimum, so water moves to the drain from every direction

The maths: why the resultant is a hypotenuse

A slope in two directions is a three-dimensional problem, and the clean way to see it is as a right triangle standing on its side. Each direction contributes a rise over the same plan run, and the two rises are at right angles to each other in plan, one along the x-axis, one along the y-axis. The true rise, the one a ball would roll down, is the diagonal of the square those two rises make: the square root of the sum of their squares. That is Pythagoras, applied to slopes instead of lengths.

Put numbers on it. Two 6/12 pitches each rise 6 in over a 12 in run, or 0.5 ft per foot. Over a 10 ft run each rises 5 ft, and the two 5 ft rises are at right angles in plan, so the true rise is √(5² + 5²) = 7.07 ft over a 10 ft plan distance, a gradient of 0.707, or 8.49 in 12. The angle is arctan(0.707) = 35.3°, and the percent grade is 70.7%. The sloped length is the third side of a different triangle: √(10² + 5² + 5²) = 12.25 ft, which is why the length per foot of plan run is √(1 + 0.5² + 0.5²) = 1.225.

The same geometry explains the hip and valley. A hip or valley rafter runs diagonally across the corner in plan, so over a 10 ft common run it covers 10 × √2 = 14.14 ft in plan while rising the same 5 ft, a slope of 5 ÷ 14.14 = 0.354, or 19.5°, which is shallower than either roof plane. Its length is √(14.14² + 5²) = 15 ft, which is the common run × 1.5. The factor 1.5 is √(2 + m²) with m = 0.5, and it is the number stamped on a framing square's rafter table for a 6/12 hip or valley.

Equal pitch (both planes)Resultant slopeResultant angleHip / valley factorValley slope
3/124.24 in 1219.5°1.436×10.0°
4/125.66 in 1225.2°1.453×13.3°
6/12 (default)8.49 in 1235.3°1.500×19.5°
8/1211.31 in 1243.3°1.563×25.2°
12/1216.97 in 1254.7°1.732×35.3°

Equal pitches meeting at a square corner. The valley slope is always shallower than the roof planes, and the gap grows with the pitch, which is why steep roofs have slow valleys.

The table shows the pattern that matters on a roof: the steeper the roof, the bigger the gap between the plane slope and the valley slope. On a 3/12 roof the valley runs at 10° against planes at 14°; on a 12/12 roof the valley runs at 35.3° against planes at 45°. A valley on a steep roof still drains, but it drains like a much shallower roof, and that is why valleys get wider flashing, why valley shingles are cut rather than woven on steep roofs, and why a valley is the first place a roof leaks.

Roof hips and valleys: cutting the rafter

The hip or valley rafter is the longest and hardest rafter on the roof, and its length is the number this calculator exists to give. For equal pitches on a square corner, the length is the common run × √(2 + m²), where m is the pitch as a ratio, 0.5 for 6/12. That factor is 1.436 for 3/12, 1.5 for 6/12, and 1.732 for 12/12, and it is the same number a framing square gives in its rafter table, so you can check the calculator against the square in your tool belt.

The valley rafter's own slope matters as much as its length, because it sets the angle of the birdsmouth cut and the bevel of the jack rafters that meet it. At 6/12 the valley runs at 19.5°, so the jack rafters meet it at a compound angle, a bevel and a miter at once, and a saw set to the plane angle of 26.6° will cut them wrong. That is the compound angle problem: the jack rafter is cut on two planes, and the framing square's hip/valley table gives both angles. The resultant slope on this page is the first step toward those angles.

For the single-plane numbers, the pitch in degrees, the percent grade and the area multiplier, use the roofing calculator. For the cost of the roof those rafters carry, use the roof replacement cost calculator, which prices the tear-off and the new roof by material and pitch.

Where the two pitches differ, the valley does not run down the middle of the corner. It runs toward the shallower plane, because the steeper plane rises faster and pushes the valley line sideways. The hip and valley factor on this page does not apply there, and neither does the equal-pitch valley slope. Unequal-pitch valleys are laid out on the plan with a framing square and a level, or with a rafter table for the specific pair of pitches, and they are the job where a wrong guess shows up as a valley that does not drain.

Ramps: the slope you push is the resultant

A ramp is a compound slope whenever it has a cross-fall, and most ramps do. A cross-fall is deliberately built in so rain runs off the side instead of pooling on the walking surface. The ADA Standards allow a maximum running slope of 1:12 (8.33%) for a new ramp and a maximum cross slope of 1:48 (2.08%), and the two limits are usually checked separately. But the person in the wheelchair experiences the resultant, not the two directions separately, and the worked example on this page shows the trap: a ramp at exactly 1:12 forward with exactly 1:48 sideways has a resultant of 8.59%, which is steeper than the running-slope limit in the steepest direction.

Ramp layoutForward slopeCross slopeResultantADA check
1:12 forward, no cross-fall8.33%0%8.33%Passes
1:12 forward, 1:48 cross-fall8.33%2.08%8.59%Fails, resultant over 1:12
1:14 forward, 1:48 cross-fall7.14%2.08%7.44%Passes
1:12 forward, 1:60 cross-fall8.33%1.67%8.50%Fails, still over
1:16 forward, 1:48 cross-fall6.25%2.08%6.59%Passes comfortably

The ADA running-slope limit is 1:12 and the cross-slope limit is 1:48. The resultant is what a wheelchair user feels, and it is the stricter check.

The practical rule is to design the ramp a little flatter than the limit in the forward direction, so the cross-fall has room. A 1:14 forward slope with a 1:48 cross-fall gives a resultant of 7.44%, comfortably inside the limit, and it drains. A 1:12 forward slope leaves no room at all for any cross-fall, which means it either ponds or fails, and a ramp that ponds is a ramp nobody can use in the rain.

The same logic applies to a driveway or a walkway that falls in two directions. A driveway that falls 2% toward the street and 2% sideways to a drain has a resultant of 2.83%, which drains well; a driveway that falls 2% in one direction only has a resultant of 2%, which is the minimum and will pond wherever the concrete is a little high. Designing to the resultant instead of to one direction is the difference between a surface that drains and one that holds water.

Drainage falls: flat roofs, floors and showers

Drainage is the most common reason to calculate a compound slope, and the most common reason to get it wrong. A flat roof, a shower floor and a balcony all fall in two directions, toward the drain and sideways to it, and the water follows the resultant, not the direction the drawings label as the fall. If the resultant is under 2% (1/4 in per foot), water ponds; if it is over 2% in the resultant direction, it drains from every point on the surface.

SurfaceFall in each directionResultantDrains?
Flat roof, tapered insulation1/4 in per ft both ways2.95%Yes | comfortably
Flat roof, minimum fall one way only1/4 in per ft one way, 0 the other2.08%Barely | any high spot ponds
Shower floor (default example)1/4 in per ft both ways2.95%Yes
Balcony, 1/8 in per ft both ways1.04% each way1.47%No | under the 2% minimum
Driveway, 2% to street, 2% sideways2% each way2.83%Yes

Minimum drainage fall is 1/4 in per foot (2%) in the resultant direction. Designing to one direction only leaves the surface at the minimum, where any construction tolerance ponds water.

The balcony row is the cautionary tale. A fall of 1/8 in per foot sounds like a fall, and in one direction it is, but the resultant of two 1/8 in per foot falls is only 1.47%, under the 2% minimum, and a balcony built that way holds water against the door threshold. Balconies are often built flatter than roofs because a steep balcony feels wrong underfoot, but the water does not care how it feels: it ponds, finds the threshold, and comes inside.

For a shower floor the numbers are small but the principle is the same. A floor that falls 1/4 in per foot toward the drain in both directions has a resultant of 2.95% and drains from every corner; a floor that falls 1/4 in per foot in one direction only has a resultant of 2.08% and will hold a puddle in the far corner where the two falls do not meet. The tiler who sets the fall in both directions gets a floor that dries; the one who sets it in one direction gets a callback.

Common compound slope mistakes

  • •Using one slope instead of the resultant. A valley at 6/12 and 6/12 is not a 6/12 valley. It is 8.49 in 12, and a rafter cut to 6/12 will be short.
  • •Cutting jack rafters to the plane angle. The valley runs at 19.5° on a 6/12 roof, not 26.6°, so the jack cuts are compound angles, not single angles.
  • •Using the hip/valley factor where the pitches differ. Unequal pitches push the valley off the corner diagonal, and the equal-pitch factor gives the wrong length.
  • •Checking a ramp in one direction only. A 1:12 ramp with a 1:48 cross-fall has a resultant of 8.59% and fails the ADA running-slope limit.
  • •Designing a drainage fall in one direction only. A 1/4 in per foot fall in one direction is a 2.08% resultant, the bare minimum, where any high spot ponds.
  • •Measuring the run along the slope instead of in plan. The run is horizontal; measuring along the slope inflates it and understates the pitch.
  • •Forgetting that the resultant is always steeper than either slope. Two shallow slopes make a steeper one, and the steeper it gets, the more it matters.
  • •Using percent grade and degrees interchangeably. A 100% grade is 45°, not 90°. Percent is rise over run, and degrees are the angle of the same triangle.

How this calculator compares with the rivals

There is no dominant compound slope calculator. The search is split between compound angle calculators for saw cuts, single-direction slope calculators, and roof pitch calculators that handle one plane at a time. None of them combines two slopes into a resultant and gives the hip or valley rafter length in the same place. That is the gap this page fills.

RivalWhat it offersWhere this page beats it
BuildItCalc | Compound Slope CalculatorSlope in two directions, resultant slope and angleThe namesake rival asks for the same two slopes, but gives only the resultant. This page adds the sloped length, the hip/valley rafter length and factor, the ADA ramp check and the drainage check, the numbers that turn a slope into a cut list.
RoofingCalcTools | Compound Angle CalculatorMiter and bevel angles for compound cuts from corner angle and roof pitch, with a worked 6/12 exampleThe best rival for saw settings. This page does the step before it: the resultant slope and the valley length that the saw angles depend on, plus the ramp and drainage uses it does not cover.
NeuroChispas | Slope CalculatorSlope from two points, percent grade, angle, and a ramp/roof mode with rise and runGood on single-direction slope and unit conversion. This page adds the second direction. The resultant, the valley length and the two-direction checks it cannot do.
CostSquared | Roof Pitch CalculatorPitch, angle, percent, area multiplier and the hip/valley factor for one pitchStrong on the single-pitch factors, including the 1.5× hip/valley factor for 6/12. This page adds the resultant of two different pitches, the sloped length and the ramp and drainage checks.
4Calculators | Roof Pitch CalculatorPitch to degrees, percent, slope factor and hip/valley multiplier, with conversions in both directionsThe deepest single-pitch page. This page adds the two-direction resultant, the valley length for equal pitches, and the ADA and drainage flags it does not have.
Maplity | Slope CalculatorGrade between two points from real elevation data, with a profile chart and a PDF reportThe only rival that measures real ground. This page is for designed slopes, roofs, ramps and floors, where the two directions are known and the resultant, the rafter length and the code checks are what matter.
AlSyed Construction | Roof Slope Factor CalculatorSlope factor, hip/valley factor and rafter length for one pitchGood on the single-pitch factors. This page adds the resultant of two pitches and the two-direction use cases.
CalculatorSoupNo compound slope calculator in the top results for this keywordIts strength is general-purpose calculators.
InchCalculator | Squaring CalculatorDiagonal and 3-4-5 checks for squaring a layoutA layout tool, not a slope tool, but the same Pythagoras. This page is the slope half of the same geometry, and the two pages link to each other.

The honest summary: RoofingCalcTools and CostSquared are the rivals to watch, because they already handle the hip/valley factor and the compound saw angles. No rival combines the resultant slope, the sloped length, the hip/valley rafter length, the ADA ramp check and the drainage check in one place, and none of them explains why the resultant is always steeper than either slope. This page wins by being the only one that does all of it.

Assumptions

  • •The two slopes are at right angles to each other in plan, the usual case for a roof hip or valley on a square corner, a ramp with a cross-fall, and a floor that falls to a drain in two directions. If the two directions are not at right angles, the resultant formula does not apply.
  • •Pitches are entered as rise in inches per 12 in of run, the North American roofing convention: 6 means 6/12. The resultant is reported the same way, so it reads like a pitch you can put on a framing square.
  • •The hip and valley figures assume the two pitches are equal and the corner is square in plan. Where the pitches differ or the corner is not square, the hip or valley length needs the full three-dimensional calculation, and a framing square or a rafter table is the safer tool.
  • •The ADA check uses the 1:12 (8.33%) maximum running slope for a new accessible ramp from the ADA Standards. Cross slope on an accessible route is limited to 1:48 (2.08%). Local codes may be stricter.

Sources✓ Verified

  • ADA Standards for Accessible Design, Section 405. Maximum running slope 1:12 (8.33%) for a new ramp; maximum cross slope 1:48 (2.08%).
  • International Residential Code (IRC), 2021 edition, Chapter 9. Roof assemblies and minimum slopes by roofing product; asphalt shingles generally need 2/12 or more.
  • Framing square rafter tables. Hip and valley rafter lengths per foot of common run, and the length-per-foot figures used to check the calculator.

Formula reviewed November 2026.

A compound slope is a surface that falls in two directions at once, a roof valley where two planes meet, a ramp that slopes forward and sideways, or a shower floor that falls to a drain from two sides. The slope you actually experience is the resultant of the two: for two 6/12 slopes at right angles, the resultant is 8.49 in 12, or 35.3°, which is steeper than either slope on its own.

Treat each slope as a rise-per-run ratio and combine them with Pythagoras: resultant = √(m₁² + m₂²). For two 6/12 pitches, each ratio is 0.5, so the resultant is √(0.25 + 0.25) = 0.707, or 8.49 in 12, at an angle of arctan(0.707) = 35.3°. The sloped length per foot of plan run is √(1 + m₁² + m₂²), which is 1.225 ft for the same example.

Where two 6/12 planes meet at a square corner, the valley rafter length is the common run × 1.5. Over a 10 ft common run that is 15 ft. The factor comes from √(2 + m²) with m = 0.5, and the valley's own slope is 19.5°, shallower than either roof plane, which is why valleys drain more slowly and need wider flashing.

The ADA Standards allow a maximum running slope of 1:12 (8.33%) for a new ramp, and a maximum cross slope of 1:48 (2.08%). A ramp that slopes 1:12 forward and 1:48 sideways has a resultant slope of about 8.6%, which is over the running-slope limit in the steepest direction, so both directions have to be checked together, which is exactly what the resultant on this page does.

A near-flat roof needs at least 1/4 in per foot (2%) of fall to drain, and most roofing manufacturers want 1/2 in per foot on a new tapered-insulation layout. If either direction of a compound fall is under 2%, water ponds, and a ponded roof is a failed roof, whatever the membrane warranty says. This calculator flags any resultant under 2%.

Yes, always, unless one of the two slopes is zero. The resultant is the hypotenuse of the two slopes, so it is longer than either leg. Two 6/12 slopes give a resultant of 8.49/12; two 12/12 slopes give 17/12, or 54.7°. That is why a valley feels steeper than the roof planes around it, and why a ramp with a cross-fall is harder to push than its forward slope suggests.

Converters to use with the Compound Slope Calculator

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More roofing calculators

Gutter Installation Cost CalculatorRoofingGutter Installation Cost CalculatorA gutter installation cost calculator that prices new gutters before you call a roofer. Enter the house footprint and the roof style, gable, hip or shed, and the calculator works out the eave length, the downspouts, every part in the job and the installed cost by material: vinyl, aluminium, steel or copper, with gutter guards and old-gutter removal as options. Planning ranges for the United States in 2026, never quotes.Saltbox Roof CalculatorRoofingSaltbox Roof CalculatorA saltbox roof calculator that works out the true geometry of a saltbox roof, where the two sides have different pitches and the ridge sits off-centre. Enter the building span, the front pitch and the rear pitch, the roof length and the overhang, and the calculator finds where the ridge lands, how high it is, each slope and rafter length, the total roof area in squares, and how many bundles of shingles to order. Most roof calculators only do symmetric gables; this one does the asymmetric roof properly.Ice and Water Shield CalculatorRoofingIce and Water Shield CalculatorThis ice and water shield calculator works out how many rolls your roof needs, so you order enough to meet the code. A 2,000 sq ft roof with 100 ft of eaves and 40 ft of valleys needs 420 sq ft of shield, 300 sq ft at the eaves and 120 sq ft in the valleys, which is 3 rolls with a 10% waste allowance. IRC R905.1.2 requires the barrier to run from the lowest roof edges to at least 24 in inside the exterior wall line.Roof Area CalculatorRoofingRoof Area CalculatorA roof area calculator that turns the footprint, the overhang and the pitch into the true sloped roof area, with roofing squares, shingle bundles and underlayment rolls, for a gable or a hip roof. A 40 by 30 ft house at 6/12 has a footprint of 1,200 sq ft and a roof of 1,341.64 sq ft, which is 13.42 roofing squares, and with a 1 ft overhang the roof is 1,502.64 sq ft, or 15.03 squares, needing 50 bundles of shingles at 10% waste. Measure from the ground, never from a ladder, and verify on site before you order.Roofing CalculatorRoofingRoofing CalculatorA roofing calculator that turns your building footprint and roof pitch into the real sloped roof area, the number of roofing squares and how many bundles of shingles to order. A flat-area count leaves you short on the slope, and a short order stops the crew with the roof open. Enter the footprint and pitch and get a count the roof actually takes.Gutter & Downspout CalculatorRoofingGutter & Downspout CalculatorA gutter calculator that turns your gutter run and roof area into the downspout count the roof needs, then helps you plan gutter sections, hangers and extensions. Too few downspouts and water overflows the gutter in heavy rain; too many and you pay for outlets the roof never uses. Enter the run and area and get the count right.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.