Skip to main content

Right Triangle Calculator

Calculate right triangle instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.

Skip to calculator
Mathematics

Right Triangle Calculator

Calculate all properties of a right triangle from two legs. Find hypotenuse, angles, area, perimeter, altitude, inradius, circumradius, and trigonometric ratios.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
3
4
Hypotenuse (c)
5.000000
Pythagorean Triple
Area
6.0000
Perimeter
12.0000
Altitude to c
2.400000
Angle A (opp. a)
36.8699deg
Angle B (opp. b)
53.1301deg
Right Angle
90deg

Trigonometric Ratios

Angle A (36.8699deg)
sin A = 0.600000
cos A = 0.800000
tan A = 0.750000
Angle B (53.1301deg)
sin B = 0.800000
cos B = 0.600000
tan B = 1.333333
Inradius
1.000000
Circumradius
2.500000
Projections on Hypotenuse
Proj. of a: 1.8000
Proj. of b: 3.2000
Medians
m_a: 4.2720
m_b: 3.6056
m_c: 2.5000
Your Result
Hypotenuse: 5.000000 | Angles: 36.8699deg and 53.1301deg | Area: 6.0000
Share Your Result
Understand the Math

Formula

c = sqrt(a^2 + b^2), Area = (1/2)ab

Where a and b are the two legs (sides adjacent to the right angle) and c is the hypotenuse (side opposite the right angle). The area is half the product of the legs. Angles are found using inverse trigonometric functions.

Last reviewed: December 2025

Worked Examples

Example 1: Classic 3-4-5 Right Triangle

Solve the right triangle with legs a = 3 and b = 4 completely.
Solution:
Hypotenuse c = sqrt(9 + 16) = sqrt(25) = 5 Angle A = arctan(3/4) = 36.8699 degrees Angle B = arctan(4/3) = 53.1301 degrees Area = (1/2)(3)(4) = 6 Perimeter = 3 + 4 + 5 = 12 Altitude to hypotenuse = (3)(4)/5 = 2.4 Inradius = (3+4-5)/2 = 1 Circumradius = 5/2 = 2.5
Result: Hypotenuse = 5, Angles: 36.87 and 53.13 deg, Area = 6, Perimeter = 12, Inradius = 1, Circumradius = 2.5

Example 2: Ladder Against a Wall

A 13-foot ladder rests against a wall with its base 5 feet from the wall. How high does it reach?
Solution:
This is a right triangle with hypotenuse c = 13 and one leg a = 5. Other leg b = sqrt(13^2 - 5^2) = sqrt(169 - 25) = sqrt(144) = 12 feet Angle with ground = arctan(12/5) = 67.38 degrees Area = (1/2)(5)(12) = 30 sq ft This is a 5-12-13 Pythagorean triple
Result: The ladder reaches 12 feet up the wall at an angle of 67.38 degrees from the ground.
Expert Insights

Background & Theory

The Right Triangle Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Right Triangle Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

A right triangle is a triangle that contains exactly one angle of 90 degrees, called the right angle. The side opposite the right angle is the hypotenuse, which is always the longest side, and the other two sides are called legs or catheti. The right angle is typically denoted by a small square in geometric diagrams. Right triangles are the foundation of trigonometry, as the six trigonometric functions (sine, cosine, tangent, cosecant, secant, cotangent) are originally defined as ratios of the sides of a right triangle. The Pythagorean theorem (a^2 + b^2 = c^2) applies exclusively to right triangles, providing the fundamental relationship between the three sides.
The six trigonometric ratios relate angles to side lengths in a right triangle. For an acute angle A: sine(A) = opposite/hypotenuse, cosine(A) = adjacent/hypotenuse, tangent(A) = opposite/adjacent. The reciprocal functions are: cosecant(A) = hypotenuse/opposite, secant(A) = hypotenuse/adjacent, cotangent(A) = adjacent/opposite. These ratios are constant for a given angle regardless of the triangle's size, which is what makes trigonometry so powerful. For a 3-4-5 triangle, sin(A) = 3/5 = 0.6, cos(A) = 4/5 = 0.8, tan(A) = 3/4 = 0.75. Knowing any one trigonometric ratio for an angle is sufficient to determine the angle and all other ratios.
The inradius of a right triangle has the elegant formula r = (a + b - c) / 2, where a and b are the legs and c is the hypotenuse. This is simpler than the general triangle formula and can be derived from the fact that the incircle touches the hypotenuse at a distance r from each leg. For a 3-4-5 triangle: r = (3 + 4 - 5) / 2 = 1. The incircle center is located at coordinates (r, r) from the right angle vertex. The inradius can also be expressed as r = area / s where s is the semi-perimeter: r = 6 / 6 = 1 (confirmed). An interesting property: the diameter of the incircle equals the sum of the legs minus the hypotenuse. The incircle is always entirely contained within the triangle and tangent to all three sides.
The circumradius of a right triangle is always exactly half the hypotenuse: R = c/2. This is a direct consequence of Thales theorem, which states that any angle inscribed in a semicircle is a right angle. The converse means that for any right triangle, the hypotenuse is a diameter of the circumscribed circle. The circumcenter (center of the circumscribed circle) is therefore always located at the midpoint of the hypotenuse. For a 3-4-5 triangle: R = 5/2 = 2.5. This property means the circumradius is always greater than or equal to the inradius, with the ratio R/r = c / (a + b - c). For a 3-4-5 triangle: R/r = 2.5, and the minimum ratio for right triangles occurs for the isosceles right triangle where R/r = 1 + sqrt(2) approximately 2.414.
Right triangles are the basis of virtually all distance calculations in mathematics and science. The Euclidean distance between two points (x1,y1) and (x2,y2) is the hypotenuse of a right triangle with legs (x2-x1) and (y2-y1), giving d = sqrt((x2-x1)^2 + (y2-y1)^2). This extends to 3D: d = sqrt(dx^2 + dy^2 + dz^2). GPS receivers calculate your position using multiple right triangles formed between satellites and your location. Computer screens measure resolution diagonally as the hypotenuse of width and height. Pilots calculate ground distance using right triangles formed by altitude and slant range. Even walking diagonally across a rectangular field involves right triangle calculations to determine the distance saved compared to walking along two sides.
Solving a right triangle means finding all three sides and all three angles. Since one angle is always 90 degrees, you need to find the other two angles and any unknown sides. If you know two sides, use the Pythagorean theorem for the third side and inverse trigonometric functions for the angles. If you know one side and one acute angle, the other angle is 90 minus the known angle, and the sides are found using sine, cosine, or tangent. For example, given leg a = 7 and angle A = 35 degrees: angle B = 55 degrees, leg b = a / tan(A) = 7 / tan(35) = 9.997, hypotenuse c = a / sin(A) = 7 / sin(35) = 12.204. Always verify your solution satisfies the Pythagorean theorem as a check on accuracy.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

c = sqrt(a^2 + b^2), Area = (1/2)ab

Where a and b are the two legs (sides adjacent to the right angle) and c is the hypotenuse (side opposite the right angle). The area is half the product of the legs. Angles are found using inverse trigonometric functions.

Worked Examples

Example 1: Classic 3-4-5 Right Triangle

Problem: Solve the right triangle with legs a = 3 and b = 4 completely.

Solution: Hypotenuse c = sqrt(9 + 16) = sqrt(25) = 5\nAngle A = arctan(3/4) = 36.8699 degrees\nAngle B = arctan(4/3) = 53.1301 degrees\nArea = (1/2)(3)(4) = 6\nPerimeter = 3 + 4 + 5 = 12\nAltitude to hypotenuse = (3)(4)/5 = 2.4\nInradius = (3+4-5)/2 = 1\nCircumradius = 5/2 = 2.5

Result: Hypotenuse = 5, Angles: 36.87 and 53.13 deg, Area = 6, Perimeter = 12, Inradius = 1, Circumradius = 2.5

Example 2: Ladder Against a Wall

Problem: A 13-foot ladder rests against a wall with its base 5 feet from the wall. How high does it reach?

Solution: This is a right triangle with hypotenuse c = 13 and one leg a = 5.\nOther leg b = sqrt(13^2 - 5^2) = sqrt(169 - 25) = sqrt(144) = 12 feet\nAngle with ground = arctan(12/5) = 67.38 degrees\nArea = (1/2)(5)(12) = 30 sq ft\nThis is a 5-12-13 Pythagorean triple

Result: The ladder reaches 12 feet up the wall at an angle of 67.38 degrees from the ground.

Frequently Asked Questions

What defines a right triangle?

A right triangle is a triangle that contains exactly one angle of 90 degrees, called the right angle. The side opposite the right angle is the hypotenuse, which is always the longest side, and the other two sides are called legs or catheti. The right angle is typically denoted by a small square in geometric diagrams. Right triangles are the foundation of trigonometry, as the six trigonometric functions (sine, cosine, tangent, cosecant, secant, cotangent) are originally defined as ratios of the sides of a right triangle. The Pythagorean theorem (a^2 + b^2 = c^2) applies exclusively to right triangles, providing the fundamental relationship between the three sides.

What are the trigonometric ratios in a right triangle?

The six trigonometric ratios relate angles to side lengths in a right triangle. For an acute angle A: sine(A) = opposite/hypotenuse, cosine(A) = adjacent/hypotenuse, tangent(A) = opposite/adjacent. The reciprocal functions are: cosecant(A) = hypotenuse/opposite, secant(A) = hypotenuse/adjacent, cotangent(A) = adjacent/opposite. These ratios are constant for a given angle regardless of the triangle's size, which is what makes trigonometry so powerful. For a 3-4-5 triangle, sin(A) = 3/5 = 0.6, cos(A) = 4/5 = 0.8, tan(A) = 3/4 = 0.75. Knowing any one trigonometric ratio for an angle is sufficient to determine the angle and all other ratios.

How is the inradius of a right triangle calculated?

The inradius of a right triangle has the elegant formula r = (a + b - c) / 2, where a and b are the legs and c is the hypotenuse. This is simpler than the general triangle formula and can be derived from the fact that the incircle touches the hypotenuse at a distance r from each leg. For a 3-4-5 triangle: r = (3 + 4 - 5) / 2 = 1. The incircle center is located at coordinates (r, r) from the right angle vertex. The inradius can also be expressed as r = area / s where s is the semi-perimeter: r = 6 / 6 = 1 (confirmed). An interesting property: the diameter of the incircle equals the sum of the legs minus the hypotenuse. The incircle is always entirely contained within the triangle and tangent to all three sides.

What is the circumradius of a right triangle?

The circumradius of a right triangle is always exactly half the hypotenuse: R = c/2. This is a direct consequence of Thales theorem, which states that any angle inscribed in a semicircle is a right angle. The converse means that for any right triangle, the hypotenuse is a diameter of the circumscribed circle. The circumcenter (center of the circumscribed circle) is therefore always located at the midpoint of the hypotenuse. For a 3-4-5 triangle: R = 5/2 = 2.5. This property means the circumradius is always greater than or equal to the inradius, with the ratio R/r = c / (a + b - c). For a 3-4-5 triangle: R/r = 2.5, and the minimum ratio for right triangles occurs for the isosceles right triangle where R/r = 1 + sqrt(2) approximately 2.414.

How do right triangles apply to distance calculations?

Right triangles are the basis of virtually all distance calculations in mathematics and science. The Euclidean distance between two points (x1,y1) and (x2,y2) is the hypotenuse of a right triangle with legs (x2-x1) and (y2-y1), giving d = sqrt((x2-x1)^2 + (y2-y1)^2). This extends to 3D: d = sqrt(dx^2 + dy^2 + dz^2). GPS receivers calculate your position using multiple right triangles formed between satellites and your location. Computer screens measure resolution diagonally as the hypotenuse of width and height. Pilots calculate ground distance using right triangles formed by altitude and slant range. Even walking diagonally across a rectangular field involves right triangle calculations to determine the distance saved compared to walking along two sides.

How do you solve a right triangle completely?

Solving a right triangle means finding all three sides and all three angles. Since one angle is always 90 degrees, you need to find the other two angles and any unknown sides. If you know two sides, use the Pythagorean theorem for the third side and inverse trigonometric functions for the angles. If you know one side and one acute angle, the other angle is 90 minus the known angle, and the sides are found using sine, cosine, or tangent. For example, given leg a = 7 and angle A = 35 degrees: angle B = 55 degrees, leg b = a / tan(A) = 7 / tan(35) = 9.997, hypotenuse c = a / sin(A) = 7 / sin(35) = 12.204. Always verify your solution satisfies the Pythagorean theorem as a check on accuracy.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy