Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Triangle Length Calculator

Find a missing triangle side from one known side, the angle opposite it and a second angle, using the law of sines; the third angle is returned too.

Triangle Length Calculator

°
°
Solved side b
8.6603
Length of side b, the side facing target angle B, in the same unit as side a.
Third angle
90°

Background.

In any triangle, the sides are in proportion to the sines of the angles facing them. A side opposite a 60° angle is longer than a side opposite a 30° angle by exactly sin 60° ÷ sin 30°, about 1.732, whether the triangle is drawn on paper or pegged out across a field. That single proportion turns one measured length into every other length, as long as you know the angles.

Finding a missing length starts with knowing which kind of problem you have. In a right triangle, Pythagoras or the basic sine, cosine and tangent ratios do the job. With two sides and the angle between them, the law of cosines gives the third side. With two sides and an angle that is not between them, two different triangles can fit the data, and the problem needs care. The case handled here is the forgiving one: one side and two angles, which always pins down exactly one triangle as long as the angles leave room for a third.

You supply side a, the angle A facing it and a second angle B. The page returns side b, the one facing B, in whatever unit a was measured in, together with the third angle. Angle pairs adding up to 180° or more are refused, because no triangle can contain them.

Most wrong answers come from pairing the known side with the wrong angle. A is not one of the angles touching side a; it is the corner directly across from it. In the example on this page, putting the 60° angle in A instead of the 30° one gives a side of about 2.887 instead of 8.660, out by a factor of three, and nothing else in the output looks amiss.

What is triangle length calculator?

Here a triangle side length means the length of one side worked out from another side and the triangle's angles. The tool is the law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C, which holds in every triangle, whether acute, right-angled or obtuse. Given side a and the angles A and B, the unknown side b is fully determined, and the third angle C follows from the fact that the three angles total 180°. One side is solved per run, in any length unit.

How to use this calculator.

  1. Sketch the triangle and mark the corner directly across from the side you know as A. Enter that side's length in Known side a, in metres, feet or any other unit.
  2. Enter the angle at that opposite corner in Opposite angle A, in degrees.
  3. Enter the angle at the corner facing the side you want in Target angle B. If what you measured was an outside angle, subtract it from 180° before entering it.
  4. Read Solved side b, in the same unit as side a, and the Third angle. For the remaining side, put that third angle into Target angle B and solve once more.

The formula.

b = a·sin(B)/sin(A); C = 180°−A−B

b = a × sin B ÷ sin A, and C = 180° − A − B. The first equation is the law of sines, a ÷ sin A = b ÷ sin B, rearranged for b. The ratio sin B ÷ sin A depends only on the two angles, so side b is simply side a multiplied by a fixed scale factor: double the known side and the answer doubles, while changing the angles changes only that factor. Angles are converted from degrees to radians before the sines are taken. Because sin x equals sin(180° − x), an obtuse angle gives the same scale factor as its supplement, but the angle sum still fixes the third angle, so there is never more than one triangle to choose between. Each angle must be greater than 0° and less than 180°, and A plus B must stay below 180°.

A worked example.

Example

Side a is 5 units long, the angle facing it is A = 30°, and the target angle is B = 60°. The sines are sin 30° = 0.5 and sin 60° ≈ 0.8660254, so the scale factor is 0.8660254 ÷ 0.5 = 1.7320508 and side b is 5 × 1.7320508 = 8.6603. The third angle is 180 − 30 − 60 = 90°. That right angle at C allows an independent check with Pythagoras: 5² + 8.6603² = 25 + 75 = 100, so the hypotenuse is √100 = 10, and the longest side faces the largest angle as it should. Now swap the angles by mistake, 60° in A and 30° in B. The page returns 5 × 0.5 ÷ 0.8660254 ≈ 2.8867513, exactly a third of the correct length, while the third angle still reads 90°. Only checking which corner faces the known side catches it.

target Angle60
opposite Angle30
known Side5

Frequently asked questions.

Which method should I use to find a missing side of a triangle?
It depends on what you know. In a right triangle, use Pythagoras or the basic trig ratios. With two sides and the angle between them, use the law of cosines. With one side and any two angles, use the law of sines, as this page does.
How does the sailor's rule of doubling the angle on the bow work?
If a lighthouse is 30° off the bow and, after sailing a measured distance, it is 60° off, the distance now to the light equals the distance sailed. Enter that run as side a with A = 30° and B = 30°, and b comes out equal to a.
How can I tell at a glance whether my answer is plausible?
In every triangle the longest side faces the largest angle and the shortest side faces the smallest. If B is bigger than A, side b must come out longer than side a; in the example, 60° beats 30° and 8.66 beats 5.
I measured an exterior angle. How do I use it?
An exterior angle and the interior angle at the same corner add up to 180°, so subtract it from 180° to get the interior angle. An exterior angle of 130° means an interior angle of 50°, and that is the value to enter.
Can I get the height of the triangle from these results?
Yes. The height from corner C down to side c equals b × sin A, or equivalently a × sin B. In the example both give 8.6603 × 0.5 = 5 × 0.8660254 ≈ 4.33, the perpendicular distance from C to the opposite side.
Does it work when one of the angles is obtuse?
Yes. Sines of angles between 90° and 180° are positive, so the law of sines applies unchanged. With a = 5, A = 30° and B = 110°, side b is 5 × 0.9396926 ÷ 0.5 ≈ 9.397 and the third angle is 40°.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
b = a·sin(B)/sin(A); C = 180°−A−B
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon