Assuming that all the vertices of a regular $n$-agon ($n\
eq 4$) have rational coordinates, by the shoelace formula the area of such a polygon is a rational number. On the other hand, the area is given by:
$$ A=\frac{nl^2}{4}\,\cot\frac{\pi}{n} $$ but $\cot\frac{\pi}{n}$ is an irrational number for every $n\geq 3,n\
eq 4$: that leads to a contradiction.