Triangle Calculator
Enter the sides and angles you know to solve the rest of a triangle. Modes cover SSS, SAS, ASA, AAS, the ambiguous SSA case, and a Pythagorean mode for a right triangle. Results include the missing sides and angles, the area, the perimeter and a diagram. Angles are in degrees. This is a general-purpose triangle solver — there is not a separate Pythagorean-theorem page, because that case is a mode here.
Triangle calculator
On this calculator: Ctrl+Enter copies the result, Shift+Alt+L copies a link to the current inputs, Shift+Alt+R resets, Shift+Alt+P opens Print / Save PDF. These shortcuts do not run while you type in a field, except Ctrl+Enter.
Saved results on this device
Stored only in this browser, not on our servers.
How to use the triangle calculator – sss, sas, asa, aas, ssa and pythagorean
- Choose a mode. SSS, SAS, ASA, AAS, SSA, or Pythagorean for a right triangle with the right angle at C.
- Enter the known values. Type the sides and/or angles the mode asks for. Side a is opposite angle A, and so on.
- Solve. The calculator checks the triangle inequality or angle sum and returns the missing parts, plus area and perimeter.
- Read the diagram. The figure is labelled with the sides and angles you solved, including both SSA solutions when two are possible.
Formulae
Law of cosines: c² = a² + b² − 2ab cos C
Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C
Pythagoras (right angle at C): c² = a² + b²
Area = (1/2)ab sin C · or · √[s(s−a)(s−b)(s−c)] with s = (a+b+c)/2
Worked examples
SSS: sides 3, 4 and 5. The triangle inequality holds. The largest side is the hypotenuse of a right triangle, so angle C opposite 5 is 90°. Area is 6 and the perimeter is 12. The other angles are about 36.87° and 53.13°.
SAS: sides 8 and 11 with included angle 40°. The third side comes from the law of cosines, then the remaining angles from the law of sines (or a second cosine step). The area is (1/2) × 8 × 11 × sin 40° ≈ 28.28.
Pythagorean mode: legs 5 and 12. The hypotenuse is √(25 + 144) = 13. Area is 30. If you instead enter a = 5 and c = 13, the missing leg is 12.
SSA can have two answers. If angle A and sides a and b allow a second orientation of side a, both triangles are listed. Pick the one that matches your sketch; do not average them.
Use cases and common mistakes
Use the solver for a site layout, a truss, or a homework check. Common mistakes include mixing up which side is opposite which angle, entering angles that already sum to more than 180°, and treating a 3-4-5 result as if the units did not matter — the shape is independent of units, but the area and perimeter are not. For circle measurements rather than a triangle, use the circle calculator. The scientific calculator is there if you need a one-off sine or square root, and the basic calculator covers ordinary arithmetic.
Limitations
Results are numerical, in degrees, with ordinary floating-point rounding. The tool does not produce a formal proof. SSA may have two valid triangles; both are reported when they exist.
Frequently asked questions
What is the 3-4-5 triangle?
It is a right triangle with sides 3, 4 and 5. The area is (3 × 4) ÷ 2 = 6, the perimeter is 12, and the acute angles are arctan(3/4) ≈ 36.87° and arctan(4/3) ≈ 53.13°. That is the default SSS example.
How do I use the Pythagorean mode?
Assume the right angle is at C. Enter legs a and b to get hypotenuse c = √(a² + b²), or enter one leg and the hypotenuse to get the other leg. This replaces a separate Pythagorean-theorem calculator so the two tools do not compete.
What is the ambiguous SSA case?
When you know two sides and a non-included angle, there can be zero, one or two triangles. If the height opposite the known angle allows a second swing of the side, the calculator reports both solutions. Always check which one matches your drawing.
How is the area calculated?
When two sides and the included angle are known, area = (1/2)ab sin C. When all three sides are known, Heron’s formula is used: s = (a+b+c)/2 and area = √[s(s−a)(s−b)(s−c)]. Both agree on a valid triangle.
Are angles in degrees or radians?
Degrees, and they must add up to 180° (within a small rounding tolerance). Convert radians first if your source uses them.
Can a triangle have sides 2, 3 and 6?
No. The triangle inequality requires each side to be shorter than the sum of the other two. 2 + 3 is not greater than 6, so the inputs are rejected.
Is this a geometry proof?
No. It is a numerical solver with a diagram, useful for homework checks, construction layout and scale drawings. Follow your course’s required method if you must show a proof.
Related calculators
Area Calculator – Rectangle, Triangle, Circle and More
Area of rectangles, triangles, circles, ellipses, trapezoids and rings from side lengths.
Circle Calculator – Radius, Diameter, Circumference and Area
Find radius, diameter, circumference and area from any one of those four.
Scientific Calculator – Trig, Logs, Powers and Roots
Trigonometry, logarithms, powers, roots and factorials in degrees or radians, with a printable tape of the working.
Basic Calculator – Add, Subtract, Multiply and Divide
Everyday arithmetic with parentheses, percent, square and square root, and a printable tape of the working.
GCF and LCM Calculator – with Prime Factorization
Greatest common factor and least common multiple, with prime factorization.
Percentage Calculator – What Is X% of Y?
X% of Y, X is what % of Y, and X is Y% of what number.
Sources and references
About this calculator
Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.
Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.