What this calculator does
The Scalene Triangle Solver finds every element of a general triangle — the three sides a, b and c, the three interior angles A, B and C, the altitude h dropped onto base a, and the area S — from just three known quantities. Because a triangle is fully determined by three independent measurements, you can start from sides, angles, a height, an area, or a mix of these. Fourteen input modes cover the common combinations, including separate options for ambiguous cases where an angle could be acute or obtuse.
How to use it
Pick an input specification from the dropdown, then enter the three values in the order shown for that mode (the helper line lists the meaning of each value). Lengths all use the same unit and results come back in that same unit; angles are entered and reported in degrees; area uses unit squared. For example mode 1 expects the three sides a, b and c, while mode 6 expects sides a and b plus the included angle C.
The formulas explained
The solver leans on three classic relations. The law of cosines, \(c = \sqrt{a^2 + b^2 - 2ab\cos C}\), converts between sides and angles. The law of sines, \(\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}\), scales the triangle once one side-angle pair is known. Heron's formula, \(S = \sqrt{s(s-a)(s-b)(s-c)}\) with \(s = \frac{a+b+c}{2}\), gives the area from three sides, and the altitude onto base a is \(h = \frac{2S}{a}\). The angle sum \(A + B + C = 180\degree\) closes the remaining angle.
Worked example
Mode 1 with a = 3, b = 4, c = 5: \(s = 6\), so $$S = \sqrt{6\cdot 3\cdot 2\cdot 1} = 6.$$ \(A = \arccos(0.8) = 36.8699\degree\), \(B = \arccos(0.6) = 53.1301\degree\), and \(C = 90\degree\). The altitude onto base a is \(h = \frac{2\cdot 6}{3} = 4\). This confirms the familiar right-angled 3-4-5 triangle.
The 14 Input Modes at a Glance
A general (scalene) triangle has three sides a, b, c with opposite angles A, B, C. It is fixed by three independent values, and the combinations fall into the families below. Note: the calculator's mode selector has 12 numbered entries (1–12). This table lists the 14 standard input cases and does not assume which case sits under which dropdown number, so read the label of each entry in the selector. Enter the three values in input1, input2 and input3 in the order the chosen label shows.
| Case | Inputs (in order) | Type | Primary method | Ambiguous? |
|---|---|---|---|---|
| 1 | a, b, c | SSS | Law of cosines for angles; Heron for area | No (needs a+b>c etc.) |
| 2 | a, b, C | SAS | Law of cosines for c, then law of sines or cosines | No |
| 3 | b, c, A | SAS | Law of cosines for a | No |
| 4 | a, c, B | SAS | Law of cosines for b | No |
| 5 | a, B, C | ASA | A = 180° − B − C, then law of sines | No |
| 6 | b, A, C | ASA | B = 180° − A − C, then law of sines | No |
| 7 | c, A, B | ASA | C = 180° − A − B, then law of sines | No |
| 8 | a, A, B | AAS | C = 180° − A − B, then law of sines | No |
| 9 | a, b, A | SSA | Law of sines: sin B = b·sin A / a | Yes: 0, 1 or 2 triangles (B acute or obtuse) |
| 10 | a, b, B | SSA | Law of sines: sin A = a·sin B / b | Yes: 0, 1 or 2 triangles (A acute or obtuse) |
| 11 | a, B, ha | Side, angle, height | c = ha / sin B, then law of cosines | No |
| 12 | a, ha, b | Side, height, side | Area S = a·ha/2, then sin C = ha/b | Yes: C acute or obtuse |
| 13 | a, b, S (area) | Two sides, area | sin C = 2S/(ab), then law of cosines | Yes: C acute or obtuse |
| 14 | a, ha, S (area) | Consistency check | h = 2S/a must hold; not enough to fix the shape alone | Under-determined |
In every case the altitude onto side a is \(h = \frac{2S}{a}\), and the area from three sides is \(S=\sqrt{s(s-a)(s-b)(s-c)}\) with \(s=\frac{a+b+c}{2}\).
Interpreting Your Result
- Classify by angles: acute if all three angles are below 90°, right if one angle equals 90° (then \(a^2+b^2=c^2\) for the right angle opposite c), obtuse if one angle exceeds 90°. A triangle can have at most one angle of 90° or more.
- Classify by sides: scalene means all three sides differ (and so all angles differ); isosceles has two equal sides (and two equal angles); equilateral has three equal sides and three 60° angles.
- Triangle inequality: a valid triangle needs \(a+b>c\), \(a+c>b\) and \(b+c>a\). If the sum of two sides equals the third, the triangle is degenerate (zero area, flat).
- Largest angle opposite the longest side: the order of the angles always matches the order of the sides. In 2-3-4 the longest side, 4, faces the largest angle, 104.48°.
- Angle sum: A + B + C = 180° (in flat, Euclidean geometry). Check this against the output.
- Altitude: \(h_a=\frac{2S}{a}\) is the perpendicular distance from vertex A to line a. It is always shorter than or equal to the other two sides, and it can lie outside the triangle when the angle at B or C is obtuse.
Why SSA can give 0, 1 or 2 triangles. Given sides a, b and angle A (opposite a), the height from C is \(h=b\sin A\).
- If A is acute and \(a<h\): the side a is too short to reach the base, so there is no triangle.
- If A is acute and \(a=h\): exactly one triangle, a right triangle.
- If A is acute and \(h<a<b\): two triangles, because sin B has two solutions, B acute or \(180^\circ-B\) obtuse.
- If A is acute and \(a\ge b\): one triangle (the obtuse option for B would push the angle sum past 180°).
- If A is right or obtuse: one triangle when \(a>b\), none otherwise.
What “no valid triangle” means. The inputs cannot be drawn as a real triangle. Typical reasons are that the triangle inequality fails, the angles already sum to 180° or more, a sine ratio exceeds 1 in an SSA or area-based case (for example \(2S/(ab)>1\)), or a side, height or area is zero or negative. Check the units and that each value is in the position the selected mode expects.
FAQ
Why are there acute and obtuse versions of some modes? When you supply a side pair and a height or an area, the unknown angle can be either acute or its obtuse supplement. Choosing the matching mode removes the ambiguity.
What is the height here? It is the altitude from vertex A perpendicular onto base a, equal to \(\frac{2S}{a}\).
Why did I get "no valid triangle"? The data may break the triangle inequality, require a height larger than a side, give angles summing to 180° or more, or imply an impossible area.