b2KIT

Triangle Solver & Visualizer

Solve triangles from any combination of sides and angles. Shows the triangle to scale with all computed values and area.

Tested tool guide Tested browser tools Checked August 16, 2026

What Triangle Solver & Visualizer does, with a checked example

Give the tool any three facts that pin down a triangle - three sides, two sides and their included angle, two angles and one side - and it computes the missing sides and angles, the area, and redraws the triangle to scale with every value labeled on it. Which formula runs depends on what you supplied: the law of cosines handles the side-heavy cases, the law of sines the angle-heavy ones. The surprise most people hit: side-side-angle input is genuinely ambiguous. Some number triples fit zero, one, or two different triangles, and a single-number answer can hide the second one.

Worked example

A concrete input and expected output from the current implementation.

Input

angles A = 50 deg and B = 60 deg, plus the side between them, c = 10

Expected output

C = 70 deg, a = 8.15, b = 9.22, area = 35.3 square units

Angles must total 180 deg, so C = 180 - 50 - 60 = 70 deg. The law of sines scales the known side: a = 10 x sin(50)/sin(70) = 8.15 and b = 10 x sin(60)/sin(70) = 9.22, and the area is 0.5 x a x b x sin(70) = 35.3.

How the result is produced

1

Choosing the formula

Your three inputs are classified into a textbook case: SSS, SAS, ASA/AAS, or SSA. The law of cosines is applied first for cases that begin with sides, the law of sines for cases that begin with an angle opposite a known side, and the angle-sum rule (angles total 180 degrees) supplies the third angle. Area is one half of two sides times the sine of the included angle.

2

The drawing

The first known side becomes the base, the third vertex is placed from the computed angles or lengths, and the figure is drawn to scale so the shape is right at a glance. Every edge and corner is labeled with its value and the area is shown. Change any input and the computation and drawing update immediately, so the triangle flexes as you edit.

Good uses

  • Checking trigonometry homework: you solved a triangle by hand with the law of sines or cosines and want the remaining sides and angles verified without reworking the algebra.
  • Layout work such as a roof slope or stair stringer, where you know two angles and one measured length and need the other two lengths before marking or cutting material.
  • Field-style distance estimates: sight a distant point from the two ends of a measured baseline, enter the baseline and the two angles, and read the distance to the point without crossing the ground between.

Limits and checks

  • Side-side-angle is the ambiguous case. With sides a = 5 and b = 8 and angle A = 30 deg, the law of sines gives B = 53.1 deg or 126.9 deg, and both are valid triangles. If the tool returns one answer, ask whether the second exists and which one your situation matches.
  • Units are never converted. Enter all sides in the same unit; mixing meters and centimeters produces a figure that is internally consistent but physically wrong, and the area inherits the error.
  • The inputs must describe a real triangle. Two given angles must sum below 180 deg, each side must be shorter than the sum of the other two, and the angle entry must be in degrees rather than radians, which quietly yields nonsense if ignored.

Common questions

I entered two angles and a side and the tool says the input is invalid. What did I do wrong?

The three facts may not describe any triangle: two angles that already sum to 180 deg or more leave no room for a third, and three sides form a triangle only when each is shorter than the sum of the other two. If both hold, the usual culprit is entering radians where the tool expects degrees.

Why did my input produce two triangles?

That is the side-side-angle ambiguous case, and the double answer is correct. Because the sine of an angle equals the sine of its supplement, the same listed facts can fit two different triangles. Both are geometrically valid, so you choose the one matching the real object - for example, whether the unknown angle is acute or obtuse in your drawing.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools