Right Triangle Calculator
Pythagoras + TrigSolve any right triangle from two known values. Enter sides \(a, b, c\) (with \(c\) the hypotenuse) or acute angles \(\alpha\) and \(\beta\) and get all remaining sides, angles, area, perimeter and altitude, with a Pythagorean check.
Ideal for students, teachers, engineers and exam prep: consistent notation, unit label support, and formulas you can reuse in your own work.
Interactive right triangle solver
Controls how \(\alpha\) and \(\beta\) are interpreted and displayed.
Optional label used only in the output (formulas are dimensionless).
Side opposite angle \(\alpha\).
Side opposite angle \(\beta\).
Side opposite the right angle (must be the longest side).
Acute angle opposite side a. Must be between 0 and 90° (or 0 and \(\pi/2\) rad).
Other acute angle. In a right triangle \(\alpha + \beta = 90^\circ\).
Input rule:
Provide exactly two of the five fields above. Supported pairs:
- (a, b)
- (a, c) or (b, c)
- (c, \(\alpha\)) or (c, \(\beta\))
- (a, \(\alpha\)) or (b, \(\beta\))
Right triangle basics
A right triangle has one angle equal to \(90^\circ\). We adopt the standard notation:
- \(c\) – the hypotenuse, opposite the right angle.
- \(a\) and \(b\) – the legs, adjacent to the right angle.
- \(\alpha\) – the acute angle opposite side \(a\).
- \(\beta\) – the acute angle opposite side \(b\).
The three key relationships are:
- Pythagorean theorem: \[ a^2 + b^2 = c^2 \]
- Angle sum: \[ \alpha + \beta = 90^\circ \quad (\text{or } \alpha + \beta = \pi/2 \text{ rad}) \]
- Trigonometry (for angle \(\alpha\)): \[ \sin\alpha = \frac{a}{c}, \quad \cos\alpha = \frac{b}{c}, \quad \tan\alpha = \frac{a}{b} \]
Solving a right triangle from two known values
Given both legs \(a\) and \(b\)
If you know the two legs:
The area is \(A = \frac{1}{2}ab\) and the perimeter is \(P = a + b + c\).
Given a leg and the hypotenuse
Suppose you know leg \(a\) and hypotenuse \(c\) (with \(c > a\)):
The case \((b, c)\) is analogous.
Given hypotenuse and angle
If you know \(c\) and an acute angle \(\alpha\):
Given leg and its opposite angle
If you know leg \(a\) and angle \(\alpha\) opposite that leg:
Again, \(\beta = 90^\circ - \alpha\). The case \((b, \beta)\) is symmetric.
Altitude to the hypotenuse
The altitude from the right angle to the hypotenuse (call it \(h_c\)) is related to the area in two ways:
This quantity appears in similarity proofs and in geometric constructions involving right triangles.