Right Quadrilateral Calculator

Right Quadrilateral Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=ad2+14(b+c+f)(c+f−b)(b+f−c)(b+c−f)A = \frac{a d}{2} + \frac{1}{4}\sqrt{(b+c+f)(c+f-b)(b+f-c)(b+c-f)}
Usage stats

Advertisement

Results

Area A
18
Perimeter P18
Diagonal e (from the right angle)7.42159
Diagonal f (across the right angle)5
Angle β (between a and b)110.609693°
Angle γ (between b and c)53.130102°
Angle δ (between c and d)106.260205°

Report an error on this page

What is a right quadrilateral?

A right quadrilateral, in the sense of this page, is a convex quadrilateral ABCD with a right angle at the corner A, between the sides a = AB and d = DA; the other two sides are b = BC and c = CD. The diagonal f = BD cuts it into a right triangle with legs a and d and a general triangle with sides b, c and f. It has no symmetry in general; when its opposite sides are equal it is a rectangle, and for a quadrilateral without a right angle the cyclic quadrilateral calculator covers the case of four corners on one circle.

How to use it

Type the four sides: a and d enclose the right angle, b follows a and c follows d. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (a box that allows 0 also accepts 0), each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle greater than 0° and less than 180°; anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.

Derivation of the formulas

The diagonal f opposite the right angle is the hypotenuse of the right triangle ABD. The other triangle BCD exists only when f is shorter than b + c and longer than the difference of b and c:

$$ f = \sqrt{a^{2} + d^{2}} $$

Heron's formula, written as a product, gives four times the area of triangle BCD; adding the right triangle gives the area:

$$ 4T = \sqrt{(b+c+f)(c+f-b)(b+f-c)(b+c-f)}, \qquad A = \frac{a d}{2} + T, \qquad P = a + b + c + d $$

The law of cosines in BCD, together with the angles of the right triangle (tan ∠ABD = d/a), gives the corner angles; the angle at C is the angle of triangle BCD opposite f:

$$ \beta = \arctan\frac{d}{a} + \arccos\frac{b^{2} + f^{2} - c^{2}}{2 b f}, \qquad \delta = \arctan\frac{a}{d} + \arccos\frac{c^{2} + f^{2} - b^{2}}{2 c f}, \qquad \gamma = 360^{\circ} - 90^{\circ} - \beta - \delta $$

The other diagonal follows from the law of cosines in triangle ABC. The quadrilateral is convex only when β and δ are both below 180°; otherwise the corner C falls behind the line of a or of d.

$$ e = \sqrt{a^{2} + b^{2} - 2 a b \cos\beta} $$

Worked example

The page opens with side a = 4, side b = 5, side c = 6, side d = 3. Then area A ≈ 18; diagonal e (from the right angle) ≈ 7.42159; diagonal f (across the right angle) ≈ 5; angle β (between a and b) ≈ 110.609693°; angle γ (between b and c) ≈ 53.130102°; angle δ (between c and d) ≈ 106.260205°. Values are shown with up to six decimals; a value below 0.0000005 or of 10¹⁵ and more is shown as its plain 12-digit number instead.

Advertisement
A right quadrilateral with its four side lengths and the diagonal across the right angle marked.
The worked example has sides 4, 5, 6, and 3. The diagonal across the right angle is approximately 5.

Frequently asked questions

Can every four lengths make a right quadrilateral?

No. The diagonal f = √(a² + d²) must fit into a triangle with b and c, and the corner C must land so that the angles at B and D stay below 180°. The calculator says which of the two fails.

When is it a rectangle?

When a equals c and b equals d: then the corner C sits exactly opposite A and all four angles are 90°.

Why does the unit not change the numbers?

The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.

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.

References

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

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated:

Most popular in Geometry

View all Geometry calculators