Area of Polygons Explorer

See how all polygon areas relate to rectangles

Area of Polygons

Every polygon's area formula connects back to the area of a rectangle. Understanding this connection means you only need to remember one formula and how each shape relates to it.

Choose Your Shape

Pick a polygon:

Shape and Reference Rectangle

0510-4-2024xy

The Rectangle Connection

Triangle = Half a Rectangle

A triangle is exactly half of a rectangle with the same base and height. Stretch the base to 8 and the height to 6 and watch the gray reference rectangle change alongside the blue triangle.

Arectangle=base×height=0×0=0A_{\text{rectangle}} = \text{base} \times \text{height} = {\cmv{computed}{base}} \times {\cmv{computed}{height}} = {\cmv{computed}{rectArea}}

The triangle covers only half that rectangle:

Atriangle=12×0×0=0A_{\text{triangle}} = \frac{1}{2} \times {\cmv{computed}{base}} \times {\cmv{computed}{height}} = {\cmv{computed}{polygonArea}}

Area Comparison

The polygon uses 50% of its reference rectangle's area: 24 of its 48 square units. Moving pieces around shows why:

Rearranging the Pieces

02468-202468xyTriangleSame triangle turned 180°

Two copies of the triangle, one turned 180° about the midpoint of the long side, fill the b×hb \times h rectangle exactly. Each copy is half of it.

Triangles always use exactly 50%. Try increasing 6 -- both areas grow, but the ratio stays locked at half.

Try it in Code

# Area of polygons: triangle, parallelogram, trapezoid, rhombus
base = 8
height = 6
top_base = 4

rect_area = base * height
triangle_area = base * height / 2
parallelogram_area = base * height
trapezoid_area = (base + top_base) / 2 * height
rhombus_area = base * height / 2  # diagonals d1=base, d2=height

print(f"Rectangle area: {rect_area:.2f}")
print(f"Triangle area: {triangle_area:.2f} (50% of rectangle)")
print(f"Parallelogram area: {parallelogram_area:.2f} (100% of rectangle)")
print(f"Trapezoid area: {trapezoid_area:.2f} (avg base = {(base + top_base) / 2:.2f})")
print(f"Rhombus area: {rhombus_area:.2f} (50% of rectangle)")

What to explore next

You might also like