Understanding the parallelogram and rhombus calculator — concept and principle
A parallelogram is a four-sided shape whose opposite sides are parallel and equal. A rhombus is a parallelogram with all four sides equal, and a rectangle is one with right angles. Given two adjacent sides a and b and the angle θ between them, this calculator returns the area, the perimeter and both diagonals. It is useful for slanted panels and tiles, braced frames, scissor lifts, force diagrams in physics and vector problems in mathematics.
How it is calculated
- Area: A = ab sin θ (equivalently base × perpendicular height, since the height on side a is b sin θ)
- Perimeter: P = 2(a + b)
- Diagonals: d₁ = √(a² + b² + 2ab cos θ) and d₂ = √(a² + b² − 2ab cos θ)
θ is entered in degrees. For a rhombus, enter a = b. Lengths share one unit; the area is in that unit squared.
The principle
Slide the triangle at one end of a parallelogram over to the other end and the shape becomes a rectangle with the same base and the same perpendicular height, so area = base × height. The height on base a is the side b times sin θ, giving ab sin θ. The diagonals come from the law of cosines. One diagonal faces the angle θ, so d² = a² + b² − 2ab cos θ; the other faces the neighbouring angle 180° − θ, whose cosine is −cos θ, which flips the sign. Adding the two gives the parallelogram law, d₁² + d₂² = 2(a² + b²). In vector terms, the diagonals are the sum and the difference of the two side vectors.
Worked example
- Inputs: a = 8, b = 5, θ = 60°, so sin θ ≈ 0.866025 and cos θ = 0.5.
- Area: 8 × 5 × 0.866025 ≈ 34.64101615 (that is 20√3).
- Perimeter: 2 × (8 + 5) = 26.
- Long diagonal: √(64 + 25 + 40) = √129 ≈ 11.35781669.
- Short diagonal: √(64 + 25 − 40) = √49 = 7.
- Check: 129 + 49 = 178 = 2 × (64 + 25).
| Side a | Area |
|---|---|
| 2 | 8.660254038 |
| 4 | 17.32050808 |
| 6 | 25.98076211 |
| 8 | 34.64101615 |
| 10 | 43.30127019 |
| 12 | 51.96152423 |
| 16 | 69.2820323 |
How to read the result
For fixed sides, the area is largest at θ = 90° (the rectangle, here 40) and shrinks toward zero as the shape is pushed flat, which is why a hinged frame needs a diagonal brace to stay rigid. Equal diagonals mean the shape is a rectangle. In a rhombus the diagonals cross at right angles, so its area can also be found as d₁ × d₂ ÷ 2.
Common mistakes
- Multiplying the two sides (8 × 5 = 40) and forgetting sin θ; that is the area only for a rectangle.
- Using the slanted side instead of the perpendicular height in base × height.
- Assuming that θ and 180° − θ give different areas; sin θ is the same for both, so the area is too.
Frequently asked questions
How do I find the area of a rhombus from its diagonals?
Area = d₁ × d₂ ÷ 2. Diagonals of 6 and 8 give an area of 24 and a side of 5.
Are the diagonals of a parallelogram equal?
Only when it is a rectangle. In general they are different, but they always bisect each other.
Is every square a rhombus?
Yes. A square has four equal sides and four right angles, so it is both a rhombus and a rectangle.
Sources: Euclid, Elements, Book I, Propositions 34 and 35 (properties and area of parallelograms) · G. Strang, Introduction to Linear Algebra, Wellesley-Cambridge Press (vectors and the parallelogram law)