Geometry

Right Triangle Calculator

Enter the two legs of a right triangle to find the hypotenuse, angles, area, and perimeter.

Hypotenuse (c)

5.00 units

Angle A53.13°
Angle B36.87°
Area6.00
Perimeter12.00

Uses the Pythagorean theorem: c = √(a² + b²). Angles are calculated with inverse tangent (arctan). Area = ½ab.

What is the Right Triangle Calculator?

A right triangle calculator computes all key measurements of a right triangle given its two legs (the sides that form the 90° angle). It calculates the hypotenuse using the Pythagorean theorem, derives both acute angles using inverse tangent, determines the area (half the product of the legs), and sums all three sides for the perimeter. The calculator handles any positive leg lengths and instantly displays results with two decimal precision.

How it works

Enter the length of leg A and leg B (the two sides meeting at the right angle). The calculator applies the Pythagorean theorem to find the hypotenuse, uses arctan (inverse tangent) to compute each acute angle, multiplies the legs and divides by two for area, and adds all three sides for perimeter. Results update live as you type.

Hypotenuse: c = √(a² + b²) | Angle A: α = arctan(b/a) × (180/π) | Angle B: β = arctan(a/b) × (180/π) | Area: A = ½ab | Perimeter: P = a + b + c

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of squares of the two legs. Inverse tangent (arctan) relates the opposite and adjacent sides to find acute angles in degrees. Area is simply half the base times height. Perimeter is the sum of all three sides.

Examples

InputResultNotes
Legs: a = 3, b = 4Hypotenuse: 5 | Angle A: 53.13° | Angle B: 36.87° | Area: 6 | Perimeter: 12The classic 3-4-5 Pythagorean triple; angles sum to 90°
Legs: a = 5, b = 12Hypotenuse: 13 | Angle A: 67.38° | Angle B: 22.62° | Area: 30 | Perimeter: 30Another famous triple (5-12-13); commonly used in construction
Legs: a = 7.5, b = 10Hypotenuse: 12.50 | Angle A: 36.87° | Angle B: 53.13° | Area: 37.50 | Perimeter: 30.00Demonstrates the calculator with decimal inputs; angles are supplementary to the 5-12-13 triangle

How to use the Right Triangle Calculator

  1. Measure or determine the length of leg A (one of the sides forming the right angle)
  2. Measure or determine the length of leg B (the other side forming the right angle)
  3. Enter both values into the calculator (use the same units for both)
  4. The calculator automatically applies the Pythagorean theorem to find the hypotenuse
  5. Review the hypotenuse, angles, area, and perimeter in the results below
  6. Verify your answer using the hint at the bottom, which shows the formulas used

Benefits

  • Instantly solve right triangles without memorizing or manually calculating the Pythagorean theorem
  • Perfect for carpenters, builders, and engineers who need quick roof pitch, diagonal, or ramp calculations
  • Geometry students can check homework and understand how angles relate to side lengths
  • Find all properties (hypotenuse, angles, area, perimeter) from just two measurements
  • Identify Pythagorean triples (like 3-4-5 or 5-12-13) and work with exact integer results
  • Avoid rounding errors by using precise decimal calculations for complex projects

Tips & common mistakes

Common mistakes

  • Entering the hypotenuse instead of a leg; the calculator assumes both inputs are legs meeting at the right angle
  • Using different units for the two legs; always convert to a single unit before entering (feet, meters, inches, etc.)
  • Forgetting that the two acute angles must sum to 90°; if they don't, the input values may be invalid
  • Misidentifying which sides are legs; in a right triangle, the longest side is the hypotenuse, and the right angle always connects the two legs

Tips

  • Remember the 3-4-5 triple and its multiples (6-8-10, 9-12-15, etc.) for quick mental checks
  • When building or designing, common right triangle ratios are 1:1 (45°-45°-90° isosceles), 1:√3 (30°-60°-90°), and 3:4:5
  • Angles are displayed in degrees; convert to radians by multiplying by π/180 if needed for calculus or advanced physics
  • For a square or rectangular room, measure the diagonal and compare it to the expected hypotenuse to check for square corners

Frequently asked questions

What is the Pythagorean theorem?

The Pythagorean theorem states that in any right triangle, a² + b² = c², where a and b are the legs and c is the hypotenuse. This is one of the most fundamental relationships in mathematics and applies to all right triangles, regardless of size.

Can I use this calculator for non-right triangles?

No—this calculator specifically uses properties of right triangles. For oblique triangles (no right angle), use the law of cosines or law of sines instead.

What are Pythagorean triples?

Pythagorean triples are sets of three positive integers that satisfy a² + b² = c², such as (3, 4, 5), (5, 12, 13), and (8, 15, 17). Any multiple of a Pythagorean triple is also a triple—e.g., (6, 8, 10) is a multiple of (3, 4, 5).

How are the angles calculated?

The acute angles are found using inverse tangent (arctan). For angle A: arctan(opposite/adjacent) = arctan(b/a). The two acute angles always sum to exactly 90°.

Why might my physical measurements not match the calculated hypotenuse?

Real-world measurements contain errors from tools, human error, or rounding. Small differences (within 1-2%) are normal. If the difference is larger, double-check that your angle is truly 90° using a level or square.

What units should I use?

Any unit works (feet, meters, inches, centimeters, etc.)—just be consistent. The calculator returns results in the same units as your input.

Related tools

FreeToolz Editorial Team · Last reviewed July 2026

Reviewed for accuracy. Results are estimates for general information and are not professional (medical, financial or legal) advice.