Skip to content

Right-angled triangle calculator

Enter what you know. The drawing shows what to measure.

Quick answers

In a right-angled triangle, rise² + run² = slope², and tan(angle) = rise ÷ run. The angle is measured between the level run and the slope, and the two sharp angles always add up to 90°.

For a 1,200 mm rise over a 3,000 mm level run, the slope length is 3,231.1 mm, the angle from level is 21.8° and the angle from upright is 68.2°.

Work out a right-angled triangle

Still loading? Reload the page.

Sample numbers. Change them to yours.

3,231.1 mm, 21.8°

3,231.1 mmslope length

21.8°angle from level

21.8°68.2°Level run3,000 mmRise1,200 mmSlope length3,231.1 mm
Not to scale.
Rise
1,200 mm
Level run
3,000 mm
Slope length
3,231.1 mm
Angle from level
21.8°
Angle from upright
68.2°

Formula

  • rise² + run² = slope²
  • slope = √(rise² + run²)
  • run = √(slope² − rise²) and rise = √(slope² − run²)
  • tan(angle) = rise ÷ run, sin(angle) = rise ÷ slope, cos(angle) = run ÷ slope
  • angle from upright = 90° − angle from level

The angle is between the level run and the slope. The slope length must always be longer than both the rise and the level run.

Worked example

Sample triangle: a 1,200 mm rise and a 3,000 mm level run.

  • Slope squared: 1,200² + 3,000² = 1,440,000 + 9,000,000 = 10,440,000.
  • Slope length: √10,440,000 = 3,231.1 mm.
  • Angle from level: arctan(1,200 ÷ 3,000) = 21.8°.
  • Angle from upright: 90° − 21.8° = 68.2°.

Method and limits

Triangles and square corners: rise² + run² = slope². The angle is between the level run and the slope, and tan(angle) = rise ÷ run.

Only the answers are rounded, so rounding doesn't build up. It doesn't allow for the width of the saw cut. It doesn't cover timber sizes, spans, fixings, strength, stringer cuts, or any code or standard.