A quadrilateral calculator finds the perimeter and the area of a four-sided shape from the measurements that you have. Give it four sides and two opposite angles and it uses Bretschneider's formula for any quadrilateral. Give it two sides and an angle for a parallelogram, the two diagonals for a kite or a rhombus, or three angles to find the fourth. It runs in your browser.
How to use the quadrilateral calculator
- Choose what you know about the shape.
- Enter the sides, angles or diagonals that the boxes ask for.
- Press Calculate.
- Read the area, the perimeter and the formula that was used.
The angles and the perimeter
The Wikipedia article on quadrilaterals says that the interior angles of a simple quadrilateral add up to 360 degrees, which follows from (n − 2) × 180° with n = 4.[1] If three angles are 90°, 80° and 100°, the fourth is 360° − 270° = 90°. The perimeter is the sum of the four sides, so a quadrilateral with sides 5, 5, 5 and 5 has a perimeter of 20. Four lengths can form a quadrilateral only if the longest is shorter than the sum of the other three, and the calculator checks this.
The area from four sides and two angles
Bretschneider's formula gives the area K of any quadrilateral from its sides a, b, c and d, the semiperimeter s and two opposite angles α and γ: K = √[(s − a)(s − b)(s − c)(s − d) − abcd · cos²((α + γ) ÷ 2)].[2] The article says that it works on any quadrilateral, whether cyclic or not, and that it generalizes Brahmagupta's formula for the area of a cyclic quadrilateral.[2] For a square of side 5 the angles are 90° each, so the cosine term is cos²(90°) = 0 and the area is √(5⁴) = 25. For a parallelogram with sides 3 and 4 and angles of 60°, the formula gives 12 × sin 60°, about 10.392.
Cyclic quadrilaterals
A convex quadrilateral is cyclic, with all four vertices on a circle, if and only if its opposite angles add up to 180°.[1] In that case α + γ = 180°, and the cosine term in Bretschneider's formula is zero, which leaves K = √[(s − a)(s − b)(s − c)(s − d)], Brahmagupta's formula.[1] This is a derivation from the two pages. If you leave the angle boxes blank, the calculator uses this formula, so the result is the area for the case in which the corners lie on a circle. That is the correct area for a rectangle and for any other cyclic shape, but it is not the area of every quadrilateral with those sides, because a quadrilateral with given sides can be flexed.
The area from the diagonals
The article gives K = ½ p q sin θ, where p and q are the lengths of the diagonals and θ is the angle between them. For shapes whose diagonals cross at right angles, the formula is K = pq ÷ 2.[1] Rhombuses, squares and kites are of this kind. A kite with diagonals of 6 and 8 has an area of 24. If the diagonals of another quadrilateral cross at 30°, the area is ½ × 6 × 8 × 0.5 = 12.
Parallelograms
For a parallelogram with sides a and b and an angle A between them, the area is K = ab sin A.[1] With sides 5 and 8 and an angle of 30°, the area is 5 × 8 × 0.5 = 20 and the perimeter is 2 × (5 + 8) = 26. The two diagonals follow from the law of cosines: the short one is √(a² + b² − 2ab cos A) and the long one is √(a² + b² + 2ab cos A). They satisfy p² + q² = 2(a² + b²), which the calculator uses as a check.
The types of quadrilaterals
The article defines a parallelogram as a quadrilateral with two pairs of parallel sides, a rhombus as one with four equal sides, a rectangle as one with four right angles, and a square as one that is both a rhombus and a rectangle. A trapezoid has at least one pair of parallel sides, and a kite has two pairs of equal adjacent sides.[1] A tangential quadrilateral has an inscribed circle, and a convex one is tangential if and only if the sums of opposite sides are equal.[1] Each type is a special case of the formulas above.
A worked example with a rectangle
A rectangle with sides 6 and 4 has two right angles at opposite corners, so enter 6, 4, 6 and 4 with angles of 90° and 90°. The semiperimeter is 10, and Bretschneider's formula gives √(4 × 6 × 4 × 6 − 0) = 24, which is 6 × 4, as expected. The perimeter is 20. If you leave the angles blank, you get the same answer, because a rectangle is cyclic, and its opposite angles add up to 180°.
A flexible quadrilateral
Four fixed sides do not fix the shape, because the corners can swing, as in a hinged frame. A quadrilateral with sides 3, 4, 3 and 4 can be a rectangle with an area of 12, or a flatter parallelogram with an area of about 10.39 when the angle is 60°, or nearly flat with an area close to 0. That is why you need an angle or a diagonal as well as the four sides, and why the result for blank angles is flagged as the cyclic case, which is a special shape. Add the angles to get the area of the shape you actually have.
Common mistakes
- Using adjacent angles. The formula needs two angles at opposite corners.
- Assuming four sides fix the area. A quadrilateral can flex, so you need an angle or a diagonal.
- Mixing degrees and radians. Enter degrees.
- Forgetting that sides must fit. The longest side must be shorter than the rest added together.
What next
Use this often? Add Quadrilatera to your Home screen.
Frequently asked questions
What is a quadrilateral calculator?
A tool that finds the area, perimeter and angles of a four-sided shape from the measurements that you know.
How do I find the area of a quadrilateral from its sides?
You need an angle or a diagonal too. With two opposite angles, use Bretschneider's formula. Without them, the sides give the area only if the corners lie on a circle.
What do the angles of a quadrilateral add up to?
360 degrees, so the fourth angle is 360° minus the other three.
What is the area of a kite or rhombus?
Half the product of the diagonals, because they cross at right angles. Diagonals of 6 and 8 give 24.
What is Bretschneider's formula?
K = √[(s − a)(s − b)(s − c)(s − d) − abcd · cos²((α + γ) ÷ 2)]. It works for any quadrilateral.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.