Let A (0,-1) , B (2,1) , C(0,3) and D(-2,1) are the vertices of the square.
Area of the square ABCD = side2 = AB2
But AB = √((x2 - x1)2 + (y2 - y1)2)
= √(( - )2 + ( + )2)
= √
Area of the square = √ × √.
= sq.units .