Calculating the area of a triangle is an elementary problem encountered often in many different situations. The best known and simplest formula is:

where b is the length of the base of the triangle, and h is the height or altitude of the triangle. The term 'base' denotes any side, and 'height' denotes the length of a perpendicular from the vertex opposite the side onto the line containing the side itself.

Although simple, this formula is only useful if the height can be readily found. For example, the surveyor of a triangular field measures the length of each side, and can find the area from his results without having to construct a 'height'. Various methods may be used in practice, depending on what is known about the triangle. The following is a selection of frequently used formulae for the area of a triangle.

### Using vectors

The area of a parallelogram embedded in a three-dimensional Euclidean space can be calculated using vectors. Let vectors AB and AC point respectively from A to B and from A to C. The area of parallelogram ABDC is then

which is the magnitude of the cross product of vectors AB and AC. The area of triangle ABC is half of this,

.

The area of triangle ABC can also be expressed in terms of dot products as follows:

In two-dimensional Euclidean space, expressing vector AB as a free vector in Cartesian space equal to (x1,y1) and AC as (x2,y2), this can be rewritten as:

Applying trigonometry to find the altitude h.

### Using trigonometry

The height of a triangle can be found through the application of trigonometry.

Knowing SAS: Using the labels in the image on the left, the altitude is h = a sin γ. Substituting this in the formula Area = ½bh derived above, the area of the triangle can be expressed as:

(where α is the interior angle at A, β is the interior angle at B, γ is the interior angle at C and c is the line AB).

Furthermore, since sin α = sin (π - α) = sin (β + γ), and similarly for the other two angles:

Knowing AAS:

\mathrm{Area} = \frac {b^{2}(\sin \alpha)(\sin (\alpha + \beta))}{2\sin \beta},

and analogously if the known side is a or c.

Knowing ASA:[11]

and analogously if the known side is b or c.

Using coordinates

If vertex A is located at the origin (0, 0) of a Cartesian coordinate system and the coordinates of the other two vertices are given by B = (xB, yB) and C = (xC, yC), then the area can be computed as ½ times the absolute value of the determinant

For three general vertices, the equation is:

In three dimensions, the area of a general triangle {A = (xA, yA, zA), B = (xB, yB, zB) and C = (xC, yC, zC)} is the Pythagorean sum of the areas of the respective projections on the three principal planes (i.e. x = 0, y = 0 and z = 0):

### Using line integrals

The area within any closed curve, such as a triangle, is given by the line integral around the curve of the algebraic or signed distance of a point on the curve from an arbitrary oriented straight line L. Points to the right of L as oriented are taken to be at negative distance from L, while the weight for the integral is taken to be the component of arc length parallel to L rather than arc length itself.

This method is well suited to computation of the area of an arbitrary polygon. Taking L to be the x-axis, the line integral between consecutive vertices (xi,yi) and (xi+1,yi+1) is given by the base times the mean height, namely (xi+1 − xi)(yi + yi+1)/2. The sign of the area is an overall indicator of the direction of traversal, with negative area indicating counterclockwise traversal. The area of a triangle then falls out as the case of a polygon with three sides.

While the line integral method has in common with other coordinate-based methods the arbitrary choice of a coordinate system, unlike the others it makes no arbitrary choice of vertex of the triangle as origin or of side as base. Furthermore the choice of coordinate system defined by L commits to only two degrees of freedom rather than the usual three, since the weight is a local distance (e.g. xi+1 − xi in the above) whence the method does not require choosing an axis normal to L.

When working in polar coordinates it is not necessary to convert to cartesian coordinates to use line integration, since the line integral between consecutive vertices (ri,θi) and (ri+1,θi+1) of a polygon is given directly by riri+1sin(θi+1 − θi)/2. This is valid for all values of θ, with some decrease in numerical accuracy when |θ| is many orders of magnitude greater than π. With this formulation negative area indicates clockwise traversal, which should be kept in mind when mixing polar and cartesian coordinates. Just as the choice of y-axis (x = 0) is immaterial for line integration in cartesian coordinates, so is the choice of zero heading (θ = 0) immaterial here.

Using Heron's formula

The shape of the triangle is determined by the lengths of the sides alone. Therefore the area can also be derived from the lengths of the sides. By Heron's formula:

where is the semiperimeter, or half of the triangle's perimeter.

Three equivalent ways of writing Heron's formula are

### Formulas mimicking Heron's formula

Three formulas have the same structure as Heron's formula but are expressed in terms of different variables. First, denoting the medians from sides a, b, and c respectively as ma,mb, and mc and their semi-sum (ma + mb + mc) / 2 as σ, we have

Next, denoting the altitudes from sides a, b, and c respectively as ha, hb, and hc,and denoting the semi-sum of the reciprocals of the altitudes as we have

And denoting the semi-sum of the angles' sines as we have

where D is the diameter of the circumcircle:

Using Pick's Theorem

See Pick's theorem for a technique for finding the area of any arbitrary lattice polygon.

The theorem states:

where I is the number of internal lattice points and B is the number of lattice points lying inline with the border of the polygon.

### Other area formulas

Numerous other area formulas exist, such as

where r is the inradius, and s is the semiperimeter;

for circumdiameter D; and

for angle 90°.

In 1885, Baker[16] gave a collection of over a hundred distinct area formulas for the triangle (although the reader should be advised that a few of them are incorrect). These include #9, #39a, #39b, #42, and #49:

for circumradius (radius of the circumcircle) R, and