Intermediate

Right Triangle Solver

Find every side, angle, the area, and the perimeter of a right triangle from any two known values.
Leave blank if unknown
Leave blank if unknown
Leave blank if unknown

°

Angle opposite leg a (0-90)
Hypotenuse c
5

Longest side, opposite the right angle

Leg a
3
Leg b
4
Hypotenuse c
5
Angle A
36.8699°
Angle B
53.1301°
Angle C
90°
Area
6
Perimeter
12
a² + b² = c²
Step by step
  1. 1

    Square leg a

    3² = 3 × 3 = 9
  2. 2

    Square leg b

    4² = 4 × 4 = 16
  3. 3

    Hypotenuse c

    √(9 + 16) = 5
    Pythagorean theorem: c = √(a² + b²).
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter any two known values of a right triangle — two legs, a leg and the hypotenuse, or a side and the acute angle. The solver applies the Pythagorean theorem and trig ratios to return all three sides, both acute angles, the area (a·b/2), and the perimeter (a+b+c) instantly.

Formula
c = √(a² + b²); A = atan2(a, b); B = 90° − A; area = a·b / 2; perimeter = a + b + c
How this is calculated

Enter any two of the four values: the two legs a and b, the hypotenuse c, or the acute angle A (the angle opposite leg a, between 0° and 90°). The solver detects which pair you supplied and reconstructs the rest. Leave the boxes you do not know blank.

With two legs it uses the Pythagorean theorem, c = √(a² + b²), and A = atan2(a, b). With a leg and the hypotenuse it inverts the theorem, e.g. b = √(c² − a²), with the angle from the sine ratio. With a side and angle A it uses the right-triangle ratios sin A = a/c, cos A = b/c, and tan A = a/b. The second acute angle is B = 90° − A because the angles of any triangle sum to 180° and one is the 90° right angle.

The area is a·b / 2 (the two legs are the base and height), and the perimeter is a + b + c. Lengths must be positive, the hypotenuse must exceed either leg, and the supplied angle must be strictly between 0° and 90°; otherwise no valid triangle exists and the result is hidden.

Frequently asked questions

Any two: two legs, a leg plus the hypotenuse, or any side plus the acute angle A. The other side or angle is computed from that pair.

A is the acute angle opposite leg a. Angle B is opposite leg b and equals 90° − A, and angle C is the 90° right angle.

A right triangle is impossible for those inputs — for example the hypotenuse is not the longest side, a length is zero or negative, or angle A is not between 0° and 90°.

Also known as

pythagorean
hypotenuse calculator
triangle sides angles
trig triangle
right triangle calculator
pythagorean theorem

APA

TG we-Calculate Editorial Team. (2026). Right Triangle Solver [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/right-triangle-calculator

Chicago

TG we-Calculate Editorial Team. "Right Triangle Solver." TG we-Calculate. 2026. https://we-calculate.com/calculator/right-triangle-calculator.

IEEE

TG we-Calculate Editorial Team, "Right Triangle Solver," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/right-triangle-calculator

BibTeX

@misc{wecalculate_right_triangle_calculator, title = {Right Triangle Solver}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/right-triangle-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?