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
Result
The working
Enter your numbers above to see the answer and every step.
- In force from Checked on Source: Right triangle (sin, cos, tan ratios, Pythagorean theorem), Pythagorean triple (primitive triples below hypotenuse 100)
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.
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
Find the area between two curves, with crossings located, the top curve found on each stretch, an exact and decimal area, and the shaded region drawn.
Matrices calculatorAdd, subtract, multiply, transpose and invert matrices in exact fractions. Each row operation of an inverse is listed, and size mismatches are named.
Percentage calculatorFind a percent of a number, what percent one number is of another, or a percentage change. Every step is written out so you can check your working.
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.