Percentage Calculator X
What are you solving?

Right Triangle Calculator

Choose which two values you know, such as the two legs or one leg and the hypotenuse, and enter them. The calculator returns all three sides, both acute angles, the area, the perimeter and the sine, cosine and tangent of angle A, with every substitution written out. Angles can be shown in degrees or radians.

How to use the right triangle calculator

Type your numbers. The answer and the working update as you type.

Result

Enter your numbers above to see the answer and every step.

Worked example

Take legs of 3 and 4. The hypotenuse follows from Pythagoras and comes to 5. Angle A works out to 36.869898 degrees and angle B to 53.130102 degrees, the area is 6 and the perimeter is 12.

Formulas used

The steps of the worked example appear here.

Method and limits

The right angle is at corner C, side a is opposite angle A, side b is opposite angle B and c is the hypotenuse. Pythagoras gives a^2 + b^2 = c^2. The ratios used are sine = opposite/hypotenuse, cosine = adjacent/hypotenuse and tangent = opposite/adjacent. Radians are converted with x * 180 / pi. Angle A must lie strictly between the two limits for an acute angle of a right triangle.

See also: exponent calculator

What it does not cover

  • Only right triangles are covered. The law of sines and cosines is a different tool, and two angles alone cannot fix the size of a triangle.

Rules and calculation checked on 11 Oct 2026.

How we check our answers · Official sources

Questions people ask

Is it a right triangle?

A triangle is right-angled when the squares of the two shorter sides add up to the square of the longest side. The sides 3, 4 and 5 are the classic example. The page flags well-known whole-number triples when you enter them.

How to solve a right triangle?

Pick the pair of values you know, enter them, and the page gives the other sides and angles. With two legs it applies Pythagoras for the hypotenuse and an inverse tangent for the angle. In the example above, legs 3 and 4 give a hypotenuse of 5.

How to find the height of a right triangle?

If the height is one of the legs, enter it with the other leg or the hypotenuse and read the missing leg from the result. The page also gives the altitude drawn to the hypotenuse, which is a different height. Both values come with their formulas.

Related calculators

Results follow the published rules shown above and are for guidance. For formal use, check them against your university's, board's or school's own document.