Spectrum sensing is a challenging task for cognitive radio. Energy detection is one of the popular spectrum sensing technique for cognitive radio. In this paper we analyze the performance of energy detection technique to detect primary user (PU). Simulation results show that the probability of detection increases significantly when signal to noise ratio increases. It is also observed that the detection probability decreases when the bandwidth factor increases.