Worked example: Triangle Calculator
3-4-5. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Known triangle measurements
- Three sides: a, b, c (SSS)
- Length unit
- length units
- Side a
- 3
- Side b
- 4
- Side c
- 5
| Calculated quantity | Example result |
|---|---|
| Triangle area | 6 units² |
| Perimeter | 12 units |
| Angle opposite c | 90 ° |
Triangle Calculator: choose the known measurements before choosing a formula
How do I find the missing sides and angles of a triangle?
Start by identifying what is known. Three sides, two sides with their included angle, and two angles with a side lead to different equations. The Triangle Calculator makes that choice explicit, so an angle is not accidentally treated as the one between the supplied sides.
The lowercase side and uppercase angle labels are paired: side a lies opposite A, b opposite B and c opposite C. The diagram uses those labels consistently. If your question uses other vertex names, relabel the known measurements to match before entering them. Three angles alone determine shape but not size.
Can I calculate triangle area from three side lengths?
Yes. A 3–4–5 triangle has perimeter 12 and area 6 square units. Heron’s formula obtains area from the three sides without requiring an entered height. This implementation scales the sides and uses a rearranged product to reduce avoidable subtraction error near the triangle-inequality boundary.
The longest side must be shorter than the other two combined. Equality produces a collapsed line, not a positive-area triangle. A very thin valid triangle can still be poorly conditioned: the tool rejects numerically unresolved cases rather than claiming a reliable angle or area from rounded data.
When should I use the law of cosines instead of the law of sines?
Use the included-angle mode when sides a and b meet at known angle C. The cosine law determines c; then the completed triangle supplies the remaining measurements. A 3-unit side and 4-unit side meeting at 90° give c = 5 and area 6.
Two known angles and a known side instead establish all angles first, then use sine-law ratios to set the scale. With a = 3, A = 30° and B = 60°, C is 90° and c is 6. Here the known side is opposite A; entering a different known side without relabeling changes the scenario.
Why can the same two sides and angle give two triangles?
An angle opposite one known side is different from an included angle. In this SSA case, a sine ratio can identify both an acute angle and its obtuse supplement. Each candidate must leave a positive third angle before it describes a triangle.
For a = 10, b = 12 and A = 30°, both candidates survive. The possible c values are 6√3 + 8 and 6√3 − 8, approximately 18.392305 and 2.392305. They are different triangles with different areas, not duplicate orientations. The result card, solution tabs and tables retain both instead of choosing one silently.
What do the altitude, median, inradius and circumradius measure?
An altitude meets a side, or its extension, at a right angle. A median joins a vertex to the opposite side’s midpoint. Their lengths generally differ, even though both start at a vertex. In an obtuse triangle an altitude can fall outside the filled triangle.
The inradius describes the circle tangent to all three sides; it equals area divided by semiperimeter. The circumradius describes a circle through all three vertices and equals abc divided by four times the area. A 3–4–5 triangle has inradius 1 and circumradius 2.5. Diagram controls show altitudes, medians and the incircle; the complete table retains all derived lengths.
Should I enter triangle angles in degrees or radians?
Choose the angle unit before interpreting the numbers. A right angle is 90° or pi/2 radians; a full turn is 360° or 2pi radians. Radian fields accept simple pi multiples as well as decimals. Arbitrary expressions and executable input are not evaluated.
All side lengths must share one unit. Area uses its square, while perimeter, medians, altitudes and radii use the original length unit. Changing the unit label reinterprets the numbers; it does not convert them. The proportional figure helps identify the geometry, but rounded labels and approximate classification are not measurement-error analysis.
Formula and calculation method
SSS uses a scaled rearrangement of Heron’s formula, reducing cancellation near the triangle-inequality boundary. Angles use atan2 of area and cosine-law terms.
SAS: c = hypot(a − b, 2√a√b sin(C/2)); this is a stable form of the cosine law. Two angles plus a side use sine-law ratios.
SSA may have zero, one or two triangles. Both B = asin(b sin(A)/a) and its supplement are checked, retaining only positive remaining angles.
Area K = base × perpendicular altitude / 2. Inradius = 2K/perimeter; circumradius = abc/(4K). Medians join vertices to opposite midpoints.
Lengths support 10^−12 through 10^12. Angles below 10^−12 radians or degenerate/ill-conditioned triangles are rejected. Unit labels do not convert the input values.
Scope and Limitations
- Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.
Reference Sources
Frequently asked questions
What information is enough to solve a triangle?
The supported cases are three sides; two sides and their included angle; two angles with side a; or the SSA case with sides a, b and opposite angle A. Three angles alone do not determine size.
Can SSA have two correct answers?
Yes. Both an inverse-sine angle and its supplement can leave positive remaining angles. The calculator retains both valid triangles.
Why are my three side lengths rejected?
They must be positive, satisfy the strict triangle inequality and remain within the supported numeric range and conditioning limits.
Is a median the same as an altitude?
No. A median ends at a side midpoint, while an altitude is perpendicular to the side or its extension.
Does changing the unit label convert my sides?
No. All lengths are interpreted in the selected unit. Convert measurements first if they do not already share one unit.