badges
Mathematics

How to Calculate Area and Perimeter: Complete Guide with Formulas

Last updated: December 2024 • 10 min read

Whether you're laying new flooring, painting a room, building a fence, or solving geometry problems, knowing how to calculate area and perimeter is essential. This comprehensive guide covers formulas for all common shapes, with practical examples you can apply immediately.

Area vs. Perimeter: What's the Difference?

Area

The space inside a shape. Measured in square units (m², ft², cm²).

Use for: Flooring, painting, grass seed, fabric

Perimeter

The distance around a shape. Measured in linear units (m, ft, cm).

Use for: Fencing, trim, borders, framing

Rectangle

The most common shape you'll encounter in everyday calculations.

Area = length × width

Perimeter = 2 × (length + width)

Example: A Room 5m × 4m

Area = 5 × 4 = 20 m² (for flooring/carpet)

Perimeter = 2 × (5 + 4) = 2 × 9 = 18 m (for baseboards)

Square

A special rectangle where all sides are equal.

Area = side²

Perimeter = 4 × side

Example: A 3m × 3m Patio

Area = 3² = 9 m²

Perimeter = 4 × 3 = 12 m

Triangle

Area = ½ × base × height

Perimeter = side₁ + side₂ + side₃

Example: Triangle with base 6m, height 4m

Area = ½ × 6 × 4 = 12 m²

Note: The height must be perpendicular to the base.

Circle

Area = π × radius² (π ≈ 3.14159)

Circumference = 2 × π × radius or π × diameter

Example: Circle with radius 3m

Area = π × 3² = 3.14159 × 9 = 28.27 m²

Circumference = 2 × π × 3 = 18.85 m

Trapezoid

Common in architectural features and irregular plots.

Area = ½ × (base₁ + base₂) × height

Perimeter = sum of all four sides

Example: Trapezoid with parallel sides 8m and 5m, height 4m

Area = ½ × (8 + 5) × 4 = ½ × 13 × 4 = 26 m²

Parallelogram

Area = base × height

Perimeter = 2 × (side₁ + side₂)

Quick Reference Table

Shape Area Formula Perimeter Formula
Rectangle l × w 2(l + w)
Square 4s
Triangle ½ × b × h a + b + c
Circle πr² 2πr
Trapezoid ½(a+b)h sum of sides
Parallelogram b × h 2(a + b)

Practical Applications

1. Buying Flooring

Room: 4.5m × 3.2m

Area = 4.5 × 3.2 = 14.4 m²

Tip: Add 10% for waste → 14.4 × 1.1 = 15.84 m² needed

2. Building a Fence

Yard: 20m × 15m rectangle

Perimeter = 2 × (20 + 15) = 70m of fencing needed

If fence posts are every 2m: 70 ÷ 2 = 35 posts

3. Painting a Wall

Wall: 5m wide × 2.5m tall with a 2m × 1m window

Wall area = 5 × 2.5 = 12.5 m²

Window area = 2 × 1 = 2 m²

Paintable area = 12.5 - 2 = 10.5 m²

Irregular Shapes

For complex shapes, divide them into simpler shapes, calculate each part, and add them together.

L-shaped room: Split into two rectangles

Total Area = Rectangle₁ Area + Rectangle₂ Area

Calculate Area and More

Use our calculator for quick area and perimeter calculations.

Try Calculator →

Real-World Applications: Flooring, Fencing, and Painting

Area and perimeter calculations have immediate practical value in home improvement. Here are three of the most common scenarios:

Scenario 1: Calculating Floor Tiles

You want to tile a rectangular room that is 4.2m × 3.8m = 15.96 m². You're using 30cm × 30cm tiles (0.09 m² each).

  • Number of tiles needed: 15.96 ÷ 0.09 = 177.3 → round up to 178 tiles
  • Add 10% for cuts and breakages: 178 × 1.10 = 196 tiles total
  • At £1.20 per tile: £235.20 in materials

Scenario 2: Fencing a Garden

A garden is an L-shape: a 10m × 8m rectangle with a 3m × 4m section cut from one corner.

  • Perimeter: Walk the boundary — 10 + 8 + 3 + 4 + 7 + 4 = 36m of fencing
  • At £18/m installed: £648 total cost

Scenario 3: Painting a Room

A room is 5m × 4m with 2.5m ceilings. You want to paint 4 walls (excluding one window 1.2m × 1.4m and one door 0.9m × 2m).

  • Total wall area: 2 × (5 × 2.5) + 2 × (4 × 2.5) = 25 + 20 = 45 m²
  • Subtract window: 1.2 × 1.4 = 1.68 m²
  • Subtract door: 0.9 × 2.0 = 1.80 m²
  • Paintable area: 45 − 1.68 − 1.80 = 41.52 m²
  • Paint coverage: ~12 m² per litre (2 coats) → need 41.52 ÷ 6 = 6.9 litres

Composite Shapes: Splitting Complex Areas

Real-world shapes are rarely simple rectangles or circles. The technique is to decompose a complex shape into simpler shapes, calculate each area, and sum them.

Example: An L-shaped room (8m × 6m with a 3m × 4m section removed from one corner).

  • Method 1 (subtract): Large rectangle (8 × 6 = 48 m²) minus the removed corner (3 × 4 = 12 m²) = 36 m²
  • Method 2 (add): Two rectangles — (5 × 6 = 30 m²) + (3 × 2 = 6 m²) = 36 m²

Always use the method that's easiest to visualise for the particular shape.

3D Shape Reference: Surface Area and Volume

Shape Volume Formula Surface Area Formula
Cube6a²
Cuboidl × w × h2(lw + lh + wh)
Sphere(4/3)πr³4πr²
Cylinderπr²h2πr(r + h)
Cone(1/3)πr²hπr(r + l) where l = slant height
Triangular Prism½ × b × h × lbh + l(a + b + c)

Frequently Asked Questions

How do I convert between square meters and square feet?

1 m² = 10.764 ft². Multiply m² by 10.764 to get ft², or divide ft² by 10.764 to get m².

Why add extra when buying materials?

Adding 10-15% accounts for waste from cutting, mistakes, and future repairs. It's better to have a bit extra than to run short.

How do I measure an irregular room?

Break it into rectangles and triangles. Measure each section separately, calculate their areas, and add them together.

A

Alex van den Berg

Financial Educator & Mathematics Writer

Alex has 8+ years of experience in personal finance education and mathematics instruction. He writes practical guides on financial calculations, everyday maths, and how to use digital tools to make smarter money decisions.