Right Triangle Tool

Find missing right-triangle sides, acute angles, area, perimeter and circle radii from seven supported input combinations. View a proportional diagram, side comparison chart and formula breakdown, then export measurements or the diagram without a server.

Triangle inputs∠C = 90°
cm
cm
cm
°
cm²
cm
Enter the two perpendicular legs.
Triangle diagramProportional to side lengths
C is the right angle; a is opposite A, b is opposite B.
Hypotenuse (c)
5 cm
Area
6 cm²
Perimeter
12 cm
Angles (A / B)
36.8699° / 53.1301°
All measurements
MeasurementValue
Side length comparison

The longest side is always the hypotenuse.

Formula breakdown

Table of Contents

  1. How Right Triangle Tool Works?
  2. Practical Use Cases
  3. Accuracy and Limitations
  4. Frequently Asked Questions (FAQs)
  5. Cite This tool

Highlights

  • Seven flexible right-triangle input combinations
  • Interactive, proportionally scaled triangle diagram
  • Sides, angles, area and perimeter at a glance
  • Altitudes, semiperimeter and circle radii included
  • Precision control and CSV, JSON, SVG or PNG exports

How Right Triangle Tool Works?

A right triangle has two perpendicular legs a and b, a hypotenuse c, and a right angle at C. Angle A is opposite leg a, while angle B is opposite leg b. The Pythagorean theorem determines the hypotenuse from both legs:

c=a2+b2

If a hypotenuse and one leg are known, the other leg follows from the same identity. With one acute angle and a side, sine, cosine or tangent determines the remaining sides. The angles obey A + B = 90°. Area and perimeter also provide ways to reconstruct the two legs.


Known valuesRelationship used
Legs a and bc = √(a² + b²)
Hypotenuse c and leg ab = √(c² − a²), with c > a
Hypotenuse c and angle Aa = c sin A; b = c cos A
Leg a and angle Ab = a / tan A
Area K and leg ab = 2K / a
Perimeter P and leg ab = ((P − a)² − a²) / (2(P − a))

The same angle relationships can use B or leg b instead. The tool accepts seven input selections: both legs; hypotenuse and one leg; one leg and an acute angle; hypotenuse and an acute angle; acute angle and other leg; area and one leg; or perimeter and one leg. Users can specify which leg and angle are referenced.

K=ab2,P=a+b+c

Additional measurements include the altitude to the hypotenuse h = ab/c, semiperimeter s = P/2, inradius r = (a + b − c)/2, and circumradius R = c/2. Results appear in a table, a proportionally scaled triangle drawing, side-length bars and a formula breakdown. The length labels support mm, cm, m, km, in, ft and yd; angles are in degrees. Display precision ranges from 0 to 8 decimal places, with CSV, JSON, SVG, PNG and summary-copy export options.

Practical Use Cases

Carpenters: Check the diagonal of a rectangular frame by entering its two perpendicular edges, then compare the hypotenuse with the planned brace.

Roof designers: Enter a horizontal run and roof angle to estimate a sloping rafter length, the corresponding rise and the acute angles of the section.

Surveyors: Use a horizontal offset and observed acute angle to calculate a perpendicular distance in a right-triangle layout.

Students: Explore how different known measurements reconstruct the same triangle, and compare the geometry with the Pythagorean and trigonometric formulas.

Graphic designers: Work out the diagonal, area and proportions of a right-angled composition, while viewing the scaled shape and side comparisons.

Accuracy and Limitations

The results use JavaScript floating-point arithmetic, so they are approximate, not exact symbolic values; displayed figures are rounded to the selected 0–8 decimal places. Inputs must be finite and positive, acute angles strictly between 0° and 90°, and the hypotenuse longer than the supplied leg. The solver rejects triangles with leg ratios below 10−14 in either direction. The drawing preserves proportions but is not a dimensioned engineering plan; extremely small features and angle labels may be difficult to see. The tool assumes a flat Euclidean right triangle and does not account for measurement uncertainty.

Frequently Asked Questions

For a right triangle, the squares of the two perpendicular legs add up to the square of the hypotenuse: a² + b² = c².

Yes. An isosceles right triangle has two equal legs and two acute angles of 45° each.

Multiply the two perpendicular leg lengths and divide by two: area = ab/2.

The two acute angles always add up to 90°, because the third angle is 90°.

It lies at the midpoint of the hypotenuse, so the circumradius is half the hypotenuse.

Cite This tool