Right Triangle Calculator

Solve any right triangle from two sides or a side and an angle: all sides, angles, area, perimeter and altitude, with steps.

Loading calculator...

Right triangle calculator in short
On this page

How to use the right triangle calculator

1

Pick what you know

Two legs, a leg and the hypotenuse, or one side and angle A.

2

Enter the values

Side a is opposite angle A, side b is next to it, and c is the hypotenuse.

3

Read the solved triangle

All sides and angles appear at once.

4

Use the extras

Area, perimeter, altitude and the radius of the inscribed and circumscribed circles are included.

How a right triangle is solved

From two sides

c = √(a² + b²)

A = arctan(a ÷ b), B = 90° − A

When the hypotenuse is known, a = √(c² − b²) and A = arcsin(a ÷ c).

From a side and an angle (SOH CAH TOA)

sin A = a ÷ c

cos A = b ÷ c

tan A = a ÷ b

Rearrange whichever ratio contains the side you know and the side you need.

Other measurements

Area = a × b ÷ 2

Height to hypotenuse = a × b ÷ c

Inradius = (a + b − c) ÷ 2, Circumradius = c ÷ 2

Example 1: legs 3 and 4

The classic 3-4-5 triangle.

  • Hypotenuse 5
  • Angles 36.8699° and 53.1301°
  • Area 6
  • Perimeter 12
  • Inradius 1

Any multiple, such as 6-8-10, has the same angles.

Example 2: hypotenuse and an angle

c = 10, A = 30°.

  • a = c × sin A 5
  • b = c × cos A 8.6603
  • B 60°

In a 30-60-90 triangle the short leg is always half the hypotenuse.

Example 3: a leg and an angle

b = 10, A = 60°.

  • a = b × tan A 17.3205
  • c = b ÷ cos A 20
  • B 30°

This is the same 30-60-90 shape, scaled up.

Where a right triangle calculator helps

Geometry and trig homework

Solve every side and angle and check your SOH CAH TOA working.

Roofs and ramps

Find rafter length and pitch angle from rise and run.

Ladders and stairs

Work out the safe angle and reach of a ladder against a wall.

Surveying and navigation

Find distances and bearings across land or on a map.

Related tools

If you only need the missing side, the Pythagorean theorem calculator is quicker. Get sin, cos and tan of any angle with the trig calculator, or measure roof steepness with the roof pitch calculator.

Right triangle calculator FAQ

You need two values besides the right angle, and at least one must be a side. Use the Pythagorean theorem for sides and sin, cos or tan for angles.

A memory aid: Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent.

No. Two angles fix the shape but not the size. You need at least one side length.

Side a is opposite angle A. Side b is the other leg, next to angle A. Side c is the hypotenuse.

Multiply the two legs and divide by 2. For legs 3 and 4 the area is 6.

The hypotenuse is always the longest side of a right triangle. A shorter value means the numbers cannot form a right triangle.

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top