To calculate the area of squares and rectangles, multiply the length by the width. For a rectangle with a length of 2 and a width of 4, the area would be 2 x 4 = 8. The area represents the total space within the boundaries of a two-dimensional object and is found by multiplying the length and width.