Cyclic Quadrilateral Calculator (Brahmagupta's Formula)
Area, both diagonals, the circumscribed radius and all four angles of a four-sided figure whose corners lie on one circle, from its four sides.
Results
What this tool does
When a quadrilateral can be drawn inside a circle with all four corners on it, its opposite angles add to 180° and four sides are enough to fix everything else. Brahmagupta's formula for the area looks like Heron's for a triangle, with a fourth side: √((s−a)(s−b)(s−c)(s−d)). Of all quadrilaterals with the same four sides, the cyclic one encloses the largest area. Any four lengths work as long as the longest is shorter than the other three added together; the order of the sides around the figure matters for the angles and diagonals, not for the area.
Formula
K = √((s−a)(s−b)(s−c)(s−d)) · p = √((ac+bd)(ad+bc) ÷ (ab+cd)) · q = √((ac+bd)(ab+cd) ÷ (ad+bc)) · pq = ac + bd · R = √((ab+cd)(ac+bd)(ad+bc)) ÷ 4K
Variables
| Symbol | Meaning | Unit |
|---|---|---|
qa | Side a | — |
qb | Side b (next to a) | — |
qc | Side c | — |
qd | Side d (last, next to a) | — |
K | Area (Brahmagupta) | — |
P | Diagonal across sides a and b | — |
Q | Diagonal across sides b and c | — |
R | Radius of the circle through all four corners | — |
AB | Angle between a and b | ° |
BC | Angle between b and c | ° |
CD | Angle between c and d | ° |
DA | Angle between d and a | ° |
Worked example
- Side a5
- Side b (next to a)6
- Side c7
- Side d (last, next to a)4
- Area (Brahmagupta)28.9828
- Diagonal across sides a and b7.9416
- Diagonal across sides b and c7.4292
- Radius of the circle through all four corners3.9732
- Angle between a and b91.98 °
- Angle between b and c69.22 °
- Angle between c and d88.02 °
- Angle between d and a110.78 °
Limitations
- Mixing units is the most common source of error. Convert every input to the units shown next to each field before calculating.
- The calculation runs at full precision and only the display is rounded. If you copy an intermediate value and retype it, small differences can appear.