# Areas of Polygons

In this article we're going to talk about a technique that can be used to program a computer to find the area of any polygon you like. The polygon can be regular (all sides and angles equal) or irregular. It really doesn't matter.

We'll work through the technique using this polygon:

## Step 1: Turn the Vertices into Coordinates

Essentially, we're going to plot the polygon in the $xy$-plane. Find $xy$-coordinates for each vertex:

## Step 2: Find the Areas Under Each Line Segment

For each line segment (edge), we're going to work out the area between the edge and the $x$-axis. Here's a picture of one of them:

Do you see that the shape we need to find the area of is a trapezium? The lengths of the two parallel sides are the heights (or $y$-coordinates) of the vertices that form the end points of the line segment, and the height of the trapezium is the difference between the two $x$-coordinates of these points.

The lengths of the two parallel sides are the $y$-coordinates of the vertices at the end points of the line segment, so we have $a = 1.3$ and $b = 2.5$.

The height of the trapezium is the difference between the $x$-coordinates of these vertices. So, $h = 1.98 - 0.22 = 1.76$.

The area of the trapezium is equal to $\dfrac{h}{2} (a + b) = \dfrac{1.76}{2}(1.3 + 2.5) = 3.344.$

So that's the area of the first one. Next, we need to calculate all the others.

We always move clockwise around the polygon, and subtract the first vertex we come across as the end-point of a line segment away from the second vertex of the line segment. This will mean that some of the areas we calculate will be negative, but that's OK. I'll explain why in a little while. Here are the calculations:

End Point 1 End Point 2 a b h Area
$(0.22,1.3)$ $(1.98,2.5)$ 1.3 2.5 $1.98 - 0.22 = 1.76$ 3.344
$(1.98,2.5)$ $(4,3.1)$ 2.5 3.1 $4 - 1.98 = 2.02$ 5.656
$4,3.1)$ $(5.2,2.1)$ 3.1 2.1 $5.2 - 4 = 1.2$ 3.12
$5.2,2.1)$ $(4.5,0.22)$ 2.1 0.22 $4.5 - 5.2 = -0.7$ -0.812
$4.5,0.22)$ $(2.3,1.56)$ 0.22 1.56 $2.3 - 4.5 = -2.2$ -3.916
$2.3,1.56)$ $(0.22,1.3)$ 1.56 1.3 $1.3 - 1.56 = -0.26$ -0.7436

Next we add up the areas under the line segments that we just found (make sure you keep track of the signs from the table, or you'll end up with an area that's too big.)

The area of the polygon is:

$\text{Area} = 3.344 + 5.656 + 3.12 + (-0.812) + (-3.916) + (-0.7436) = 6.6484 \text{ units}^2.$

### Why Do We Need Some of the Areas to be Negative?

If we add up the areas under the line segments at the top of the polygon (the ones we got positive areas for), we end up with the area shown below:

This is bigger than the area of the polygon. How much bigger? The area under the bottom line segments bigger! So, we need to take the areas under the bottom line segments away:

The area of our polygon is equal to the green area in the picture directly above, which is the same as the area shaded green on the first picture in this section minus the area shaded pink in the picture directly above. That's why some of our areas have to be negative.

This automatically happens when we walk around the shape clockwise, because the sides we walk along backwards are exactly the ones on the bottom of the polygon. That is, the ones that we need to take the areas away for.

### Conclusion

So, that's it. You can use this technique to find the area of any polygon you like. The hardest part is finding the coordinates of the vertices. However, it is rather tedious, so if you know how, it's probably a good idea to program a computer to do all the calculations for you. Have fun!

### Description

In these chapters you will learn about plane geometry topics such as

• Area (Irregular polygons, plane shapes etc)
• Perimeter
• Conic sections (Circle, Ellipse, Hyperbola etc)
• Polygons (Congruent, polygons, similar, triangles etc)
• Transformations and symmetry (Reflection, symmetry, transformations etc)

etc

Even though these chapters are marked for Year 10 or higher students, several topics are for students in Year 8 or higher

### Audience

Year 10 or higher, suitable for Year 8 + students as well.

### Learning Objectives

You must be logged in as Student to ask a Question.