Free Online Calculator

Right Triangle Calculator

Solve a right triangle from any two values.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: solving a right triangle

Give any two values. With legs 3 and 4 the hypotenuse is c = 5, the angles are 36.87° and 53.13°, and the area is 6.

Overview of the Right Triangle Calculator

A right triangle has one 90° angle. Enter any two of the five values — leg a, leg b, hypotenuse c, angle A or angle B — and the calculator solves the rest, together with the area, perimeter, altitude to the hypotenuse, inradius, circumradius and the sine, cosine and tangent of angle A.

It combines the Pythagorean theorem with basic trigonometry (SOH-CAH-TOA). For the theorem alone see the Pythagorean Theorem Calculator; for any triangle use the Triangle Calculator; for angles in practice see the Slope Calculator.

How We Calculate

The calculator applies the standard method step by step.

  1. Two legs: c = √(a² + b²) and A = arctan(a ÷ b).
  2. Leg and hypotenuse: the other leg = √(c² − leg²).
  3. Side and angle: use sin A = a ÷ c, cos A = b ÷ c, tan A = a ÷ b.
  4. The other acute angle is 90° − A.
  5. Area = ½ab; altitude to the hypotenuse = ab ÷ c; inradius = (a + b − c) ÷ 2; circumradius = c ÷ 2.
c² = a² + b²   sin A = a ÷ c   cos A = b ÷ c   tan A = a ÷ b
Worked example — right triangle calculator
ItemValue
Leg a3
Leg b4
Hypotenuse c5
Angle A36.8698976458°
Angle B53.1301023542°
Angle C90°
Area (½ab)6
Perimeter12
Altitude to the hypotenuse (ab ÷ c)2.4
Inradius ((a + b − c) ÷ 2)1
Circumradius (c ÷ 2)2.5
sin A, cos A, tan A0.6, 0.8, 0.75
Hypotenuse for different inputs
GivenHypotenuse
Legs 3 and 4c = 5
Leg 5, hypotenuse 13c = 13
Hypotenuse 10, A = 30°c = 10
Leg 6, A = 45°c = 8.4852813742
Legs 8 and 15c = 17

Right Triangle Calculator — Frequently Asked Questions

How do I solve a right triangle?

Use the Pythagorean theorem for missing sides and the trig ratios (sin, cos, tan) for angles.

What are SOH-CAH-TOA?

Sin = Opposite ÷ Hypotenuse, Cos = Adjacent ÷ Hypotenuse, Tan = Opposite ÷ Adjacent.

What is a 30-60-90 triangle?

A right triangle whose sides are in the ratio 1 : √3 : 2.

What is a 45-45-90 triangle?

An isosceles right triangle whose sides are in the ratio 1 : 1 : √2.

How many values do I need?

Two: either two sides, or one side and one acute angle. Two angles alone are not enough.

What is the hypotenuse?

The side opposite the right angle and the longest side of the triangle.

How is the right triangle calculator calculated?

It uses the standard method: c² = a² + b²   sin A = a ÷ c   cos A = b ÷ c   tan A = a ÷ b The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

4 + 3 =
Call WhatsApp