Slope Calculator: Percent, Degrees & Ratio Converter

Convert a slope between percent, degrees, 1:n ratio and x:12 pitch, or find it from a rise and run or two points. Roof, drain and ramp benchmarks.

How to convert a slope to a percentage or to degrees

Slope in percent is the rise divided by the horizontal distance, times 100. A 5% slope means 5 cm per metre, i.e. 2.86° or a 1:20 ratio; a 30° angle equals 57.7%.

The formulas

  • tan θ = rise ÷ horizontal distance
  • Slope (%) = tan θ × 100, and 1% = 1 cm per metre
  • Angle (°) = arctan(slope % ÷ 100)
  • Ratio 1:n with n = 100 ÷ slope (%)

Worked example

A ramp rises 0.30 m over 6 m: 0.30 ÷ 6 = 0.05, i.e. 5%, 2.86°, 5 cm/m or 1:20. Conversely, a 35° roof has a slope of tan 35° = 0.70, i.e. 70%.

Accessible ramps (ADA Standards)

  • A ramp run may be no steeper than 1:12, that is 8.33% or 4.76°, and may rise no more than 30 inches between landings (2010 ADA Standards, sections 405.2 and 405.6). Its cross slope is limited to 1:48, or 2.08% (section 405.3).
  • On an accessible route, a walking surface may slope 1:20 (5%, 2.86°) at most; only ramps and curb ramps may be steeper (section 403.3).
  • In alterations where space is limited, Table 405.2 allows 1:10 (10%) for a rise of 6 inches at most and 1:8 (12.5%) for a rise of 3 inches at most.

Example: a 24-inch rise at 1:12 needs 24 × 12 = 288 inches of run, that is 24 feet; one run is enough because the rise stays under 30 inches.

Drain pipes (International Plumbing Code)

Horizontal drainage pipe 2-1/2 inches or smaller must fall at least 1/4 inch per foot, which is 2.08% (about 2%) or 1.19°. Pipe from 3 to 6 inches needs 1/8 inch per foot (1.04%), and pipe of 8 inches or more 1/16 inch per foot (0.52%) (IPC 2024, section 704.1 and Table 704.1). Your state or city may amend these values.

Common roof pitches

A roof pitch is written x:12: the rise in inches for every 12 inches (one foot) of horizontal run. Common pitches run from 4:12 to 12:12.

PitchSlope (%)Angle (°)
4:1233.3318.43
5:1241.6722.62
6:125026.57
7:1258.3330.26
8:1266.6733.69
9:127536.87
10:1283.3339.81
11:1291.6742.51
12:1210045

The minimum pitch for a roof depends on the roofing material: check the manufacturer’s instructions and the building code that applies where you build.

Degrees to percent

Slope (%) = tan(angle) × 100, rounded to two decimals. Above 45°, the slope exceeds 100%.

Angle (°)Slope (%)
11.75
23.49
35.24
58.75
1017.63
1526.79
2036.4
2546.63
3057.74
3570.02
4083.91
45100
60173.21

Conversion table: percent, degrees, ratio and x:12 pitch

Slope (%)Angle (°)Ratio 1:nPitch x:12 (inches per foot)
10.571:1000.12:12
21.151:500.24:12
31.721:33.30.36:12
42.291:250.48:12
52.861:200.6:12
63.431:16.70.72:12
741:14.30.84:12
84.571:12.50.96:12
8.334.761:121:12
105.711:101.2:12
126.841:8.31.44:12
158.531:6.71.8:12
2011.311:52.4:12
2514.041:43:12
3016.71:3.33.6:12
33.3318.431:34:12
4021.81:2.54.8:12
5026.571:26:12
6030.961:1.77.2:12
7034.991:1.48.4:12
7536.871:1.39:12
100451:112:12

An x:12 pitch rises x inches for every 12 inches (one foot) of horizontal run: 6:12 equals 50%, or 26.57°. Values are rounded.

Slope of a line through two points

m = (y₂ − y₁) ÷ (x₂ − x₁). For (1, 2) and (4, 8): m = 6 ÷ 3 = 2, that is 200% or 63.43°, and the y-intercept is b = 2 − 2 × 1 = 0, so y = 2x. The two points are √(3² + 6²) = 6.71 apart. If x₁ = x₂, the line is vertical and its slope is undefined; a negative slope means the line goes down.

Fraction, steps and missing coordinate

In “Two points” mode the tool also gives the slope as a simplified fraction and the step-by-step calculation, with a graph of the line. For (3, 4) and (6, 8): Δy = 8 − 4 = 4, Δx = 6 − 3 = 3, m = 4 ÷ 3 = 4/3 ≈ 1.3333 (133.33% or 53.13°), b = 4 − 4/3 × 3 = 0, and the points are 5 apart.

The “One point and a slope” mode works the other way: y₂ = y₁ + m × (x₂ − x₁), or x₂ = x₁ + (y₂ − y₁) ÷ m. With the point (1, 2), a slope of 2 and x₂ = 4, y₂ = 2 + 2 × 3 = 8. A 5% slope (m = 0.05) rises 6 over a horizontal run of 120.

Limits

For small angles, percent and degrees stay close (1° ≈ 1.75%) but soon diverge: 45° is 100%, not 45%.

Sources and dates: U.S. Access Board, 2010 ADA Standards for Accessible Design, sections 403.3, 405.2 (with Table 405.2), 405.3 and 405.6, and its guides to accessible routes and ramps and curb ramps, read on 22 October 2026. International Code Council, International Plumbing Code 2024, section 704.1 and Table 704.1 (the ICC text could not be accessed on 22 October 2026; values checked against secondary sources). Roof pitches and the conversion table are geometric conversions.

Frequently Asked Questions

How do I convert a slope in percent to degrees?

Divide the percentage by 100, then take the arctangent: 5% gives arctan(0.05) = 2.86°, and 100% gives 45°. The other way round, slope in % is tan(angle) × 100: 30° corresponds to 57.7%.

What slope should a drain pipe have?

Under the International Plumbing Code (2024 edition, Table 704.1), horizontal drainage pipe 2-1/2 inches or smaller needs at least 1/4 inch of fall per foot, about 2% (2.08%). Pipe from 3 to 6 inches needs 1/8 inch per foot (1.04%), and pipe of 8 inches or more 1/16 inch per foot (0.52%).

What is the maximum slope of an ADA ramp?

1:12, that is 1 inch of rise for every foot of run: 8.33% or 4.76° (2010 ADA Standards, section 405.2). Each run may rise 30 inches at most before a landing (section 405.6). In alterations where space is limited, Table 405.2 allows 1:10 for a rise of up to 6 inches and 1:8 for a rise of up to 3 inches.

What is a 2% slope in degrees?

2% is arctan(0.02) = 1.15°, that is 2 cm per metre or a 1:50 ratio. As a pitch, it is 0.24 inch per foot.

How steep is a 6% slope?

A 6% slope rises 6 units for every 100 units of horizontal run: that is 3.43°, a 1:16.7 ratio or 0.72 inch per foot (0.72:12).

How many inches per foot is a 1% slope?

1% is 0.12 inch per foot, since a foot is 12 inches: 12 × 1 ÷ 100. The other way round, 1/4 inch per foot (0.25:12) is 2.08%.

What is a 1 in 5 slope in degrees?

1 in 5 means 1 unit of rise for 5 units of horizontal run: 1 ÷ 5 = 20%, or arctan(0.2) = 11.31°. A 1 in 40 slope is only 2.5%, or 1.43°.

How do you find the slope between two points?

Divide the change in y by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁). For (1, 2) and (4, 8), m = 6 ÷ 3 = 2, that is 200% or 63.43°, and the line is y = 2x. The tool’s “Two points” mode does this calculation. It also shows the slope as a simplified fraction and each step: for (3, 4) and (6, 8), m = 4/3 ≈ 1.3333. The “One point and a slope” mode finds a missing coordinate: with (1, 2), m = 2 and x₂ = 4, y₂ = 8.

What is a 30% slope in degrees?

16.7° (arctan 0.30): 30 cm of rise per metre, a 1:3.3 ratio or a 3.6:12 pitch.

What percent is a 45-degree slope?

100%: tan 45° = 1, so the rise equals the run. 30° is 57.74% and 60° is 173.21%.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.