Influence of duty ratio of metallic gratings applied in quantum well infrared photodetector (QWIP) with detection ranging from 3 μm to 5 μm was studied in this paper. The influence on longer enhanced wavelength working at infrared waveband was investigated. A relationship between the duty ratio and the enhanced peak intensity is given. Some results can be applied to optimize the enhanced efficiency of the metallic gratings.