AbraCalc

Right Triangle Calculator

Solve a right triangle completely from its two legs. Computes the hypotenuse and both acute angles in degrees. Enter leg a and leg b to get all three sides and angles instantly.

Embed this tool on your site

How to use this tool

  1. Enter leg a and leg b in the fields above.
  2. Results update instantly as you type โ€” or click Calculate.
  3. Read your hypotenuse c and the full breakdown beneath it.

Formula

c = sqrt(a^2+b^2), A = atan(a/b) in degrees, B = 90 - A

How it works

Hypotenuse: c = โˆš(aยฒ + bยฒ). Angle A: A = arctan(a/b). Angle B: B = 90ยฐ โˆ’ A.

Worked example

3-4-5 right triangle

  1. a
  2. =
  3. 3
  4. ,
  5. b
  6. =
  7. 4
  8. .
  9. c
  10. =
  11. 5
  12. .
  13. A
  14. =
  15. a
  16. r
  17. c
  18. t
  19. a
  20. n
  21. (
  22. 3
  23. /
  24. 4
  25. )
  26. =
  27. 3
  28. 6
  29. .
  30. 8
  31. 7
  32. d
  33. e
  34. g
  35. .
  36. B
  37. =
  38. 9
  39. 0
  40. -
  41. 3
  42. 6
  43. .
  44. 8
  45. 7
  46. =
  47. 5
  48. 3
  49. .
  50. 1
  51. 3
  52. d
  53. e
  54. g
  55. .

Common mistakes to avoid

  • Swapping a and b when labelling sides โ€” the angles A and B are computed relative to the legs, so swapping inputs swaps the angle assignments even though hypotenuse and area remain the same.
  • Entering the hypotenuse as one of the legs โ€” this formula assumes a and b are the two legs; if you already know the hypotenuse, rearrange to find a missing leg instead.
  • Reporting angles from atan in radians when degrees are expected โ€” always check whether the output is in degrees or radians.

Key terms

Frequently asked questions

How are the two acute angles related in a right triangle?
They are complementary: A + B = 90 degrees. If you know one, subtract from 90 to find the other. This calculator computes both: A = atan(a/b) and B = 90 - A.
Can I use this to find the area of the triangle?
Yes. Area = (1/2) * a * b, where a and b are the two legs. Once you have all sides, the area follows directly.
What is the relationship between the sides and angles once all are known?
sin(A) = a/c, cos(A) = b/c, tan(A) = a/b. These ratios hold for any right triangle and are the foundation of trigonometry.

References & sources