AnsRioSmart tools. Clear answers.
Home / Geometry / Right triangle calculator - Pythagorean theorem
Geometry

Right triangle calculator - Pythagorean theorem

Calculate the hypotenuse, area and acute angles of a right triangle from its two legs.

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Calculate.

QUICK ANSWER

5.00000000

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

c=sqrt(a2+b2); area=ab/2; angle A=atan(a/b).

Input definitions

Known leg a
Enter the value in the labeled unit.
Known leg b
Enter the value in the labeled unit.

A worked example

Known leg a
3
Known leg b
4
5.00000000

Assumptions & limits

Both legs must be positive and use the same unit.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-11-15. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

How does the Right triangle calculator - Pythagorean theorem work?

c=sqrt(a2+b2); area=ab/2; angle A=atan(a/b). The result is calculated locally from the values you enter.

What inputs does this calculator need?

Enter the labeled values, check the units and review the assumptions before using the result.

Are the results exact?

Both legs must be positive and use the same unit. Results are calculated in your browser and displayed with suitable rounding.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work