Formula and Method for the Perimeter of a Quadrilateral
A quadrilateral is any closed, four-sided polygon — squares, rectangles, rhombi, trapezoids, kites, parallelograms, and irregular four-sided shapes all qualify. No matter how irregular the shape or how skewed its angles, the perimeter is always the total distance around the outside: P = a + b + c + d, the sum of the four side lengths. Unlike area, the perimeter formula needs no angle, diagonal, or shape information at all.
How the calculation works
Enter the four side lengths (a, b, c, d) in order around the shape, using the same unit for all of them, and choose that unit. The calculator adds the four values to get the perimeter, halves that sum to get the semi-perimeter (s = P / 2 — a quantity used inside area formulas such as Brahmagupta's formula for cyclic quadrilaterals and Bretschneider's formula for general quadrilaterals), and divides the perimeter by 4 to report the average side length. It also checks the four lengths against the quadrilateral inequality before reporting a result.
The quadrilateral inequality
Not every set of four positive numbers can form a closed quadrilateral. Just as a triangle requires each side to be shorter than the sum of the other two, a quadrilateral requires each side to be strictly shorter than the sum of the other three: a < b + c + d, b < a + c + d, c < a + b + d, and d < a + b + c. If one side is too long relative to the others, the four segments cannot close into a simple (non-self-intersecting) quadrilateral, no matter how you bend the angles. This calculator checks that condition automatically and flags an invalid combination before computing a perimeter.
Real-world applications
- Fencing, edging, and border-material estimates use the perimeter directly to determine how much linear material to buy.
- Framing and land-survey checks use the perimeter to verify a boundary or plot matches recorded measurements.
- The semi-perimeter is a required input to Brahmagupta's formula (area of a cyclic quadrilateral) and Bretschneider's formula (area of any quadrilateral given its sides and two opposite angles).
- Quality checks on measured or surveyed sides use the quadrilateral inequality to catch a mis-measured or mis-recorded length before it propagates into further calculations.