In this paper, we propose the optimal detector for spatial modulation. The new detector performs significant better than the original (~4 dB gain), and we derive the closed form expression for the average bit error probability. The optimal detector of SM shows performance gain (~1.5 ?3 dB) over popular multiple antenna system, making it an excellent prospect for future wireless communication