CalculatorBudy Official Logo
Browse Calculators

Right Triangle Calculator

Calculate side lengths, angles, area, and perimeter instantly using the **Pythagorean Theorem** and **SOH CAH TOA**.

How to Use: Enter any **two** known side lengths (e.g., 'a' and 'b') to find the hypotenuse, angles, area, and height. The angle opposite the hypotenuse is always 90°.

Mastering the Right Triangle: A Complete Guide

The right triangle is the cornerstone of trigonometry and one of the most important shapes in geometry. Defined by a single 90-degree internal angle, it serves as the foundation for measuring distances, constructing stable buildings, and even navigating the globe. Whether you are a student solving for 'x', an architect designing a roof, or an engineer calculating forces, understanding the mechanics of a right-angled triangle is essential.

This comprehensive guide will walk you through everything you need to know about right triangles. We will explore the legendary Pythagorean theorem, dive into the trigonometric functions of Sine, Cosine, and Tangent (SOH CAH TOA), and explain how to calculate area, perimeter, and angles with ease.

1. Anatomy of a Right-Angled Triangle

Before diving into formulas, it is crucial to understand the terminology used to describe the parts of a right triangle. A right triangle consists of three sides and three angles, but they have specific names based on their position relative to the right angle.

2. The Pythagorean Theorem

The Pythagorean theorem is arguably the most famous equation in mathematics. Named after the ancient Greek mathematician Pythagoras (though known to Babylonians and Indians centuries earlier), it describes the fundamental relationship between the three sides of a right triangle.

The Formula

The theorem states that the square of the hypotenuse is equal to the sum of the squares of the other two sides. Mathematically, this is expressed as:

$a^2 + b^2 = c^2$

How to Use It

You can rearrange this formula to find any missing side length, provided you know the other two. This is the primary logic used by our Right Triangle Calculator.

Case A: Finding the Hypotenuse (c)

If you know the lengths of both legs (a and b), you can find the hypotenuse by taking the square root of the sum of their squares:

$c = \sqrt{a^2 + b^2}$

Example: If side a = 3 and side b = 4:

Case B: Finding a Leg (a or b)

If you know the hypotenuse (c) and one leg (e.g., b), you can find the missing leg (a) by subtracting the square of the known leg from the square of the hypotenuse:

$a = \sqrt{c^2 - b^2}$

Example: If hypotenuse c = 10 and side b = 8:

3. Trigonometry: SOH CAH TOA

While the Pythagorean theorem handles side lengths, trigonometry is required to find the angles ($\alpha$ and $\beta$) or to find side lengths when you only have one side and an angle. The three primary trigonometric ratios relate the angles of the triangle to the ratios of its sides.

The mnemonic SOH CAH TOA is the standard way to remember these ratios:

SOH: Sine = Opposite / Hypotenuse
CAH: Cosine = Adjacent / Hypotenuse
TOA: Tangent = Opposite / Adjacent

Understanding "Opposite" and "Adjacent"

Unlike the hypotenuse, which is static, the terms "Opposite" and "Adjacent" depend on which angle you are looking from.

Calculating Angles with Inverse Functions

If you know the side lengths, you can calculate the angles using inverse trigonometric functions ($\sin^{-1}$, $\cos^{-1}$, $\tan^{-1}$). Our calculator performs these automatically.

Note: The sum of $\alpha + \beta$ will always equal 90 degrees.

4. Area and Perimeter Formulas

Beyond sides and angles, practical geometry often requires knowing the space a triangle occupies (Area) or the distance around it (Perimeter).

Calculating the Area

The area of a triangle is generally defined as $Area = \frac{1}{2} \times base \times height$. In a right triangle, the two legs (a and b) naturally serve as the base and height because they are perpendicular to each other. This simplifies the calculation significantly:

Area = $\frac{a \times b}{2}$

For example, a triangle with legs of 5 meters and 10 meters has an area of $\frac{5 \times 10}{2} = 25$ square meters.

Calculating the Perimeter

The perimeter is the total distance around the shape. It is calculated by simply summing the lengths of all three sides:

Perimeter = $a + b + c$

Calculating Altitude (Height relative to Hypotenuse)

Sometimes you need the height of the triangle measured from the right angle perpendicular to the hypotenuse (labeled as h in our calculator). The formula for this specific altitude is:

$h = \frac{a \times b}{c}$

5. Special Right Triangles

There are two specific types of right triangles that appear frequently in geometry tests and architecture because their side ratios are consistent and easy to memorize.

The 45-45-90 Triangle (Isosceles Right Triangle)

In this triangle, both legs are equal in length ($a = b$), and the two acute angles are both 45°. This creates an isosceles triangle.

The 30-60-90 Triangle

This triangle is formed by cutting an equilateral triangle in half. The angles are 30°, 60°, and 90°.

6. Pythagorean Triples

A Pythagorean triple consists of three positive integers ($a, b, c$) such that $a^2 + b^2 = c^2$. These are incredibly useful because they represent triangles with perfectly whole-number sides, eliminating the need for messy decimals or square roots.

Triple (a, b, c)Equation CheckMultiples (Scaled)
3, 4, 5$9 + 16 = 25$6-8-10, 9-12-15, 30-40-50
5, 12, 13$25 + 144 = 169$10-24-26, 15-36-39
8, 15, 17$64 + 225 = 289$16-30-34
7, 24, 25$49 + 576 = 625$14-48-50
9, 40, 41$81 + 1600 = 1681$18-80-82

7. Real-World Applications

Why do we calculate right triangles? The applications extend far beyond the classroom.

Construction and Carpentry

Builders use the "3-4-5 method" to ensure corners are perfectly square. If you mark 3 feet on one wall and 4 feet on the adjacent wall, the diagonal distance between the marks must be exactly 5 feet if the corner is 90 degrees. This is essential for laying foundations, framing walls, and installing tile.

Navigation and Surveying

Before GPS, sailors and surveyors used triangulation to determine distances. By knowing the distance between two points (the adjacent side) and measuring the angle to a distant landmark, they could calculate the distance to that landmark (the hypotenuse or opposite side) using tangent or cosine functions.

Roof Pitch and Ramps

Calculating the slope of a roof or a wheelchair ramp involves right triangles. The "rise" (opposite side) and the "run" (adjacent side) determine the angle of elevation. For example, safety regulations for wheelchair ramps often require a 1:12 ratio, forming a specific right triangle that ensures the slope is not too steep.


Frequently Asked Questions (FAQ)

What if I only have the area and one side?
You can solve this algebraically. Since Area = $(a \times b) / 2$, you can rearrange the formula to find the missing leg: $b = (2 \times Area) / a$. Once you have both legs, you can calculate the hypotenuse using the Pythagorean theorem.
Does the 3-4-5 rule work for inches or centimeters?
Yes, the 3-4-5 rule is a ratio, not a specific measurement. It works for inches, feet, meters, centimeters, or miles. As long as the sides are in a ratio of 3:4:5, it forms a perfect right triangle.
Can a right triangle have two 90-degree angles?
No. The sum of all angles in a triangle must equal 180°. If a triangle had two 90° angles, the sum would be 180° without even counting the third angle, making it impossible to close the shape (the sides would be parallel and never meet).
How do I find the angle if I know all three sides?
You can use any inverse trigonometric function. For example, to find angle $\alpha$ (opposite to side $a$), you can use $\sin^{-1}(a/c)$, $\cos^{-1}(b/c)$, or $\tan^{-1}(a/b)$. All three will give you the exact same result in degrees.
What is the difference between Degrees and Radians?
Degrees and Radians are two different units for measuring angles. A full circle is 360 degrees or $2\pi$ radians.
  • To convert degrees to radians: multiply by $\pi / 180$.
  • To convert radians to degrees: multiply by $180 / \pi$.
Our calculator allows you to toggle between these units easily.