Right Triangle Calculator

Calculate the base, height, hypotenuse, acute angles, area, perimeter, and trig ratios of a right triangle from three common input setups.

Last updated: 2026/03/20

Right Triangle Calculator

Use two legs, one leg plus the hypotenuse, or angle A plus one side to calculate base a, height b, hypotenuse c, both acute angles, area, and perimeter in one place. If you keep the same length unit for every input, the result stays in that same unit.

Choose an input setup

If you already know base a and height b, the calculator uses the Pythagorean theorem to find the hypotenuse and both angles right away.

Enter two legs
Length

The horizontal leg along the bottom of the triangle.

Length

The vertical leg that meets the base at the right angle.

Enter one leg and the hypotenuse

Choose which leg you already know so the other leg can be solved by subtraction under the square root.

Length

Enter the actual length of the leg selected above.

Length

The hypotenuse must be longer than either leg.

Enter angle A and one side

Angle A is the acute angle between base a and hypotenuse c.

Deg

Enter an acute angle greater than 0° and smaller than 90°.

Length

The calculator uses trig ratios to recover the other two sides.

Display precision
Quick examples

These presets help you inspect the layout and the formulas before entering your own values.

Input tips
  • In the leg + hypotenuse mode, the hypotenuse must stay longer than the known leg.
  • Angle A is always interpreted as the angle between base a and hypotenuse c.
  • You can use any length unit, but all inputs should stay in the same unit.
  • The copy button is most useful after you run a real calculation instead of relying on the example state.
Example result
Key result summary
5
Hypotenuse c
Base a 3
Height b 4
Angle A 53.13°

A right triangle with base 3 and height 4 is the classic 3-4-5 case, so the area is 6 and the perimeter is 12.

c = √(a² + b²) = √(3² + 4²) = 5
Area
6
Perimeter
12
Angle A
53.13°
Angle B
36.87°
Triangle preview
a = 3 b = 4 c = 5 A 53.13° B 36.87°

This is a scaled preview of the triangle. Angle A is the acute angle between base a and hypotenuse c.

Summary table
Input setupTwo legs
Base a3
Height b4
Hypotenuse c5
Altitude to c2.4
Inradius1
Trig ratios and check
sin A = b ÷ c0.8
cos A = a ÷ c0.6
tan A = b ÷ a1.33
Pythagorean check3² + 4² = 5² (25 = 25)
Formula summary
  1. c = √(a² + b²) = √(3² + 4²) = 5
  2. Area = a × b ÷ 2 = 3 × 4 ÷ 2 = 6
  3. Angle A = arctan(b ÷ a) = arctan(4 ÷ 3) ≈ 53.13°

What is a right triangle calculator?

A right triangle calculator helps you solve the remaining side lengths and acute angles when one angle is fixed at 90°. If you already know part of the triangle, you can use the Pythagorean theorem and trigonometric ratios to recover the rest without setting up every formula by hand.

This version focuses on three practical setups: two legs, one leg plus the hypotenuse, and angle A plus one side. It also keeps the follow-up interpretation on the same screen by showing area, perimeter, altitude to the hypotenuse, inradius, and a scaled visual preview together with the raw side values.

Useful situations

Right triangles appear in school math, construction sketches, roof or ramp slope estimates, and quick distance checks. Switching the input setup to match the values you already know saves time and makes manual verification much easier. If you first need to organize similar triangles or side ratios before solving the right triangle itself, the Proportion Calculator is a natural first step.

  • Homework and study – Check side lengths and angle results while reviewing trig and the Pythagorean theorem
  • Slope planning – Estimate the side length of a ladder, ramp, or roof triangle from an angle and one known side
  • Drawing and layout work – Fill in a missing side on a sketch when only two measurements are available
  • Area checks – Use the base and height to estimate the half-rectangle area quickly
  • Result review – Compare the visual preview, trig ratios, and formula steps in one place

Key features

The tool is designed to stay compact while still explaining the meaning of the result. The top result card highlights the hypotenuse and the most important interpretation first, then the lower sections keep the formulas, ratios, and support values easy to scan.

  • Three input setups – Solve from two legs, one leg plus hypotenuse, or angle A plus one side
  • Main geometry values – Base a, height b, hypotenuse c, both acute angles, area, and perimeter
  • Support values – Altitude to the hypotenuse and inradius on the same screen
  • Trig ratio panel – Shows sin A, cos A, tan A, and a Pythagorean check
  • Scaled triangle preview – Helps you see the shape you just calculated
  • Copy-ready result – Makes it easier to move the calculation into notes or messages

How to use it

Choose the setup that matches the information you already have, enter the known values, and run the calculation. The result updates the top summary, the preview, the table, and the step-by-step formulas together so you can review everything in one pass.

  1. Pick an input setup – Two legs, leg + hypotenuse, or angle A + one side
  2. Enter the known values – Keep every length in the same unit
  3. Set the decimal precision – Pick how much rounding you want to see
  4. Run the calculation – The triangle values, angles, and support metrics update together
  5. Review the formulas – Use the summary list to confirm how the result was derived
  6. Copy if needed – Send the result into notes, reports, or chat

Right triangle formulas in plain language

The core relationship is the Pythagorean theorem: a² + b² = c². If you know both legs, you can calculate the hypotenuse with c = √(a² + b²). If you know one leg and the hypotenuse, you can recover the missing leg with √(c² - known leg²).

When angle A is the acute angle between base a and hypotenuse c, the main trig ratios are sin A = b / c, cos A = a / c, and tan A = b / a. That means one acute angle plus one side is enough to rebuild the full triangle. If you want to compare the measured value of a side with the value you calculated here, the Percent Error Calculator is a good follow-up tool for the verification step.

The area is a × b ÷ 2, the perimeter is a + b + c, the altitude to the hypotenuse is (a × b) ÷ c, and the inradius is (a + b - c) ÷ 2. Keeping these support values on the same page makes the calculator useful not only for study but also for quick planning and layout work.

  • Pythagorean theorem – a² + b² = c²
  • Area – a × b ÷ 2
  • Perimeter – a + b + c
  • Altitude to c – (a × b) ÷ c
  • Inradius – (a + b – c) ÷ 2
  • Angle B – 90° – angle A

FAQ

Where is angle A in this calculator?

Angle A is the acute angle between base a and hypotenuse c. The other acute angle is shown as angle B and is always 90° minus angle A.

Why must the hypotenuse be longer than the known leg?

In every right triangle, the hypotenuse is the longest side. If the hypotenuse is not longer than the leg, the triangle cannot exist and the square-root subtraction would break.

Can I use any unit?

Yes. You can use centimeters, meters, feet, or any other length unit, as long as you keep the same unit for every side you enter.

Is angle A plus one side really enough?

Yes. In a right triangle, one acute angle and one side determine the rest of the shape because the trig ratios lock the remaining side relationships.

Can I check classic 3-4-5 or 5-12-13 triangles here?

Yes. The presets include a 3-4-5 case, and the leg + hypotenuse setup also makes it easy to confirm 5-12-13 style combinations.

Does changing the decimal places affect the actual calculation?

No. The calculator still uses the full numeric result internally and only rounds the values shown on screen to the precision you selected.

Anonymous Opinion 1

Comments that may inconvenience others or repeat the same message can be hidden or removed under our moderation guidelines.

Characters left: 120

No comments yet. Leave the first opinion.