Answer: if you had a circle of radius r, then the 2*radius is equal to the diagonal of the square. So the length of the side is calculated from the Pythagorean theorem since squares have right triangles in them: (2r)^2=2(l^2). Sqrt(2*r^2)=l where l is the length of the side of the square.