Right Triangle Calculator: Sides, Angles & Area
Reconstruct a right triangle from two measurements. Find all three sides, acute angles, area and perimeter; compare swapped-leg solutions where applicable.
Result
How is this calculated?
Use the supplied pair to reconstruct perpendicular legs, then use their squares, product and ratio to derive other measurements.
Worked example: Reconstruct a right triangle from two legs
Perpendicular legs of 5 and 12 give a diagonal of 13, an area of 30 square units and a perimeter of 30 length units. Clear any other measurements before running the example.
Method and limits
Supply two values; at least one must not be an angle. When the two legs may be exchanged and produce the same supplied values, both labeled solutions are shown.
How to use this calculator
- Enter exactly two known values, leaving all other measurements blank. At least one must establish size, such as a side, area, altitude or perimeter.
- Choose degrees or radians for the angles. Identify each acute angle by the leg it faces, not by where it appears on the page.
Recover the measurements behind a 5–12 frame
Perpendicular legs of 5 and 12 produce hypotenuse 13, area 30, and perimeter 30. Area and perimeter happen to share a numeral here; their units are different.
Start from an angle and the diagonal
A hypotenuse of 20 and angle α of 30° give leg a = 20 × sin 30° = 10. The adjacent leg is 20 × cos 30°, about 17.321. This approach reconstructs lengths, not just angle ratios.
Treat the altitude as a specific measurement
The altitude entered here runs from the right-angle vertex perpendicular to the hypotenuse. It is not either of the two legs. It meets the hypotenuse at a point that need not be its midpoint.
Understand why the legs may swap
A diagonal of 13 and altitude of 60/13 determine leg lengths 5 and 12, but do not tell which is a. The calculator can show both labelings; choose the one that matches your drawing.
Frequently asked questions
- Can two angles determine all lengths?
- No. The same angles fit right triangles of different sizes.
- Which side is the hypotenuse?
- The longest side, opposite the 90° angle.
- How many known quantities should I enter?
- Exactly two. Clear the prefilled example legs before using a different pair.
- Can the calculator handle a triangle without a 90° angle?
- No. Use the general triangle calculator instead.
Common mistakes and limits
- Use consistent length units. The area value is in square units. Angle inputs and outputs use the choice in the angle-unit selector.
- Sample results describe ideal planar geometry, not construction or measurement tolerances.
Sources & methodology
Related calculators
- Triangle Calculator: Solve Sides, Angles & Area
Solve a planar triangle from three measurements, including at least one side. Find sides, angles, area and both valid configurations in the ambiguous SSA case.
- Pythagorean Theorem Calculator: Find a Missing Side
Calculate a missing leg or hypotenuse from two sides of a right triangle. Enter each known side as a length or a value under a square root.
- Slope Calculator: Two Points, Grade & Incline
Find rise, run, slope, percent grade, line equation and distance. Or find a second point from an incline and distance.
- Distance Calculator: 2D, 3D & Earth Coordinates
Find straight-line distance between two points in a plane or in space. For latitude and longitude, estimate the shortest surface arc on a spherical Earth.