Solve any triangle from sides, angles, or right-triangle legs — get every angle, side, area, perimeter, and classification.
Choose a mode, enter your known sides and/or angles, and click Calculate
This triangle solver works out every missing angle, side, area, and perimeter of a triangle no matter which three measurements you start with. Choose SSS if you know all three sides, SAS if you know two sides and the angle between them, ASA/AAS if you know two angles and a side, or Right Triangle if you know two legs or a leg and the hypotenuse. Behind the scenes it applies the Law of Cosines, Law of Sines, Heron's formula, and the Pythagorean theorem automatically, and also classifies the result — scalene, isosceles, or equilateral by side length, and acute, right, or obtuse by angle — so you get the complete picture in one place.
For every mode, the solver finds the three interior angles, the three side lengths, the perimeter (their sum), and the area — using Heron's formula for SSS, the ½ab·sin(C) formula for SAS and ASA/AAS, and ½ × base × height for right triangles. It then classifies the triangle by comparing side lengths to each other and the largest angle to 90°.
Geometry, trigonometry, and precalculus students who want a single tool covering every triangle case, construction and roofing professionals working out rafter lengths and pitch angles, land surveyors solving triangular parcels, DIYers and hobbyists building triangular frames or supports, and anyone who has three triangle measurements — of any kind — and wants the full solution without picking which formula applies.
Real triangles rarely arrive labeled with "use the Law of Cosines here." Knowing which of SSS, SAS, ASA/AAS, or a right-triangle shortcut applies to your specific set of known values — and then executing the correct formula without error — is exactly the kind of repetitive, mistake-prone task a single unified solver removes, while also adding the area, perimeter, and classification most standalone formula calculators skip.
Contractors compute rafter length and roof pitch angles from known rise, run, and slope measurements. Land surveyors solve triangular parcel boundaries from measured sides and angles. Engineers verify truss and gusset geometry across all four input cases in one tool. Students check geometry and trigonometry homework covering every triangle type. Hobbyists and makers design triangular braces, shelving brackets, and frames with confidence in the final dimensions.
Every formula behind the four solving modes
SSS, SAS, ASA/AAS, and right-triangle inputs each route to the correct formula automatically.
Regardless of mode, the solver always reports area (via the matching formula) and perimeter (a+b+c).
Every result is labeled by side type (scalene/isosceles/equilateral) and angle type (acute/right/obtuse).
From choosing a mode to reading the full solved triangle
Select SSS, SAS, ASA/AAS, or Right Triangle based on which three measurements you already know.
Type in the sides and/or angles for your chosen mode. For Right Triangle mode, pick "Two Legs" or "Leg + Hypotenuse" first.
The solver validates your inputs, then applies the correct formula (Law of Cosines, Law of Sines, Heron's formula, or the Pythagorean theorem).
Review all three angles and all three sides of the fully solved triangle.
See the computed area, perimeter, and the triangle's classification (e.g. "scalene, acute" or "isosceles, right").
Solving a triangle with sides 5, 6, and 7 — angles, area, perimeter, and classification
A triangular garden bed has three measured sides: a = 5, b = 6, c = 7 meters. What are its angles, area, perimeter, and classification?
Explanation: Starting from three sides alone (SSS) was enough to recover every angle, the area via Heron's formula, the perimeter, and a complete classification — no angle measurement was needed anywhere in the process.
What each output means across all four modes
| Output | What It Represents | Notes |
|---|---|---|
| Angle A, B, C | The three interior angles | Always sum to exactly 180° |
| Side a, b, c | The three side lengths | Each must be positive; largest side is opposite the largest angle |
| Area | The two-dimensional space enclosed by the triangle | Always in squared units (e.g. m²) |
| Perimeter | The total distance around the triangle | Equal to a + b + c, in linear units |
| Side classification | Scalene, isosceles, or equilateral | Based purely on comparing side lengths |
| Angle classification | Acute, right, or obtuse | Based on comparing the largest angle to 90° |
Reading the results together: the two classifications (side-based and angle-based) are independent — a triangle can be, for example, isosceles and right, or scalene and obtuse, in any combination except that an equilateral triangle is always acute.
Typical ranges: all sides must be positive, all angles must fall strictly between 0° and 180° and sum to 180°, and area and perimeter must both be positive.
Manual verification: once you have all three sides and angles, recompute the area a second way (e.g. Heron's formula from the sides, or ½ab·sin(C) from two sides and an angle) — both should agree closely, confirming the solved triangle is internally consistent.
Each mode's input labels are fixed, so you simply match your known values to the labeled fields on the active tab. In SSS mode enter your three side lengths into the a, b, and c boxes. In SAS mode enter the two sides you know as a and b and the angle between them as angle C. In ASA/AAS mode enter angle A, angle B, and side a (the side opposite angle A). The labels only name the measurements; swapping them just renames the angles in the result, so a labeling mix-up cannot change the solved triangle.
The Law of Cosines, c = sqrt(a^2 + b^2 - 2ab*cos(C)), is only valid when C is the angle that sits directly between sides a and b. If you enter an angle that lies opposite one of the two sides instead, that is no longer the SAS case. It is the SSA configuration, which can be ambiguous, and it is handled by our dedicated Law of Sines Calculator rather than by this solver.
By convention, side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. This pairing gives you a built-in sanity check: in any triangle the longest side always faces the largest angle, so if the result lists side c as the longest, angle C should be the largest one as well.
Only degrees. Every angle field across the SSS, SAS, ASA/AAS, and Right Triangle tabs expects degrees, and all angle results are reported in degrees too. If your measurement is in radians, convert it first by multiplying by 180/pi; for example, pi/3 radians equals 60 degrees.
The hypotenuse is the side opposite the 90 degree angle, and a larger angle always faces a longer side. Because the other two angles of a right triangle sum to 90 degrees, each is smaller than the single 90 degree angle, so the hypotenuse has to be longer than both legs. This is also why Leg + Hypotenuse mode rejects an input where the hypotenuse is not strictly longer than the given leg.
Every triangle's three angles must sum to exactly 180 degrees. If angle A plus angle B already equals or exceeds 180 degrees, no room is left for a positive third angle, so no triangle can exist. The solver returns a clear error for this case instead of producing an impossible result.
Where a single tool covering every triangle case is genuinely useful
Check SSS, SAS, ASA/AAS, and right-triangle problems in one place.
Solve the rise/run/rafter right triangle for accurate roofing cuts.
Solve triangular parcel boundaries from any combination of sides and angles.
Verify triangular brace, gusset, or truss dimensions before cutting material.
Check the right-triangle geometry of a ladder's height, base distance, and length.
Design triangular shelf brackets, braces, and frames with confidence in the cut dimensions.
Check triangular facade, gable, or truss elements against design specifications.
Solve course triangles from any mix of known legs, angles, or bearings.
Resolve force, velocity, or displacement triangles regardless of which values are known.
Solve triangle geometry for meshes, collision shapes, and procedural generation.
Estimate paint, flooring, or land coverage from a triangular area calculation.
Solve link-and-joint triangles for arm reach and positioning calculations.
Quickly determine whether a triangle is scalene/isosceles/equilateral and acute/right/obtuse.
What this triangle solver does well, and where it doesn't apply
SSS, SAS, ASA/AAS, and Right Triangle side by side
| Mode | Known Values | Core Formula | Area Formula |
|---|---|---|---|
| SSS | All three sides | Law of Cosines (for angles) | Heron's formula |
| SAS | Two sides + included angle | Law of Cosines (for third side) | ½ab·sin(C) |
| ASA / AAS | Two angles + one side | Law of Sines | ½ab·sin(C) after solving sides |
| Right Triangle | Two legs, or leg + hypotenuse | Pythagorean theorem | ½ × leg × leg |
Summary: This triangle solver handles SSS, SAS, ASA/AAS, and right-triangle inputs in one place, always returning area, perimeter, and classification alongside every angle and side. For the ambiguous SSA case specifically, use the Law of Sines Calculator; for a narrower SAS/SSS-only tool, see the Law of Cosines Calculator.
Common questions about solving triangles
Trusted educational references to go deeper on triangle geometry
Explore other trigonometry and geometry tools