Brahmagupta's Formula Calculator

Area of the cyclic quadrilateral18.97
Circumradius3.29
Diagonal 15.94
Diagonal 26.57
How this was calculated
  1. Semiperimeter s = (3 + 4 + 5 + 6) / 2 = 9.00.
  2. Brahmagupta: area = sqrt((s - a)(s - b)(s - c)(s - d)) = sqrt(6.00 x 5.00 x 4.00 x 3.00) = sqrt(360.00) = 18.97 square units.
  3. Circumradius R = sqrt((ab + cd)(ac + bd)(ad + bc)) / (4 x area) = 3.29; the diagonals are 5.94 and 6.57, and their product 39.00 equals ac + bd = 39.00 (Ptolemy's theorem).
  4. Brahmagupta's formula (7th century CE) is the maximum area any quadrilateral with these sides can have - it is exact only when the quadrilateral is cyclic; Heron's formula is the triangle case (d = 0).

This Brahmagupta calculator finds the area of a cyclic quadrilateral, a four-sided shape whose corners all lie on one circle. You enter the four side lengths a, b, c and d, and the tool applies Brahmagupta's formula: with semiperimeter s = (a+b+c+d)/2, the area is the square root of (s-a)(s-b)(s-c)(s-d). For sides 3, 4, 5 and 6, s comes to 9 and the area is the square root of 360, or 18.97 square units, with a circumradius of 3.29. The formula also checks out on simple shapes: a square of side 5 returns exactly 25, and its diagonals are each the square root of 50, or 7.07. The diagonals follow Ptolemy's theorem, so their product equals ac + bd; in the 3-4-5-6 example the diagonals 5.94 and 6.57 multiply to 39.00, matching ac + bd = 39.00.

Brahmagupta's formula is the standard method for this calculation because it gives the exact area of any cyclic quadrilateral directly from the four side lengths, with no angles or coordinates needed. It is not an approximation or a rule of thumb: it follows from established geometry, and it reduces cleanly to Heron's formula for triangles when one side is zero. That consistency is why it remains the accepted approach rather than a shortcut. On this page you will find the formula written out, step-by-step workings so you can follow each stage of the arithmetic, worked examples such as the 3-4-5-6 case, and the sources behind the method. Everything is laid out so you can check the result yourself and see exactly where each number comes from.

Worked examples

Sides 3, 4, 5 and 6

Area of the cyclic quadrilateral = 18.97. Circumradius: 3.29; Diagonal 1: 5.94; Diagonal 2: 6.57. (3 · 4 · 5 · 6)

Area of the cyclic quadrilateral18.97
Circumradius3.29
Diagonal 15.94
Diagonal 26.57

Square of side 5 (area 25)

Area of the cyclic quadrilateral = 25.00. Circumradius: 3.54; Diagonal 1: 7.07; Diagonal 2: 7.07. (5 · 5 · 5 · 5)

Area of the cyclic quadrilateral25.00
Circumradius3.54
Diagonal 17.07
Diagonal 27.07

Sides 10, 8, 6 and 4

Area of the cyclic quadrilateral = 43.82. Circumradius: 5.24; Diagonal 1: 8.82; Diagonal 2: 10.43. (10 · 8 · 6 · 4)

Area of the cyclic quadrilateral43.82
Circumradius5.24
Diagonal 18.82
Diagonal 210.43

A 7th-century generalisation of Heron

Brahmagupta was a mathematician and astronomer working in India in the 7th century. His major work, the Brahmasphutasiddhanta, is dated to 628 CE, and it is here that the formula now bearing his name first appears. The result gives the area of a cyclic quadrilateral — a four-sided figure whose corners all lie on a single circle. If the sides are a, b, c and d, and the semiperimeter is s = (a+b+c+d)/2, the area is the square root of (s-a)(s-b)(s-c)(s-d). A brahmagupta calculator applies exactly this expression, so the only inputs you need are the four side lengths.

The formula is a direct extension of Heron's formula for triangles. Heron's result, which gives a triangle's area from its three sides, falls out of Brahmagupta's version as the special case where one side is zero. Setting d = 0 in the quadrilateral formula reduces it to Heron's expression, which is why the two are often described as members of the same family. The key difference is the condition attached to the quadrilateral case: the four vertices must lie on a common circle. Without that, the side lengths alone do not fix the area.

A worked example makes the arithmetic concrete. Take sides 3, 4, 5 and 6. The semiperimeter is s = 9, and the four factors become 6, 5, 4 and 3. Their product is 360, so the area is the square root of 360, which is 18.97 square units. The same quadrilateral has a circumradius of 3.29. For a square of side 5, the formula returns exactly 25, and both diagonals measure the square root of 50, or 7.07.

The sides are not the only quantities the formula connects. The diagonals of a cyclic quadrilateral obey Ptolemy's theorem: their product equals ac + bd. In the 3-4-5-6 example, the diagonals are 5.94 and 6.57, and multiplying them gives 39.00, which matches ac + bd = 39.00 exactly. That agreement is a useful check on any calculation, and it shows how tightly the side lengths, diagonals and area of a cyclic quadrilateral are linked.

Brahmagupta's formula needs a cyclic quadrilateral. If the four corners do not share one circle, the side lengths alone do not determine the area.

Why 'cyclic' is essential

Brahmagupta's formula is often quoted as if it worked for any four-sided shape, but it does not. The formula applies to a cyclic quadrilateral — a quadrilateral whose four corners lie on a single circle. For sides a, b, c and d with semiperimeter s = (a+b+c+d)/2, the area is sqrt((s-a)(s-b)(s-c)(s-d)). Apply it to a shape that is not cyclic and the result is not that shape's area. The circle condition is not a technicality; it is the whole basis of the formula.

The reason is a property of quadrilaterals with fixed side lengths. Once you fix the four sides, you can still flex the shape like a hinge, changing its angles and its area. Of all those shapes, the cyclic one has the greatest area. Every non-cyclic quadrilateral with the same four sides has less area, so Brahmagupta's result is best understood as an upper bound in general: the true area of a non-cyclic shape is smaller than what the formula returns. A good brahmagupta calculator should make this clear rather than quietly presenting the output as an exact area for any quadrilateral you enter.

The worked example shows the formula at full strength. Sides 3, 4, 5 and 6 give s = 9 and an area of sqrt(360) = 18.97 square units, with circumradius 3.29. Those numbers describe the cyclic version of the shape — the largest area those four sides can enclose. Bend the same four sides into a non-cyclic quadrilateral and the area drops below 18.97. The formula's output stays fixed because the sides are fixed; what changes is whether a circle can pass through all four corners.

The square case makes the point plainly. For a square of side 5 the formula returns exactly 25, and both diagonals are sqrt(50) = 7.07. A square is cyclic, so the formula is exact here. The diagonals also obey Ptolemy's theorem: their product equals ac + bd. In the 3-4-5-6 example the diagonals 5.94 and 6.57 multiply to 39.00, matching ac + bd = 39.00. That agreement is another signature of the cyclic condition, and it gives you a way to sanity-check a result.

The circle requirement also explains the formula's family tree. Heron's formula for triangles is the special case where one side is zero — a triangle is always cyclic, since any three points lie on a circle, so no extra condition is needed there. A quadrilateral does not get that guarantee for free, which is why Brahmagupta's formula carries the cyclic qualifier while Heron's does not.

Fixed sides, maximum area: among all quadrilaterals with the same four side lengths, the cyclic one encloses the most area. For any other shape, Brahmagupta's formula gives an upper bound, not the exact area.

Circumradius and diagonals

Brahmagupta's formula gives the area of a cyclic quadrilateral, and the same side lengths also fix the circumradius and both diagonals. For a cyclic quadrilateral with sides a, b, c, d and area K, the circumradius R is R = sqrt((ab + cd)(ac + bd)(ad + bc)) / (4K). The two diagonals have their own formulas: the diagonal p joining the vertices between sides a and b and between sides c and d is p = sqrt((ab + cd)(ac + bd) / (ad + bc)), and the diagonal q is q = sqrt((ac + bd)(ad + bc) / (ab + cd)). A brahmagupta calculator applies the area formula first, then feeds that area into the radius and diagonal formulas, so all three results come from the same four side lengths.

The worked example with sides 3, 4, 5 and 6 shows how the pieces fit. The semiperimeter is s = 9 and the area is sqrt(360) = 18.97 square units, with circumradius 3.29. The two diagonals come out to 5.94 and 6.57. Notice that the diagonal formulas and the area formula share the same three products, (ab + cd), (ac + bd) and (ad + bc), so a calculator can compute them once and reuse them for every output.

Ptolemy's theorem is the check that ties the diagonals together. For a cyclic quadrilateral it states that the product of the diagonals equals ac + bd. In the 3-4-5-6 example, ac + bd = 3×5 + 4×6 = 15 + 24 = 39.00, and the two diagonals multiply to 5.94 × 6.57 = 39.00, so the theorem holds. This is a useful sanity check on any result: if your diagonals do not multiply to ac + bd, something in the input or the arithmetic is off.

A square of side 5 gives a clean test of the same machinery. Brahmagupta's formula returns exactly 25 for the area, and both diagonals are sqrt(50) = 7.07. Ptolemy's theorem agrees here as well, since ac + bd = 5×5 + 5×5 = 50, which is 7.07 × 7.07. The square also shows why the two diagonal formulas collapse to the same value when all four sides are equal.

One more connection is worth keeping in mind: Heron's formula for triangles is the special case of Brahmagupta's formula where one side is zero. Setting d = 0 turns the quadrilateral into a triangle, and the area expression reduces to Heron's form. The radius and diagonal formulas above assume a genuine four-sided cyclic figure, so use the triangle case only for the area comparison.

  • Circumradius: R = sqrt((ab + cd)(ac + bd)(ad + bc)) / (4K), where K is the area.
  • Diagonal p = sqrt((ab + cd)(ac + bd) / (ad + bc)).
  • Diagonal q = sqrt((ac + bd)(ad + bc) / (ab + cd)).
  • Ptolemy check: p × q must equal ac + bd.
  • Sides 3, 4, 5, 6: area 18.97, circumradius 3.29, diagonals 5.94 and 6.57, and 5.94 × 6.57 = 39.00 = ac + bd.
  • Square of side 5: area exactly 25, both diagonals sqrt(50) = 7.07, and ac + bd = 50.
Verify every diagonal result with Ptolemy's theorem: the two diagonals must multiply to ac + bd. In the 3-4-5-6 example that product is 39.00 on both sides.

Existence conditions

Before you trust any area that a brahmagupta calculator hands back, it is worth asking whether the four side lengths can form a quadrilateral at all. Brahmagupta's formula is sqrt((s-a)(s-b)(s-c)(s-d)), where s = (a+b+c+d)/2 is the semiperimeter. Each factor under the root is the semiperimeter minus one side. For the area to be a real, positive number, all four of those factors must be positive. That single requirement is what rules out impossible side combinations.

The condition has a simple geometric meaning: the longest side must be strictly shorter than the other three sides combined. If the longest side equals the sum of the other three, the four sides flatten into a straight line, and one factor under the root becomes exactly zero, so the formula returns an area of zero. If the longest side is longer than the other three combined, one factor becomes negative, the product under the root turns negative, and no real area exists. In that case no quadrilateral with those side lengths can be drawn, so no formula could produce a meaningful answer.

A quick check with the worked example shows how the factors behave when the sides are valid. For sides 3, 4, 5 and 6, the semiperimeter is s = 9, and the four factors are 6, 5, 4 and 3. All are positive, so the product is 360 and the area is sqrt(360) = 18.97 square units, with a circumradius of 3.29. The longest side, 6, is comfortably less than 3 + 4 + 5 = 12, which is why everything works out cleanly.

The rule also holds for shapes you already know. For a square of side 5, the semiperimeter is 10 and every factor equals 5, so the formula returns exactly 25, the square's area, and both diagonals are sqrt(50) = 7.07. Here the longest side, 5, is far shorter than the other three sides combined, so there is no trouble. The boundary case is the one to watch: as the longest side grows toward the sum of the other three, the area shrinks toward zero, and at the limit the shape collapses to a line segment.

One more connection is worth keeping in mind. Heron's formula for triangles is the special case where one side is zero. Setting d = 0 in Brahmagupta's formula reduces it to the triangle version, and the existence condition becomes the familiar triangle inequality: the longest side must be shorter than the sum of the other two. The quadrilateral rule is the same idea extended by one side, so if you can picture the triangle inequality, you already understand when a four-sided figure can exist.

When you enter side lengths, check the longest side against the sum of the other three first. If the longest side is not strictly shorter, expect a zero or an error rather than an area, because the geometry itself does not exist.

Quick check: the longest side must be strictly less than the other three sides added together. Equal gives zero area; greater gives no real area.

FAQs

What is Brahmagupta's formula?

Brahmagupta's formula gives the area of a cyclic quadrilateral from its four sides. If the sides are a, b, c and d, and s is the semiperimeter, the area equals the square root of (s-a)(s-b)(s-c)(s-d). A cyclic quadrilateral is one whose four vertices all lie on a single circle.

What is the area for sides 3, 4, 5 and 6?

For sides 3, 4, 5 and 6, the semiperimeter s is 9. Plugging into the formula gives the square root of 6 x 5 x 4 x 3, which is the square root of 360. That works out to about 18.97 square units, the area of the cyclic quadrilateral with those four sides.

Does it work for any quadrilateral?

No. The formula is exact only for cyclic quadrilaterals, the ones that fit inside a circle. For other quadrilaterals with the same four sides, it does not give the true area. Instead, it gives the maximum possible area those sides could enclose, which is reached when the quadrilateral is cyclic.

How is it related to Heron's formula?

Heron's formula for a triangle is the limiting case of Brahmagupta's formula. If you set one side to zero, the quadrilateral collapses into a triangle, and Brahmagupta's formula becomes Heron's triangle formula. So Heron's formula can be viewed as a special case of Brahmagupta's result.

How do I get the diagonals?

The calculator returns both diagonals, derived from the products of the sides. As a check, their product must equal ac + bd, where a, b, c and d are the sides in order. This relationship is Ptolemy's theorem, which holds for every cyclic quadrilateral, so you can use it to verify the results.

Who was Brahmagupta?

Brahmagupta was an Indian mathematician and astronomer who lived from 598 to 668 CE. He stated this formula in 628 CE. He also pioneered rules for zero and negative numbers, work that shaped later mathematics. His formula remains a standard tool for finding the area of cyclic quadrilaterals from their sides.

Sources

Related calculators

Heron's Formula Calculator
The area of any triangle from its three sides alone — plus the semiperimeter, inradius and circumradius.
Regular Polygon Area Calculator
Area, perimeter, apothem and circumradius of a regular polygon from its side count and side length.
Triangle Calculator
Triangle area three ways: base × height, Heron's formula from three sides, or two sides with the included angle — plus perimeter and side classification.