Triangle Calculator

Find the triangles your measurements allow. Enter three sides, two sides and an angle, two angles and a side, or right-triangle measurements. Compare both solutions when the information is ambiguous, inspect a scaled diagram, and explore area, heights and circle radii with a complete measurement ledger.

Triangle explorer

See every triangle your measurements allow

Enter all three sides. Each side must be shorter than the other two combined. Each mode keeps its own entries and units. Lowercase sides are opposite the matching uppercase angles.

Your measurements

A blank is not zero. All lengths must be positive. Angles use degrees; the diagram labels each opposite side.

Try an example

1 possible triangle

These measurements determine one triangle up to reflection. The drawing and measurement table describe the same solution.

Area · solution 1
6 cm²
Perimeter
12 cm

1 possible triangle. Solution 1: area 6 cm squared, perimeter 12 cm.

Triangle drawn to proportion

Equal horizontal and vertical scales. Side a joins B and C, opposite angle A. The heavier side is the selected side.

Triangle solution-1, sides a 3 cm, b 4 cm, c 5 cm.Vertices A, B and C use equal x and y scales. The heavier side is the selected side. All measurements and coordinates are available in the table. abcABC

A is (0, 0), B lies on the positive X axis and C is above it. Lengths use cm; the diagram fits its panel and is not a print-scale drawing. Mirror images have the same measurements and are not counted as extra solutions.

Side a

3 cm

Between B and C; opposite angle A.

Angle A

36.8699°

Altitude to a

4 cm

Perpendicular distance to this side’s line; the foot may lie outside the segment.

Triangle measurements and coordinates

Solution 1. Displayed values are rounded; CSV retains full calculation values, angle complements and your original lengths in metres. Coordinate units are cm.

Sides, opposite angles and altitudes for the selected triangle
Side / opposite angleLength (cm)AngleAltitude (cm)
a / A336.8699°4
b / B453.1301°3
c / C590°2.4
Semiperimeter
6 cm
Inradius
1 cm
Circumradius
2.5 cm
Vertex, center and altitude-foot coordinates
Coordinates in cm, A at the origin and B on the positive X axis
PointX (cm)Y (cm)
A00
B50
C3.22.4
I · incenter31
O · circumcenter2.50
Foot on a3.22.4
Foot on b3.22.4
Foot on c3.20
How this solution was calculated
  1. Exact side gaps and stable Heron factors

    K = √[(L+(M+S))(S−(L−M))(S+(L−M))(L+(M−S))] /4, L≥M≥S

    a=3, b=4, c=5 cm; positive area=6 cm².

  2. Perimeter and area

    P=a+b+c; s=P/2; K=c·h_c/2

    P=12 cm; s=6 cm; h_c=2.4 cm.

  3. Heights and circle radii

    h_a=2K/a, h_b=2K/b, h_c=2K/c; r=K/s; R=abc/(4K)

    r=1 cm; R=2.5 cm.

  4. Coordinate convention

    A=(0,0), B=(c,0), C=(x,y); x=(b²+c²−a²)/(2c), y=2K/c>0

    C=(3.2, 2.4) cm. Reflections below AB describe the same triangle lengths and angles.

Export includes every solution, not just the selected diagram.

View CSV text
Method, limits and sources

This is a planar triangle calculation. Sides a, b and c are opposite angles A, B and C. Right-triangle modes fix C = 90° and c as the hypotenuse. Sine/cosine relationships and stable area calculations determine the remaining measurements. SSA can yield two distinct shapes; reflection alone does not count as a second solution.

Enter lengths from 10⁻¹² to 10¹² metres (or their equivalents), with up to 24 significant digits. Angles accept up to 12 decimal places, strictly between 0° and 180°; two entered angles must sum to less than 180°, and a right-triangle acute angle must be below 90°. Blank, malformed or unsupported inputs are not replaced with assumptions. Derived quantities can fall outside the entered-length bounds.

Unit changes use exact international conversion factors. When a converted display needs rounding, its unchanged entry retains the original length in metres; editing that field makes the new text authoritative. Each mode retains its own drafts and unit. Trigonometric and derived results are numerical approximations, not measurement certainty. Near-flat angles use 180° minus their positive complement when ordinary rounding would hide it.

Altitudes meet a side’s line, which may extend outside the triangle. The incircle touches all sides; the circumcircle passes through all vertices and can have a distant center for a thin or obtuse triangle. These are mathematical dimensions, not construction, structural or surveying approval.

How to use this calculator

  1. Choose the measurements you know. SSS uses a, b and c; SAS uses b, c and their included angle A; two-angle mode uses A, B and any one named side. Each mode retains its own draft.
  2. Enter positive lengths and angles in degrees. Lowercase side labels are always opposite the matching uppercase angle. Choose the length unit; a valid unit change preserves the physical size.
  3. For SSA, enter a, b and angle A opposite a. Read whether zero, one or two triangles fit, and inspect each available solution. For right triangles, C is 90° and c is the hypotenuse.
  4. Inspect the scaled diagram and its numerical measurements. Compare area, perimeter, altitudes and circle radii, and use the geometry views to see how those quantities relate.
  5. Read the solution steps and limitations, then download the full CSV or select its text. Exported values retain more digits than the compact display without claiming measurement accuracy.

The Formula

The mathematical logic powering this calculation is:

Sides a, b and c lie opposite angles A, B and C. A + B + C = 180°.
Law of cosines: a² = b² + c² − 2bc cos A.
Law of sines: a/sin A = b/sin B = c/sin C. In SSA, both B and 180° − B must be checked against the remaining angle.
Area Δ = ½bc sin A = √[s(s − a)(s − b)(s − c)], where s = (a + b + c)/2. The implementation uses stable factored arithmetic for narrow triangles.
Altitude to side a: hₐ = 2Δ/a; similarly for b and c. Inradius r = Δ/s. Circumradius R = abc/(4Δ).
Right-triangle modes fix C = 90° and c as the hypotenuse, so a² + b² = c².

Worked Example

If you input:

  • Known measurements: Three sides — SSS
  • Length unit: Centimetres
  • Side a: 3
  • Side b: 4
  • Side c: 5

Result:

One triangle fits. The perimeter is 12 cm and area is 6 cm². Angles A and B are approximately 36.86989765° and 53.13010235°, and C is 90°. The altitudes to a, b and c are 4 cm, 3 cm and 2.4 cm. Its inradius is 1 cm and circumradius is 2.5 cm. With A at (0, 0) and B at (5, 0), vertex C is (3.2, 2.4) cm.

Frequently Asked Questions

Which measurements are enough to solve a triangle?

Three sides, two sides with their included angle, or two angles with one side determine one nondegenerate triangle when the measurements are compatible. Two sides and a non-included angle can determine zero, one or two triangles. Three angles alone determine a shape but not its scale, so this calculator requires at least one length. Dedicated right-triangle choices use the known 90° angle.

Why can SSA give two different triangles?

An angle and its supplement have the same sine. If both candidate angles leave a positive third angle, the same entered side lengths and angle describe two triangles. The calculator keeps both solutions instead of silently choosing one. Tangency can produce one solution, while incompatible measurements produce none. A numerically unresolved boundary is reported separately rather than guessed.

How do I label the sides and angles?

Side a is opposite vertex A, side b is opposite B, and side c is opposite C. In the diagram, A is the origin, B lies on the horizontal axis, and C lies above it; mirrored drawings describe the same lengths and angles. SAS uses sides b and c because they meet at A. In every right-triangle mode, C is the right angle and c is the hypotenuse.

Do unit changes change the triangle?

A valid unit change converts the editable lengths and all output lengths together, with area using the squared unit. The original exact lengths in metres are retained when converted text needs rounding. Editing a converted value makes that new value the input. Invalid active drafts remain intact and must be corrected before conversion. Inches and feet use their international definitions, not the former U.S. survey foot.

What do the altitudes and circle radii mean?

An altitude is the perpendicular distance from a vertex to the line containing the opposite side. In an obtuse triangle its foot can lie outside the side segment. The incircle touches all three sides; the circumcircle passes through all three vertices. Their centres and radii can lie outside the triangle or far from it, so a diagram view may need a different scale. These geometric quantities do not establish structural adequacy.

How are very narrow or nearly flat triangles handled?

The model checks entered decimal side inequalities exactly and uses stable factored area and angle calculations. A narrow triangle is not rejected merely because it is hard to draw. Some features may be smaller than a screen pixel; use the numerical ledger for those values. If an angle rounds to 180° while a meaningful positive complement remains, it is expressed as 180° minus that complement. Unsupported numerical results are reported explicitly.

What are the accepted input limits?

Entered lengths must correspond to 10⁻¹² through 10¹² metres and may contain up to 24 significant decimal digits. Decimal scientific notation is accepted; fractions and partial numbers are not. Angles are in degrees with at most 12 effective decimal places, strictly between 0° and 180°; a right-triangle acute angle must be below 90°. Two entered angles must add to less than 180°. Derived lengths may exceed the input bounds if the calculation remains representable.

Can I use the diagram or CSV as a construction drawing?

The diagram and CSV describe ideal planar geometry from the entered measurements. They do not include material thickness, measurement uncertainty, terrain, structural loads, joinery or code requirements. The export includes the stated input units, original known lengths in metres, solution status and all available solution measurements and coordinates. Use it for checking geometry and comparing cases, with the relevant project requirements assessed separately.

Similar Calculators