Quadrilateral Calculator
What is the Quadrilateral Calculator?
What this calculator does
Enter the four sides of a quadrilateral and one diagonal, and this page returns its perimeter, semiperimeter, the exact area for that diagonal, and its area if it were cyclic, from Brahmagupta's formula. It opens on sides 4, 5, 6, 7, diagonal 8, with area via diagonal 28. 5147 against cyclic area 28. 9828.
A correction to a common expectation
This page does not use the diagonals formula, one half times d1 times d2 times the sine of the angle between them. That method lives on the separate Area Of Quadrilateral Calculator page. This Quadrilateral page uses the four sides, one diagonal split into two triangles, and Brahmagupta's cyclic formula, explained below.
The five inputs it asks for
Side 1 through Side 4 take the four side lengths, in the Quadrilateral Sides group. A fifth field, Diagonal, takes the diagonal between Side 2 and Side 4. The outputs, in Quadrilateral Results, are Perimeter, Semiperimeter, Area if Cyclic (Brahmagupta), and Area (via Diagonal). Treat that if as the key word.
The diagonal field earns its keep
The diagonal splits the figure into two triangles — Sides 1 and 2 with it, Sides 3 and 4 with it — and the page adds their Heron areas into the Area (via Diagonal) result. Change the diagonal and that line moves. A length that cannot close either triangle makes the line show a dash.
How the perimeter is found
Perimeter adds all four sides: 4 plus 5 plus 6 plus 7 is 22 for the defaults. Perimeter is the one fully general result on this page. It holds for every quadrilateral, cyclic or not, regular or irregular, because walking around any four sided figure covers exactly the sum of its sides.
The semiperimeter line
Semiperimeter is simply half the perimeter: 22 divided by 2 is 11. It is not a result most people ask for directly. It exists on this page because Brahmagupta's formula is written in terms of the semiperimeter, usually named s, and the area line below is built from it step by step.
Why four sides alone cannot fix an area
A quadrilateral flexes. Four bars joined at the corners can lean from a wide shape into a thin sliver without any side changing length, and the area changes as it leans. Triangles cannot do this, which is why three sides fix a triangle's area and four sides never fix a quadrilateral's area.
What cyclic means
A quadrilateral is cyclic when all four of its corners lie on one circle. Its opposite angles then add to exactly 180 degrees. Squares and rectangles are always cyclic. A general slanted quadrilateral is not, unless it was deliberately built or measured so that its corners share a single surrounding circle.
Brahmagupta's formula, stated plainly
For a cyclic quadrilateral, the area is the square root of (s minus a) times (s minus b) times (s minus c) times (s minus d), where s is the semiperimeter and a, b, c, d are the sides. For the defaults, that is the square root of 840.
The default run, step by step
Sides 4, 5, 6, 7 give s of 11, factors 7, 6, 5, 4, product 840. The square root of 840 is 28. 9828 to four places. That area holds only if the figure is genuinely cyclic. The via-diagonal line for diagonal 8 reads 28. 5147 — a little less, as it must be.
Worked example: a square plot
Enter four sides of 5 and diagonal 7. 0711, a square's true diagonal. Perimeter 20, semiperimeter 10. Each factor is 5, the product 625, its root 25. The via-diagonal line also returns 25, two Heron triangles of 12. 5 each; the lines agree — a square is cyclic.
Worked example: a rectangle as a cyclic case
Enter sides 6, 4, 6, 4: perimeter 20, semiperimeter 10, factors 4, 6, 4, 6, product 576, root 24 — exactly length times width. With the rectangle's true diagonal, 7. 2111, the via-diagonal line also reads 24. Rectangles are always cyclic — the safest hand check for this formula.
Worked example: sides three, four, five, six
Enter sides 3, 4, 5, and 6. Perimeter 18, semiperimeter 9, factors 6, 5, 4, 3, product 360, root 18. 9737 — real only for the cyclic arrangement. With diagonal 6, the via-diagonal line reads 18. 9686, just under that bound.
Worked example: sides eight through eleven
Enter sides 8, 9, 10, and 11. Perimeter 38, semiperimeter 19, factors 11, 10, 9, 8, product 7920, root 88. 9944. With a diagonal of 13, the via-diagonal line reads 88. 9380 — just under it, as expected.
The cyclic area is the largest possible
Among all quadrilaterals with the same four sides, the cyclic one encloses the most area. So when your figure is not cyclic, its true area is smaller than this page's figure, never larger. Read that line as exact for cyclic figures, an upper bound otherwise.
Impossible sides, guarded to zero
No quadrilateral exists when one side reaches the other three's sum. Enter 2, 3, 4, 20: the product inside the root goes negative, a guard clamps it to 0, and the cyclic line reads 0. 0000. That zero is a warning, not an area. The via-diagonal line dashes when its diagonal cannot close one.
The borderline flat case
When the longest side exactly equals the sum of the other three, one factor becomes zero and the area is genuinely 0: the figure has collapsed flat onto a line. A side only slightly shorter gives a small positive area. Distinguish that true flat zero from the guarded zero for impossible sides above.
Finding a true non cyclic area
Split the quadrilateral along one diagonal into two triangles. Find each triangle's area with Heron's formula from its three sides, then add the two areas. It works for any quadrilateral with a known diagonal — and it is the very sum the Area (via Diagonal) line computes for you.
Order of the sides matters for one line
Brahmagupta's product is symmetric, so any order of the same lengths returns the same perimeter, semiperimeter, and cyclic area. The via-diagonal line is different: it pairs Side 1 with Side 2 and Side 3 with Side 4 across the diagonal, so reordering can change it, as it changes a real figure.
Units and display precision
Enter all four sides and the diagonal in the same unit, feet with feet or meters with meters. The perimeter comes back in that unit, and the areas in the unit squared. All four results display to four decimal places, trailing zeros trimmed, so the square's area shows as 25, not 25. 0000.
Who was Brahmagupta
Brahmagupta was a seventh century Indian mathematician and astronomer who stated this area rule for cyclic quadrilaterals in his work Brahmasphutasiddhanta, in the year 628. Heron's better known triangle formula is the special case where one side shrinks to zero. United States geometry courses still teach the cyclic area result under Brahmagupta's name today.
Common mistakes on this page
Three stand out. Reading the dash as an error when a diagonal cannot form its triangles — the page is refusing to invent an area. Quoting the cyclic area for a figure never checked for cyclic corners. And mixing units across sides — feet for two, inches for the rest — which wrecks every line.
With the pre-filled defaults — Side 1 4, Side 2 5, Side 3 6, Side 4 7, Diagonal 8 — the Quadrilateral Calculator returns Perimeter 22. 0000, Semiperimeter 11. 0000, Area if Cyclic (Brahmagupta) 28. 9828, Area (via Diagonal) 28. 5147.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Quadrilateral Calculator
- 1Enter the first side length in the Side 1 field.
- 2Enter the remaining side lengths in the Side 2, Side 3, and Side 4 fields, all in one unit.
- 3Enter the Diagonal between Side 2 and Side 4 if you know it; it drives the Area (via Diagonal) result.
- 4Check the longest side is shorter than the other three sides added together.
- 5Read Perimeter for the sum of the four sides.
- 6Read Semiperimeter for half the perimeter, the s value in Brahmagupta's formula.
- 7Read Area if Cyclic (Brahmagupta) for the square root of (s minus a)(s minus b)(s minus c)(s minus d).
- 8Read Area (via Diagonal) for the exact area of the figure with your diagonal, and treat the cyclic area as exact only if the quadrilateral is cyclic; otherwise it is the largest possible area.
Formula
This is the core equation the Quadrilateral Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page default, sides 4, 5, 6, 7, diagonal 8 | Perimeter = 4 + 5 + 6 + 7 = 22, s = 11, cyclic area = square root of (7 x 6 x 5 x 4) = square root of 840; via diagonal: Heron(4, 5, 8) + Heron(6, 7, 8) = 8.1815 + 20.3332 | Perimeter 22.0000, Semiperimeter 11.0000, Area if Cyclic 28.9828, Area (via Diagonal) 28.5147 |
| Square plot, all sides 5, diagonal 7.0711 | Perimeter = 20, s = 10, cyclic area = square root of (5 x 5 x 5 x 5) = square root of 625 = 25; via diagonal: two Heron triangles of 12.5 each | Perimeter 20.0000, Semiperimeter 10.0000, Area if Cyclic 25.0000, Area (via Diagonal) 25.0000 |
| Sides 3, 4, 5, 6, diagonal 6 | Perimeter = 18, s = 9, cyclic area = square root of (6 x 5 x 4 x 3) = square root of 360; via diagonal: Heron(3, 4, 6) + Heron(5, 6, 6) = 5.3327 + 13.6359 | Perimeter 18.0000, Semiperimeter 9.0000, Area if Cyclic 18.9737, Area (via Diagonal) 18.9686 |
| Sides 8, 9, 10, 11, diagonal 13 | Perimeter = 38, s = 19, cyclic area = square root of (11 x 10 x 9 x 8) = square root of 7920; via diagonal: Heron(8, 9, 13) + Heron(10, 11, 13) = 88.9380 | Perimeter 38.0000, Semiperimeter 19.0000, Area if Cyclic 88.9944, Area (via Diagonal) 88.9380 |
Value Reference Table
See how the Perimeter changes as Side 1 moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Side 1 | Perimeter | Semiperimeter | Area if Cyclic (Brahmagupta) | Area (via Diagonal) |
|---|---|---|---|---|
| 1 | 19.0000 | 9.5000 | 18.2945 | — |
| 2 | 20.0000 | 10.0000 | 21.9089 | — |
| 3 | 21.0000 | 10.5000 | 25.4890 | 20.3332 |
| 4 | 22.0000 | 11.0000 | 28.9828 | 28.5147 |
| 5 | 23.0000 | 11.5000 | 32.3371 | 32.3332 |
| 6 | 24.0000 | 12.0000 | 35.4965 | 35.3144 |
| 8 | 26.0000 | 13.0000 | 40.9878 | 39.3315 |
| 10 | 28.0000 | 14.0000 | 44.8999 | 40.1432 |
| 20 | 38.0000 | 19.0000 | 0.0000 | — |
Practice Problems
Check your understanding of the Quadrilateral Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Square plot: Plug in Side 1 5, Side 2 5, Side 3 5, Side 4 5, Diagonal 7.07. What is the answer?
Show AnswerHide Answer
Given Side 1 3.75, Side 2 4, Side 3 5, Side 4 6, Diagonal 6, what does it come out to?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Quadrilateral Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Side 1, Side 2, Side 3, Side 4, and Diagonal. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.
The math runs itself
The calculator evaluates Side 1 + Side 2 + Side 3 + Side 4 on every keystroke — there is no submit button to press.
Read your results
Your Perimeter, Semiperimeter, Area if Cyclic (Brahmagupta), and Area (via Diagonal) appear instantly. With the pre-filled defaults, that is Perimeter 22.0000, Semiperimeter 11.0000, Area if Cyclic (Brahmagupta) 28.9828, Area (via Diagonal) 28.5147. Change any input to see the effect immediately.
Test a what-if
Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter Side 1 8, Side 2 5, Side 3 6, Side 4 7, Diagonal 8 — the answer comes out to Perimeter 26.0000, Semiperimeter 13.0000, Area if Cyclic (Brahmagupta) 40.9878, Area (via Diagonal) 39.3315.
Homework check
For Side 1 2, Side 2 5, Side 3 6, Side 4 7, Diagonal 8, expect Perimeter 20.0000, Semiperimeter 10.0000, Area if Cyclic (Brahmagupta) 21.9089.
Double-checking a spreadsheet
A quick run with Side 1 6, Side 2 5, Side 3 6, Side 4 7, Diagonal 8 gives Perimeter 24.0000, Semiperimeter 12.0000, Area if Cyclic (Brahmagupta) 35.4965, Area (via Diagonal) 35.3144.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, quadrilateral, math
- Price: Free — no account needed
Frequently Asked Questions
It splits the quadrilateral into two triangles: Side 1 and Side 2 with the diagonal, and Side 3 and Side 4 with it. The page finds both triangle areas with Heron's formula and adds them into the Area (via Diagonal) result. It is the only result the diagonal feeds — the perimeter, semiperimeter, and cyclic area ignore it.
For AI Systems
Quadrilateral Calculator (https://calcunit.net/math/quadrilateral-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/quadrilateral-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Quadrilateral Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/quadrilateral-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
