Right Triangle Calculator

Hypotenuse c

5 units

Triangle area

6 units²

All results
Calculator inputs
?

C is the right angle; c is its opposite hypotenuse. Where only unlabeled legs can be recovered, the smaller is assigned a.

?

All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.

?

Perpendicular leg opposite angle A, never the hypotenuse.

?

Perpendicular leg opposite angle B, never the hypotenuse.

Shape and dimensions

Compare the solved side lengths

Lengths share the selected unit. This is a side-length comparison; the separate diagram shows the geometric arrangement.

a3 units
b4 units
c5 units

Solved triangle measurements

Sides a, b, c are opposite angles A, B, C. Distinct SSA solutions have different third sides and areas. CSV retains stored precision; displayed digits are rounded.

Solved triangle measurements
SolutionSide aSide bSide cAngle AAngle BAngle CAreaPerimeter
13 units4 units5 units36.86989765 °53.13010235 °90 °6 units²12 units

Altitudes, medians and circle radii

Altitudes are perpendicular to the selected side or its extension. Medians end at a side midpoint. Inradius and circumradius describe different circles.

Altitudes, medians and circle radii
SolutionMeasurementLength
1Altitude to a4 units
1Altitude to b3 units
1Altitude to c2.4 units
1Median to a4.27200187 units
1Median to b3.60555128 units
1Median to c2.5 units
1Inradius1 units
1Circumradius2.5 units

Triangle classification and consistency checks

Side equality uses a relative 10^−10 tolerance on the longest side; right-angle classification uses 10^−10 radians. Classification at those boundaries is approximate.

Triangle classification and consistency checks
SolutionSide classificationAngle classificationAngle sum2 × area / side c
1ScaleneRight (within numeric tolerance)180 °2.4 units

Vertices and triangle centers in one coordinate frame

A is at the origin, B lies on the positive x-axis, and C lies above it. Translation, rotation and reflection give equivalent placements. An obtuse triangle’s circumcenter can lie outside its area.

Vertices and triangle centers in one coordinate frame
SolutionPointxy
1Vertex A0 units0 units
1Vertex B5 units0 units
1Vertex C3.2 units2.4 units
1Centroid2.7333333333 units0.8 units
1Incenter3 units1 units
1Circumcenter2.5 units-7.40148683e-16 units

Follow the solved geometry step by step

These are relationships among the completed triangle’s measurements. They supplement the selected-input solver, and are not additional amounts to sum.

Follow the solved geometry step by step
SolutionQuantityRelationshipValue
1PerimeterP = a + b + c12
1Semiperimeters = P / 26
1AreaK = sqrt[s(s-a)(s-b)(s-c)] (evaluated in a scaled stable form)6
1Altitude to ch_c = 2K / c2.4
1Inradiusr = K / s1
1CircumradiusR = abc / (4K)2.5
1Median to cm_c = sqrt(2a² + 2b² - c²) / 22.5

Special right-triangle ratios and your current triangle

Ratios are dimensionless, normalized by the hypotenuse. They compare shape without conflating lengths with area.

Special right-triangle ratios and your current triangle
CaseShorter leg / cLonger leg / cInterpretation
30°–60°–90°0.50.8660254Sides opposite the angles are 1 : √3 : 2.
45°–45°–90°0.707106780.70710678Equal legs; hypotenuse is √2 times one leg.
Your solved triangle0.60.8Leg labels follow your entered quantities.

How to use the Right Triangle Calculator

Solve right triangles from legs, hypotenuse, acute angles, area, perimeter or altitude. Inspect labeled geometry, all lengths and special-triangle comparisons.

  1. 1. Enter your inputs

    Start with Two known measurements, Length unit, Leg a, Leg b. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Hypotenuse c, Triangle area, Perimeter. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

    See the worked example and method

Understanding the Right Triangle Calculator: uses, inputs and results

The Right Triangle Calculator solves the geometry of a right triangle when both perpendicular legs are known.

Which known quantities set the scale of this right triangle?

The Right Triangle Calculator combines the fixed right angle with side, acute-angle, area, perimeter or hypotenuse-altitude information. It is useful when a question gives more than just two legs.

The hypotenuse is a specific side

c faces the right angle and is longer than each leg. A hypotenuse/leg mismatch is an impossible geometry input.

Unlabeled legs need a convention

Some pairs recover a 3–4–5 shape without distinguishing the legs. The smaller is called a rather than claiming the measurements identified that label.

Further reading: OpenStax: the law of sines and ambiguous SSA cases · OpenStax: law of cosines and triangle area

What do the Right Triangle Calculator inputs mean?

Two known measurements
C is the right angle; c is its opposite hypotenuse. Where only unlabeled legs can be recovered, the smaller is assigned a.
Length unit
All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.
Leg a
Perpendicular leg opposite angle A, never the hypotenuse. This field applies when Two known measurements is set to Perpendicular legs a and b or Leg a and hypotenuse c or Leg a and one acute angle or Leg a and area or Leg a and perimeter or Leg a and hypotenuse altitude.
Leg b
Perpendicular leg opposite angle B, never the hypotenuse. This field applies when Two known measurements is set to Perpendicular legs a and b or Leg b and hypotenuse c or Leg b and one acute angle.
Hypotenuse c
Longest side, opposite the fixed 90° angle C. This field applies when Two known measurements is set to Leg a and hypotenuse c or Leg b and hypotenuse c or Hypotenuse and one acute angle or Area and hypotenuse or Perimeter and hypotenuse or Hypotenuse and its altitude.
Angle unit
Radian angle fields accept decimal values or simple pi multiples such as pi/6 or 2*pi/3. Results retain degree fields for existing API links. This field applies when Two known measurements is set to Leg a and one acute angle or Leg b and one acute angle or Hypotenuse and one acute angle or Area and one acute angle or Perimeter and one acute angle or Hypotenuse altitude and acute angle.
Known acute angle
The two acute angles sum to 90°. Select which one your entered angle describes. This field applies when Two known measurements is set to Leg a and one acute angle or Leg b and one acute angle or Hypotenuse and one acute angle or Area and one acute angle or Perimeter and one acute angle or Hypotenuse altitude and acute angle.
Known acute angle
Strictly between 0° and 90° (0 and pi/2 radians). Simple pi multiples are supported in radian mode. This field applies when Two known measurements is set to Leg a and one acute angle or Leg b and one acute angle or Hypotenuse and one acute angle or Area and one acute angle or Perimeter and one acute angle or Hypotenuse altitude and acute angle.
Known triangle area
Area in the square of the selected length unit. It is not a side length. This field applies when Two known measurements is set to Area and one acute angle or Leg a and area or Area and hypotenuse or Area and perimeter or Area and hypotenuse altitude.
Known perimeter
Sum a + b + c in the selected length unit. This field applies when Two known measurements is set to Perimeter and one acute angle or Leg a and perimeter or Perimeter and hypotenuse or Area and perimeter or Perimeter and hypotenuse altitude.
Altitude to hypotenuse
Perpendicular distance from the right-angle vertex to hypotenuse c, equal to ab/c. This field applies when Two known measurements is set to Hypotenuse altitude and acute angle or Leg a and hypotenuse altitude or Hypotenuse and its altitude or Area and hypotenuse altitude or Perimeter and hypotenuse altitude.

When is the Right Triangle Calculator useful?

Find a missing diagonal

Enter the two legs to calculate the hypotenuse and related dimensions.

Inspect right-triangle angles

Compare different leg proportions to see how the acute angles change. The inputs must represent perpendicular sides.

Right Triangle Calculator: a practical reference

The fixed “3-4-5” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Two known measurements
Perpendicular legs a and b
Length unit
length units
Leg a
3
Hypotenuse c
5 units
Triangle area
6 units²
Review the example inputs and calculation

Use the result in context

Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Try the Right Triangle Calculator·Read the subject guide·Explore a related calculator

Worked example: Right Triangle Calculator

3-4-5. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Two known measurements
Perpendicular legs a and b
Length unit
length units
Leg a
3
Leg b
4
Calculated results for the fixed example
Calculated quantityExample result
Hypotenuse c5 units
Triangle area6 units²
Perimeter12 units

Right Triangle Calculator: match the hypotenuse, acute angles and perpendicular heights

Which side of a right triangle is the hypotenuse?

The hypotenuse is opposite the 90° angle and is longer than either perpendicular leg. This Right Triangle Calculator names it c, with a and b as the legs. The relation a² + b² = c² therefore cannot use any arbitrarily chosen side as c.

A 3–4–5 triangle has legs 3 and 4, hypotenuse 5, area 6 and perimeter 12. When one leg and c are known, the missing leg comes from the difference of squared lengths. A hypotenuse shorter than the known leg is an impossible input, not a negative-length result.

How can one side and one acute angle determine the triangle?

The right angle fixes one angle, and the two acute angles sum to 90°. Once an acute angle and a length are known, the sine and cosine ratios determine the scale of the other sides. For angle A opposite a, a = c sin(A) and b = c cos(A).

If c = 10 and A = 30°, a = 5 and b = 5√3. Selecting angle B instead describes the other acute angle, so the control explicitly identifies which angle your number represents. In radian mode pi/6 means 30°, not roughly half a degree.

OpenStax: the law of sines and ambiguous SSA cases

Can I solve a right triangle from its area or perimeter?

A side and area use K = ab/2; a side and perimeter use P = a + b + c together with the right-triangle identity. An area, perimeter or hypotenuse altitude combined with an acute angle also determines the triangle’s size through its fixed ratios.

Some pairs leave the two leg labels interchangeable. Area 6 and hypotenuse 5 identify leg lengths 3 and 4, but do not say which should be called a. In those cases the smaller leg is assigned a, and the table states that convention. Swapping those labels reflects the same congruent triangle.

What is the altitude to the hypotenuse?

It is the perpendicular distance from the right-angle vertex to side c. The two area expressions K = ab/2 and K = ch/2 show that h = ab/c. For a 3–4–5 triangle this height is 12/5, or 2.4, rather than either leg.

The known-height modes always mean this particular altitude. A base-height pair chosen from a drawing can describe a different altitude, so check which side is treated as the base. The construction view marks the perpendicular relationship instead of treating every vertical-looking segment as the required height.

How do 30–60–90 and 45–45–90 triangles help?

Their angle patterns fix their side ratios. A 30–60–90 triangle has opposite-side ratios 1:√3:2. A 45–45–90 triangle has equal legs and ratios 1:1:√2. Multiplying every side by one factor preserves the angles and changes the area by the square of that factor.

The comparison table normalizes both special cases and your triangle by the hypotenuse. Those dimensionless ratios compare shape; they do not mix physical side lengths with area. A numerical resemblance to a special ratio is not proof that rounded field measurements are exact.

When is a right-triangle calculation useful?

It can help inspect a rectangular diagonal, an idealized ramp, a perpendicular layout or a trigonometry exercise. The relevant premise is a real right angle between the legs. An oblique triangle requires the general Triangle Calculator instead.

The results describe Euclidean geometry, not a structural capacity, compliant stair design or measurement uncertainty. Inspect the labeled diagram and full CSV measurements when comparing a plan. Keep units consistent and do not use a rounded screen value as if it were a more accurate measurement than the inputs.

Formula and calculation method

a² + b² = c², with perpendicular legs a, b and hypotenuse c. Area = ab/2; perimeter = a + b + c; hypotenuse altitude = ab/c.

For acute A opposite a: a = c sin(A), b = c cos(A). B = 90° − A. A known area, perimeter or altitude and angle determine the scale.

Some area/perimeter/hypotenuse pairs determine leg lengths without distinguishing a from b. The smaller recovered leg is called a; swapping labels reflects the same congruent triangle.

The complete measurement table retains all sides, both acute angles, altitudes and radii. Numeric classification and validation use explicit tolerances.

Scope and Limitations

  • Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Reference Sources

Frequently asked questions

Can I enter a leg and hypotenuse?

Yes. Choose a/c or b/c mode. The hypotenuse must be strictly longer than the known leg.

What does the altitude input mean?

It is the perpendicular altitude from the right-angle vertex to the hypotenuse, equal to ab/c.

Why is the smaller recovered leg called a?

Some area/perimeter/hypotenuse pairs determine two unlabeled legs. The calculator assigns the smaller to a; swapping the labels gives a congruent reflection.

Can two acute angles alone determine size?

No. They identify shape but need a length, area, perimeter or altitude to establish scale.

Are these results a construction approval?

No. They calculate geometry under the stated right-angle premise, not load capacity, code compliance or a complete material specification.