Triangle Calculator
Calculate triangle area, perimeter, or both.
Area = base x height / 2. Perimeter = side A + side B + side C.
Calculate triangle area, perimeter, or both.
Area = base x height / 2. Perimeter = side A + side B + side C.
| a | b | c | Area | Perimeter |
|---|---|---|---|---|
| 3 | 4 | 5 | 6 | 12 |
| 5 | 5 | 6 | 12 | 16 |
| 7 | 8 | 9 | 26.833 | 24 |
| 6 | 6 | 6 | 15.588 | 18 |
Sides form a triangle only if each is shorter than the sum of the other two. Sides 2, 3 and 6 fail because 2 + 3 is less than 6.
If a squared + b squared = c squared the triangle is right-angled; if less it is obtuse, if more acute. By the law of cosines, for sides 7, 8, 9 the largest angle is 73.4 degrees, and the angles sum to 180.
With a base and height, area = base x height / 2: base 10 and height 6 give 30. Equilateral side a gives a squared x root 3 / 4, so side 6 gives 15.588.
The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.
Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.
The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.
Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.
Educational tool. Found an error? Tell us.