A cube has 12 edges. Each face of a cube is a square, and since a cube has 6 faces, the edges where these faces meet total 12.