Triangle Calculator
MathCalculate all sides, angles, area, and perimeter of any triangle. Enter any three known values using SSS, SAS, or ASA method to get complete triangle properties instantly.
Area
ScalenePerimeter
18
Type
Scalene
Sides
Angles
A + B + C = 180° ✓
What is a Triangle?
The Triangle Calculator solves any triangle completely — finding all three sides, all three angles, area, and perimeter — from just three known values. Choose from three input modes: SSS (all three sides), SAS (two sides and the angle between them), or ASA (two angles and the side between them). The calculator applies the law of cosines and law of sines to derive every unknown, and automatically classifies the triangle as scalene, isosceles, equilateral, or right.
Unlike the Pythagorean Theorem Calculator which is restricted to right-angled triangles, this tool works for any triangle — acute, right, or obtuse. Triangles are the most fundamental polygon in geometry, and solving them is a skill with applications ranging from land surveying and structural engineering to trigonometry examination problems in Class 11 and competitive exams like JEE.
In Indian land records and construction, triangular parcels arise whenever roads meet at odd angles or when plots are bounded by natural features like rivers. Surveyors traditionally use the law of sines and cosines to compute areas and boundaries from measured angles and distances — this calculator automates that process.
For computing area alone (when base and height are known), the Area Calculator is simpler. But when you need angles, full side resolution, or the triangle classification, use the Triangle Calculator.
How to use this Triangle calculator
Select Known Values mode — click SSS if you know all three sides, SAS if you know two sides and the angle between them, or ASA if you know two angles and the side between them.
Enter Side inputs (SSS mode) — type values for Side a, Side b, and Side c using the sliders or direct input. Ensure the three sides satisfy the triangle inequality (sum of any two > third).
Enter Side and Angle inputs (SAS mode) — enter Side a and Side b, then set Included Angle C (the angle between those two sides) using the slider (1° to 178°).
Enter Angle and Side inputs (ASA mode) — set Angle A and Angle B (they must sum to less than 180°), then enter Included Side c (the side between those two angles). Angle C is computed automatically as 180°−A−B.
Read all outputs — the primary result card shows area and perimeter. The side-by-side panel below lists all three computed sides and all three angles. The triangle type badge (Equilateral / Isosceles / Right / Scalene) appears in the result header.
Verify A+B+C = 180° — the green confirmation line at the bottom of the angles panel confirms the result is consistent and no rounding error has accumulated beyond acceptable limits.
Formula & Methodology
Law of Cosines (SSS — finding angles):cos(A) = (b² + c² − a²) / (2bc)cos(B) = (a² + c² − b²) / (2ac)C = 180° − A − B Law of Cosines (SAS — finding the third side):c = √(a² + b² − 2ab·cos C) Law of Sines (ASA — finding unknown sides):a / sin(A) = b / sin(B) = c / sin(C) Area formulae:SSS: s = (a+b+c)/2 ; Area = √(s(s−a)(s−b)(s−c))SAS: Area = ½ × a × b × sin(C)ASA: Area = ½ × a × b × sin(C) after sides resolved Perimeter: P = a + b + c Worked example — surveying a triangular plot in Bengaluru: A plot of land has two measured sides of 18 m and 24 m with an included angle of 55° between them (SAS mode). Step 1 — Third side (law of cosines):c = √(18² + 24² − 2 × 18 × 24 × cos 55°)c = √(324 + 576 − 864 × 0.5736)c = √(900 − 495.59) = √404.41 ≈ 20.11 m Step 2 — Area:Area = ½ × 18 × 24 × sin 55° = ½ × 432 × 0.8192 ≈ 176.94 sq m Step 3 — Perimeter:P = 18 + 24 + 20.11 = 62.11 m Step 4 — Remaining angles (law of cosines):A ≈ 46.9°, B ≈ 78.1° (sum with C = 55° → 180° ✓) Assumption: All calculations assume Euclidean plane geometry. Angles must be entered in degrees, not radians. For the ASA mode, the two known angles must be positive and sum to less than 180°; otherwise no valid triangle exists.