In a hexagonal close-packed (hcp) unit cell, there are:
- 12 atoms on the corners of the hexagon, each shared by 6 unit cells, contributing \( \frac{1}{6} \) per corner atom.
- 2 atoms in the face centers, each shared by 2 unit cells, contributing \( \frac{1}{2} \) per face-centered atom.
- 2 atoms entirely within the unit cell.
Thus, the total number of atoms per unit cell is:
\[
\text{Total atoms} = 12 \times \frac{1}{6} + 2 \times \frac{1}{2} + 2 = 6
\]
Therefore, there are 6 atoms per unit cell in an hcp structure.