Tangential Quadrilateral Calculator

Tangential Quadrilateral Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

K=rs,s=a+b+c+d2,a+c=b+dK=r\,s,\quad s=\frac{a+b+c+d}{2},\quad a+c=b+d
Show calculation steps (2)
  1. Inradius from tangent lengths

    r=efg+fgh+ghe+hefe+f+g+hr=\sqrt{\frac{efg+fgh+ghe+hef}{e+f+g+h}}

    From the four tangent lengths e, f, g, h.

  2. Area

    K=rsK=r\,s

    Inradius times semiperimeter.

Usage stats

Advertisement

Results

Area K
40.175227
Side a (AB)7
Side b (BC)5
Side c (CD)6
Side d (DA)8
Perimeter P26
Semiperimeter s13
Inradius r3.090402
Diagonal p (AC)8.309936
Diagonal q (BD)9.672197
Angle A80°
Angle B85.949118°
Angle C122.855584°
Angle D71.195298°
Tangent length from A3.682998
Tangent length from B3.317002
Tangent length from C1.682998
Tangent length from D4.317002

Report an error on this page

What a tangential quadrilateral is

A tangential quadrilateral is a convex quadrilateral that has a circle inside it touching all four sides: the incircle, with radius \(r\), the inradius. Its corners are \(A, B, C, D\) counter-clockwise with sides \(a=AB\), \(b=BC\), \(c=CD\), \(d=DA\). The two tangent segments from a corner to the circle are equal, so each side splits into two tangent lengths \(t_A, t_B, t_C, t_D\) (\(a=t_A+t_B\), \(b=t_B+t_C\), \(c=t_C+t_D\), \(d=t_D+t_A\)), and the opposite sides add up to the same total: \(a+c=b+d\) (Pitot's theorem). Conversely, every convex quadrilateral with \(a+c=b+d\) has an incircle. Squares, rhombi and kites are tangential quadrilaterals.

Four sides alone do not fix the shape (it can still flex), so the calculator asks for one angle as well; or for the four tangent lengths; or for the inradius and three angles. It returns the area, all sides and angles, the perimeter and semiperimeter, the inradius, both diagonals and the four tangent lengths. It refuses sides with \(a+c\ne b+d\) (checked with a tolerance of one part in a million million), values that do not close or that give a non-convex shape, and angles whose fourth angle would not lie between \(0^{\circ}\) and \(180^{\circ}\). Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. The page shows up to six decimal places, and writes a value below 0.0000005 or of 1015 and more as its full decimal. Every length must be from 0.000001 to 1,000,000,000; anything outside is refused with a message naming the range.

Derivation

The incircle centre is at distance \(r\) from every side, so the quadrilateral splits into four triangles of height \(r\) on the four sides:

$$K=\tfrac12 r\,(a+b+c+d)=r\,s,\qquad s=\frac{a+b+c+d}{2}=a+c=b+d.$$

From four sides and the angle \(A\): place \(A\) at the origin and \(B=(a,0)\), \(D=(d\cos A,\,d\sin A)\); the corner \(C\) is where the circles of radius \(b\) about \(B\) and \(c\) about \(D\) meet, on the far side of \(BD\). Then \(K\) is the shoelace area, \(r=K/s\) and \(t_A=r\cot\tfrac{A}{2}\). A second check holds for every tangential quadrilateral:

$$K=\sqrt{abcd}\,\sin\frac{A+C}{2}.$$

From the tangent lengths \(e=t_A\), \(f=t_B\), \(g=t_C\), \(h=t_D\): the half-angles at the corners are \(\arctan(r/t)\) and add up to \(180^{\circ}\), which gives

$$r=\sqrt{\frac{efg+fgh+ghe+hef}{e+f+g+h} },\qquad A=2\arctan\frac{r}{e},\ \dots$$

From the inradius and three angles: \(D=360^{\circ}-A-B-C\) and each tangent length is \(t=r\cot\tfrac{\theta}{2}\) for its corner angle \(\theta\).

Worked example

The page opens with \(a=7\), \(b=5\), \(c=6\), \(d=8\) (so \(a+c=b+d=13=s\)) and \(A=80^{\circ}\). Building the corners gives \(B\approx 85.949118^{\circ}\), \(C\approx 122.855584^{\circ}\), \(D\approx 71.195298^{\circ}\) and the area

$$K\approx 40.175227,\qquad r=\frac{K}{s}\approx\frac{40.175227}{13}\approx 3.090402.$$

Check: \(\sqrt{7\cdot5\cdot6\cdot8}\,\sin\tfrac{80^{\circ}+122.855584^{\circ} }{2}\approx 40.987803\cdot 0.980175\approx 40.175227\). The diagonals are \(p=AC\approx 8.309936\) and \(q=BD\approx 9.672197\), and the tangent lengths are \(t_A\approx 3.682998\), \(t_B\approx 3.317002\), \(t_C\approx 1.682998\), \(t_D\approx 4.317002\).

Advertisement
A quadrilateral with an inscribed circle, side lengths 7, 5, 6, and 8, an 80° angle, and inradius 3.090402.
In the worked example, the four sides enclose a circle tangent to each side. The inradius is approximately 3.090402.

FAQ

Why does the calculator need an angle as well as four sides?

Like any quadrilateral with given sides, a tangential one can flex at its corners; while it flexes the sides keep \(a+c=b+d\), so the incircle exists at every position but its size changes. One angle stops the flexing.

Why are some inputs refused as not convex?

Sides with \(a+c=b+d\) can also be arranged with one corner pushed inwards (an angle over \(180^{\circ}\)). That shape has no circle touching all four sides, so it is not a tangential quadrilateral.

Is every rhombus tangential?

Yes: all four sides are equal, so \(a+c=b+d\), and its incircle radius is half its height.

How accurate are the results?

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.

The worked-example quadrilateral leads to a diagram of its diagonals, approximately 8.309936 and 9.672197.
The side lengths and angle determine the quadrilateral and its diagonals: AC is approximately 8.309936 and BD is approximately 9.672197.

References

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018

H. S. M. Coxeter, Introduction to Geometry, 2nd ed., 1969

Last updated:

Most popular in Geometry

View all Geometry calculators