TExcelTAD
Home › Pre-Calculus, Geometry & Trigonometry › Perimeter and Area

Perimeter and Area

Perimeter is the length around a shape; area is the amount of surface inside it. This lesson collects the formulas in one table, shows how to handle composite shapes, explains why area grows with the square of the scale, and estimates areas the way a computer screen does, by counting pixels.

Units

Perimeter is a length, measured in cm, m or pixels. Area is measured in square units: cm2\text{cm}^2, m2\text{m}^2, pixels2\text{pixels}^2. Converting square units squares the conversion factor: 1 m=100 cm1\ \text{m} = 100\ \text{cm}, so 1 m2=1002 cm2=10 000 cm21\ \text{m}^2 = 100^2\ \text{cm}^2 = 10\,000\ \text{cm}^2.

The formula sheet

Shape Perimeter Area
square, side ss 4s4s s2s^2
rectangle l×wl \times w 2(l+w)2(l + w) l⋅wl \cdot w
parallelogram, sides a,ba, b, height hh on bb 2(a+b)2(a + b) b⋅hb \cdot h
triangle, sides a,b,ca, b, c, height hh on bb a+b+ca + b + c 12⋅b⋅h\frac{1}{2} \cdot b \cdot h
trapezoid, bases b1,b2b_1, b_2, legs c,dc, d b1+b2+c+db_1 + b_2 + c + d 12(b1+b2)⋅h\frac{1}{2}(b_1 + b_2) \cdot h
rhombus or kite, diagonals d1,d2d_1, d_2 sum of sides 12⋅d1⋅d2\frac{1}{2} \cdot d_1 \cdot d_2
regular nn-gon, side ss, apothem aa n⋅sn \cdot s 12⋅n⋅s⋅a\frac{1}{2} \cdot n \cdot s \cdot a
circle, radius rr 2πr2\pi r πr2\pi r^2
sector, angle θ∘\theta^\circ 2r+(θ/360)⋅2πr2r + (\theta/360) \cdot 2\pi r (θ/360)⋅πr2(\theta/360) \cdot \pi r^2
any polygon from coordinates sum of side lengths shoelace formula (Polygons)

Composite shapes

Split a complicated shape into simple pieces, then add (or subtract, for holes). The perimeter only counts the outside edge, so inner joins between pieces are left out.

A running track is a 100 m×60 m100\ \text{m} \times 60\ \text{m} rectangle with a semicircle on each short end:

python · try it yourself
import math

length, width = 100, 60
r = width / 2
perimeter = 2 * length + 2 * math.pi * r     # two straights + two half circles (= one full circle)
area = length * width + math.pi * r**2       # rectangle + one full circle
print(f"perimeter: {perimeter:.2f} m")
print(f"area:      {area:.2f} m²")
print(f"area with a 20 m × 10 m pond removed: {area - 20 * 10:.2f} m²")
perimeter: 388.50 m
area:      8827.43 m²
area with a 20 m × 10 m pond removed: 8627.43 m²

The two half circles together make one full circle of radius 30, so they contribute 2π⋅302\pi \cdot 30 to the perimeter and π⋅302\pi \cdot 30^2 to the area. The 60 m ends of the rectangle are inside the shape and are not part of the perimeter.

Scaling

Enlarge a shape by a factor kk (every length multiplied by kk). Then:

perimeter×karea×k2\text{perimeter} \times k \qquad \text{area} \times k^2

Double the side of a square and you need twice the fence but four times the paint. This is why a 4K screen (3840×21603840 \times 2160) has 4 times the pixels of a 1080p screen (1920×10801920 \times 1080): both dimensions doubled. The same rule for similar figures returns in Congruence and Similarity.

Area by counting pixels

A screen cannot draw a perfect circle; it lights up the pixels whose centres fall inside it. Counting those pixels estimates the area, and finer grids get closer to πr2\pi r^2:

python · try it yourself
import numpy as np

for n in [10, 100, 1000]:                            # n × n pixels covering the square [−1, 1]²
    centres = (np.arange(n) + 0.5) * (2 / n) - 1
    X, Y = np.meshgrid(centres, centres)
    count = int(np.count_nonzero(X**2 + Y**2 <= 1))
    print(f"{n:5} × {n:<5} pixels inside: {count:7}   area ≈ {count * (2 / n)**2:.5f}")
print("exact π            =", round(np.pi, 5))
   10 × 10    pixels inside:      80   area ≈ 3.20000
  100 × 100   pixels inside:    7860   area ≈ 3.14400
 1000 × 1000  pixels inside:  785456   area ≈ 3.14182
exact π            = 3.14159

Each pixel has area (2/n)2(2/n)^2. This idea, cutting a region into tiny pieces and adding them up, is exactly how the integral is defined in A First Look at the Integral.

Pick's theorem

For a polygon whose corners all sit on whole-number grid points, there is a surprising shortcut. If II is the number of grid points strictly inside and BB the number on the boundary:

A=I+B/2−1A = I + B/2 - 1

The number of grid points on an edge from (x1,y1)(x_1, y_1) to (x2,y2)(x_2, y_2), not counting its starting point, is gcd⁡(∣x2−x1∣,∣y2−y1∣)\gcd(\lvert x_2 - x_1 \rvert, \lvert y_2 - y_1 \rvert):

python · try it yourself
from math import gcd

def shoelace(p):
    return abs(sum(p[i][0] * p[(i + 1) % len(p)][1] - p[(i + 1) % len(p)][0] * p[i][1] for i in range(len(p)))) / 2

def boundary_points(p):
    return sum(gcd(abs(p[(i + 1) % len(p)][0] - p[i][0]), abs(p[(i + 1) % len(p)][1] - p[i][1])) for i in range(len(p)))

L_shape = [(0, 0), (5, 0), (5, 2), (2, 2), (2, 4), (0, 4)]
A, B = shoelace(L_shape), boundary_points(L_shape)
print("area:", A, " boundary points:", B, " interior points:", int(A - B / 2 + 1))
area: 14.0  boundary points: 18  interior points: 6

You can count the six interior points by hand: (1,1) (2,1) (3,1) (4,1) (1,2) (1,3)(1,1)\ (2,1)\ (3,1)\ (4,1)\ (1,2)\ (1,3).

In software

  • Rendering cost scales with area: doubling a window's width and height means 4× the pixels to shade.
  • Memory: a texture of w×hw \times h pixels at 4 bytes each takes 4wh4wh bytes, so a 2× larger texture needs 4× the memory.
  • Layout engines compute element areas and perimeters (borders) all the time; map software measures regions with shoelace.

Exercises

Exercise 1: A rectangle

Find the perimeter and area of a 7.5 m×4 m7.5\ \text{m} \times 4\ \text{m} room.

Answer

Perimeter 23 m, area 30 m230\ \text{m}^2.

Solution
P=2(7.5+4)=23A=7.5⋅4=30\begin{aligned} P &= 2(7.5 + 4) = 23 \\ A &= 7.5 \cdot 4 = 30 \end{aligned}

Exercise 2: A plate with a hole

A 10 cm×6 cm10\ \text{cm} \times 6\ \text{cm} metal plate has a circular hole of radius 2 cm. What area of metal is left?

Answer

60−4π≈47.43 cm260 - 4\pi \approx 47.43\ \text{cm}^2

Solution
A=10⋅6−π⋅22=60−4π≈60−12.566=47.43A = 10 \cdot 6 - \pi \cdot 2^2 = 60 - 4\pi \approx 60 - 12.566 = 47.43

Exercise 3: Map scale

On a 1:50001 : 5000 map, a park covers 4 cm24\ \text{cm}^2. What is its real area in m2\text{m}^2?

Answer

10 000 m210\,000\ \text{m}^2

Solution
lengths scale by 5000, so areas scale by 50002=25 000 000real area=4⋅25 000 000 cm2=100 000 000 cm21 m2=10 000 cm2→100 000 000/10 000=10 000 m2\begin{aligned} &\text{lengths scale by } 5000\text{, so areas scale by } 5000^2 = 25\,000\,000 \\ &\text{real area} = 4 \cdot 25\,000\,000\ \text{cm}^2 = 100\,000\,000\ \text{cm}^2 \\ &1\ \text{m}^2 = 10\,000\ \text{cm}^2 \to 100\,000\,000 / 10\,000 = 10\,000\ \text{m}^2 \end{aligned}

Exercise 4: Pick on a triangle

The triangle (0,0)(0, 0), (4,0)(4, 0), (0,6)(0, 6) has area 12. Use Pick's theorem to find how many grid points lie strictly inside.

Answer

7

Solution
B=gcd⁡(4,0)+gcd⁡(4,6)+gcd⁡(0,6)=4+2+6=12I=A−B/2+1=12−6+1=7\begin{aligned} B &= \gcd(4, 0) + \gcd(4, 6) + \gcd(0, 6) = 4 + 2 + 6 = 12 \\ I &= A - B/2 + 1 = 12 - 6 + 1 = 7 \end{aligned}

A brute-force count agrees: interior points satisfy x≥1x \ge 1, y≥1y \ge 1 and 3x+2y<123x + 2y < 12.

python · try it yourself
print(sum(1 for x in range(1, 4) for y in range(1, 6) if 3 * x + 2 * y < 12))
7

Exercise 5: Same fence, more field

With 40 m of fence, which encloses more area: a square or a circle? Compute both.

Answer

The circle: about 127.32 m2127.32\ \text{m}^2 against 100 m2100\ \text{m}^2.

Solution
square:side 10, area 100circle:2πr=40⇒r=20/π≈6.366,area=πr2=400/π≈127.32\begin{aligned} \text{square:} &\quad \text{side } 10, \text{ area } 100 \\ \text{circle:} &\quad 2\pi r = 40 \Rightarrow r = 20/\pi \approx 6.366, \quad \text{area} = \pi r^2 = 400/\pi \approx 127.32 \end{aligned}

Of all shapes with a given perimeter, the circle encloses the most area.

python · try it yourself
import math
r = 40 / (2 * math.pi)
print(10 * 10, round(math.pi * r * r, 2))
100 127.32

Test yourself

A photo is enlarged so every length is 3 times as long. How does its area change?

  1. 3 times as large
  2. 6 times as large
  3. 27 times as large
  4. 9 times as large

How many cm2\text{cm}^2 are in 1 m21\ \text{m}^2?

  1. 100
  2. 10,000
  3. 1,000
  4. 1,000,000

A lattice polygon has 10 interior grid points and 8 boundary points. What is its area by Pick's theorem?

  1. 13
  2. 14
  3. 18
  4. 17