Parallelogram Calculator
A parallelogram is a four-sided flat shape where the opposite sides are parallel and equal in length. Because the two pairs of sides are parallel, opposite angles are always equal and adjacent angles always add up to 180 degrees. Rectangles and rhombuses are special cases of parallelograms: a rectangle is a parallelogram with four right angles, and a rhombus is a parallelogram with all four sides equal. Parallelograms appear throughout engineering drawing, structural design, and vector mathematics, where the area of a parallelogram formed by two vectors gives the magnitude of their cross product. This calculator takes the base length, the side length, and the included angle between them to compute all key measurements in one step. It returns the area, the perpendicular height (the distance between the two parallel bases), the perimeter, and both diagonal lengths computed using the law of cosines. The angle must be between 0 and 180 degrees exclusive. At 90 degrees the shape becomes a rectangle. Enter your measurements below and all results update instantly. The default example uses base = 8, side = 5, angle = 60 degrees, giving area = 34.64, height = 4.33, and perimeter = 26.
Angle must be between 0 and 180 degrees exclusive. At 90 degrees the shape is a rectangle.
How it works
Given base a, side b, and included angle theta in degrees: the height h = b * sin(theta). Area = a * h = a * b * sin(theta). Perimeter = 2 * (a + b). The diagonals are found by the law of cosines: d1^2 = a^2 + b^2 - 2ab * cos(theta), giving the shorter diagonal; d2^2 = a^2 + b^2 + 2ab * cos(theta), giving the longer diagonal (using the supplementary angle 180 - theta). All angles are converted to radians for the trigonometric functions.
Worked example
For base = 8, side = 5, angle = 60 degrees: height = 5 * sin(60) = 5 * 0.8660 = 4.33. Area = 8 * 4.33 = 34.64. Perimeter = 2 * (8 + 5) = 26. Diagonal d1 = sqrt(64 + 25 - 80 * cos(60)) = sqrt(89 - 40) = sqrt(49) = 7.00. Diagonal d2 = sqrt(64 + 25 + 80 * cos(60)) = sqrt(89 + 40) = sqrt(129) = 11.36. These match the defaults above.
Related calculators
- Rhombus Calculator: a parallelogram with all sides equal.
- Pentagon Calculator: area, perimeter, diagonal, and apothem of a regular pentagon.
- Circle Segment Calculator: area and arc length of a circular segment.
- Law of Sines and Cosines: solve any triangle from sides and angles.