Triangle Tool

Find missing triangle sides and angles using five input methods. View area, perimeter, heights, medians, inradius, circumradius, triangle classifications, and an interactive diagram. Compare possible SSA solutions and export measurements or diagrams.

Triangle diagramDrag vertices to explore the shape
Dragging a vertex updates the dimensions and results. The original input method remains selected.
Measurements
Angle distribution
Triangle properties

Table of Contents

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

Highlights

  • Five solving methods: SSS, SAS, ASA/AAS, SSA and right triangles
  • Interactive triangle diagram with draggable vertices
  • Area, perimeter, angles, heights, medians and circle radii
  • Handles both valid solutions in ambiguous SSA cases
  • Adjustable precision, angle bars and CSV, JSON or image exports

How Triangle Tool Works?

A triangle has three sides (a, b, c) opposite angles (A, B, C). The angles sum to 180°. For three known sides (SSS), the law of cosines determines the angles. For two sides and their included angle (SAS), it first finds the opposite side. With two angles and side c (ASA/AAS), the third angle follows from the angle sum and the law of sines gives the remaining sides.

a2=b2+c2−2bccos⁡A
asin⁡A=bsin⁡B=csin⁡C

The SSA method may yield zero, one or two valid triangles because an inverse sine can correspond to two angles. The right-triangle mode accepts any two independent measurements including at least one side, using right-triangle trigonometry or the Pythagorean theorem. The diagram lets you drag vertices to explore a revised triangle.

From the solved side lengths, the tool computes the semi-perimeter s, area K by Heron’s formula, perimeter P, heights, radii and medians:

s=a+b+c2,K=s(s−a)(s−b)(s−c)

PropertyFormula
PerimeterP = a + b + c
Height to side aha = 2K/a
Inradiusr = K/s
CircumradiusR = abc/(4K)
Median to side ama = ½√(2b² + 2c² − a²)

Equivalent formulas apply to sides b and c. The results also identify the triangle by side equality (equilateral, isosceles or scalene) and angle type (acute, right-angled or obtuse), display angle bars, and provide CSV, JSON, SVG, PNG and copyable outputs.

Practical Use Cases

Students: Check geometry homework by entering three sides, two sides and an included angle, or two angles and a side, then compare calculated sides, angles and the 180° angle sum.

Builders and carpenters: Evaluate a triangular brace or roof section using measured sides, then review its perimeter, area, heights and angle classification.

Architects and designers: Explore alternate triangle proportions on the draggable diagram and inspect how dimensions, area and medians change.

Surveyors: Work with two sides and a non-included angle to check whether one or two geometrically possible layouts fit the measurements.

Engineers: Examine right-triangle leg and hypotenuse relationships and check radius, median or altitude values for a preliminary geometric sketch.

Accuracy and Limitations

Calculations use JavaScript double-precision floating-point arithmetic, with displayed values rounded to a selected 2, 3, 4, 5, 6 or 8 decimal places. Inputs must describe a non-degenerate triangle, and SSA inputs can produce two distinct valid solutions. Very large, very small or nearly collinear dimensions can lose numerical accuracy, particularly for area, radius and angle calculations. Right-triangle mode requires at least one side, and two acute angles alone do not fix the size. Dragging a vertex changes the solved geometry without rewriting the original form inputs.

Frequently Asked Questions

In Euclidean geometry, the three interior angles form a straight angle when arranged together, so their sum is 180°.

No. Every pair of side lengths must sum to more than the remaining side.

Two sides and a non-included angle may define two different triangles. This is the ambiguous SSA case.

The inradius belongs to a circle tangent to all three sides. The circumradius belongs to a circle passing through all three vertices.

An acute triangle has three angles below 90°, a right triangle has one 90° angle, and an obtuse triangle has one angle above 90°.

Cite This tool