triangle type
Right Triangle Calculator
Solve right triangles from any two known values. Computes all sides, angles, area, and perimeter using the Pythagorean theorem and basic trigonometry.
Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Classic 3-4-5 Right Triangle
The simplest Pythagorean triple — legs 3 and 4, hypotenuse 5.
Key values: a = 3 · b = 4 · c = 5
Roof Rafter Calculation
A roof with a horizontal run of 5 m and vertical rise of 2.5 m — what is the rafter length?
Key values: run = 5 m · rise = 2.5 m · rafter ≈ 5.59 m
Right Triangle Properties
A right triangle has one angle of exactly 90°. The side opposite the right angle is called the hypotenuse (always the longest side), and the other two sides are called legs.
The Pythagorean theorem governs right triangles:
where is the hypotenuse and are the legs. This calculator pre-sets the right angle at C = 90°, so you only need to provide two sides or one side and one acute angle.
Trigonometric Ratios (SOH-CAH-TOA)
The six trigonometric functions are defined using the sides of a right triangle relative to an acute angle :
SOH
CAH
TOA
The reciprocal ratios are cosecant (), secant (), and cotangent ().
Special Right Triangles
Two right triangles have exact side ratios that appear constantly in geometry, trigonometry, and standardized tests:
45-45-90 Triangle
The isosceles right triangle. Both legs are equal, and the hypotenuse is times a leg. Formed by cutting a square along its diagonal.
30-60-90 Triangle
Formed by bisecting an equilateral triangle. The short leg (opposite 30°) is half the hypotenuse. The long leg (opposite 60°) is times the short leg.
Solving Right Triangles
Given any two measurements (besides the right angle), you can find everything else:
- Two legs known: Use Pythagorean theorem for hypotenuse, inverse trig for angles:
- Leg + hypotenuse: Second leg via , angles via inverse trig
- One side + one acute angle: Use trig ratios to find the other sides, then
The area of a right triangle is particularly simple:
where and are the legs (they form the base and height automatically).
Worked Examples
Ladder Against a Wall
A 13-foot ladder leans against a wall, with its base 5 feet from the wall. How high does it reach?
Angle with the ground: .
Surveying a River Width
Standing 50 m from a river bank, you sight a tree on the far side at a 32° angle. The river width is:
Frequently Asked Questions
What is the Pythagorean theorem?
The Pythagorean theorem states that in a right triangle, , where is the hypotenuse (the side opposite the right angle) and and are the two legs. It is the fundamental relationship governing all right triangles.
What is SOH-CAH-TOA?
SOH-CAH-TOA is a mnemonic for the three basic trigonometric ratios: (SOH), (CAH), and (TOA). These ratios relate the sides of a right triangle to its acute angles.
What are the 30-60-90 and 45-45-90 special triangles?
These are right triangles with exact side ratios. A 45-45-90 triangle has sides in the ratio (formed by cutting a square diagonally). A 30-60-90 triangle has sides in the ratio (formed by bisecting an equilateral triangle). These ratios are used extensively in geometry and trigonometry.
How do I find a missing side of a right triangle?
If you know two legs, find the hypotenuse with . If you know the hypotenuse and one leg, find the other leg with . If you know one side and one acute angle, use trigonometric ratios (sine, cosine, or tangent) to find the missing sides.
What are Pythagorean triples?
Pythagorean triples are sets of three positive integers that satisfy . Common examples include (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). Any multiple of a triple is also a triple, so (6, 8, 10) works because it is twice (3, 4, 5).
Related triangle-type Variants
Explore more triangle-type options
More Math Calculators
Explore the category