Utinzo

Right Triangle Calculator

Solve a right triangle completely — find all sides and angles from any two known values using the Pythagorean theorem and trigonometry.

Did this tool work for you?

How to use this calculator

a² + b² = c²; sin A = a/c; cos A = b/c; tan A = a/b

Given any two sides or one side and one acute angle, all remaining parts of a right triangle can be determined using the Pythagorean theorem and the trigonometric ratios.

  1. 1

    Select which two values you know from the dropdown (e.g., "Legs a and b").

  2. 2

    Enter the first value in the "First value" field and the second in "Second value".

  3. 3

    All remaining sides, angles, area, and perimeter are calculated instantly.

  4. 4

    Angles are in degrees; all sides share the same unit you entered.

Frequently asked questions

Which pairs of known values does it accept?

Five combinations: both legs, leg a with the hypotenuse, leg b with the hypotenuse, angle A with leg a, and angle B with leg b. Hypotenuse plus an angle is not offered; use a = c·sin A and b = c·cos A by hand. If you know a leg and the angle adjacent to it, subtract that angle from 90° to get the opposite angle and use the matching angle mode.

Which side is a and which angle is A?

Angle A sits opposite leg a, angle B sits opposite leg b, and the right angle C sits opposite the hypotenuse c. So in the 3-4-5 triangle, A is the angle across from the side of length 3. It comes out as 36.869898°, and B is 53.130102°.

Why do I get "Leg must be less than hypotenuse"?

In a right triangle the hypotenuse is strictly the longest side. If the leg you entered is equal to or longer than the hypotenuse, no triangle exists, so the calculator stops. Entering 8 and 8 in the leg and hypotenuse modes triggers this message. Zero and negative lengths are rejected too.

What are the valid angle values?

Greater than 0° and less than 90°, entered in degrees, not radians. The other acute angle is 90° minus the one you give. An entry of 90 or more returns the error "Angle must be between 0° and 90°". An entry of 45 produces a triangle with equal legs.

Are the results rounded?

Sides, area and perimeter are shown with up to six decimals and trailing zeros removed, so 17.320508 appears for 10√3. Angles use the same rule with a degree sign. Round further for practical use: six decimals of a measurement is more precision than any tape measure provides.

What units do area and perimeter use?

The unit you used for the sides, with the area in square units. The form never asks for a unit, so enter every length in the same one. A 3-by-4 triangle has an area of 6 and a perimeter of 12 regardless of whether those are centimetres or feet.

Does the calculator solve non-right triangles?

No. It assumes one angle is exactly 90°. For triangles without a right angle, use the Law of Cosines or the Law of Sines.

Can I use it to check a 3-4-5 style square corner?

Yes. Enter two legs and compare the computed hypotenuse with what you measured. A 3 and 4 give exactly 5, and 5 and 12 pair with 13 in the leg-hypotenuse mode (5 and 13 return a b of 12). If the diagonal you measure is longer or shorter, the corner is not 90°.

About right triangle calculator

Right triangle calculator — solve sides, angles, area and perimeter

What gets solved from two facts

A right triangle has five unknowns besides the 90° corner: sides a, b, c and acute angles A and B. Two independent facts fix the rest. With two sides you use the Pythagorean theorem a² + b² = c² and inverse trig for the angles; with a side and an acute angle you use sin, cos or tan. The calculator then adds area (½ × a × b) and perimeter (a + b + c).

The five input modes
ModeYou enterKey step
Legs a and ba, bc = √(a² + b²)
Leg a and hypotenusea, cb = √(c² − a²)
Leg b and hypotenuseb, ca = √(c² − b²)
Angle A and leg aA in degrees, ac = a ÷ sin A, b = a ÷ tan A
Angle B and leg bB in degrees, bc = b ÷ sin B, a = b ÷ tan B

Worked examples from the calculator

Each row below is a real run, with the angle in degrees and lengths in whatever unit you used.

Four solved triangles
InputHypotenuse cLegsAngles A / BArea
a = 3, b = 453, 436.869898° / 53.130102°6
a = 5, c = 13135, 1222.619865° / 67.380135°30
A = 30°, a = 102010, 17.32050830° / 60°86.60254
B = 35°, b = 1220.92136217.137776, 1255° / 35°102.826656

Why 30° gives a hypotenuse of exactly double

In the third row, the side opposite 30° is 10 and the hypotenuse is 20, because sin 30° = ½. That is the 30-60-90 triangle, whose sides are in the ratio 1 : √3 : 2, and 10√3 is the 17.320508 shown. The 5-12-13 and 3-4-5 rows are integer triples, which carpenters and surveyors use for checking square corners without trig.

Choosing the right mode

Match the mode to the measurements you actually have. A ladder leaning on a wall gives the hypotenuse and often the foot distance, which is a leg, so use leg and hypotenuse. A slope with a measured angle and a vertical rise fits the angle-and-leg mode, provided you put the rise in as the side opposite that angle. If you enter the adjacent side as a, the results will be wrong, because the calculator assumes a is opposite A.

Limits to keep in mind

Angles must be strictly between 0° and 90°, and in the hypotenuse modes the leg must be shorter than the hypotenuse. The unit is whatever you type, so keep it consistent across inputs. Use a different tool for triangles with no right angle. Also note that the two acute angles always add to 90°, so entering one angle fixes the other, and a very thin triangle (an angle close to 0° or 90°) will give one leg far longer than the other, which is expected rather than an error.

Right Triangle Calculator – Utinzo

Learn more from an authoritative source:

Wikipedia
Related tools

Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →