User Rating 0.0
Total Usage 0 times
Is this tool helpful?

Your feedback helps us improve.

About

A right triangle is fully determined by two independent measurements. Given any two of the three sides (a, b, c) or one side and one acute angle, all remaining elements can be recovered through the Pythagorean relation a2 + b2 = c2 and inverse trigonometric functions. Errors in angle computation propagate into structural layouts, CNC machining offsets, and surveying baselines. A 0.5° miscalculation on a 10m rafter produces an offset of approximately 87mm at the endpoint.

This calculator solves all six unknowns (α, β, a, b, c, plus area and perimeter) from any valid pair of inputs. It assumes Euclidean geometry on a flat plane. Results are limited by IEEE 754 double-precision floating-point arithmetic, yielding approximately 15 significant digits. For geodetic triangles on Earth’s surface where sides exceed 100km, spherical excess becomes non-negligible and this tool should not be used.

right triangle angle calculator trigonometry pythagorean theorem triangle solver geometry calculator

Formulas

All computations derive from the Pythagorean theorem and the definitions of sine, cosine, and tangent in a right triangle with legs a (opposite α), b (opposite β), and hypotenuse c.

a2 + b2 = c2

Angle recovery from two known sides:

α = atan(ab)
β = 90° α

Side recovery from one side and one angle:

a = c sin(α)
b = c cos(α)

Derived quantities:

A = 12 a b
P = a + b + c
h = a bc

Where a = leg opposite angle α, b = leg opposite angle β, c = hypotenuse, A = area, P = perimeter, h = altitude to hypotenuse.

Reference Data

Triangle NameAngle αAngle βSide Ratio a : b : cExact ValuesCommon Use
45-45-9045°45°1 : 1 : √2sin(45°) = √22Diagonal of a square
30-60-9030°60°1 : √3 : 2sin(30°) = 12Equilateral triangle bisection
3-4-536.87°53.13°3 : 4 : 5Smallest Pythagorean tripleConstruction layout verification
5-12-1322.62°67.38°5 : 12 : 13Pythagorean tripleRoof pitch calculations
8-15-1728.07°61.93°8 : 15 : 17Pythagorean tripleFraming and carpentry
7-24-2516.26°73.74°7 : 24 : 25Pythagorean tripleSurveying baselines
9-40-4112.68°77.32°9 : 40 : 41Pythagorean tripleLong-span structures
20-21-2943.60°46.40°20 : 21 : 29Pythagorean tripleNear-isosceles right triangle
11-60-6110.39°79.61°11 : 60 : 61Pythagorean tripleShallow-angle ramps
6-8-1036.87°53.13°6 : 8 : 10Scaled 3-4-5Double-scale layout
Approx 1:2 slope26.57°63.43°1 : 2 : √5tan(α) = 0.5Common roof pitch (6:12)
Approx 1:3 slope18.43°71.57°1 : 3 : √10tan(α) = 0.333Gentle slope / ADA ramp
Key Trigonometric Values
ReferenceAnglesincostan
- 0°010
- 15°0.25880.96590.2679
- 30°0.50.86600.5774
- 45°0.70710.70711
- 60°0.86600.51.7321
- 75°0.96590.25883.7321
- 90°10

Frequently Asked Questions

Any two independent measurements suffice: two sides, or one side plus one acute angle. Two angles alone (other than the fixed 90°) cannot determine the triangle because they only fix the shape, not the scale. For example, providing leg a = 3 and leg b = 4 yields hypotenuse c = 5, α36.87°, and β53.13°.
IEEE 754 double-precision provides roughly 15 significant decimal digits. For side lengths below 1e-8 or above 1e+15, accumulated rounding in atan and sqrt may reduce output accuracy to 10 - 12 digits. The calculator rounds displayed results to 4 decimal places, which masks sub-ulp errors in all practical scenarios.
No. A right triangle's acute angles must satisfy 0° < α < 90°. An angle of 0° collapses the triangle into a line segment, and 90° would create a second right angle, violating the angle-sum constraint of 180°. The calculator rejects both and displays a validation error.
The altitude h from the right-angle vertex to the hypotenuse equals a · bc. It appears in structural engineering (maximum beam depth), optics (lens sag calculations), and the geometric mean relations. The two segments of the hypotenuse created by this altitude satisfy a2 = c · p and b2 = c · q, where p and q are the segments.
The calculator displays all three units simultaneously. The conversion factors are: 1° = π180 rad 0.01745 rad, and 1° = 109 grad. Radians are standard in most programming languages and physics equations. Gradians (also called gon) are used in European surveying instruments.
If you enter two sides labeled as legs, there is no constraint violation because any two positive numbers can be legs of a right triangle. However, if you enter a leg value greater than or equal to the hypotenuse, the calculator rejects the input because the hypotenuse must always be the longest side. Specifically, a < c and b < c must hold.