Math · FREE ONLINE TOOL

Right Triangle Calculator

Solve a right triangle from supported pairs of known measurements, returning sides, angles, area and possible alternate solutions.

Choose known measurements

Your inputs

Right triangle with legs a and b, hypotenuse c, and a right-angle marker at C
c = √(a²+b²); area = ab/2; angle A = atan(a/b).Diagram is not to scale.

Legs a and b meet at the right angle C. Enter both legs in the same length unit; area uses that unit squared. Hypotenuse c is opposite the right angle.

Which measurements do I need?

The right angle is between the two entered legs.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Area
6 square units
Perimeter
12
Side a
3
Side b
4
Side c
5
Angle A
36.87 °
Angle B
53.13 °
Angle C
90 °
Semiperimeter
6
Altitude to a
4
Altitude to b
3
Altitude to c
2.4
Median from A
4.27
Median from B
3.61
Median from C
2.5
Inradius
1
Circumradius
2.5
Vertex A
(0, 0)
Vertex B
(5, 0)
Vertex C
(3.2, 2.4)
Centroid
(2.73, 0.8)
Incenter
(3, 1)
Circumcenter
(2.5, 0)
Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Right Triangle Calculator: a triangle and ruler.
Two legsc = √(a²+b²); area = ab/2; angle A = atan(a/b).
A useful distinction

The hypotenuse altitude is a separate length

In a 3–4–5 right triangle, the altitude to the hypotenuse is 2.4, while the legs are 3 and 4. Select the altitude field only for that perpendicular segment; substituting a leg changes the problem.

Which height reaches the longest side?

Side lengths
6 m, 8 m, 10 m
Result. A (Area) → 24 m². B (Altitude to hypotenuse) → 4.8 m.
Which height reaches the longest side?
QuantityCalculationResult
A Area6 × 8 ÷ 224 m²
B Altitude to hypotenuse2 × 24 ÷ 104.8 m

Solving a right triangle from known quantities

Choose the pair of known quantities supported by the mode, such as two sides or a side and an acute angle. Label the hypotenuse and legs carefully before entering values. The right-angle assumption supplies information that a general triangle problem does not have. Review the resulting side lengths and angle units together to check that the solution matches the diagram you intended.

Choose the two measurements you actually know

Two legs is the most direct mode when a and b are given. Any two known quantities supports combinations involving legs, hypotenuse, altitude to the hypotenuse, area, perimeter and acute angles. Enter the First known value and Second known value in the order shown by the selected pair.

Two acute angles alone determine shape but not size, so a length or area is needed to establish scale. Angular inputs can use degrees or radians; returned angle labels specify degrees.

Check the complete 5–12–13 right triangle

Enter legs 5 and 12. The hypotenuse is 13, area is 5×12/2=30 and perimeter is 30. Angle A opposite leg a=5 is approximately 22.6199°, while B is approximately 67.3801°. Their sum is 90°.

Measurements of a right triangle with legs 5 and 12
MeasurementWorkingResult
Hypotenuse√(5²+12²)13
Area5×12÷230 square units
Perimeter5+12+1330 units
Altitude to hypotenuse5×12÷13Approximately 4.61538 units

Distinguish a leg from the altitude to the hypotenuse

Both legs meet at the right angle. The altitude to the hypotenuse instead runs from that right-angle vertex perpendicular to the sloping hypotenuse. Its length is h=ab/c, not either leg length.

For the 5–12–13 example, choosing Hypotenuse c + Area with values 13 and 30 allows the same geometric triangle with a and b swapped. Two labeled solutions can therefore describe different side assignments rather than two different overall shapes.

Check units and feasibility before reading derived values

A length input uses the shared length unit; an area input uses its square. Entering 30 square feet with a hypotenuse measured in meters would describe inconsistent geometry unless the quantities are converted first.

Not every pair of positive numbers can form a right triangle. A hypotenuse shorter than a leg, an acute angle outside 0°–90°, or an impossible area for the given hypotenuse must be rejected rather than treated as a valid shape.

Two legs: formula and assumptions

c = √(a²+b²); area = ab/2; angle A = atan(a/b).

The right angle is between the two entered legs.

Use Two legs

Any two known quantities: formula and assumptions

a=c sin(A); b=c cos(A); h=ab/c; area=ab/2; perimeter=a+b+c.

Enter the first and second values in the order shown. Lengths use a shared unit and area uses its square. Multiple labeled solutions are displayed when applicable. Angular inputs can use degrees or radians. Calculated angles are shown in degrees.

Use Any two known quantities

Worked example

Using the Two legs example:

Inputs
Leg a
3
Leg b
4
Method

c = √(a²+b²); area = ab/2; angle A = atan(a/b).

Result

Example result

Area: 6 square units

Perimeter: 12

Side a: 3

Side b: 4

Side c: 5

Angle A: 36.87 °

Angle B: 53.13 °

Angle C: 90 °

Semiperimeter: 6

Altitude to a: 4

Altitude to b: 3

Altitude to c: 2.4

Median from A: 4.27

Median from B: 3.61

Median from C: 2.5

Inradius: 1

Circumradius: 2.5

Vertex A: (0, 0)

Vertex B: (5, 0)

Vertex C: (3.2, 2.4)

Centroid: (2.73, 0.8)

Incenter: (3, 1)

Circumcenter: (2.5, 0)

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Why can a known pair produce more than one solution?

Some measurements do not distinguish the two labeled legs or angles. The solver displays each admissible labeled solution.

Can I enter angles in radians?

Yes. Select radians for angular inputs. Calculated angles are displayed in degrees, and all lengths must follow the stated unit convention.

Is the altitude to the hypotenuse the same as a leg?

No. It is perpendicular to the hypotenuse from the right-angle vertex. Its length is ab/c.

Can two acute angles determine all side lengths?

No. They determine the shape but leave the overall scale unknown. At least one suitable length or area measurement is needed.

What unit should I use when one input is area?

Use the square of the length unit used elsewhere. If side lengths are meters, the area must be in square meters.

See our methodology and editorial policy.