1. Introduction to the Triangle Calculator
A triangle calculator helps you solve the unknown measurements of a triangle from the sides and angles you already know. Depending on the information provided, you can determine missing side lengths, missing angles, area, perimeter, semiperimeter, altitudes, medians, inradius, and circumradius.
This calculator is designed as a complete triangle solver rather than a single-purpose formula tool. Enter the known measurements, and it determines the appropriate geometric relationships, checks whether the values can form a valid triangle, and presents the calculated measurements with step-by-step mathematical details.
For a general triangle, the three sides are commonly written as a, b, and c, while the opposite angles are A, B, and C. The standard correspondence is important: side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. The three interior angles of a Euclidean triangle always add to 180°.
The calculator can also be used when you already know all three sides, when you know two sides and an included angle, or when your problem gives angles together with one or more sides. The underlying methods include the Law of Sines, Law of Cosines, the Pythagorean theorem for right triangles, and Heron's formula for area.
2. How to Use the Triangle Calculator
Start by entering the measurements you know. The calculator works from valid side and angle combinations and determines the remaining quantities when the information is sufficient.
Step-by-Step Procedure:
- Enter the known side lengths and/or angle measurements.
- Make sure each measurement is associated with the correct side or opposite angle.
- Select degrees or radians when entering angles.
- Review the solved sides and angles in real time.
- Check the calculated area, perimeter, and other geometric measurements.
- Use the step-by-step derivation and interactive triangle diagram to verify the result.
For example, if the three sides are 3, 4, and 5, the calculator identifies a right triangle. The resulting angles are approximately 36.8699°, 53.1301°, and 90°, the area is 6, the perimeter is 12, the inradius is 1, and the circumradius is 2.5.
Because rounding is a presentation choice rather than a change to the underlying geometry, increasing the display precision changes the number of digits shown without altering the mathematical calculation.
3. Which Triangle Information Do You Need?
A triangle has six primary dimensions (three sides and three angles). To uniquely define a Euclidean triangle, you generally require at least three independent measurements, with at least one being a side length.
SSSThree Sides Known
When all three sides are known, the triangle is determined if the side lengths satisfy the triangle inequality:
Angles are calculated via the Law of Cosines, and area is found using Heron's formula.
SASTwo Sides and Included Angle
When two sides and the angle between them are known, the Law of Cosines computes the missing third side:
The remaining angles are solved using the Law of Sines or Law of Cosines.
ASA / AASTwo Angles and One Side
First find the third angle via the angle sum rule (A + B + C = 180°), then calculate missing sides using the Law of Sines:
This yields a unique triangle whenever the angle sum is strictly below 180°.
SSATwo Sides and Non-Included Angle
SSA is known as the ambiguous case. Depending on the geometry, it may yield:
- No triangle (side too short to reach base)
- Exactly one unique triangle
- Two distinct valid triangles
This calculator evaluates the altitude h = b·sin A to identify and present both solutions when two exist.
4. Core Triangle Formulas
Every triangle problem relies on three fundamental relationships connecting angles and boundary dimensions:
5. Calculating Triangle Area
Triangle area (denoted K or Area) can be evaluated using different mathematical formulations depending on the available information:
Base and Height Method
The classical triangle area formula is:
The height h must be strictly perpendicular to the chosen base b. For general multi-polygon area computations, you can also refer to our Area Calculator.
Heron's Formula (SSS Area)
When all three side lengths are known without an altitude, Heron's formula calculates the area directly using the semiperimeter s = (a + b + c) / 2:
For a 5-6-7 triangle, the semiperimeter is s = (5 + 6 + 7) / 2 = 9, giving:
6. The Law of Sines
The Law of Sines establishes that the ratio of each side length to the sine of its opposite angle is constant and equals twice the circumradius R:
Matching lowercase sides with uppercase opposite angles is essential: side a faces angle A, b faces B, and c faces C.
Worked Example:
Suppose A = 40°, B = 60°, and a = 10. First, find the third angle:
Then apply the Law of Sines to solve for side b:
7. The Law of Cosines
The Law of Cosines generalizes the Pythagorean theorem to any oblique or obtuse triangle. It relates all three sides to one interior angle:
When solving an SSS triangle for an angle, the formula is rearranged into:
When C = 90°, cos 90° = 0, and the expression simplifies directly to c² = a² + b², reproducing the Pythagorean theorem. Explore our Pythagorean Theorem Calculator for dedicated right-triangle hypotenuse modeling.
8. Right Triangles and Trigonometric Ratios
A right triangle has one interior angle equal to exactly 90°. For legs a and b with hypotenuse c:
For a triangle with legs 6 and 8:
The fundamental trigonometric ratios for angle A in this 6-8-10 triangle are:
For dedicated right-triangle calculations, you can also use the Right Triangle Calculator available on this site.
9. Triangle Altitudes
An altitude is a perpendicular line segment dropped from a vertex to the opposite side. Because area K = ½·a·ha, the three altitudes are:
For a 3-4-5 triangle with area K = 6:
Internal consistency check: ½·a·ha = ½·b·hb = ½·c·hc = K.
10. Triangle Medians
A median is a line segment connecting a vertex to the midpoint of the opposite side. By Apollonius's theorem, the lengths of the three medians are:
For a 5-6-7 triangle, the median to side a = 5 is:
11. Inradius (r) and Circumradius (R)
Every triangle has two unique concentric circles associated with its boundary geometry:
Inradius (r = Area / s)
The inradius r is the radius of the incircle inscribed inside the triangle, tangent to all three sides:
For a 3-4-5 triangle: K = 6, s = 6 &implies; r = 6 / 6 = 1.0000.
Circumradius (R = abc / 4K)
The circumradius R is the radius of the circumcircle passing through all three vertices:
For a 3-4-5 triangle: (3 · 4 · 5) / (4 · 6) = 60 / 24 &implies; R = 2.5000.
12. Triangle Inequality & Existence Verification
Not every triplet of positive numbers can form a geometric triangle. For three segments to connect and form a closed polygon, they must strictly satisfy the Triangle Inequality:
- Degenerate Case (1, 2, 3): 1 + 2 = 3. Because the sum equals the third side, the vertices collapse into a single straight line with zero area.
- Impossible Case (1, 2, 4): 1 + 2 < 4. The two shorter sides cannot span the distance between the endpoints of side 4.
A robust mathematical engine must cleanly reject degenerate and impossible inputs rather than returning distorted zero-area configurations.
13. Degrees vs. Radians & Exact Expressions
Angles may be represented in degrees (°) or radians (rad). A full circle corresponds to 360° = 2π radians:
When entering radians, numerator coefficients are crucial: 2*pi/3 evaluates to 120°, whereas pi/3 evaluates to 60°.
14. Complete Triangle Classification Guide
Classification by Side Lengths:
- Equilateral: All 3 sides are equal (a = b = c), all angles 60°.
- Isosceles: 2 sides are equal, with equal opposite base angles.
- Scalene: All 3 sides have distinct lengths (a ≠ b ≠ c).
Classification by Interior Angles:
- Acute: All three angles are strictly less than 90°.
- Right: Exactly one interior angle equals 90° (π/2 rad).
- Obtuse: Exactly one interior angle is greater than 90°.
15. Complete Worked Example: Solving the 3-4-5 Triangle
Consider a triangle with side lengths a = 3, b = 4, and c = 5:
16. How to Verify a Triangle Calculation
Even with an automated solver, cross-checking results ensures geometric consistency:
- Angle Sum: Sum computed angles: A + B + C = 180° within numerical rounding.
- Side-Angle Ordering: The largest angle must always face the longest side, and the smallest angle faces the shortest side.
- Area Consistency: Verify that K = ½·a·ha = ½·b·hb = ½·c·hc matches Heron's formula.
- Radius Cross-Check: Confirm that Euler's inequality holds: R ≥ 2r.
17. Geometric Vector Visualization
Numerical outputs alone can mask transposition errors. The interactive SVG visualizer in this calculator uses uniform isometric scaling—meaning angles, side proportions, and circular tangencies are rendered true to scale without anisotropic distortion.
When toggled, the circumcircle accurately intersects all three vertices (A, B, C), and the incircle maintains precise internal tangency to all three sides.
18. Common Triangle-Calculation Mistakes
Associating side a with angle B or C invalidates the Law of Sines and Law of Cosines. Side a must always face angle A.
a² + b² = c² holds strictly when C = 90°. For general acute or obtuse triangles, use the Law of Cosines.
Two sides and a non-included angle can produce two valid geometric configurations. Ensure both solutions are reviewed.
Lowercase r is the internal tangent circle (r = K / s); uppercase R is the external circumcircle passing through vertices (R = abc / 4K).
19. Applications in Surveying, Engineering & Physics
Triangulation forms the foundation of modern geodesy, global navigation (GPS), robotics kinematics, and structural engineering. In static mechanics, truss systems are decomposed into triangular networks because the triangle is the only rigid 2D polygon whose angles cannot deform without changing side lengths. In physics, vector addition and orthogonal force decomposition rely directly on right-triangle and oblique-triangle trigonometry.
20. Precision, Rounding, and Units
Geometrical solutions often involve irrational numbers such as √3 or non-terminating decimals. This calculator maintains full 64-bit IEEE floating-point precision internally and rounds strictly at the display layer according to the user's active precision setting (2, 4, or 6 decimals), preserving exact trailing zeros. Physical units are preserved: if input sides are in meters, perimeter and radii are in meters, and area is in square meters.
21. Systematic Method for Solving Any Triangle
- Identify Knowns: List all given sides and angles with their corresponding opposite pairs (a-A, b-B, c-C).
- Classify Case: Identify whether the problem is SSS, SAS, ASA, AAS, or SSA.
- Select Theorem: Use the Law of Cosines for SSS/SAS, the Law of Sines for ASA/AAS, and the Pythagorean theorem for right triangles.
- Verify Bounds: Confirm triangle inequality and angle sums.
- Compute Metrics: Calculate secondary metrics: area, perimeter, altitudes, medians, inradius r, and circumradius R.
22. Summary & Key Takeaways
Solving a triangle is an exercise in identifying the geometric dependencies between given parameters. Use the triangle inequality to verify physical possibility, the Law of Cosines for three sides or two sides with an included angle, the Law of Sines when side-angle pairs are available, and Heron's formula for robust area calculations. Once the core boundary is determined, all secondary properties—from altitudes and medians to inradii and circumradii—follow deterministically.