08 Tech Group
Back to Calculator Hub

Right Triangle Calculator

Math
Hypotenuse5
Perimeter12
Area6

Use this Right Triangle Calculator to find missing side lengths and angles in a right triangle. Enter known side lengths or a side and angle, choose degrees or radians when working with an angle, and use the results to determine the remaining measurements, perimeter, and area.

What Is a Right Triangle Calculator?

A right triangle calculator is a mathematical tool for solving a right-angled triangle, which is a triangle containing one 90° angle.

It uses two fundamental ideas:

  • The Pythagorean theorem to calculate relationships between the three sides.

  • Trigonometric functions such as sine, cosine, and tangent to connect side lengths with angles.

The three sides of a right triangle have specific names:

  • Legs — the two sides that form the 90° angle.

  • Hypotenuse — the side opposite the 90° angle and always the longest side.

  • Opposite side — the side directly across from a chosen acute angle.

  • Adjacent side — the leg next to a chosen acute angle.

The calculator is useful when you know enough information about a right triangle to determine its missing measurements.

How to Use the Right Triangle Calculator

  1. Enter the known measurements. Depending on the problem, provide two side lengths or a side length together with an angle.

  2. Confirm that the triangle is right-angled. One angle must be exactly 90°.

  3. Choose the angle unit when an angle is part of your input. Use degrees or radians as appropriate.

  4. Calculate the missing measurements.

  5. Review the results, including missing sides, angles, perimeter, and area where applicable.

If you are working from a diagram, identify the 90° angle first. This makes it much easier to determine which side is the hypotenuse.

Understanding the Inputs

Base

The base is one of the legs of the right triangle when it is positioned as the horizontal side in a typical diagram.

Its value should be entered as a positive length using the unit appropriate for your problem, such as centimeters, meters, inches, or feet.

The calculator performs the mathematical calculation using the number you enter; it does not require a particular physical unit.

Height

The height is the other leg forming the right angle with the base.

When both the base and height are known, you can determine the hypotenuse using the Pythagorean theorem:

c = √(a² + b²)

where a and b are the two legs and c is the hypotenuse.

Hypotenuse

The hypotenuse is always opposite the 90° angle.

It is also always the longest side of a right triangle.

If the two legs are known, the hypotenuse can be calculated directly. If the hypotenuse and one leg are known, the other leg can be found by rearranging the Pythagorean theorem.

Angle

An angle input represents one of the triangle's acute angles when solving a right triangle using trigonometry.

Pay close attention to whether the calculator expects the angle in degrees or radians. Using the wrong angle unit can produce an incorrect result.

Understanding the Results

The calculator can determine the missing measurements of a right triangle and provide calculated geometric values such as:

Result Meaning Missing side The unknown length calculated from the available side and/or angle information Missing angle The unknown acute angle calculated using trigonometry Hypotenuse The side opposite the 90° angle Perimeter The sum of all three side lengths Area The space enclosed by the triangle

For example, if the two legs are 3 and 4, the calculator can determine that the hypotenuse is 5. The perimeter is therefore 12 and the area is 6 square units.

The current calculator provides these types of measurements as part of its results.

The Pythagorean Theorem

The Pythagorean theorem is the fundamental relationship between the sides of a right triangle:

a² + b² = c²

Where:

  • a = first leg

  • b = second leg

  • c = hypotenuse

Because the hypotenuse is the side opposite the right angle, c must be the longest side.

Finding the Hypotenuse

If both legs are known:

c = √(a² + b²)

For example, if:

a = 6

b = 8

then:

c = √(6² + 8²)

c = √(36 + 64)

c = √100 = 10

So the hypotenuse is 10 units.

Finding a Missing Leg

If the hypotenuse and one leg are known:

a = √(c² − b²)

For example, if the hypotenuse is 13 and one leg is 5:

a = √(13² − 5²)

a = √(169 − 25)

a = √144 = 12

The missing leg is therefore 12 units.

How Trigonometry Solves a Right Triangle

When an angle and a side are known, trigonometric functions can be used to calculate the missing measurements.

The three fundamental relationships are:

sin(θ) = opposite ÷ hypotenuse

cos(θ) = adjacent ÷ hypotenuse

tan(θ) = opposite ÷ adjacent

These are often remembered as SOH-CAH-TOA:

  • SOH: Sine = Opposite / Hypotenuse

  • CAH: Cosine = Adjacent / Hypotenuse

  • TOA: Tangent = Opposite / Adjacent

The calculator uses these relationships to connect side lengths and angles.

Finding an Angle

When the relevant sides are known, inverse trigonometric functions can be used:

θ = sin⁻¹(opposite ÷ hypotenuse)

or

θ = cos⁻¹(adjacent ÷ hypotenuse)

or

θ = tan⁻¹(opposite ÷ adjacent)

The resulting angle may be expressed in degrees or radians depending on the selected angle unit.

Degrees vs. Radians

Degrees and radians are two different ways to measure angles.

A full circle contains:

360° = 2π radians

For example:

90° = π/2 radians

180° = π radians

When using trigonometric functions, the angle unit matters. Entering an angle in degrees while the calculation expects radians, or vice versa, can produce an incorrect result. The calculator therefore allows the appropriate angle unit to be selected when angle-based calculations are used.

Calculating the Area of a Right Triangle

The area of a right triangle is particularly simple to calculate because its two legs are perpendicular.

The formula is:

Area = ½ × base × height

For a triangle with a base of 6 units and a height of 8 units:

Area = ½ × 6 × 8

Area = 24 square units

Notice that area is expressed in square units, while side lengths are expressed in linear units.

Calculating the Perimeter

The perimeter is the total distance around the triangle.

The formula is:

Perimeter = a + b + c

For a right triangle with sides 6, 8, and 10:

Perimeter = 6 + 8 + 10 = 24 units

The calculator can use the calculated side lengths to determine the perimeter.

Example: Finding a Missing Hypotenuse

Suppose a right triangle has legs of:

  • Base = 6

  • Height = 8

Using the Pythagorean theorem:

c = √(6² + 8²)

c = √100

c = 10

The triangle therefore has side lengths of 6, 8, and 10.

Its other measurements are:

  • Hypotenuse: 10 units

  • Perimeter: 24 units

  • Area: 24 square units

This is a classic 3-4-5 triangle scaled by a factor of 2.

Example: Using an Angle

Suppose a right triangle has:

  • Hypotenuse = 10

  • Acute angle = 30°

The side opposite the 30° angle is:

opposite = 10 × sin(30°)

Since:

sin(30°) = 0.5

the opposite side is:

5 units

The adjacent side is:

adjacent = 10 × cos(30°)

which is approximately:

8.66 units

So the triangle has approximately:

  • Hypotenuse: 10

  • Opposite side: 5

  • Adjacent side: 8.66

These relationships correspond to the standard trigonometric solution for a right triangle.

Special Right Triangles

Some right triangles have particularly useful side relationships.

45-45-90 Triangle

A 45-45-90 triangle has two equal legs.

Its side ratio is:

1 : 1 : √2

If each leg is 5 units, the hypotenuse is:

5√2 ≈ 7.071 units

The two acute angles are both 45°.

30-60-90 Triangle

A 30-60-90 triangle has the side ratio:

1 : √3 : 2

The shortest side is opposite the 30° angle, while the longest side is the hypotenuse.

These special relationships can provide a quick way to verify certain calculator results.

How to Identify the Opposite and Adjacent Sides

The terms opposite and adjacent depend on the angle you are using as your reference.

For a selected acute angle:

  • Opposite is the side directly across from that angle.

  • Adjacent is the leg touching the angle.

  • Hypotenuse is always opposite the 90° angle.

If you switch to the other acute angle, the roles of the two legs switch: the side that was opposite becomes adjacent, and vice versa.

This is one of the most common sources of mistakes when applying trigonometric formulas.

Common Mistakes When Solving Right Triangles

Using the Wrong Side as the Hypotenuse

The hypotenuse is not simply "the longest-looking side" in a drawing. It is specifically the side opposite the 90° angle.

Confusing Opposite and Adjacent

These labels depend on the angle being analyzed. Always identify the reference angle before choosing sine, cosine, or tangent.

Mixing Degrees and Radians

A trigonometric calculation can produce the wrong answer if the angle is entered using the wrong unit.

Using the Pythagorean Theorem for a Non-Right Triangle

The standard equation:

a² + b² = c²

applies specifically to right triangles.

It should not be applied to an arbitrary triangle without the appropriate geometric relationship.

Entering Impossible Side Lengths

The hypotenuse must be longer than either leg.

For example, a triangle cannot have legs of 5 and 12 with a hypotenuse of 10 because:

5² + 12² = 169

which would require a hypotenuse of 13.

Rounding Too Early

Keeping additional decimal places during intermediate calculations can prevent small rounding errors from affecting the final result.

Round the final answer to the level of precision appropriate for your problem.

When to Use a Right Triangle Calculator

This calculator can be useful for:

  • Geometry homework

  • Trigonometry exercises

  • Checking manual calculations

  • Finding unknown side lengths

  • Finding missing acute angles

  • Working with elevation or slope problems

  • Basic engineering calculations

  • Construction and measurement problems

  • Verifying geometric diagrams

  • Learning how sine, cosine, and tangent relate to triangle sides

For practical measurements, make sure the units of all lengths are consistent before interpreting the result.

Limitations and Important Considerations

This calculator is specifically intended for right triangles. A triangle must contain a 90° angle for the Pythagorean theorem and the standard right-triangle relationships described here to apply.

The mathematical result also depends on the quality and precision of the input.

For real-world measurements:

  • Measuring instruments may have limited precision.

  • Input values may already be rounded.

  • Different rounding choices can produce slightly different displayed results.

  • The physical situation may not form a perfect right triangle.

The calculator should therefore be treated as a mathematical calculation and estimation tool rather than evidence that a physical measurement is exact.

When using trigonometry, always verify that the selected angle unit matches the values you are entering.

Calculate the Missing Measurements

Enter the known side lengths or angle information into the calculator, select the correct angle unit when necessary, and calculate the remaining measurements of your right triangle.

Use the results to check your work, explore the relationships between sides and angles, or solve a geometry and trigonometry problem more quickly.

Frequently Asked Questions

What is a right triangle?+

A right triangle is a triangle with one angle measuring exactly 90°. The side opposite that angle is called the hypotenuse, and it is always the longest side.

How do you find the missing side of a right triangle?+

If two sides are known, the Pythagorean theorem can be used: a² + b² = c² If an angle and a side are known, sine, cosine, or tangent can be used depending on the relationship between the known side and the angle.

What is the Pythagorean theorem?+

The Pythagorean theorem states that for a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c²

How do you find the hypotenuse?+

If the two legs are known, calculate: c = √(a² + b²) For example, legs of 6 and 8 produce a hypotenuse of 10.

How do you find the missing angle?+

Use an inverse trigonometric function based on the known sides: sin⁻¹, cos⁻¹, or tan⁻¹ The appropriate function depends on which sides are known relative to the angle.

What is SOH-CAH-TOA?+

SOH-CAH-TOA is a memory aid for the three basic right-triangle trigonometric relationships: SOH: sin = opposite / hypotenuse CAH: cos = adjacent / hypotenuse TOA: tan = opposite / adjacent

Can I use this calculator with degrees and radians?+

Yes. The calculator supports selecting the angle unit when working with angle-based calculations. Use degrees for values such as 30° or 45°, and radians for values such as π/6 or π/4.

How do I know which side is the hypotenuse?+

Find the 90° angle first. The side directly opposite that angle is the hypotenuse.

Can a right triangle have two right angles?+

No. The angles of a triangle add up to 180°. If one angle is already 90°, the other two must be acute angles whose measures add up to 90°.

What is the area of a right triangle?+

The area is: Area = ½ × base × height The base and height are the two perpendicular legs of the right triangle.

What is the perimeter of a right triangle?+

The perimeter is the sum of its three side lengths: Perimeter = a + b + c

Can the calculator solve a triangle from one side and one angle?+

Yes, when the provided measurements are sufficient to determine the triangle. A right triangle already has one known 90° angle, so an appropriate side-and-angle combination can provide enough information to calculate the remaining measurements.

Share the tool
Right Triangle Calculator — Sides & Angles | 08 Tech Group