Calculates the area of a parallelogram as base × height, where the height is measured perpendicular to the base, not along the slanted side.
A parallelogram is a quadrilateral whose opposite sides are parallel. Its area is simply the base multiplied by the height measured perpendicular to that base.
With the defaults, a base of and a height of :
The area is 24.
Slice a right triangle off one end of the parallelogram, cutting along the height, and slide it across to the other end. The pieces reassemble into a rectangle of height and width . Nothing was added or thrown away, so the area is unchanged, and it equals , exactly as for the rectangle.
The classic mistake is to use the slanted side where the height belongs. The height is the perpendicular distance between the two parallel sides, so it is always shorter than the slanted side; the two coincide only when the shape is a rectangle. If you know the slanted side and the angle it makes with the base, first compute . Either pair of parallel sides may serve as the base, as long as you use the height that goes with it.