Mathematics
Triangle: area, angles and radii
Choose three sides, a side and two angles, or two sides and the opposite angle. Show every valid SSA solution when two triangles are possible.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows, with exact values where available. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.
Result
Formula / calculation:
Lengths use one common unit chosen by you; area uses its square. Angles are degrees. Positive sides at most 1e9; degenerate or numerically unresolved triangles are refused. Floating-point answers do not establish measurement accuracy or structural safety. Alpha is opposite a; beta opposite b. SSA may have no solution, one solution or two; no arbitrary choice is made. Not a general symbolic solver. Nonzero input magnitudes below 1e-30 or above 1e9 are refused. When two solutions exist, each result row gives both raw values prefixed 1 and 2.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Explicit geometry and ideal-model arithmetic; angles in degrees, entered dimensions and rates, or SI motion units. Lengths use one common unit chosen by you; area uses its square. Angles are degrees. Positive sides at most 1e9; degenerate or numerically unresolved triangles are refused. Floating-point answers do not establish measurement accuracy or structural safety. Alpha is opposite a; beta opposite b. SSA may have no solution, one solution or two; no arbitrary choice is made. Not a general symbolic solver. Nonzero input magnitudes below 1e-30 or above 1e9 are refused. Two solutions: both raw values in each result row, marked 1 and 2.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Known quantities
- Three sides (SSS)
- Side a opposite alpha
- 3
- Side b opposite beta
- 4
- Side c opposite gamma
- 5
Result
- Number of valid triangles
- 1
- Side a
- 3
- Side b
- 4
- Side c
- 5
- Alpha (degrees)
- 36.8698976458
- Beta (degrees)
- 53.1301023542
- Gamma (degrees)
- 90
- Area (square chosen length unit)
- 6
- Perimeter (chosen length unit)
- 12
- Altitude to a
- 4
- Altitude to b
- 3
- Altitude to c
- 2.4
Frequently asked questions
How do I calculate the area of a triangle from three sides?
Choose three sides (SSS). The triangle calculator uses a stable equivalent of Heron's formula. Sides 3, 4 and 5 give an area of 6 and a perimeter of 12.
Can two different triangles fit two sides and an angle?
Yes. With two sides and the opposite angle (SSA) there may be no solution, one or two. The triangle calculator shows every valid solution, marked 1 and 2.
Which formula is used for a side and two angles?
For ASA and SSA cases the triangle calculator uses the law of sines, a/sin(alpha) = b/sin(beta) = c/sin(gamma).
Does the triangle calculator give the incircle and circumcircle radius?
Yes. It also shows the altitudes to each side. For sides 3, 4 and 5 the incircle radius is 1 and the circumcircle radius is 2.5.
Which units and limits apply in the triangle calculator?
Lengths use one common unit of your choice, area uses its square and angles are in degrees. Sides must be positive and at most 1e9; degenerate triangles are refused.