Right Triangle Calculator
Enter both legs, or one leg and the hypotenuse. The page returns the third side, both acute angles, area (unit²) and perimeter (unit).
How it works
The right angle sits between the legs. The hypotenuse is √(a²+b²). The angle opposite a is arctan(a/b); the other acute angle is 90° minus that, so they add to 90°. Area is ½ab — a length² — while the sides stay in the length unit.
The hypotenuse must be longer than a known leg.
Formula
c = √(a² + b²) ∠A = arctan(a / b), ∠B = 90° − ∠A Area = ½ab Perimeter = a + b + c
Worked examples
Legs 3 and 4
a = 3, b = 4 → c = 5, area 6, angles ≈ 36.87° and 53.13°
Leg and hypotenuse
leg 3, hypotenuse 5 → other leg 4
Useful notes
- This assumes the 90° angle is between a and b.
- For a non-right triangle, use the triangle calculator.
FAQ
- How do I solve a right triangle from two legs?
Hypotenuse is √(a²+b²). Area is ½ab. The acute angles are arctan(a/b) and its complement.
- Why are area and sides in different units?
Sides are lengths. Area is length times length. A 3 cm by 4 cm triangle has a 5 cm hypotenuse and a 6 cm² area.
- Is this the same as the Pythagorean page?
Pythagoras finds one missing side. This page also reports angles, area and perimeter.
Related tools
Pythagorean Theorem
Find the hypotenuse from two legs, or a missing leg from the hypotenuse and the other leg.
Triangle Calculator
Find a triangle’s area, perimeter and angles from three sides, or the area from base and height or SAS.
Slope Calculator
Find the slope of a line from two points or from rise and run, plus the angle from the positive x-axis.
Distance Calculator
Find the straight-line distance between two points in a plane or in 3-D space.
Area Calculator
Find the area of a square, rectangle, triangle, circle, trapezoid, parallelogram or ellipse.
See all Geometry tools.