* 4 edges forming the square base.
* 4 edges connecting the vertices of the square base to the apex (top point).
Therefore, a square-based pyramid has a total of 4 + 4 = $\boxed{8}$ edges.