How to find a right triangle’s hypotenuse, angles, and area

Use TinyToolbox Right Triangle Calculator with two perpendicular legs, check the angle labels, and interpret the result in the right units.

Open the tool

If you measure the width and height of a rectangle, you can calculate its diagonal without measuring across it. The diagonal divides the rectangle into two right triangles. Each has a horizontal leg, a vertical leg, and a hypotenuse opposite the right angle. Once both legs are known, the same measurements determine the lengths and angles of an entire triangle.

TinyToolbox Right Triangle Calculator takes two positive, perpendicular sides. It returns the hypotenuse, both acute angles in degrees, and the area of one triangle. The calculator assumes the two inputs meet at exactly 90 degrees. Identify those two sides and convert the measurements to the same unit before entering the numbers.

Identify the legs and choose consistent units

Find the corner with the right angle. The two sides meeting there are the legs. The hypotenuse joins their other ends and is the longest side. This definition still applies if the triangle is tilted, drawn with its hypotenuse at the bottom, or labelled in an unfamiliar order. Locate the right angle before guessing from how the picture is oriented.

The form expects both legs. If you know a leg and the hypotenuse, first calculate the missing leg by subtracting the square of the known leg from the square of the hypotenuse and taking the square root. The hypotenuse must be greater than the known leg for a nondegenerate right triangle. You can enter the two resulting legs after verifying that the numbers describe the same triangle. If you know only one leg and no angle or additional side, there is no unique answer.

Choose one unit for both sides. If one dimension is 80 centimetres and the other is 1.2 metres, enter 80 and 120 for a result in centimetres, or 0.8 and 1.2 for a result in metres. Combining 80 and 1.2 without converting gives a completely different shape. The tool does not ask for units. You interpret the hypotenuse in the unit you used and the area in that unit squared.

Calculate the results in TinyToolbox

  1. Open Right Triangle Calculator.
  2. Enter one perpendicular side under First leg.
  3. Enter the other under Second leg.
  4. Select Calculate.
  5. Read the hypotenuse, angles, and area.

Try 3 as the first leg and 4 as the second. The hypotenuse should be 5. The two acute angles are about 53.13° and 36.87°, and the area is 6 square units. If the entered sides were measured in centimetres, that means a diagonal of 5 cm and an area of 6 cm².

The side inputs must be positive. A zero side would flatten the shape into a line and would no longer describe a triangle. A negative direction in a coordinate system can still represent a positive length. If you are starting from points on a graph, calculate the magnitudes of the horizontal and vertical differences before using them as legs.

Verify the diagonal with the Pythagorean theorem

The square of the hypotenuse equals the sum of the squares of the legs. For legs 3 and 4, the two squared values are 9 and 16. Their sum is 25, and the positive square root is 5. Use that relation as a check if the result seems surprising.

The hypotenuse must exceed each leg, and it is shorter than the sum of the two legs. For example, the diagonal of a 3-by-4 rectangle is longer than 4 and shorter than 7. Adding the sides gives a path along two edges, whereas the hypotenuse cuts across directly. If the measured diagonal is shorter than one side, check whether you measured from the intended endpoints or used the same units.

For a square with sides of 10 units, both legs are 10. The diagonal is about 14.142 units. Doubling a square’s side doubles its diagonal. This scale check is useful when you convert from metres to centimetres. The diagonal changes by the same factor as the inputs, while the area changes by the square of that factor.

Match each angle to the correct corner

Picture the first leg as the horizontal base and the second leg as the vertical rise. The first acute angle the calculator displays is the angle from the base to the hypotenuse. It is opposite the second leg. The second displayed angle is at the other end of the hypotenuse and is opposite the first leg.

With first leg 3 and second leg 4, the first angle is larger than 45 degrees because the rise exceeds the base. Swapping the legs changes the order of the two displayed angle values, while the hypotenuse and area remain the same. Label the diagram with the opposite side of each angle so you can tell which value belongs where.

The two angles sum to 90 degrees because the third angle is already 90 degrees. If both legs are equal, the two acute angles are each 45 degrees. For a shallow rise over a long base, the first angle is small and the second is close to 90 degrees. These checks can catch a swapped input even when the calculated diagonal agrees.

Check what the area represents

The area is half the product of the two perpendicular legs. A 3-by-4 rectangle has area 12, and its diagonal splits it into two congruent triangles of area 6 each. If your question concerns the full rectangle, use the full product. If it concerns just the triangular portion, use the reported result.

Suppose a right triangle’s legs are 80 cm and 120 cm. Its area is 4,800 cm². With the equivalent inputs of 0.8 m and 1.2 m, the same area is 0.48 m². Each square metre contains 10,000 square centimetres. Applying the linear conversion factor of 100 to the area would give the wrong result.

Keep the square unit alongside any copied value. A diagonal of 1.442 m and an area of 0.48 m² answer different questions. The first measures distance across the shape. The second measures the surface enclosed by one triangle.

Review measurements before relying on the result

A pair of sides can be measured precisely while the corner between them is slightly out of square. The calculator models a right angle regardless of that deviation. If you are checking a physical object, measure the actual diagonal and compare it with the right-angle estimate. A difference could reflect a measurement problem, uneven edges, or geometry outside the model. A rounded calculator result cannot establish which explanation applies.

Use an appropriate number of digits for the quality of your measurements. A diagonal displayed to several decimal places can be mathematically consistent with inputs that were only measured to the nearest centimetre. Report the value at a precision supported by the original measurements. If you need to compare several versions of a shape, retain the unrounded result until the comparison is finished.

Before using the answer, confirm that both inputs are legs, their units agree, and you matched the angles to the intended corners. Then check whether you need the diagonal, a particular angle, or the area of one triangle. Recording the two original lengths and their units makes it easy to reproduce the calculation later.

Find a straight-line distance between two grid points

Suppose a plan shows two points on a grid in metres. The first is at (2, 3), and the second is at (8, 11). The horizontal distance is 8 minus 2, or 6 metres. The vertical distance is 11 minus 3, or 8 metres. These differences are the perpendicular legs. Enter 6 and 8 in Right Triangle Calculator to get a diagonal of 10 metres. You can verify it by squaring the legs, adding 36 and 64, and taking the square root of 100.

If you walk the grid by moving horizontally first and then vertically, the route is 14 metres. If a clear path lets you travel straight between the two marked points, the distance on the plan is 10 metres. Keep the wording straight when you record the result. A straight-line distance can be useful for checking a diagram while the actual route follows a corridor, path, or marked boundary.

The two acute angles are about 53.13° and 36.87°. To find the angle the diagonal makes with the horizontal, identify the corner where the six-metre leg and the diagonal meet. Across from that corner is the eight-metre rise, so the horizontal angle is the larger one, about 53.13°. Take the tangent of that angle if you want an independent check. It should be close to 8 divided by 6. A bearing or direction measured from a vertical axis uses the other angle and may also need an indication of which way the route points.

If the second point were at (8, −5), the vertical displacement would be −8 metres. Its length remains 8 metres, and the diagonal and acute angles have the same magnitudes. Preserve the negative direction in your notes if you need to describe the diagonal as sloping downward. The tool uses positive lengths and gives the shape’s angles; the coordinate signs describe the direction of travel.

Distinguish rise, run, and sloped length

Imagine a diagram gives a vertical rise of 30 centimetres over a horizontal run of 120 centimetres. Enter those two lengths in the calculator to find the length of the sloped line, about 123.69 centimetres. The angle above the horizontal is about 14.04 degrees. Check that the result is longer than the horizontal run alone and that the shallow angle belongs to the corner next to the long horizontal leg.

The rise divided by the horizontal run is 30 ÷ 120, or 0.25. If you express that ratio as a percentage, it is a 25% grade. The angle is still about 14.04°, since the tangent relates the angle to the ratio. Keep the degree sign and percent sign in your notes. Substituting a percentage grade for an angle in degrees would change the geometry.

If a diagram gives the sloped length and one leg, the tool still needs a second perpendicular leg before you can use it. For a simple example, a 13-unit sloped side and a 5-unit leg imply a second leg of 12, because 13² minus 5² is 144. Taking the square root gives 12. Verify that the sloped length is larger than either leg and then enter 5 and 12 to reproduce the 13-unit result. If the squared difference is negative, check which length is the hypotenuse and whether the input describes a right triangle.

Verify the geometry behind a measurement

A diagonal calculated from a width and height assumes those sides meet at a right angle. If you measure two edges on a drawing that is slightly skewed, the computed diagonal describes the ideal right triangle with those legs. A directly measured diagonal in the skewed drawing can differ. Check the markings or the original dimensions before using a mismatch to infer that a value was mistyped.

If you are comparing two triangles, note which value serves as the horizontal leg in each. A change in angle could come from a larger rise, a shorter run, or swapped inputs. As a check, scale both legs by the same factor and run the numbers again. The angles should stay the same, even though the diagonal and area change. Doubling 6 and 8 to 12 and 16 doubles the diagonal from 10 to 20 and increases the area from 24 to 96 square units. Saving the original leg labels and units makes the comparison reproducible.