NOTACAL logo

Right Triangle Calculator

Right Triangle Calculator

Give us your feedback! Was this useful?

Introduction

The Right Triangle Calculator is a powerful mathematical tool designed to solve for unknown sides, angles, area, and perimeter of a right triangle when given any two known values. This calculator is essential for students studying geometry and trigonometry, professionals in construction and engineering, and anyone who needs to calculate triangle measurements for practical applications.

A right triangle is a triangle in which one angle measures exactly 90 degrees [wolfram-right-triangle]. The side opposite the right angle is called the hypotenuse, and it is always the longest side of the triangle. The other two sides are called legs or cathetus. The relationship between the sides and angles of right triangles is described by the Pythagorean theorem and trigonometric functions, making it possible to calculate any missing measurement when enough information is provided.

The importance of right triangles extends far beyond the classroom. They form the foundation of trigonometry, which is used in fields ranging from physics and engineering to computer graphics and navigation. Architects use right triangle calculations to determine roof slopes and structural loads. Surveyors use them to measure distances and elevations. Even everyday tasks like determining the correct ladder angle for safe painting or calculating the diagonal of a rectangular room rely on right triangle mathematics.

Leg (a)Leg (b)Hypotenuse (c)
Figure 1: A right triangle with legs and hypotenuse — the Pythagorean theorem relates all three sides

How to Use

The Right Triangle Calculator offers multiple calculation modes depending on what values you know and what you need to find.

Finding Unknown Sides

If you know two sides of the right triangle, you can find the third. The most common case is knowing both legs (the two sides forming the right angle) and needing to find the hypotenuse. Simply enter the lengths of the two legs, and the calculator will apply the Pythagorean theorem to find the hypotenuse. If you know the hypotenuse and one leg, the calculator can find the other leg by rearranging the Pythagorean formula.

Finding Unknown Angles

When you know the lengths of the sides, you can find the acute angles using inverse trigonometric functions. The calculator computes the angle whose sine, cosine, or tangent equals the ratio of the appropriate sides. This is particularly useful when you need to determine the slope of a roof, the angle of a ramp, or any other angle measurement in degrees or radians.

Finding Area and Perimeter

The area of a right triangle equals half the product of the two legs. The calculator can compute this directly from the side lengths you provide. The perimeter is simply the sum of all three sides. Both calculations update automatically when you change the side lengths.

Finding Altitude

The altitude drawn from the right angle to the hypotenuse creates two smaller right triangles that are similar to each other and to the original triangle. The calculator can find this altitude using the formula h equals (a multiplied by b) divided by c, where a and b are the legs and c is the hypotenuse.

Solving Right Triangles Step by Step

The right triangle calculator handles several common solving scenarios automatically. When you provide two known values, the system follows a systematic approach to find all remaining measurements.

Given Two Legs: When both legs a and b are known, the hypotenuse is found using the Pythagorean theorem. Once all three sides are known, each acute angle is determined through inverse trigonometric functions. The angle opposite leg a equals the arctan of a divided by b.

Given One Leg and the Hypotenuse: When you know leg a and hypotenuse c, the calculator finds leg b by rearranging the Pythagorean formula. Angles are then computed from the completed side set using trigonometric ratios.

Given One Side and One Angle: When you provide one side and one acute angle, trigonometric ratios determine the remaining sides. For example, if you know the hypotenuse and an angle, the opposite leg equals the hypotenuse multiplied by the sine of that angle. The other acute angle follows from the complementary relationship, as the two acute angles in a right triangle always sum to 90 degrees.

Formulas and Calculations

Pythagorean Theorem

The fundamental relationship in a right triangle is the Pythagorean theorem:

a2+b2=c2a^2 + b^2 = c^2
[wolfram-right-triangle]

Where a and b are the legs (the sides forming the right angle), and c is the hypotenuse (the side opposite the right angle). This formula allows you to find any side when you know the other two.

To find the hypotenuse: c equals the square root of (a squared plus b squared)

To find a leg: a equals the square root of (c squared minus b squared)

Trigonometric Functions

The three main trigonometric functions relate the angles of a right triangle to the ratios of its sides:

sin(θ)=oppositehypotenuse\sin(\theta) = \frac{\text{opposite}}{\text{hypotenuse}}
[khan-trig]
cos(θ)=adjacenthypotenuse\cos(\theta) = \frac{\text{adjacent}}{\text{hypotenuse}}
[khan-trig]
tan(θ)=oppositeadjacent\tan(\theta) = \frac{\text{opposite}}{\text{adjacent}}
[khan-trig]

To find an angle when you know the side ratios, use the inverse functions: arcsin, arccos, or arctan.

Complementary Angle Relationships

In any right triangle, the two acute angles are complementary, meaning they sum to 90 degrees. This relationship follows from the fact that the interior angles of any triangle sum to 180 degrees. With the right angle accounting for 90 degrees, the remaining two angles must share the remaining 90 degrees between them.

This property provides a useful verification method. If you find one acute angle through trigonometric calculation, subtracting it from 90 gives the other acute angle directly. It also simplifies problems where only one angle measurement is available, as the second angle requires no additional computation.

Area Formula

The area of a right triangle is particularly simple to calculate:

A=12×a×bA = \frac{1}{2} \times a \times b

This formula works because the two legs are perpendicular to each other, so one leg can be considered the base and the other as the height.

Perimeter Formula

The perimeter is simply the sum of all three sides:

P=a+b+cP = a + b + c

Altitude to Hypotenuse

The altitude from the right angle to the hypotenuse can be found using:

h=abch = \frac{ab}{c}

This altitude also divides the hypotenuse into two segments, each of which equals the corresponding leg squared divided by the hypotenuse.

Special Right Triangles

30-60-90 Triangle

A 30-60-90 triangle has angles measuring exactly 30 degrees, 60 degrees, and 90 degrees. The side ratios are fixed: the side opposite the 30-degree angle equals 1, the side opposite the 60-degree angle equals the square root of 3, and the hypotenuse equals 2. This triangle appears frequently in geometry and can be derived from an equilateral triangle cut in half.

1√32
Figure 2: The 30-60-90 triangle has fixed side ratios of 1 : √3 : 2

Derivation of the 30-60-90 Triangle

The 30-60-90 triangle is constructed by bisecting an equilateral triangle along its altitude. In an equilateral triangle with side length 2, the altitude creates two congruent right triangles. The altitude has length equal to the square root of 3, the base of each right triangle measures 1, and the original side length of 2 becomes the hypotenuse. This geometric derivation provides the fixed ratio of 1 to square root of 3 to 2 for the sides opposite 30 degrees, 60 degrees, and 90 degrees respectively.

45-45-90 Triangle

A 45-45-90 triangle is an isosceles right triangle with two 45-degree angles and one 90-degree angle. The side ratios are 1:1:square root of 2. Each leg has equal length, and the hypotenuse is the leg length multiplied by the square root of 2. This triangle is fundamental to square geometry and appears in many practical applications.

11√2
Figure 3: The 45-45-90 triangle has fixed side ratios of 1 : 1 : √2

Recognizing Special Right Triangles

Before performing full calculations, check whether your triangle matches a special case. If one leg is exactly half the hypotenuse, the triangle is a 30-60-90 triangle with immediately known angle measures. If both legs are equal, the triangle is a 45-45-90 triangle with two 45-degree angles. Recognizing these patterns allows you to determine all sides and angles without extensive computation. Special right triangles appear frequently in standardized tests, construction layouts, and geometric proofs.

Real-World Examples

Example 1: Ladder Safety

A 15-foot ladder leans against a wall, with its base 9 feet from the wall. What angle does the ladder make with the ground? Using cosine: cos(theta) = adjacent/hypotenuse = 9/15 = 0.6. Theta = arccos(0.6) = 53.13 degrees. This angle is important for ensuring safe ladder placement according to safety guidelines.

12 ft9 ft15 ft (ladder)
Figure 4: A 15-ft ladder placed 9 ft from the wall
— the wall height works out to 12 ft

Example 2: Roofing

A roof has a rise of 8 feet over a run of 20 feet. What is the roof pitch angle? Using tangent: tan(theta) = opposite/adjacent = 8/20 = 0.4. Theta = arctan(0.4) = 21.8 degrees. This calculation helps determine materials needed and ensures proper drainage.

8 ft20 ftRafter
Figure 5: Roof slope as a right triangle
— 8 ft rise over 20 ft run gives a 21.8° pitch

Example 3: Surveying

A surveyor measures the angle of elevation to the top of a tree as 35 degrees from a distance of 50 meters. How tall is the tree? Using tangent: tan(35) = height/50, so height = 50 multiplied by tan(35) = 50 multiplied by 0.7 = 35 meters. This is a common application in land surveying and forestry.

35 m50 mLine of sight
Figure 6: Surveying a tree at 50 m distance with 35° elevation angle
— height is 35 m

Example 4: Construction

A ramp needs to rise 3 feet. For ADA compliance, the ramp angle must not exceed 4.76 degrees. What minimum ramp length is required? Using sine: sin(4.76) = 3/length, so length = 3/sin(4.76) = 3/0.083 = 36.1 feet. This ensures the ramp meets accessibility requirements.

3 ft36 ft36.1 ft (ramp)
Figure 7: ADA-compliant ramp
— a 3 ft rise requires at least 36.1 ft of ramp length

Example 5: Television Screen Size

A 55-inch television has a 16:9 aspect ratio. What are the screen dimensions? Total ratio = 16 + 9 = 25. Width = (16/25) multiplied by 55 = 35.2 inches. Height = (9/25) multiplied by 55 = 19.8 inches. Verify using Pythagorean: 35.2 squared + 19.8 squared = 1239 + 392 = 1631, square root = 40.4, close to 55 when accounting for bezel.

19.8 in35.2 in55 in (diag.)
Figure 8: A 55-inch 16:9 TV
— the diagonal forms the hypotenuse of a 35.2 × 19.8 inch right triangle

Example 6: Physics and Force Vectors

A box weighing 100 Newtons rests on a ramp inclined at 30 degrees. The weight acts straight downward and must be resolved into components parallel and perpendicular to the ramp surface. The parallel component equals 100 multiplied by the sine of 30 degrees, which equals 50 Newtons. This component determines how fast the box slides down the ramp. The perpendicular component equals 100 multiplied by the cosine of 30 degrees, which equals approximately 86.6 Newtons. This component determines the normal force between the box and the ramp surface. Right triangle trigonometry is essential for decomposing vectors in physics and engineering mechanics.

86.6 N50 N100 N (weight)
Figure 9: Force vector decomposition on a 30° incline
— weight resolved into parallel (50 N) and perpendicular (86.6 N) components

Applications in Technology

Computer Graphics

In 3D graphics and game development, right triangle trigonometry determines camera angles, lighting directions, and object positioning. The calculation of surface normals and reflection angles relies on these fundamental relationships.

GPS and navigation systems use triangulation based on angles and distances, many of which involve right triangle relationships. Determining position from multiple satellite signals requires solving triangle problems.

Engineering

Structural engineers use right triangle calculations to analyze forces on slopes, determine bridge support requirements, and calculate load distributions. The strength of trusses and other structural elements depends on these calculations.

Architecture

Architects use trigonometry to create roof designs, calculate window angles for optimal sunlight, and determine structural dimensions. Computer-aided design software relies on these mathematical relationships.

Limitations

Angle Measurement

The calculator typically works in degrees for angle measurements. If you need results in radians, conversion is necessary: radians = degrees multiplied by (pi/180).

Extremely Small or Large Values

Very small differences between similar-length sides can lead to precision issues due to floating-point arithmetic limitations. For extremely large measurements, ensure consistent units throughout.

Input Validation

The calculator requires valid positive numbers. Negative values, zero, or non-numeric inputs will produce errors or require correction before calculation.

Practical Tips

Using Inverse Functions

When you know the side ratio but need the angle, use the inverse trigonometric function that matches your known ratio. Arctan is most common for real-world slope measurements.

Checking Results

Always verify your results using alternative methods. For example, after finding all three sides, check that they satisfy the Pythagorean theorem.

Unit Consistency

Ensure all measurements use the same units before calculating. Convert inches to feet or meters to centimeters as needed to maintain accuracy.

Precision

Remember that trigonometric calculations produce approximate results due to floating-point limitations. For construction or engineering applications, always include appropriate safety margins.

Learning SOHCAHTOA

Memorize SOHCAHTOA to recall trigonometric ratios: Sine equals Opposite over Hypotenuse, Cosine equals Adjacent over Hypotenuse, Tangent equals Opposite over Adjacent. This mnemonic helps when solving right triangles manually and when verifying calculator results.

Verifying Results

After computing all sides and angles, verify your results using the Pythagorean theorem. Confirm that a squared plus b squared equals c squared to within the expected precision. This independent check catches data entry errors and formula misapplications before they affect your conclusions.

Frequently Asked Questions

What is the Pythagorean theorem?
In a right triangle, a^2 + b^2 = c^2 where c is the hypotenuse. Used to find any missing side when two are known.
Can I calculate angles if I know two sides?
Yes. Use inverse trig functions: sin^-1, cos^-1, or tan^-1. The right angle is always 90 degrees.
How is the area calculated?
Area = 1/2 x base x height, where base and height are the two legs forming the right angle.
How do I find the perimeter?
Perimeter = a + b + c, sum of all three sides. The calculator finds missing sides first.
Does this work for non-right triangles?
No. This calculator is for right triangles only. Other triangles need Law of Sines or Law of Cosines.
What is SOHCAHTOA?
A mnemonic for the three basic trigonometric ratios: Sine equals Opposite divided by Hypotenuse, Cosine equals Adjacent divided by Hypotenuse, Tangent equals Opposite divided by Adjacent.
What are Pythagorean triples?
Sets of three integers satisfying a^2 + b^2 = c^2, such as 3-4-5 and 5-12-13. Memorizing common triples speeds up right triangle problem solving.
How do acute angles relate in a right triangle?
The two acute angles always sum to 90 degrees. Finding one automatically gives the other by subtracting from 90.
Does the calculator support radians?
The calculator operates in degrees by default. Convert radians to degrees by multiplying by 180 divided by pi.

Last updated: July 10, 2026

UB

UnByte — Independent Software Engineering

Every calculator references authoritative sources — Editorial policy