The Right Triangle Calculator solves any right triangle from any two known values. Four input modes: two legs (a and b), leg and hypotenuse, leg and angle, or hypotenuse and angle. Given any two values, the calculator instantly finds all three sides, both non-right angles, area, perimeter, inradius,...
KNOWN VALUES
shorter leg
other leg
LEG a
6
LEG b
8
HYPOTENUSE c
10
ANGLE A
36.869898°
ANGLE B
53.130102°
ANGLE C
90°
✓ Pythagoras check: 6² + 8² = 100 = 10²
STEP-BY-STEP
Given: leg a = 6, leg b = 8
Hypotenuse: c = √(a²+b²) = √(36+64) = 10
Angle A = arctan(a/b) = arctan(6/8) = 36.869898°
Angle B = 90° − A = 53.130102°
QUICK EXAMPLES
| Function | Angle A | Definition | Angle B |
|---|---|---|---|
| sin | 0.6 | a/c = 6/10 | 0.8 |
| cos | 0.8 | b/c = 8/10 | 0.6 |
| tan | 0.75 | a/b = 6/8 | 1.333333 |
SOHCAHTOA
| NAME | FORMULA | DESCRIPTION |
|---|---|---|
| Pythagorean theorem | c² = a² + b² | Find hypotenuse from two legs |
| Leg from hyp | a = √(c²−b²) | Find missing leg |
| Angle from legs | A = arctan(a/b) | Find angle from two legs |
| SOH | sin(A) = a/c (opposite/hypotenuse) | Sine trig ratio |
| CAH | cos(A) = b/c (adjacent/hypotenuse) | Cosine trig ratio |
| TOA | tan(A) = a/b (opposite/adjacent) | Tangent trig ratio |
| Area | A = ½ × a × b | Half the product of the two legs |
| Inradius | r = (a + b − c) / 2 | Radius of inscribed circle |
| Circumradius | R = c / 2 | Half the hypotenuse — Thales theorem |
| Altitude to c | h = (a × b) / c | Height dropped to the hypotenuse |
Select your input mode: Two Legs if you know both legs a and b; Leg + Hypotenuse if you know one leg and the hypotenuse; Leg + Angle if you know one leg and angle A; Hypotenuse + Angle if you know the hypotenuse and angle A.
Enter your two known values. For angles, enter degrees between 0 and 90 (exclusive). The calculator validates that the values form a valid right triangle.
All six results appear instantly: the three sides (a, b, c), both angles (A and B), area, perimeter, inradius, circumradius, and altitude to the hypotenuse.
Check the SOHCAHTOA panel — sin, cos, and tan are shown for both angle A and angle B with their definitions (opposite/hypotenuse etc.) and computed values.
Use the quick example buttons to load the classic 3-4-5 triangle, the 5-12-13 triangle, and the special 45-45-90 and 30-60-90 cases.
Example 1 (two legs 3-4-5): c=√(9+16)=5. A=arctan(3/4)=36.87°, B=53.13°. Area=6. Inradius=1, Circumradius=2.5. sin(A)=0.6, cos(A)=0.8, tan(A)=0.75. Example 2 (angle+hypotenuse A=30°,c=10): a=10×sin30°=5, b=10×cos30°=8.66. Example 3 (isosceles 45-45-90 a=7): b=7, c=7√2=9.899.
Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.