Triangle Calculator
MathCalculate all sides, angles, area, and perimeter of any triangle. Enter three known values using SSS, SAS, or ASA to get complete properties.
Reviewed by the thecalcu.com team · Last updated June 23, 2026
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.
Why Use a Triangle Calculator?
Solving a triangle manually is multi-step: compute one side using the law of cosines, then an angle, then cross-check using the angle sum property. Each step compounds floating-point errors if done with a basic calculator, and the law of sines can produce ambiguous results (two valid triangles) in certain input configurations, a nuance easy to overlook under exam pressure.
This calculator handles all three input modes, resolves the triangle unambiguously (by restricting to SSS, SAS, and ASA, the unambiguous cases), and verifies A+B+C = 180° automatically. The step-by-step breakdown shows which formula was applied at each stage, helping students learn the method rather than just the answer.
For construction professionals, the SAS mode is particularly useful: when two wall lengths and the angle between them are known (e.g., from a site plan), the third wall length and all other properties follow instantly.
Who Should Use This Calculator?
Class 11 and 12 students studying trigonometry under CBSE or ISC, where triangle solving using the law of cosines and sines is a core topic. The calculator reinforces the correct formula sequence and handles the messy arithmetic that distracts from understanding the method.
Surveyors and civil engineers computing boundary lengths, areas, and angles of triangular land parcels or structural members. Real-world triangle problems almost never produce Pythagorean triples, making the general laws essential.
Architecture and interior design students calculating roof pitches, diagonal bracing lengths, and triangular facade elements where arbitrary angles are common.
Competitive exam aspirants (JEE Main, JEE Advanced, NDA) where complex triangle problems with non-standard angle and side combinations appear regularly and quick verification of manual work is valuable.
What Insights Does the Triangle Calculator Give You?
Area, displayed in sq units (whatever unit you use for side lengths). Computed via Heron's formula for SSS, ½ab·sin(C) for SAS, and ½ab·sin(C) after resolving sides for ASA. A very small area relative to side lengths can indicate a nearly degenerate (very flat) triangle, check that the angle inputs are sensible.
Perimeter, the sum a + b + c. Useful for fencing, framing, or boundary measurement of triangular sections.
All three sides (a, b, c), shown in the output panel even in SAS and ASA modes where one or two sides were computed. These are needed whenever you proceed to further calculations using the triangle.
All three angles (A, B, C in degrees), displayed with two decimal place precision. The angle sum A+B+C is verified and shown in the panel; any deviation from 180° beyond rounding (± 0.01°) indicates an arithmetic issue.
Triangle Type, automatically classified: Equilateral (all sides equal), Isosceles (two sides equal), Right (one angle = 90°), or Scalene (no special properties). Right triangles can be verified further using the Pythagorean Theorem 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.
Frequently Asked Questions