Rectangle Calculator

Enter any 2 of width, height, area, diagonal or perimeter.
The two most recently changed values are used, the other three are calculated live.
(Impossible results are marked by "?").

images/calc-rect.js