Triangle Slope Calculator - Rise, Run, Slope, and Angles

Use this triangle slope calculator with a rise and run to find the slope, slope percent, both acute angles, and the hypotenuse of the right triangle.

Updated: June 16, 2026 • Free Tool

Triangle Slope Calculator

Vertical leg of the right triangle (the rise). Enter 0 for a horizontal line.

Horizontal leg of the right triangle (the run). Must be greater than 0.

Pick 'rising' for a positive slope or 'decreasing' for a negative slope. The hypotenuse and the angles are always positive.

Results

Slope (m)
0
Slope (%) 0%%
Angle alpha 0°
Angle beta 0°
Hypotenuse (c) 0
Slope equation 0

What Is a Triangle Slope Calculator?

A triangle slope calculator finds the slope of a right triangle from its rise and run and turns that one ratio into the slope as a decimal, the slope as a percent, the two acute angles of the triangle, and the hypotenuse. The same geometry shows up in algebra, trigonometry, physics, and construction, so one tool that returns every form of the answer covers most problems.

  • Algebra and coordinate geometry homework: Find the slope of a line drawn next to a right triangle on a coordinate grid and read off the angle it makes with the run.
  • Physics and engineering graphs: Convert the rise and run of a graphed segment into a slope, an angle, a percent grade, and a hypotenuse length for vectors or rate plots.
  • Construction and grade checks: Translate two elevation points into a slope percent and an angle for ramps, driveways, drainage, and roof pitches.
  • Data analysis quick check: Compute the slope of a best-fit line from two anchor points and see the same slope as the tangent of alpha in one pass.

The output is one slope plus the same value written as a percent, the two acute angles, and the hypotenuse, all derived from the same rise-and-run input.

When the two coordinates are given instead of a rise and a run, the Slope Calculator reads (x1, y1) and (x2, y2) and returns the same rise-over-run ratio plus the line equation in y = mx + b form.

How the Triangle Slope Calculator Works

The slope of a right triangle is the length of the vertical leg divided by the length of the horizontal leg, with a sign that depends on whether the line is rising or decreasing. The page takes your rise and run, applies that ratio, and derives the percent, the two acute angles, and the hypotenuse from the same input.

slope = s * rise / run, s = +1 if rising, s = -1 if decreasing
  • rise (a): Vertical leg of the right triangle (the rise).
  • run (b): Horizontal leg of the right triangle (the run). Must be greater than 0.
  • s: Sign of the slope: +1 for a rising line, -1 for a decreasing line.
  • alpha: Acute angle between the run and the hypotenuse, equal to arctan(rise / run).
  • beta: Acute angle between the rise and the hypotenuse, equal to 90 - alpha.
  • c: Hypotenuse of the slope triangle, equal to sqrt(rise^2 + run^2).

The percent output is the decimal slope times 100, alpha is the arctangent of the rise-over-run ratio, and beta is the complementary acute angle so that alpha + beta = 90. The hypotenuse comes from the Pythagorean theorem on the same two legs.

The same formula covers negative slopes and the horizontal case: when the line is decreasing the sign flips so the slope and the percent are negative while the angles and the hypotenuse stay positive, and when the rise is 0 the slope is 0 with alpha equal to 0 and beta equal to 90.

Worked example: rise 3, run 4, rising

Rise a = 3. Run b = 4. Direction = rising.

slope = 3 / 4 = 0.75. Percent = 75%. alpha = arctan(3 / 4) = 36.8699 degrees. beta = 90 - 36.8699 = 53.1301 degrees. Hypotenuse c = sqrt(3^2 + 4^2) = 5.

Slope m = 0.75, percent 75%, alpha 36.8699 degrees, beta 53.1301 degrees, hypotenuse 5.

This is the classic 3-4-5 right triangle. The slope is 3/4, the line rises 3 units for every 4 units across, and the hypotenuse matches the Pythagorean triple.

According to Omni Calculator, the slope of a right triangle is the rise divided by the run, the same ratio is the tangent of the angle opposite the rise, and the reciprocal of the tangent of the other acute angle gives the same slope.

The hypotenuse on this page is the same c = sqrt(a^2 + b^2) result the Pythagoras Triangle Calculator returns from the two legs, so the slope triangle closes the loop between the slope, the two angles, and the segment length.

Key Concepts Behind the Slope Triangle

A slope triangle is a right triangle drawn next to a line so that the rise and run become two of its legs. These four concepts cover the cases you will run into most often.

Rise over run as a ratio

The slope of the line equals the rise (vertical leg) divided by the run (horizontal leg), with a sign that depends on whether the line is rising or decreasing.

Slope as tan(alpha)

The same slope equals the tangent of alpha, the acute angle between the run and the hypotenuse, so slope and the angle agree for any right triangle.

Slope as 1 / tan(beta)

Because the two acute angles in a right triangle add to 90, slope also equals the cotangent of beta, the angle between the rise and the hypotenuse.

Hypotenuse and the Pythagorean theorem

The hypotenuse c is the square root of the sum of the squares of the rise and the run, so the right triangle closes the loop between the slope, the two angles, and the segment length.

Alpha and beta are the two acute angles in the slope triangle, so alpha + beta = 90 for any positive run, and the same ratio is read three different ways: as a slope, as a tangent, and as a cotangent.

Because slope equals tan(alpha), the Arctan Calculator is the natural next step when you already know the slope and want alpha in degrees, or when you know alpha and want the slope back out.

How to Use This Triangle Slope Calculator

Enter the rise and the run of the right triangle, then pick whether the line is rising or decreasing. The result panel updates as soon as any field changes, so the slope, percent, angles, and hypotenuse refresh in real time.

  1. 1 Enter the rise: Type the vertical leg (a) of the slope triangle. Use 0 for a horizontal line or a positive number for any other case.
  2. 2 Enter the run: Type the horizontal leg (b) of the slope triangle. The run must be greater than 0, because the formula divides by it.
  3. 3 Pick the line direction: Choose 'rising' for a positive slope or 'decreasing' for a negative slope. The hypotenuse and the angles are always positive.
  4. 4 Read the slope and percent: The result panel shows the slope as a decimal and as a percent grade, signed based on the direction you chose.
  5. 5 Read the two angles and the hypotenuse: Use alpha to see the angle the line makes with the run, beta for the complementary angle, and the hypotenuse for the length of the sloped segment.
  6. 6 Fix a zero run: If the run is 0, the calculator refuses to compute and asks for a positive run, because dividing by 0 is not defined.

A wheelchair ramp rises 0.6 m over a run of 6 m. Enter rise 0.6, run 6, and pick 'rising'. The result panel shows slope 0.1, percent 10%, alpha 5.7106 degrees, beta 84.2894 degrees, and hypotenuse about 6.0299 m, which is the slope and angle of the ramp in one pass.

When the only number you need is the percent grade for a ramp, driveway, or roof, the Slope Percentage Calculator reads a rise and a run directly and skips the angles and the hypotenuse.

Benefits of Using This Triangle Slope Calculator

The result tells you exactly which number is the slope and what it means in percent, angle, and triangle form, all in a single pass.

  • Direct rise-and-run calculation: Returns the slope, percent, both acute angles, and the hypotenuse from a rise and a run in one pass.
  • Signed slope with a direction picker: Uses a sign based on the line direction, so the same rise and run produce a positive or negative slope without extra steps.
  • Tangent and Pythagorean outputs: Builds alpha, beta, and the hypotenuse from the same input, so the slope, the angle, and the segment length stay in sync.
  • Zero-run and horizontal-line handling: Rejects a zero run with a clear validation error and treats a zero rise as a horizontal line with a slope of 0 and a 90 degree beta.
  • Real-time recalculation: Updates the result panel as soon as the rise, run, or direction field changes.

Rerun the calculation whenever a new pair of legs is given; the formula is the same signed rise-over-run division regardless of sign.

Factors That Affect the Slope Triangle Result

A few characteristics of the input pair change the readability of the result, even when the underlying math is the same.

Sign of the slope

A rising line gives a positive slope and a positive percent grade; a decreasing line gives a negative slope and a negative percent grade. The hypotenuse and the angles are always positive.

Magnitude of the slope

Slopes close to 0 are nearly horizontal. Slopes close to 1 rise at about 45 degrees. Slopes larger than 10 push alpha toward 90 degrees and the percent grade into the thousands.

Equal rise and run

When rise equals run, the slope is 1, the percent is 100%, alpha is 45 degrees, beta is 45 degrees, and the hypotenuse is rise * sqrt(2).

Zero rise (horizontal line)

When rise equals 0, the line is horizontal: slope 0, percent 0%, alpha 0 degrees, beta 90 degrees, and the hypotenuse equals the run.

Zero run

When run equals 0, the formula divides by 0, so the slope, percent, and angles are undefined. The calculator refuses to compute and asks for a positive run.

  • The calculator handles a single slope triangle at a time. For batch work, copy the (rise, run) pairs into a spreadsheet and apply the formula to each row.
  • The result is rounded for display only. The internal value uses the full double-precision division, so chaining the slope with a follow-up calculation should use the unrounded rise-over-run result.
  • The calculator does not handle complex legs. The rise and run must be real numbers, and the run must be greater than 0.

When the input pair comes from elevation points, the slope percent matches the percent grade used in accessibility ramps and drainage, and the angle alpha matches the angle a roof pitch calculator converts to in one step.

According to Khan Academy, the tangent of an acute angle in a right triangle is the length of the opposite leg divided by the length of the adjacent leg, and the two acute angles in a right triangle add up to 90 degrees.

According to Wolfram MathWorld, the slope of a straight line is the tangent of the angle the line makes with the positive x-axis, and for two points (x1, y1) and (x2, y2) on the line the slope equals (y2 - y1) divided by (x2 - x1).

On a real construction project, the same rise-over-run ratio drives the roof pitch in inches per foot (multiply the slope percent by 0.12 to get inches of rise per foot of run), and the Roof Pitch Calculator converts that pitch to degrees and to a pitch ratio in one step.

Triangle slope calculator input and result panel showing the rise and run of a right triangle, the slope, slope percent, both acute angles, and the hypotenuse
Triangle slope calculator input and result panel showing the rise and run of a right triangle, the slope, slope percent, both acute angles, and the hypotenuse

Frequently Asked Questions

Q: What is a triangle slope calculator?

A: A triangle slope calculator finds the slope of a right triangle from its rise and run and returns the slope as a decimal, the slope as a percent, the two acute angles of the triangle, and the hypotenuse. A triangle slope calculator is the fastest way to convert a rise and a run into the slope, the angles, and the hypotenuse of the right triangle in one pass.

Q: How do you find the slope of a right triangle?

A: Divide the rise (vertical leg) by the run (horizontal leg), and apply a positive sign for a rising line or a negative sign for a decreasing line. The formula is slope = s * rise / run. For a rise of 3 and a run of 4 on a rising line, the slope is 3 / 4 = 0.75.

Q: What is the slope of a 3-4 right triangle?

A: The slope is 3 / 4 = 0.75, the percent grade is 75%, alpha is arctan(3 / 4) which is about 36.87 degrees, beta is 90 - 36.87 which is about 53.13 degrees, and the hypotenuse is sqrt(3^2 + 4^2) = 5. The 3-4-5 triple is the most common example of a slope triangle.

Q: How do you find the angle of a slope triangle?

A: Take the arctangent of the rise divided by the run to get alpha in degrees, then subtract alpha from 90 to get beta. For a rise of 5 and a run of 12, alpha is arctan(5 / 12) which is about 22.62 degrees and beta is 90 - 22.62 which is about 67.38 degrees.

Q: What does the slope triangle method mean on a graph?

A: The slope triangle method draws a right triangle next to a line on a graph so the rise and run become the two legs. The slope of the line is the rise divided by the run, so the slope triangle turns a graphed line into a slope, an angle, and a hypotenuse in one step.

Q: What happens when the run is zero in a slope triangle?

A: When the run is zero, the formula divides by zero so the slope, the percent grade, and the two angles are undefined. The calculator refuses to compute and asks for a positive run, while the hypotenuse would equal the absolute value of the rise in a degenerate case.