An easy to use online calculator to calculate the area, perimeter, and diagonal of a rectangle is presented. The calculator has two modes:
The formulas for the perimeter \( P \), area \( A \) and length \( D \) of the diagonal of a rectangle of length \( L \) and width \( W \) are given by:
When the area \( A \) and perimeter \( P \) are known, the length and width are obtained by solving the system of first two equations above, which leads to the quadratic equation:
\[ x^2 - \frac{P}{2}x + A = 0 \]The length \( L \) and width \( W \) are the two roots of this equation:
\[ L = \frac{\frac{P}{2} + \sqrt{\left(\frac{P}{2}\right)^2 - 4A}}{2} \] \[ W = \frac{\frac{P}{2} - \sqrt{\left(\frac{P}{2}\right)^2 - 4A}}{2} \]Note: For a valid rectangle, the condition \( P^2 \geq 16A \) must be satisfied. If \( P^2 < 16A \), no real rectangle exists with the given area and perimeter.
š” Two Ways to Use:
Choose input mode below