Calculates the area of a rectangle as height × width.
A rectangle is a quadrilateral with four right angles. Its two side lengths give you both the area and the perimeter.
With the defaults, a height of and a width of :
The perimeter adds one height and one width, then doubles the result:
So the area is 24 and the perimeter is 20.
Picture the rectangle as a grid of unit squares: 4 rows of 6 squares each. Counting them gives squares, and that count is the area.
The perimeter does not determine the area. Among rectangles of perimeter 20 you can find 4 by 6 (area 24), 1 by 9 (area 9) and 5 by 5 (area 25). For a fixed perimeter, the closer the rectangle is to a square, the larger its area. Make sure both sides are given in the same unit.