Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Perimeter Quadrilateral Calculator

Perimeter and area of any four-sided shape from its four sides and one diagonal, which splits it into two triangles measured with Heron's formula.

Perimeter Quadrilateral Calculator

Quadrilateral perimeter
14
Total length of the four sides, in the same unit you entered them in.
Area using the diagonal
12

Background.

Going around the outside of a four-sided shape is the easy part: add the four sides. A fence line, a run of skirting board, the edging for an oddly shaped flower bed — the perimeter needs nothing more, whatever the angles at the corners. The area is a different matter, and it is the reason this page asks for one extra measurement.

Four side lengths do not pin down a quadrilateral. Join four sticks of 3, 4, 3 and 4 at the corners with loose pins and they can form a 3-by-4 rectangle, or you can push the frame over into a leaning parallelogram, or squash it almost flat. The perimeter stays 14 throughout, but the area slides from 12 down towards zero. Triangles do not behave like this — three sides fix a triangle completely — so the standard remedy is to measure one diagonal too, which splits the shape into two triangles whose shapes are then locked.

Each triangle's area follows from its three sides by Heron's formula, which needs no angles or heights, and the two areas add. That makes the method practical with nothing but a tape: measure the four boundaries of a plot or a room and one corner-to-corner line, and you have the area without a protractor.

Two conditions matter. The diagonal must be the one that separates sides a and b from sides c and d, and each triangle it creates must be possible — the diagonal shorter than the two sides beside it combined, and longer than their difference. And if one corner of the shape points inwards, measure the diagonal that runs inside it, because the two triangle areas are always added, never subtracted.

What is perimeter quadrilateral calculator?

A quadrilateral is any closed four-sided figure: square, rectangle, kite, trapezium or something entirely irregular. Its perimeter is the total length of its boundary, a + b + c + d, in the same unit as the sides. Its area is the space it encloses, in square units. The side lengths alone fix the perimeter but not the area, which is why a diagonal is entered as well. A diagonal joins two opposite corners and divides the shape into two triangles.

How to use this calculator.

  1. Label the corners in order around the shape and enter the four sides in that order, so that sides a and b meet at one corner and sides c and d meet at the opposite corner.
  2. Measure the diagonal joining the other two corners — the line with sides a and b on one side of it and c and d on the other — and enter it in the same unit as the sides.
  3. If one corner is pushed inwards, use the diagonal that lies inside the shape; the outside one would make the page add a triangle of area that is not part of the shape at all.
  4. Read the perimeter, and the area in the square of whatever unit you used: sides in metres give square metres, sides in feet give square feet.

The formula.

Split on a known diagonal; area = Heron(a,b,e)+Heron(c,d,e); perimeter=a+b+c+d

Perimeter = a + b + c + d. For the area, the diagonal e splits the shape into triangles with sides (a, b, e) and (c, d, e). Heron's formula gives a triangle's area from its sides alone: with the semi-perimeter s = (x + y + z) ÷ 2, the area is √(s(s − x)(s − y)(s − z)). The quadrilateral's area is the sum of the two triangles' areas. Each triangle must satisfy the triangle inequality — every side shorter than the other two combined — or there is no triangle to measure, and the page reports an error on the diagonal. The area reacts most strongly to the diagonal when one of the triangles is nearly flat, so small measuring errors matter most there. For any given four sides, the area is largest when all four corners lie on one circle, which is why the rectangle beats every leaning version of the same frame.

A worked example.

Example

Take sides of 3, 4, 3 and 4 with a diagonal of 5 — the measurements of a 3-by-4 rectangle. The perimeter is 3 + 4 + 3 + 4 = 14. The diagonal splits the shape into two triangles, each with sides 3, 4 and 5. For one of them the semi-perimeter is (3 + 4 + 5) ÷ 2 = 6, and Heron's formula gives √(6 × 3 × 2 × 1) = √36 = 6. The second triangle is identical, so the area is 6 + 6 = 12 square units. Push the same frame over until the diagonal measures 6. The perimeter is still 14, but each triangle now has semi-perimeter 6.5 and area √(6.5 × 3.5 × 2.5 × 0.5) ≈ 5.333, so the total falls to about 10.665. A diagonal of 7 would flatten both triangles completely, and the page refuses it.

side D4
side C3
diagonal5
side B4
side A3

Frequently asked questions.

Why do I need a diagonal if I only want the perimeter?
Mathematically you do not: the perimeter uses the four sides alone. The page works out perimeter and area together, though, so it shows nothing until the diagonal forms two valid triangles. If you only need the perimeter, any diagonal between the larger of the two side differences and the smaller of the two side sums will do.
Can the area be found from the four sides alone?
Not for a general quadrilateral. The same four sides can enclose anything from a maximum area down to almost none, as the hinged 3-4-3-4 frame shows. Extra information is always needed: a diagonal, an angle, or knowledge that the shape is a particular kind, such as a rectangle or one whose corners lie on a circle.
How can I check my measurements of a real plot or room?
Measure the other diagonal too and run the page a second time with the sides entered starting from the next corner — b, c, d, a — and the second diagonal. Both runs describe the same shape, so the two areas should agree closely. A large difference means one of the six measurements is off.
Does the method work when one corner points inwards?
Yes, if you choose the right diagonal. A shape with an inward corner has one diagonal inside it and one outside. Splitting on the inside diagonal gives two triangles that together make up the shape exactly. Splitting on the outside one would need a subtraction, and because the page always adds, the area would come out too large.
What is Heron's formula, and why use it here?
It gives a triangle's area from its three sides, using the semi-perimeter s: area = √(s(s − a)(s − b)(s − c)). It is attributed to Hero of Alexandria, writing in the first century AD. Here it means the area needs no angles or perpendicular heights, only lengths a tape measure can give you directly.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Split on a known diagonal; area = Heron(a,b,e)+Heron(c,d,e); perimeter=a+b+c+d
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon