Triangle Calculator
Calculate triangle area and perimeter using base & height or all three sides.
What is a Triangle?
A triangle is a polygon with three sides, three vertices, and three interior angles. It is the simplest polygon - you need at minimum three points (not collinear) and three connecting lines to enclose an area. Triangles are the fundamental building block of geometry; any polygon can be decomposed into triangles, which is why triangulation is used in computer graphics, surveying, structural engineering, and finite element analysis.
The area of a triangle is the amount of two-dimensional space it encloses. There are several ways to calculate this depending on what information you have. The most straightforward is when you know the base and the perpendicular height: Area = ½ × base × height. When you know only the three side lengths, you use Heron’s formula, which requires no angle measurement whatsoever.
Triangles are classified in two ways. By their side lengths: equilateral (all three sides equal, all angles 60°), isosceles (two sides equal, two angles equal), and scalene (no sides equal, no angles equal). By their angles: acute (all angles less than 90°), right (one angle exactly 90°, making the Pythagorean theorem applicable), and obtuse (one angle greater than 90°).
The triangle inequality theorem is a critical constraint: for any three lengths to form a valid triangle, the sum of any two sides must be strictly greater than the third side. If this condition is violated, the three sides would collapse into a line rather than enclosing any area.
Triangles have exceptional structural rigidity. Unlike rectangles, which can shear and deform under lateral force, a triangle is inherently rigid - you cannot change its shape without changing the length of a side. This is why triangular trusses are ubiquitous in bridge and roof design.
Formula
Area using Base and Height:
Area using Heron’s Formula (three sides):
Perimeter:
How to Use This Calculator
- Choose your method - select “Base & Height” if you know the base and perpendicular height, or “Three Sides (Heron’s)” if you know all three side lengths.
- Enter your values in the input fields using any consistent unit (cm, m, ft).
- Click Calculate - the calculator validates the triangle inequality automatically and alerts you if the sides cannot form a valid triangle.
- Read the results - in Base & Height mode you get the area only. In Three Sides mode you also get the perimeter and semi-perimeter.
- Switch modes to cross-check your work or explore different calculation methods for the same triangle.
Example Calculations
Example 1 - Right Triangle (Base & Height)
A right triangle has a base of 9 cm and a height of 12 cm.
Example 2 - Scalene Triangle (Heron’s Formula)
A triangle has sides of 5 cm, 6 cm, and 7 cm.