Right Triangle Calculator
Input exactly 2 known values to solve for sides, angles, area, and altitude with our advanced right triangle calculator. Radian fields accept exact mathematical expressions, including pi fractions like pi/3 or pi/4.
Calculation Steps
Anatomy of a Right Triangle
A right triangle contains exactly one 90-degree angle. This single known value locks the remaining sides and angles into strict, predictable mathematical ratios.
The Legs (a and b)
The legs intersect to form the right angle. You will commonly see them referred to as the base and the height, or the opposite and adjacent sides in trigonometry. Their primary function is establishing the overall dimensions and planar area of the shape.
The Hypotenuse (c)
The hypotenuse sits directly opposite the right angle. It is always the longest side of a right triangle. If your calculated legs equal or exceed the length of the hypotenuse, your geometry is mathematically impossible.
The Angles (α and β)
The remaining two angles are acute. Because the interior angles of any planar triangle total exactly 180 degrees, the two acute angles must combine to equal exactly 90 degrees. This makes them complementary angles. Find one, and you instantly know the exact value of the other.
Core Right Triangle Formulas
The Pythagorean Theorem
This theorem dictates the exact relationship between the three sides. Square the lengths of both legs and add them together to find the square of the hypotenuse.
a2 + b2 = c2
Trigonometric Ratios (Sine, Cosine, Tangent)
Trigonometry links the side lengths directly to the acute angles. Sine represents the opposite side divided by the hypotenuse. Cosine maps the adjacent side over the hypotenuse, and tangent divides the opposite side by the adjacent side.
sin(α) = a / c
cos(α) = b / c
tan(α) = a / b
Area and Perimeter
Area measures the internal two-dimensional space of the triangle. You calculate it by multiplying the two legs together and dividing the result by two.
Area = (a × b) / 2
Perimeter tracks the total continuous boundary length. You find it by adding all three outer side lengths together.
Perimeter = a + b + c
Advanced Right Triangle Metrics
Altitude to the Hypotenuse (h)
Dropping a perpendicular line segment from the 90-degree right angle directly to the hypotenuse creates the altitude. This single line divides the original shape into two smaller, perfectly similar right triangles. You can calculate the altitude by multiplying the two legs and dividing by the hypotenuse.
h = (a × b) / c
Inradius
The inradius is the radius of the largest possible circle that can fit entirely inside the triangle. This inscribed circle barely touches all three sides at exactly one point each. You calculate the inradius by dividing the area of the triangle by its semi-perimeter.
r = (a × b) / (a + b + c)
Circumradius
The circumradius defines a circle that perfectly intersects all three outer vertices of the triangle. According to Thales’s theorem, the center of this circumscribed circle always sits at the exact midpoint of the hypotenuse. Therefore, the circumradius is simply half the length of the hypotenuse.
R = c / 2
Solving a Right Triangle with Just Two Values
Side and Side
This is the most straightforward calculation path. If you know two legs, or one leg and the hypotenuse, you apply the Pythagorean theorem to find the missing side. Once you possess all three side lengths, you use inverse trigonometric functions (arcsin or arccos) to determine the exact degrees of the acute angles.
Side and Angle
Providing one side and one acute angle immediately locks the shape’s proportions. You find the missing angle by subtracting your known angle from 90 degrees. From there, you apply standard sine, cosine, or tangent ratios to scale the remaining side lengths accurately.
Area and Perimeter / Area and Altitude
Most competitor tools fail completely when given these complex combinations. Inputting Area and Perimeter creates a non-linear system of equations. To solve this, our calculator builds a specific quadratic equation and calculates the roots to extract the hidden side lengths. Providing Area and Altitude triggers a similar advanced algebraic substitution process to reverse-engineer the original dimensions.
“Impossible” Geometries
The Triangle Inequality Theorem
A triangle can only exist closed if the sum of its two shorter sides exceeds the length of its longest side. In a right triangle, this means your two legs must add up to a number greater than your hypotenuse. If you input a perimeter value that is too small relative to a specific leg or hypotenuse, the shape physically cannot close.
Conflicting Area and Hypotenuse
A given hypotenuse strictly limits the maximum possible area a right triangle can contain. The area reaches its absolute mathematical peak when the two legs are perfectly equal, creating an isosceles right triangle. If you input an area larger than this threshold, the calculator will reject the inputs.
Areamax = c2 / 4
Altitude Restrictions
The altitude dropped to the hypotenuse is constrained by the shape of the circumscribed circle. Because the hypotenuse forms the diameter of this circle, the altitude can never stretch beyond the circle’s radius. Therefore, your altitude input cannot mathematically exceed half the length of your hypotenuse.
h ≤ c / 2
Real-World Applications for Right Triangles
Construction and Carpentry
Builders use right triangles constantly to ensure foundations are perfectly square before pouring concrete. Carpenters apply the exact same trigonometric principles to calculate the rise and run of a roof pitch. Even cutting the precise angles for stair stringers requires calculating the hypotenuse to ensure each tread lands flush.
Machining and Fabrication
CNC machinists program tool paths by breaking complex diagonal movements into X and Y grid coordinates. Cutting a precise chamfer on a metal edge is simply solving for the hypotenuse of the removed material. Fabricators also use right triangle math to calculate the exact distance between offset holes on a bolted flange.
Surveying and Navigation
Surveyors map uneven terrain by using line-of-sight measurements and calculating the horizontal base of the resulting right triangle. Navigators plotting a course determine their direct-line travel by mapping their latitudinal and longitudinal shifts as the two legs. The resulting hypotenuse provides the absolute shortest path to the destination.
Special Right Triangles to Memorize
The 3-4-5 Triangle
This is the oldest builder’s trick in the book for creating a perfect 90-degree corner without tools. If you measure three units down one wall and four units down the adjacent wall, the diagonal connecting those points must measure exactly five units. If it does not, your corner is not perfectly square.
The 45-45-90 Triangle
This isosceles right triangle features two equal acute angles and two equal legs. It is the exact shape created by cutting a perfect square diagonally in half. To find the hypotenuse, you simply multiply either leg by the square root of two.
c = a × √2
The 30-60-90 Triangle
This triangle forms the basis of standard engineering drafting triangles. The leg opposite the 30-degree angle is exactly half the length of the hypotenuse. The longer leg, opposite the 60-degree angle, equals the shorter leg multiplied by the square root of three.
c = 2 × a
b = a × √3