Updated on April 21st, 2026

Right Triangle Calculator

Created By Jehan Wadia

Please fix the errors highlighted below.
Select Known Values
Two Sides
Side + Angle
Side + Area
Side + Perimeter
Side + Altitude h
Angle + Area
Angle + Perimeter
Angle + Altitude h
Area + Perimeter
Supports: numbers, pi/3, pi/4, 2pi/5, etc.
Supports: numbers, pi/3, pi/4, 2pi/5, etc.
Triangle Diagram
All Triangle Properties
Step-by-Step Solution
Side Lengths Comparison

Introduction

A right triangle is a triangle that has one angle equal to 90 degrees. The longest side, called the hypotenuse, sits across from the right angle. The other two sides are called legs. If you know just two measurements of a right triangle, you can figure out everything else — all three sides, all three angles, the area, the perimeter, and more.

This Right Triangle Calculator makes that process fast and simple. Choose the values you already know — like two sides, a side and an angle, or even the area and perimeter — and the calculator does the rest. It uses the Pythagorean theorem, trigonometry, and basic geometry formulas to find every missing measurement. You'll also get a labeled diagram of your triangle, a step-by-step solution that shows the math behind each answer, and a bar chart comparing the side lengths. Whether you're doing homework, checking your work, or solving a real-world problem, this tool gives you accurate results in seconds.

How to use our Right Triangle Calculator

Enter any two known measurements of a right triangle, and this calculator will find all missing sides, angles, area, perimeter, altitude, and more. It also shows a diagram, a step-by-step solution, and a bar chart comparing the side lengths.

Select Known Values: Pick which pair of measurements you already know. You can choose from nine options: Two Sides, Side + Angle, Side + Area, Side + Perimeter, Side + Altitude h, Angle + Area, Angle + Perimeter, Angle + Altitude h, or Area + Perimeter.

Side a (opposite α): Enter the length of leg a, which is the side across from angle alpha. Use the dropdown next to it to pick your unit, such as mm, cm, m, km, in, ft, yd, or mi.

Side b (opposite β): Enter the length of leg b, which is the side across from angle beta. Choose the matching unit from the dropdown.

Side c (hypotenuse): Enter the length of the hypotenuse, which is the longest side of the right triangle. Select your preferred unit from the dropdown.

Angle α (alpha): Enter one of the two acute angles in degrees or radians. This field also accepts expressions like pi/3, pi/4, or 2pi/5 for exact radian values. The angle must be between 0° and 90°.

Angle β (beta): Enter the other acute angle in degrees or radians. It works the same way as the alpha field and also supports pi expressions.

Altitude h (to hypotenuse): Enter the length of the line drawn from the right-angle corner straight down to the hypotenuse. Pick your unit from the dropdown.

Area (A): Enter the area of the triangle. Choose a square unit from the dropdown, such as mm², cm², m², in², ft², or yd². If you need help converting between area units, our Square Footage Calculator can assist with that.

Perimeter (P): Enter the total distance around the triangle. Select the matching length unit from the dropdown.

Which side / angle is known: When a mode asks for one side or one angle, use the selector dropdown to tell the calculator whether you are entering side a, side b, side c, angle α, or angle β.

Calculate and Reset: Press the Calculate button to see your results, or press Reset to clear all fields and start over with the default 3-4-5 right triangle.

What Is a Right Triangle?

A right triangle is a triangle that has one angle that measures exactly 90 degrees. The side across from the right angle is always the longest side and is called the hypotenuse. The other two sides are called legs. Right triangles show up everywhere in real life — in buildings, ramps, screen sizes, and even in navigation.

Key Formulas for Right Triangles

The most important formula for any right triangle is the Pythagorean theorem: a² + b² = c², where a and b are the two legs and c is the hypotenuse. This means if you know any two sides, you can always find the third. For example, a triangle with legs of 3 and 4 has a hypotenuse of 5, because 3² + 4² = 9 + 16 = 25, and √25 = 5.

The two acute angles in a right triangle always add up to 90 degrees. If one acute angle is 30°, the other must be 60°. You can find unknown angles using trigonometric functions — sine, cosine, and tangent. These ratios relate the angles to the side lengths:

  • sin(α) = opposite / hypotenuse = a / c
  • cos(α) = adjacent / hypotenuse = b / c
  • tan(α) = opposite / adjacent = a / b

If you need to find the slope of a line or ramp that forms a right triangle, the tangent ratio is essentially the same calculation — rise over run. Similarly, the Distance Calculator uses the Pythagorean theorem to find the straight-line distance between two points on a coordinate plane.

Area, Perimeter, and Altitude

The area of a right triangle is simple to calculate: Area = ½ × a × b. Because the two legs meet at a right angle, they act as the base and height. The perimeter is just the sum of all three sides: P = a + b + c.

The altitude to the hypotenuse (often labeled h) is the perpendicular line drawn from the right-angle vertex to the hypotenuse. It can be found using the formula h = (a × b) / c. This altitude creates two smaller triangles inside the original, and both of those smaller triangles are also right triangles that are similar to the original.

Other Useful Properties

A right triangle also has a few special properties worth knowing:

  • The circumradius (radius of the circle that passes through all three vertices) is always exactly half the hypotenuse: R = c / 2.
  • The inradius (radius of the circle that fits perfectly inside the triangle) is calculated as r = (a + b − c) / 2.
  • The median to the hypotenuse is also equal to half the hypotenuse, which means it equals the circumradius.

Understanding these properties connects to many other areas of math. For instance, the Midpoint Calculator can help you find the center of the hypotenuse, which is exactly where the circumscribed circle is centered. If you're working with ratios of the triangle's sides, our Ratio Calculator is a handy companion tool. And if your problem involves solving a quadratic equation — which can come up when finding unknown sides from area and perimeter — the Quadratic Formula Calculator can walk you through it.

How to Use This Calculator

This right triangle calculator lets you find every measurement of a right triangle from just two known values. You can enter two sides, a side and an angle, a side and the area, or several other combinations. The calculator then uses the Pythagorean theorem and trigonometry to solve for all missing sides, angles, area, perimeter, altitude, inradius, and circumradius. It also shows a step-by-step solution so you can follow along with the math and a diagram of the triangle drawn to scale.

Right triangles are fundamental in construction and design as well. If you're calculating materials for a triangular section of a roof, tools like the Rafter Calculator rely on the same right triangle principles. For projects where you need to measure angled areas, the Flooring Calculator or Tile Calculator can help you estimate materials once you know the dimensions. And if you're studying physics, you'll find that right triangle math is essential in tools like the Projectile Motion Calculator, where trajectories are broken into horizontal and vertical components using the same trigonometric relationships described above.

If your calculation involves checking how far off your answer is from an expected value, try the Percent Error Calculator. For problems that require working with percentages, fractions, or exponents, those tools are available as well to support your work.


Frequently Asked Questions

What two values do I need to solve a right triangle?

You need any two known measurements. This can be two sides, one side and one angle, one side and the area, one side and the perimeter, one side and the altitude, one angle and the area, one angle and the perimeter, one angle and the altitude, or the area and perimeter together. The calculator finds everything else from there.

Why does the calculator say my inputs do not form a valid right triangle?

This happens when your numbers are not possible for a right triangle. Common reasons include: a leg is longer than or equal to the hypotenuse, an angle is not between 0° and 90°, or the area is too large for the given side. Double-check your values and make sure they make sense together.

Can I enter angles in radians instead of degrees?

Yes. Use the dropdown next to the angle field to switch from deg to rad. You can also type expressions like pi/4, pi/3, or 2pi/5 for exact radian values.

What units does the calculator support?

For lengths, you can choose millimeters (mm), centimeters (cm), meters (m), kilometers (km), inches (in), feet (ft), yards (yd), or miles (mi). For area, you can pick mm², cm², m², in², ft², or yd². You can mix different units across inputs, and the calculator converts them automatically.

Which unit are the results displayed in?

The results use the unit you selected for Side a. If Side a is set to feet, all length results show in feet and the area shows in square feet. Change Side a's unit dropdown to see results in a different unit.

What is the altitude to the hypotenuse?

The altitude to the hypotenuse is a line drawn from the right-angle corner straight down to the hypotenuse at a 90° angle. Its length is found with the formula h = (a × b) / c, where a and b are the legs and c is the hypotenuse.

What is the 3-4-5 right triangle?

The 3-4-5 triangle is the most common example of a right triangle with whole-number sides. The legs are 3 and 4, and the hypotenuse is 5. It works because 3² + 4² = 9 + 16 = 25 = 5². The calculator uses this triangle as its default starting values.

What are the inradius and circumradius?

The inradius is the radius of the largest circle that fits inside the triangle. For a right triangle, it equals (a + b − c) / 2. The circumradius is the radius of the circle that passes through all three corners. For a right triangle, it is always half the hypotenuse: R = c / 2.

Can I use this calculator if I only know the area and perimeter?

Yes. Select the Area + Perimeter mode, enter both values with their units, and press Calculate. The calculator uses algebra to find all three sides and the rest of the triangle's properties.

How does the step-by-step solution work?

After you press Calculate, the calculator shows each math step it used to find the answer. Each step includes a short explanation and the formula with your actual numbers plugged in, so you can follow along or check the work by hand.

What does the bar chart show?

The bar chart compares the lengths of side a, side b, the hypotenuse c, and the altitude h. It gives you a quick visual way to see how the sides relate to each other in size.

Why must a leg be shorter than the hypotenuse?

In a right triangle, the hypotenuse is always the longest side because it sits across from the largest angle (90°). If a leg were equal to or longer than the hypotenuse, the shape could not form a valid right triangle, so the calculator will show an error.

How accurate are the results?

The calculator uses standard floating-point math and displays results rounded to up to 8 significant figures. This is more than accurate enough for homework, construction, and most real-world uses.

Can I use different units for each side?

Yes. You can enter side a in inches and side b in centimeters, for example. The calculator converts all inputs to a common unit internally before solving, so you can mix and match freely.

What happens when I press the Reset button?

Reset clears all your entries and puts the calculator back to its default state: a 3-4-5 right triangle measured in feet, using the Two Sides mode with sides a and b selected.


Related Calculators

Midpoint Calculator

Visit Midpoint Calculator

Distance Calculator

Visit Distance Calculator

Triangle Area Calculator

Visit Triangle Area Calculator

Circle Area Calculator

Visit Circle Area Calculator

Sphere Volume Calculator

Visit Sphere Volume Calculator

Cylinder Volume Calculator

Visit Cylinder Volume Calculator

Cone Volume Calculator

Visit Cone Volume Calculator

Hexagon Calculator

Visit Hexagon Calculator

Arc Length Calculator

Visit Arc Length Calculator

Law of Cosines Calculator

Visit Law of Cosines Calculator

Law of Sines Calculator

Visit Law of Sines Calculator