What this calculator does
The Right Triangle Trigonometry Calculator solves a right triangle when you know the lengths of its two legs — the side opposite the angle of interest (a) and the side adjacent to it (b). From these it computes the hypotenuse, the three primary trigonometric ratios (sine, cosine and tangent), both acute angles, the area and the perimeter. This is a universal geometry/math tool, valid everywhere.
How to use it
Enter the opposite side (a) and the adjacent side (b) in any consistent unit (cm, m, inches — the result uses the same unit). Press calculate. The hypotenuse appears in the highlighted box, and the supporting table lists the trig ratios, angles in degrees, area and perimeter. Because a right triangle's acute angles always add to 90°, the calculator reports both.
The formulas explained
The hypotenuse comes from the Pythagorean theorem, $$c = \sqrt{a^{2} + b^{2}}.$$ The trig ratios are defined relative to angle \(\theta\) that sits opposite side a: \(\sin\theta = \text{opposite} \div \text{hypotenuse}\), \(\cos\theta = \text{adjacent} \div \text{hypotenuse}\), and \(\tan\theta = \text{opposite} \div \text{adjacent}\). The angle itself is $$\theta = \arctan\!\left(\frac{a}{b}\right),$$ and the area of a right triangle is $$A = \tfrac{1}{2} \times a \times b.$$
Worked example
For the classic 3-4-5 triangle, set \(a = 3\) and \(b = 4\). The hypotenuse is $$\sqrt{9 + 16} = \sqrt{25} = 5.$$ Then \(\sin\theta = \tfrac{3}{5} = 0.6\), \(\cos\theta = \tfrac{4}{5} = 0.8\), and \(\tan\theta = \tfrac{3}{4} = 0.75\). The angle \(\theta = \arctan(0.75) \approx 36.87^\circ\), so the other acute angle is \(53.13^\circ\). The area is $$\tfrac{1}{2} \times 3 \times 4 = 6$$ and the perimeter is $$3 + 4 + 5 = 12.$$
FAQ
Which angle is \(\theta\)? \(\theta\) is the angle opposite the side you entered as "a" (the opposite leg). The calculator also shows the other acute angle.
What units should I use? Any length unit, as long as both legs use the same one. The hypotenuse, area and perimeter are returned in that unit (area is squared).
Can I enter the hypotenuse instead of a leg? This tool starts from the two legs. If you know a leg and the hypotenuse, subtract their squares and take the square root to find the missing leg first.