Pythagorean Theorem & Right Triangle Trigonometry Calculator

Solve right-triangle sides, interior angles (degrees/radians), and inradius/circumradius.

Hypotenuse Length (c) 10 units
Triangle Area (ab / 2) 24 sq units
Perimeter (a + b + c) 24 units
Angle α opposite side a 36.87 deg
Inputs
Try:
Right triangle leg a.
Right triangle leg b.
Results & Graph
Hypotenuse Length (c)
10 units
Triangle Area (ab / 2)
24 sq units
Perimeter (a + b + c)
24 units
Angle α opposite side a
36.87 deg
Angle β opposite side b
53.13 deg

Hypotenuse Length (c)

Graph 1 • How the inputs feed Pythagorean & Trig
Pythagorean Theorem & Right Triangle Trigonometry Calculator • Custom Domain Schematic (Geometry & Trigonometry) Invariants: sideA, sideB (Pythagorean & Trig) Side A: 6 • Side B: 8 HYPOTENUSE LENGTH (C) 10 units • Triangle Area (ab / 2): 24 sq units • Perimeter (a + b + c): 24 units Eq: c = √(a² + b²); Area = (a × b)/2
Graph 2 • Hypotenuse Length (c) as Side A changes (40% to 160% of current)
0 units 6.87 units 13.75 units 8.35 2.40 8.77 3.60 9.33 4.80 10 6 10.76 7.20 11.60 8.40 12.50 9.60
Graph 3 • Side A and Side B together Compares Hypotenuse Length (c) when Side B is shifted +25% (solid) vs. −25% (dashed).
0 units 6.98 units 13.95 units --- Side B @ 75% 10.85 -30% 11.22 -15% 11.66 +0% 12.15 +15% 12.68 +30%
Summary: Legs a = 6 and b = 8 form a right triangle with hypotenuse c = 10, area = 24, and perimeter = 24.
Summary: Legs a = 6 and b = 8 form a right triangle with hypotenuse c = 10, area = 24, and perimeter = 24.
Interactive chart & math engine powered by CalculatorGraph

Formula: Pythagorean & Trig Mathematical Identity

c = a² + b²
Area = (a × b)/2
α = arctan(a/b)
c = √(a² + b²); Area = (a × b)/2; α = arctan(a/b)
  • sideA: Side A (numeric parameter)
  • sideB: Side B (numeric parameter)

Frequently Asked Questions

Why are the area and perimeter both 24 for the default triangle?

It is a coincidence of the 6, 8, 10 triangle. The area is 6 times 8 divided by 2, which is 24, and the perimeter is 6 plus 8 plus 10, also 24. Change either leg and the two figures separate. With legs of 9 and 8, the page shows an area of 36 and a perimeter of 29.042.

Does it matter which leg I enter as Side A?

Only for the angle labels. The hypotenuse, area and perimeter are the same either way. The angle shown opposite side a becomes the angle opposite whatever you typed first. With 6 and 8 the angle opposite a is 36.87 degrees; enter 8 first and that line reads 53.13 degrees instead.

Why do the two angles add up to 90.001 for some inputs?

Each angle is rounded to three decimals separately. For legs of 9 and 8 the exact angles are about 48.3665 and 41.6335 degrees, which sum to 90. Rounded separately they become 48.367 and 41.634. The underlying calculation is correct; only the display adds a thousandth. Round both angles together when you write them down.

Can I enter the hypotenuse instead of a leg?

Not directly. Both inputs are legs. Work out the missing leg first using the square root of c squared minus the known leg squared. For a hypotenuse of 10 and a leg of 6, the other leg is 8. Then enter 6 and 8 and the page fills in the area, perimeter and angles.

How do I get the angles in radians?

Multiply the degree value by about 0.017453, which is π divided by the number of degrees in a half turn. The default angle of 36.87 degrees is about 0.6435 radians, and 53.13 degrees is about 0.9273 radians. Together they make π over 2, which is 90 degrees. The page shows degrees only, so this conversion has to be done separately.

What happens if I enter zero for one side?

The page shows an error asking for both legs to be greater than zero, because a side of zero length leaves a straight line rather than a triangle. If a zero came from subtracting coordinates, the two points share an x or y value and their distance is simply the other difference, so you do not need this calculator for it.

Does a negative side length cause an error?

Yes. A negative leg is rejected with the same message as zero: both legs must be greater than zero. If the minus sign came from a coordinate difference, drop it and enter the size, since a length of 6 to the left is the same as 6 to the right. With 6 and 8 the page then returns the hypotenuse of 10.

How can I find the altitude to the hypotenuse?

Multiply the two legs and divide by the hypotenuse. For the default, 6 times 8 is 48, divided by 10 gives 4.8. This is the shortest distance from the right angle corner to the hypotenuse. The page mentions altitude in its description but does not print it, so use this one step calculation.

Which right triangles have whole number sides?

Those whose sides form a Pythagorean triple. The best known are 3, 4, 5 and 5, 12, 13, and any whole multiple of a triple also works, such as the default 6, 8, 10. Enter 5 and 12 and the page returns a hypotenuse of exactly 13, with angles of 22.62 and 67.38 degrees.

How do I check a corner is square on site?

Measure two legs along the walls from the corner, enter them, and read the hypotenuse. Then measure the diagonal between your two marks. If the measured diagonal matches the page, the corner is square. If it is longer, the angle is more than 90 degrees; if shorter, less. Using 6 and 8 keeps the target diagonal a round 10.

Why does the hypotenuse barely change when one leg is tiny?

Because the short leg contributes its square, which is very small. With legs of 1 and 8, for example, the squares are 1 and 64, so the hypotenuse is the square root of 65, only a little over 8. The angle opposite the short leg is small too. A long, thin right triangle has a hypotenuse almost equal to its longer leg.

Legs of 6 and 8 give a hypotenuse of 10

The calculator starts with two legs, a = 6 and b = 8. It returns a hypotenuse of 10 units, an area of 24 square units, a perimeter of 24 units, and two acute angles: 36.87 degrees opposite side a and 53.13 degrees opposite side b.

The hypotenuse comes from the Pythagorean theorem, c = √(a² + b²). Six squared is 36, eight squared is 64, their sum is 100, and the square root of 100 is 10. The area is half the product of the legs, 6 times 8 over 2, which is 24. The perimeter adds all three sides: 6 plus 8 plus 10, which happens to be 24 as well. That coincidence is a property of this particular triangle, not a rule.

The default is the familiar 3, 4, 5 triangle scaled up by two. Any multiple of 3, 4 and 5 gives whole number sides, which is why builders have used it for centuries to check that a corner is square. Measure 3 along one wall, 4 along the other, and the diagonal between the marks should be exactly 5.

How the angles are worked out

The angle α opposite side a is the arctangent of a over b. For the default, a over b is 0.75, and the arctangent of 0.75 is 36.87 degrees. The other acute angle, β, is whatever is left from 90 degrees, since the three angles of any triangle add to two right angles and one of them is already used. Here that is 53.13 degrees.

You can check the angle with sine or cosine as well. The sine of α is the opposite side over the hypotenuse, 6 over 10, or 0.6. The cosine of α is the adjacent side over the hypotenuse, 8 over 10, or 0.8. The page does not print these ratios, but they follow immediately from the three sides it does show.

Which angle is which depends on how you label the legs. The page calls the angle opposite side a α. If your textbook or drawing uses the opposite convention, swap the two angles; the triangle is the same. The order you type the legs in changes the angle labels but never the hypotenuse, area or perimeter.

Working through the 3.6 and 9 presets

With a = 3.6 and b = 8, the page gives a hypotenuse of 8.773, an area of 14.4 and a perimeter of 20.373. The angles are 24.228 degrees opposite a and 65.772 degrees opposite b. By hand: 3.6 squared is 12.96, add 64, and the square root of 76.96 is about 8.7727.

With a = 9 and b = 8, the legs have swapped which is longer. The hypotenuse is 12.042, the area 36 and the perimeter 29.042. The angle opposite a is now the larger one, 48.367 degrees, and the angle opposite b is 41.634 degrees.

Add those two angles and you get 90.001, not 90. That is a display artefact. The page rounds each angle to three decimals on its own, and the exact values are 48.3665 and 41.6335 degrees, which do sum to 90. If you copy the angles into a report, round them together, so they still add to a right angle.

Altitude, inradius and circumradius from the same sides

The page description mentions the altitude to the hypotenuse, and the summary mentions inradius and circumradius, but none of these appears in the result. They are easy to get from the outputs you do see.

The altitude to the hypotenuse is the height of the triangle if you stand it on its longest side. It equals a times b divided by c. For the default, 48 over 10 gives 4.8. You can also find it as twice the area divided by the hypotenuse, which gives the same 4.8.

The inradius, the radius of the largest circle that fits inside the triangle, is (a + b − c) / 2 for a right triangle. With the default sides that is 4 over 2, or 2. The circumradius, the radius of the circle through all three corners, is half the hypotenuse, because the hypotenuse of a right triangle is always a diameter of its circumscribed circle. For the default that is 5.

Those three numbers are often what a geometry problem actually asks for. Use the page to get c, then apply the short formulas above.

When you know the hypotenuse and one leg

The page takes two legs. It cannot be given a hypotenuse directly. If your problem gives you c and one leg, find the missing leg first, using b = √(c² − a²). For c = 10 and a = 6, that is the square root of 100 minus 36, which is 8. Enter 6 and 8 and the page confirms the hypotenuse of 10.

This is a common situation with ladders and ramps. You know the ladder length, which is the hypotenuse, and how far the foot is from the wall, which is one leg. The missing leg is the height reached. A 5 metre ladder with its foot 3 metres out reaches 4 metres up, the same 3, 4, 5 shape again.

If c is not larger than the leg you have, there is no right triangle. The square root of a negative number has no real answer, and that is the maths telling you the measurements are inconsistent. Recheck which measurement is the diagonal.

If you know one leg and one acute angle instead, use tangent. The other leg is the known leg divided by the tangent of the angle opposite it, or multiplied by the tangent of the angle next to it. Enter both legs here to get everything else.

Special angles: the 45 and 30 to 60 triangles

Two right triangles come up so often in trigonometry that it is worth seeing them on this page. Enter legs of 1 and 1 and the result is a hypotenuse of 1.414, an area of 0.5, a perimeter of 3.414 and two angles of 45 degrees. The hypotenuse is the square root of 2, and the triangle is half of a unit square cut along its diagonal.

Now enter 1 and 1.7320508, which is the square root of 3 to seven decimals. The hypotenuse comes back as exactly 2, the area as 0.866, and the angles as 30 and 60 degrees. This is half of an equilateral triangle with sides of 2, sliced down the middle.

These two shapes are where the exact sine and cosine values in textbooks come from. In the first, the sine and cosine of 45 degrees are both 1 over the square root of 2. In the second, the sine of 30 degrees is one half and the cosine is the square root of 3 over 2. Checking them here is a quick way to confirm you have the side ratios the right way round.

Compared with the default, where the angles are 36.87 and 53.13 degrees, these special triangles show how strongly the angle depends on the ratio of the legs. Equal legs give equal angles. The longer one leg gets relative to the other, the closer the angle opposite it creeps towards 90 degrees, while the hypotenuse approaches the length of that long leg.

Zero and negative legs are rejected

Both legs must be greater than zero. Type minus 6, or 0, into either box and the page shows an error saying both legs must be greater than zero to form a triangle, instead of producing a result. That is correct: a side with no length, or a negative length, does not describe a triangle at all.

The error is most likely to appear when the legs come from coordinates. If you work out the horizontal and vertical differences between two points and one comes out negative, use its size without the sign, since the distance is the same either way. If one comes out as zero, the two points lie on a horizontal or vertical line, and the distance between them is just the other difference; there is no triangle to solve.

Very small positive values are accepted. A leg of 0.001 next to a leg of 8 gives a hypotenuse barely longer than 8 and an angle close to zero, which is the right answer for an extremely thin triangle, even if it is not a useful one.

Units, precision and what to check before using the answer

The page has no unit selector. Results are in units for lengths and square units for area, meaning whatever unit you entered. Enter both legs in the same unit; mixing feet and inches, or metres and centimetres, gives a hypotenuse that is neither.

Lengths and angles are displayed to three decimal places, and the sentence under the result gives lengths to four. For carpentry or surveying that is more precision than any tape measure delivers, so round to what you can actually mark. For homework, give the answer to the precision the question asks for.

Angles are shown in degrees only. If you need radians, multiply degrees by π over one hundred and eighty, which is about 0.017453. The default 36.87 degrees is about 0.6435 radians.

Finally, the theorem applies only to right triangles. If the corner between your two sides is not exactly 90 degrees, the hypotenuse here will be wrong by an amount that grows with the error in the angle. For other triangles, the law of cosines replaces Pythagoras.