Triangle Calculator
Enter any three values including at least one side. The solver fills in the missing sides/angles and shows area, perimeter, heights, inradius, circumradius—plus worked steps.
Your inputs (tap the diagram)
How we solved it (steps)
Steps will appear after you enter enough values.
Triangle results
Sides & angles
- a = —
- b = —
- c = —
- A = —°
- B = —°
- C = —°
Area & radii
- Perimeter = —
- Area = —
- Inradius (r) = —
- Circumradius (R) = —
Results interpretation
- Check plausibility: angles should sum to ~180°; sides must obey the triangle inequality.
- Area & Altitudes: Area = ½·base·height; if base doubles, altitude halves for the same area.
- Who this is for: geometry homework, surveying, carpentry layout, quick trig sanity-checks.
- Ranges: Angles in (0°,180°); sides & radii > 0; tiny rounding differences are normal.
How this calculator works (show math)
We solve based on the first matching case: SSS, SAS, ASA/AAS, or SSA (principal solution).
- Law of Cosines:
c² = a² + b² − 2ab cos C
- Law of Sines:
a / sin A = b / sin B = c / sin C = 2R
- Angles sum:
A + B + C = 180°
- Heron’s area:
Area = √[s(s − a)(s − b)(s − c)]
,s = (a + b + c)/2
- Inradius:
r = Area / s
, Circumradius:R = a / (2 sin A)
Assumptions & limits: real values only; SSA ambiguities show the principal solution; outputs are rounded for display.
Triangle facts, theorems, and visual guides
A triangle is a polygon with three vertices and three sides. We label the vertices A, B, C and the sides opposite them a, b, c. Triangles are often described by their side lengths (equilateral, isosceles, scalene) or by their angles (right, obtuse, acute). The drawings below are simplified, schematic guides—not to scale.
Types by sides
Small slashes (“tick marks”) on edges are a common convention: the same number of ticks indicates equal length. Angle arcs near a vertex communicate relative angle size.
Types by angles
Core theorems you’ll use often
- Angle-sum theorem:
A + B + C = 180°
. - Triangle inequality: each side is shorter than the sum of the other two (
a < b + c
, etc.). - Law of Sines:
a/ sin A = b/ sin B = c/ sin C
. - Law of Cosines:
c² = a² + b² − 2ab cos C
(and cyclic).
In a right triangle, the side opposite the 90° angle is the hypotenuse, and the Pythagorean identity a² + b² = c²
applies. For general triangles, the laws of sines and cosines let you solve for missing sides or angles once three compatible measurements are known.
What this Triangle Calculator does
This Triangle Calculator helps you solve any triangle by entering any three known values that include at least one side. It instantly finds the remaining sides and angles, plus useful measures such as area, perimeter, heights, inradius and circumradius. The tool supports degrees or radians, shows step-by-step math, and draws a triangle to scale so you can visually confirm results. Keywords: triangle calculator, law of sines, law of cosines, Heron’s formula, inradius, circumradius, missing angle in triangle.
Behind the scenes, the solver combines the Law of Sines, Law of Cosines, and Heron’s formula with basic identities such as the angle-sum theorem (A + B + C = 180°
). It also validates inputs (for example, triangle inequality) and explains the path used to get each answer.
How to use this triangle calculator
- Choose the angle unit (Degrees or Radians).
- Enter any three values (e.g., two sides and an angle, or three sides). At least one must be a side.
- The remaining measures fill in automatically. Use the diagram to confirm which angle or side you’re setting.
Finding the angle of a triangle
There are several common cases. The calculator detects which case your inputs match and applies the appropriate identity:
- SAS (two sides and included angle): use the Law of Cosines to find the opposite side, then the Law of Sines to get the unknown angles.
- ASA or AAS (two angles and a side): first compute the third angle via
180° − (A + B)
, then use the Law of Sines to scale sides. - SSS (three sides): use the Law of Cosines to recover each angle.
Sum of angles in a triangle
In Euclidean geometry the interior angles satisfy A + B + C = 180° (or π
radians). This theorem anchors all angle calculations—after two are known, the third is fixed.
Exterior angle of a triangle
An exterior angle is formed by extending one side. Its measure equals the sum of the two remote interior angles: exterior at A = B + C
. This relationship is handy for quick checks.
Angle bisector of a triangle
The angle bisector splits an angle into two equal parts. If it bisects angle A, and the opposite side is a
with the adjacent sides b
and c
, the bisector divides side a
proportionally: BD/DC = c/b
. The intersection of the three angle bisectors is the incenter, the center of the incircle.
c:b
.Formulas used (overview)
- Law of Sines:
a / sin(A) = b / sin(B) = c / sin(C)
. - Law of Cosines:
c² = a² + b² − 2ab cos(C)
and cyclic permutations. - Area (Heron):
Area = √(s(s − a)(s − b)(s − c))
, wheres = (a + b + c)/2
. AlsoArea = ½ab sin(C)
when two sides and the included angle are known. - Heights:
h_a = 2·Area / a
(and similarly forh_b
,h_c
). - Inradius:
r = Area / s
. Circumradius:R = a / (2 sin A)
(or any side / 2 sin its opposite angle).
Finding missing angles and sides (worked ideas)
Suppose you know SAS: b = 7
, c = 9
, and A = 30°
. First compute the opposite side using Cosines: a = √(b² + c² − 2bc cos A)
. Then apply Sines to get B or C: sin B = b·sin A / a
. Finish with C = 180° − (A + B)
.
If you know all three sides (SSS), use Cosines to recover one angle, then Sines (or Cosines again) for the others. If two angles are known (ASA/AAS), get the third by subtraction and scale the sides with Sines.
Assumptions & limits
- Euclidean (flat) geometry is assumed; on curved surfaces the angle sum may differ from 180°.
- Inputs must satisfy the triangle inequality (
a < b + c
, etc.). The solver warns when values are inconsistent. - When SSA (two sides and a non-included angle) is supplied, an ambiguous case can occur. The calculator checks whether 0, 1, or 2 triangles fit and reports the valid configuration.
Why this matters
Triangles pop up in construction, navigation, surveying, graphics, robotics, physics problems, and standardized tests. A reliable triangle solver saves time, prevents arithmetic slips, and gives you an immediate visual check—especially helpful when values are close to edge cases (nearly collinear, very obtuse, or very acute).
Tip: after solving, switch between Degrees and Radians to copy the angles in the unit your workflow needs.
When to use each mode
- SSS: you measured all three sides; get every angle and the area.
- SAS: two sides and the included angle; solve the remaining side and angles.
- ASA/AAS: two angles and a side; use the angle sum and Law of Sines.
Calculations are rounded for readability. For precision work, increase decimal places in your inputs and record outputs with appropriate significant figures.
Use cases & worked examples
Example 1 — SSS (sides 7, 8, 9)
- Perimeter: 24.00
- Area (Heron): 26.83
- Angles: A ≈ 46.57°, B ≈ 58.41°, C ≈ 75.03°
Example 2 — SAS (b = 10, c = 7, ∠A = 45°)
- Third side a ≈ 7.071
- Area: 24.75
- Perimeter: 24.07
- Angles: B ≈ 89.42°, C ≈ 45.58°
Example 3 — ASA (A = 30°, B = 60°, side a = 10)
- Angle C: 90°
- Sides: b ≈ 17.321, c ≈ 20.000
- Perimeter: 47.321
- Area: 173.205
Triangle Calculator — FAQ
What’s the difference between SSS, SAS, and ASA/AAS?
SSS uses three sides; SAS uses two sides with the included angle; ASA/AAS uses two angles and any one side. All three uniquely determine a triangle (SSA can be ambiguous).
How do I check if three sides form a valid triangle?
They must satisfy the triangle inequality: each side is less than the sum of the other two.
How do I find the area from sides only?
Use Heron’s formula: K = √(s(s−a)(s−b)(s−c))
with s=(a+b+c)/2
.
How can I tell if a triangle is obtuse or acute?
In SSS, if the largest side squared is greater than the sum of squares of the other two, the angle opposite it is obtuse.
Do I enter degrees or radians?
Enter angles in degrees. Convert radians by multiplying by 180/π.
What about height, inradius, and circumradius?
Height from side a is h_a = 2K / a
. Inradius r = K / s
; circumradius R = a / (2 sin A)
.
Is Heron’s formula stable for very skinny triangles?
It’s numerically safe here for typical inputs. Extremely skewed triangles may benefit from higher precision.
Can the calculator solve right triangles?
Yes—right triangles are a special case. For a right angle C, you also have a² + b² = c²
.