Right Triangle Calculator: Solve with Trigonometry

Updated 14 November 2026

A right triangle has one 90° angle. If you know two sides, or one side and one acute angle, you can find its remaining sides and angles.

Two useful rules
\[a^2+b^2=c^2,\qquad A+B=90^\circ\]

Here, \(c\) is the hypotenuse—the side opposite the right angle. Relative to angle \(A\), side \(a\) is opposite and side \(b\) is adjacent.

Solve a right triangle

Choose the measurements you know. Use the same length unit throughout. Angles are in degrees.

Choose the right formula

Two sides known: Pythagoras
\[c=\sqrt{a^2+b^2},\qquad b=\sqrt{c^2-a^2}\]

Use addition to find the hypotenuse, and subtraction to find a leg. A hypotenuse must be longer than either leg.

One side and an acute angle known: trigonometry
\[\sin A=\frac{a}{c},\qquad\cos A=\frac{b}{c},\qquad\tan A=\frac{a}{b}\]

“Opposite” and “adjacent” depend on which acute angle you choose. These labels refer to angle A in the diagram above.

Example 1: two legs of 3 cm and 4 cm

\[c=\sqrt{3^2+4^2}=\sqrt{25}=5\,\mathrm{cm}\]

Then \(A=\tan^{-1}(3/4)\approx36.8699^\circ\), and \(B=90^\circ-A\approx53.1301^\circ\).

Example 2: a 10 m hypotenuse and 30° angle

\[a=10\sin30^\circ=5\,\mathrm{m}\]
\[b=10\cos30^\circ=5\sqrt{3}\approx8.66025\,\mathrm{m}\]

The other acute angle is \(60^\circ\). The leg opposite the 30° angle is half the hypotenuse.

Two common special triangles

In a 45°–45°–90° triangle, the legs are equal and the side ratio is \(1:1:\sqrt2\). In a 30°–60°–90° triangle, the sides opposite those angles are in the ratio \(1:\sqrt3:2\).

One angle alone does not fix the side lengths. Similar right triangles can have the same angles and different sizes. You need at least one side length. The Pythagorean theorem applies only to right triangles.

For standard trigonometric values, see the ratio table and calculator. If the perimeter and two sides are given instead, use the perimeter-based missing-side method.