Substitute y by (P - 2 x) / 2 in the equation L 2 = x 2 + y 2 to obtain Square both sides of the equation L = √ (x 2 + y 2) to obtain L 2 = x 2 + y 2 Solve P = 2 x + 2 y for y to obtain y = (P - 2 x) / 2 The calculator in this page solves the above equations in two variables and display the length and width. If x and y are the length and width of a rectangle, the perimeter P and the length L of the diagonal may be expressed in terms of x and y as follows:
Rectangle Perimeter and Diagonal Calculator Rectangle Perimeter and Diagonal CalculatorĪn online calculator to calculate the length and width (dimensions) of a rectangle given its perimeter P and length of diagonal L.