Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Right Angled Triangle Calculator

Right angled triangle calculator works out Leg a and Leg b from Leg a (opposite angle A), Leg b (opposite angle B) and Hypotenuse c. The default figures on this page give hypotenuse c of 5; change any entry and the result, the working and the sources update together.

Hypotenuse c
5
Right Triangle Calculator
Leg a
3
Leg b
4
Angle A
36.869898
Angle B
53.130102
Angle C (right angle)
90
Angle A in degrees
36.869898 deg
Angle A in radians
0.643501 rad
Angle B in degrees
53.130102 deg
Angle B in radians
0.927295 rad
Area
6
Perimeter
12
Altitude to the hypotenuse
2.4
Hypotenuse segment next to leg a
1.8
Hypotenuse segment next to leg b
3.2
Inradius
1
Circumradius
2.5
Median to the hypotenuse
2.5
sin A (opposite / hypotenuse)
0.6
cos A (adjacent / hypotenuse)
0.8
tan A (opposite / adjacent)
0.75
Whole-number (Pythagorean) triple
Yes
Solved from
two legs (Pythagoras)
Worked out from Euclid, Elements, Book I Proposition 47 (the Pythagorean theorem) and 3 other sources.

Your figures

Updates as you type
Changes the headline answer and what the form insists on. "Everything" accepts any two measurements.
Must be strictly between 0 and 90 degrees.
Applies to the angles you type in and to the angleA / angleB / angleC outputs.

How this is worked out

5 steps
  1. Solved from two legs (Pythagoras).
  2. Legs a = 3, b = 4; hypotenuse c = sqrt(a^2 + b^2) = 5.
  3. Angle A = arctan(a/b) = 36.86989764584402 deg, angle B = 90 - A = 53.13010235415598 deg.
  4. Area = a*b/2 = 6; perimeter = a + b + c = 12.
  5. Altitude to the hypotenuse = a*b/c = 2.4; the right angle's vertex projects onto the hypotenuse dividing it into a^2/c and b^2/c.

Its 10 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

4 sources

What the right angled triangle calculator calculates

Solves a right triangle from any two of leg a, leg b, hypotenuse, an acute angle, the area or the perimeter, returning all sides, angles, area, altitude to the hypotenuse, inradius and circumradius.

How to use this right angled triangle calculator

Enter Leg a (opposite angle A), Leg b (opposite angle B), Hypotenuse c and Angle A (acute, opposite leg a). Leg a updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Leg a, Leg b and Hypotenuse c.

The method follows Euclid, Elements, Book I Proposition 47 (the Pythagorean theorem), NIST Digital Library of Mathematical Functions, 4.14 Definitions and periodicity (right-triangle ratios), Weisstein, Eric W. "Right Triangle", MathWorld and OSHA 29 CFR 1926.1053(b)(5)(i) — non-self-supporting ladders are set with the base about one quarter of the working length from the support.

3-4-5 from two legs example

With Leg a (opposite angle A): 3, Leg b (opposite angle B): 4, the calculator returns Hypotenuse c: 5, Area: 6, Perimeter: 12. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Leg a, Leg b and Hypotenuse c. The inputs you can vary are Leg a (opposite angle A), Leg b (opposite angle B), Hypotenuse c, Angle A (acute, opposite leg a), Angle B (acute, opposite leg b) and Area.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

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

Solves a right triangle from any two of leg a, leg b, hypotenuse, an acute angle, the area or the perimeter, returning all sides, angles, area, altitude to the hypotenuse, inradius and circumradius. Open “How this is worked out” beside the result to see each step for your own figures.

How to calculate right angle triangle?

It needs Leg a (opposite angle A), Leg b (opposite angle B), Hypotenuse c, Angle A (acute, opposite leg a), Angle B (acute, opposite leg b) and Area. Nothing else is required, and the figures stay in your browser.

How do I find the 3rd side of a right triangle?

The result gives Leg a, Leg b, Hypotenuse c, Angle A, Angle B and Angle C (right angle), each labelled with its unit so the figure can be read on its own.

What is the 30-60-90 rule for right triangles?

On the figures this page opens with — leg a (opposite angle A) 3 and leg b (opposite angle B) 4 — the hypotenuse c is 5. No single number fits everyone: change any figure above and the answer updates as you type, with each step of the arithmetic beside it.

What information do I need for the right angled triangle calculator?

You need Leg a (opposite angle A), Leg b (opposite angle B), Hypotenuse c, Angle A (acute, opposite leg a), Angle B (acute, opposite leg b), Area, Perimeter and Angle unit. The page opens with default figures that give hypotenuse c of 5, so you can see the scale before entering your own.

What does this right angled triangle calculator show?

It shows Leg a, Leg b, Hypotenuse c, Angle A, Angle B, Angle C (right angle), Angle A in degrees and Angle A in radians, with the working and any warnings for your entries.

Related calculators

View all related calculators7 more