Skip to main content

Online Calculator Lab

Triangle Calculator

Find area, perimeter, all angles, heights, inradius & circumradius for any triangle. Choose your known values — SSS, SAS, ASA, or right triangle.

Enter all three side lengths (a, b, c). The longest side must be less than the sum of the other two.
Triangle Diagram

What Is a Triangle Calculator?

A triangle calculator finds all unknown properties of a triangle — area, perimeter, angles, heights, inradius, and circumradius — from whatever combination of sides and angles you already know. Every triangle is fully determined once you provide three independent measurements, as long as at least one of them is a side length.

This calculator supports five input modes: SSS (all three sides), SAS (two sides and the included angle), ASA (two angles and the included side), AAS (two angles and a non-included side), and Right Triangle (any two known values from legs, hypotenuse, and angles). Each mode applies the appropriate formula — Law of Cosines for SSS and SAS, Law of Sines for ASA and AAS, and the Pythagorean theorem for right triangles.

How to Use This Calculator

  1. Select a mode based on what you know — SSS if you have all three sides, SAS if you have two sides and the angle between them, ASA for two angles and the side between them, AAS for two angles and a non-adjacent side, or Right Triangle if you know it's a right triangle
  2. Enter your known values — sides in any consistent unit (cm, m, inches, feet), angles in degrees
  3. Click "Calculate Triangle" to see all results: area, perimeter, all three angles, all three heights, inradius, and circumradius
  4. The diagram draws your triangle to scale with labeled sides and angles
📌 Triangle validity check: The calculator verifies that your inputs form a valid triangle before computing. For three sides (SSS), each side must be shorter than the sum of the other two — this is the triangle inequality. For angles, the three must sum to exactly 180°. If inputs violate either rule, you'll see an error message.

Triangle Formulas — All Methods

BASIC FORMULAS: Perimeter P = a + b + c Semi-perimeter s = (a + b + c) / 2 Height on a h_a = 2 × Area / a AREA FORMULAS: From base & height: Area = ½ × base × height Heron's Formula (SSS): Area = √(s(s-a)(s-b)(s-c)) SAS formula: Area = ½ × a × b × sin(C) LAW OF COSINES (find side from SSS/SAS): c² = a² + b² − 2ab × cos(C) LAW OF SINES (find angles from sides): a/sin(A) = b/sin(B) = c/sin(C) INRADIUS & CIRCUMRADIUS: Inradius r = Area / s Circumrad R = (a × b × c) / (4 × Area) WORKED EXAMPLE — 3-4-5 Right Triangle: Sides: a=3, b=4, c=5 Perimeter = 3+4+5 = 12 s = 12/2 = 6 Area = √(6×3×2×1) = √36 = 6.0000 Angle A = arccos((16+25-9)/(2×4×5)) = 36.8699° Angle B = arccos((9+25-16)/(2×3×5)) = 53.1301° Angle C = 90° Inradius = 6.0000 / 6 = 1.0000 Circumrad = (3×4×5)/(4×6) = 60/24 = 2.5000
📌 Verify yourself: Enter a=3, b=4, c=5 in SSS mode and the calculator returns Area 6.0000, Perimeter 12, Angles 36.8699° / 53.1301° / 90° exactly — identical to the worked example above.

Triangle Types and Their Properties

Every triangle falls into categories based on its sides and angles. Knowing the type immediately tells you useful properties before any calculation:

TypeDefinitionKey PropertyExample
EquilateralAll 3 sides equalAll angles = 60°; area = (√3/4)×a²a=b=c=6 → Area 15.5885
Isosceles2 sides equalBase angles are equala=b=5, c=8 → Area 12.0000
ScaleneAll sides differentAll angles different7-10-13 → Area 34.6410
RightOne angle = 90°c² = a²+b²; hyp = longest side3-4-5 → Area 6.0000
ObtuseOne angle > 90°Longest side opposite obtuse angle2-3-4 → obtuse at C
AcuteAll angles < 90°All altitudes fall inside triangle5-6-7 → all angles acute

Heron's Formula — Area from Three Sides

Named after Heron of Alexandria (~60 CE), this formula finds area knowing only the three side lengths — no angles, no height measurement needed. It works by first computing the semi-perimeter s, then plugging into a single square root expression:

s = (a + b + c) / 2 Area = √( s × (s−a) × (s−b) × (s−c) ) Examples: SAS (a=5, C=60°, b=7): Area = ½×5×7×sin(60°) = 15.1554 ASA (A=45°, c=10, B=60°): Area = 31.6987 (via Law of Sines) SSS (a=7, b=10, c=13): s=15, s = (7+10+13)/2 = 15.0 Area = √(15 × 8 × 5 × 2) = √1200 = 34.6410

Heron's formula gives exact results for any triangle without needing a height measurement — which is why it's used in surveying and CAD software where side lengths come from distance measurements. Reference: Khan Academy — Heron's Formula

Triangle Reference Table

All six rows below are individually calculated using Heron's formula and the Law of Cosines — no row is estimated from another:

TriangleSides (a-b-c)AreaPerimeterLargest Angle
3-4-5 Right3 – 4 – 56.00001290.00°
5-12-13 Right5 – 12 – 1330.00003090.00°
8-15-17 Right8 – 15 – 1760.00004090.00°
Equilateral (s=6)6 – 6 – 615.58851860.00°
Isosceles 5-5-85 – 5 – 812.000018106.26°
Scalene 7-10-137 – 10 – 1334.64103097.18°

Pythagorean Triples — Integer Right Triangles

A Pythagorean triple is a set of three positive integers (a, b, c) satisfying a²+b²=c². These produce right triangles with exact integer measurements — no decimals. The 3-4-5 triangle is the smallest; here are the common ones used in construction, carpentry, and engineering:

Triple (a-b-c)AreaPerimeterAngle AAngle BVerify: a²+b²=c²
3 – 4 – 561236.87°53.13°9+16 = 25 ✓
5 – 12 – 13303022.62°67.38°25+144 = 169 ✓
8 – 15 – 17604028.07°61.93°64+225 = 289 ✓
7 – 24 – 25845616.26°73.74°49+576 = 625 ✓
20 – 21 – 292107043.60°46.40°400+441 = 841 ✓

The 3-4-5 triple is widely used in construction to establish a perfect right angle: measure 3 units along one wall, 4 units along another, and if the diagonal between those two endpoints is exactly 5 units, the corner is square. Reference: NIST — Measurement Standards | Khan Academy — Pythagorean Theorem

5 Tips for Triangle Calculations

  • When you only have three sides, always use Heron's formula for area. You don't need to find any angle first. For sides 7-10-13: s=15, area = √(15×8×5×2) = √1200 = 34.6410. Trying to first find an angle using the Law of Cosines and then computing area from ½ × base × height works too, but introduces an extra rounding step that Heron's avoids entirely.
  • The inradius tells you the largest circle that fits inside the triangle. For the 3-4-5 triangle, inradius = 1.0000 — a circle of radius exactly 1 fits perfectly inside, tangent to all three sides. Formula: r = Area / s. For the equilateral triangle with side 6, inradius = 1.7321 (= side/(2√3)).
  • The circumradius is half the hypotenuse in any right triangle. For the 3-4-5 triangle, circumradius = 2.5000 = 5/2. This is always true: in a right triangle, the circumscribed circle has the hypotenuse as its diameter, making circumradius = hypotenuse ÷ 2. Quick check for any claimed right triangle: if circumradius ≠ hypotenuse/2, it's not actually a right triangle.
  • For scalene triangles with all sides known, verify inputs satisfy the triangle inequality before computing. Each side must be strictly less than the sum of the other two. For sides 2-3-7: 2+3=5 < 7 — invalid. For sides 5-12-13: 5+12=17 > 13, 5+13=18 > 12, 12+13=25 > 5 — all three conditions met, valid triangle.
  • Angles always sum to exactly 180° — use this to catch rounding errors. After computing angles with the Law of Cosines (e.g., A=36.8699°, B=53.1301°), angle C = 180 - 36.8699 - 53.1301 = 90.0000° exactly. If your three computed angles don't sum to 180.0000°, a rounding error crept in somewhere. The calculator uses this check internally to ensure consistency.

Frequently Asked Questions — Triangle Calculator

Use Heron's formula: first find s = (a+b+c)/2, then Area = √(s×(s−a)×(s−b)×(s−c)). For sides 7, 10, 13: s=15, Area = √(15×8×5×2) = √1200 = 34.6410. No angles or heights needed — just the three side lengths. This is exactly what the SSS mode in this calculator computes.
They describe which three measurements you already know. SSS = all three sides. SAS = two sides and the angle between them (the "included" angle). ASA = two angles and the side between them. AAS = two angles and a side that's not between them. Any of these three combinations uniquely determines a triangle. The formulas used differ: SSS and SAS use the Law of Cosines to find missing sides; ASA and AAS use the Law of Sines.
This is a theorem of Euclidean (flat) geometry, not just a coincidence. One classical proof: draw a line through one vertex parallel to the opposite side. The three angles at that vertex — formed by the parallel line and the two triangle sides — correspond to the triangle's three interior angles via alternate interior angles, and they form a straight line (180°). On curved surfaces like a sphere, triangle angles can sum to more than 180° — the rule applies only in flat (Euclidean) geometry.
The inradius is the radius of the largest circle that fits entirely inside the triangle, touching all three sides (called the incircle). Formula: r = Area ÷ s, where s is the semi-perimeter. For the 3-4-5 triangle: inradius = 6 ÷ 6 = 1.0000. It comes up in engineering when fitting circular components inside triangular frames, and in geometry problems involving tangent lengths from vertices to the incircle.
Yes — all modes handle obtuse triangles correctly. The Law of Cosines works for any angle from 0° to 180°, including obtuse ones where cosine is negative. The 5-5-8 isosceles triangle, for example, has a vertex angle of 106.26° (obtuse). Enter a=5, b=5, c=8 in SSS mode and the calculator returns area 12.0000, perimeter 18, and correctly identifies the obtuse angle at C.
A Pythagorean triple is any set of integers (a, b, c) where a²+b²=c². The most useful ones for practical work: 3-4-5 (used to check right angles in construction), 5-12-13 (common in geometry problems), and 8-15-17 (used in structural engineering). Any multiple of these also works — 6-8-10, 10-24-26, 16-30-34. Knowing them lets you quickly verify whether a triangle is exactly right-angled without calculating any angles.