Construction Angle Calculator: Slope, Pitch, Ramp, Stairs & More — Complete Guide
Slope & Grade Calculator (IBC / AASHTO)
Slope and grade describe the steepness of a surface as the ratio of vertical rise to horizontal run. Three equivalent representations are used across different industries:
- Degrees (θ): θ = arctan(rise ÷ run) — used in surveying and engineering drawings
- Percent grade: (rise ÷ run) × 100% — used in road design (AASHTO GDHS-7) and accessibility codes
- Grade ratio (1:n): 1 unit rise per n units run — used in ADA and drainage specifications
AASHTO GDHS-7 maximum grades by terrain: flat = 5%, rolling = 8%, mountainous = 12%. IBC §406.2.5 caps parking structure ramps at 20% (11.31°). Drainage swales typically require a minimum of 1–2% to prevent ponding, per local stormwater codes.
| Application | Max Grade | Degrees |
|---|---|---|
| ADA Ramp | 8.33% (1:12) | 4.76° |
| Highway (flat terrain) | 5% | 2.86° |
| Parking ramp | 20% | 11.31° |
| Drainage swale (min) | 1% | 0.57° |
Roof Pitch Calculator (IRC R905)
Roof pitch (or slope) is the angle of a roof surface, traditionally expressed as the ratio of vertical rise to 12 inches of horizontal run in North America. A "6-in-12" or "6:12" pitch rises 6 inches for every 12 inches of run.
IRC 2021 R905 specifies minimum slopes for each roofing material:
- Asphalt shingles: minimum 2:12 (9.46°) with double underlayment; standard ≥4:12
- Metal roofing (standing seam): minimum ½:12 (2.39°)
- Concrete/clay tile: minimum 2½:12 (11.77°) with waterproof underlayment
- Wood shakes: minimum 3:12 (14.04°)
- Slate: minimum 4:12 (18.43°)
- EPDM/built-up membrane: minimum ⅛:12 (0.6°) with positive drainage
The calculator also outputs the roof multiplier (hypotenuse ÷ run), which is used to calculate actual roof surface area from plan-view dimensions: surface area = plan area × roof multiplier.
Ramp Angle & ADA Compliance (ADA 2010 §405–406)
ADA Standards for Accessible Design 2010 §405 (running slopes) and §406 (curb ramps) define the following requirements for accessible ramp construction:
- Maximum running slope: 1:12 (8.33%, 4.76°) — steeper slopes are non-compliant
- Maximum cross slope: 1:48 (2.08%) — prevents lateral wheelchair drift
- Maximum rise per run: 30 inches (760mm) — level landing required beyond this
- Minimum width: 36 inches (915mm) clear between handrails
- Handrails: Required on both sides when rise exceeds 6 inches
- Edge protection: Curb, barrier, or extended surface on open sides
For vehicular curb ramps (§406): maximum slope 1:10 (10%) when space is constrained, or 1:8 (12.5%) where constraints prevent 1:10. Detectable warning surfaces (truncated domes) are required at street-level landings.
⚠ Always verify ramp designs against the applicable local building code and ADA Standards. State and local codes may impose stricter requirements than federal ADA minimums.
Stair Angle Calculator (IBC §1011 / IRC R311)
Stair geometry is governed by the relationship between riser height and tread depth (going). Two separate codes apply depending on occupancy:
| Code | Max Riser | Min Tread | Angle Range |
|---|---|---|---|
| IBC §1011 (commercial) | 7 in (178mm) | 11 in (279mm) | ~29.7°–32.5° |
| IRC R311.7 (residential) | 7¾ in (197mm) | 10 in (254mm) | up to ~37.8° |
The Blondel formula (2R + G = 24–25 inches or 610–635mm) evaluates ergonomic comfort, where R is riser height and G is going (tread depth excluding nosing). Stairs satisfying this range accommodate an average adult stride naturally without overstep or understep.
The calculator also outputs the number of risers required for a given total rise, and checks riser-to-tread consistency (all risers within ⅜ inch of each other per IBC §1011.5.4).
Right Triangle Solver
A right triangle has one 90° angle. Given any two of the five measurable properties (three sides and two acute angles), all remaining properties can be determined using the Pythagorean theorem and trigonometric identities:
c² = a² + b² (Pythagorean theorem)
sin(A) = a ÷ c · cos(A) = b ÷ c · tan(A) = a ÷ b
Area = ½ × a × b
In construction, right triangle calculations appear in:
- Setting out square corners: The 3-4-5 rule (a=3, b=4, c=5) confirms 90°
- Rafter length: horizontal run + vertical rise → actual rafter length via Pythagorean theorem
- Diagonal bracing: width + height → minimum diagonal brace length
- Stair stringers: total rise + total run → stringer length
Bevel & Miter Angle Calculator (Compound Miter Formula)
Compound miter cuts are required when joining moulding that tilts away from vertical (spring angle) to a corner that is not 90°. The miter saw must be set to both a miter angle (horizontal rotation) and a bevel angle (blade tilt) simultaneously.
The governing formulas (derived from 3D rotation matrices) are:
tan(miter) = cos(spring_angle) × tan(corner ÷ 2)
tan(bevel) = sin(miter) × tan(spring_angle)
For flat crown moulding (no spring angle, spring = 0°): the joint is a simple miter at corner ÷ 2. For standard 52°/38° crown (spring = 38°) at a 90° corner: miter ≈ 31.62°, bevel ≈ 33.86°.
The calculator also outputs the saw's miter scale setting (90° − calculated miter for saws that read from 0° at square).
Angle Unit Converter (Degrees · Radians · Grads · Percent)
Four unit systems for angles are used across different disciplines:
- Degrees (°): 360° = full circle — universal in construction and everyday use
- Radians (rad): 2π rad = full circle — standard in mathematics and engineering formulas
- Gradians/Grads (gon): 400 gon = full circle — used in European surveying and some CAD systems
- Percent grade (%): tan(θ) × 100 — used in road design and accessibility standards
radians = degrees × π ÷ 180
grads = degrees × 10 ÷ 9
percent = tan(degrees × π ÷ 180) × 100
Hip & Valley Rafter Calculator
Hip rafters run diagonally from the ridge board to the corner of the wall plate at 45° in plan view. Valley rafters run similarly into interior corners. Per foot of common rafter run, a hip or valley rafter travels a horizontal distance of √(12² + 12²) = 16.97 inches — the unit run of the hip.
hip_unit_run = √(12² + 12²) = 16.97 in per ft of plan run
hip_unit_length = √(rise² + 16.97²) per 12 in of common run
total_hip_length = hip_unit_length × (span_ft ÷ 12)
hip_slope_angle = arctan(rise ÷ 16.97)
The hip rafter angle is always shallower than the common rafter angle. For a 6:12 pitch, the common rafter angle is 26.57°, but the hip rafter angle is arctan(6 ÷ 16.97) = 19.47°.
The backing angle (bevel cut along the top edge) ensures the rafter top surface is co-planar with adjacent roof planes: backing angle = arctan(sin(hip_slope) × tan(roof_pitch)).
Solar Panel Tilt Angle (NREL PVWatts)
The optimal tilt angle for a fixed solar panel maximises annual energy production by minimising the angle of incidence of solar radiation averaged over the year. NREL's PVWatts model produces the empirical relationship:
optimal_tilt_annual = latitude × 0.87 + 3.1°
optimal_tilt_summer = latitude − 15°
optimal_tilt_winter = latitude + 15°
At 40° latitude, optimal annual tilt is 37.9° — a flat installation typically yields 10–15% less energy annually. For roof-mounted systems, the panel-to-roof gap angle (tilt − roof pitch) determines the mounting bracket height required, which affects wind loading and structural calculations.
💡 Panels should face the equator (south in the Northern Hemisphere, north in the Southern Hemisphere) for maximum production. East or west orientation reduces annual output by approximately 15–20%.
Polygon Interior Angle Calculator
Regular polygon calculations are needed for gazebos, turrets, bay windows, and any architectural feature with rotational symmetry:
sum_of_interior_angles = (n − 2) × 180°
interior_angle = (n − 2) × 180° ÷ n
exterior_angle = 360° ÷ n
miter_cut_angle = 180° ÷ n
The miter cut angle is the saw setting to join adjacent panels. For an octagon (n=8): 22.5°. For a hexagon (n=6): 30°.
| Shape | Sides | Interior Angle | Miter Cut |
|---|---|---|---|
| Triangle | 3 | 60° | 60° |
| Square | 4 | 90° | 45° |
| Pentagon | 5 | 108° | 36° |
| Hexagon | 6 | 120° | 30° |
| Octagon | 8 | 135° | 22.5° |
| Dodecagon | 12 | 150° | 15° |
Frequently Asked Questions
How do you convert slope percentage to degrees?
To convert slope percentage to degrees: θ = arctan(slope% ÷ 100). For example, a 10% slope equals arctan(0.10) = 5.71°. Conversely, degrees to percent: slope% = tan(θ) × 100. A 45° slope is exactly 100%.
What is the maximum ADA-compliant ramp slope?
Per ADA Standards for Accessible Design 2010 §405.2, the maximum running slope for an accessible ramp is 1:12 (one unit of rise for every 12 units of horizontal run), which equals 4.76° or 8.33%. Cross slopes must not exceed 1:48 (2.08%). Maximum rise per ramp run is 30 inches (760 mm), requiring a level landing every 30 inches of rise.
What is roof pitch and how is it measured?
Roof pitch is the ratio of vertical rise to horizontal run, expressed as "X-in-12" in the US (e.g., 6:12 means 6 inches of rise per 12 inches of run). Metric equivalent is rise per 1000mm of run. A 6:12 pitch equals 26.57°. Pitches below 2:12 (9.46°) are considered low-slope and require special roofing materials per IRC R905.
What stair angle is required by the International Building Code?
IBC 2021 §1011.5 requires stair risers between 4 inches (min) and 7 inches (max), and treads of at least 11 inches (measured as going). This produces a stair angle range of approximately 29.7° to 36.4°. The Blondel formula (2R + G = 24–25 inches) checks ergonomic comfort — the calculator uses this formula to evaluate your stair geometry.
How do you calculate a right triangle when you only know two sides?
Given two legs (a, b): hypotenuse c = √(a² + b²); angle A = arctan(a ÷ b). Given one leg and the hypotenuse (e.g., a, c): b = √(c² − a²); angle A = arcsin(a ÷ c). Given one leg and one angle (e.g., a, A): b = a ÷ tan(A); c = a ÷ sin(A). The calculator handles all four input combinations automatically.
What is the difference between bevel angle and miter angle?
A bevel angle is the tilt of the blade from vertical (perpendicular to the workpiece face). A miter angle is the rotation of the fence/workpiece from 90° (perpendicular to the blade). For flat crown molding joints at a 90° corner with a 45° spring angle, the miter saw setting is approximately 35.26° miter and 30° bevel. The calculator uses the compound miter formula: miter = arctan(cos(bevel) × tan(corner ÷ 2)).
How do you calculate the length of a hip or valley rafter?
Hip and valley rafters run diagonally at 45° to the building corners. Their unit run (per foot of common rafter run) is √(12² + 12²) = 16.97 inches. Hip rafter length = (unit rise² + 16.97²)^0.5 × (span ÷ 12). For example, a 6:12 pitch over a 20ft span has a hip unit length of √(6² + 16.97²) = 17.99 per 12 inches of run.
What is the optimal solar panel tilt angle?
According to NREL PVWatts research, the optimal annual fixed tilt for a solar panel is approximately latitude × 0.87 + 3.1° for maximising annual energy output. For seasonal optimisation: summer tilt ≈ latitude − 15°, winter tilt ≈ latitude + 15°. For a location at 40° latitude, the annual optimal tilt is about 37.9°.
How do you find the interior angle of a regular polygon?
Interior angle of a regular polygon = (n − 2) × 180° ÷ n, where n is the number of sides. Examples: triangle (n=3) = 60°; square (n=4) = 90°; hexagon (n=6) = 120°; octagon (n=8) = 135°; dodecagon (n=12) = 150°. The sum of all interior angles = (n − 2) × 180°. Each exterior angle = 360° ÷ n.
How do you convert between degrees, radians, and percent grade?
Degrees to radians: multiply by π ÷ 180. Radians to degrees: multiply by 180 ÷ π. Degrees to grads: multiply by 10 ÷ 9 (400 grads = 360°). Degrees to percent grade: percent = tan(degrees) × 100. Percent grade to degrees: degrees = arctan(percent ÷ 100). Rise:Run ratio to degrees: degrees = arctan(rise ÷ run).
What is the maximum slope for a parking structure ramp?
IBC 2021 §406.2.5 and most local codes limit parking structure ramps to 20% (11.3°) for straight ramps and 12.5% (7.1°) for curved transitions. AASHTO recommends highway design grades of 5–8% on flat terrain, up to 12% in mountainous terrain. Transition zones at the top and bottom of ramps should be flattened to ≤5% to prevent bottoming out.
What stair angle is considered comfortable for residential use?
The most comfortable residential stair angle is between 30° and 35°. The Blondel formula (2 × riser + going = 24–25 inches / 610–635mm) predicts ergonomic comfort for average adult stride. A 7-inch riser with 11-inch tread gives 2(7)+11=25 — ideal. IRC R311.7 allows risers up to 7¾ inches and treads at least 10 inches for one/two-family dwellings, which produces angles up to approximately 37.8°.