In this paper, the reflection spectra of a phase-only sampled fiber Bragg grating is obtained by optimizing its phase profile. The standard simulated annealing method is improved for optimization, and superior phase profiles which contain as few segments as possible per sampling period are obtained for 8, 16 and 32 identical channels. As very well known, increased number of WDM channels results in higher grating length and refractive index modulation amplitude. It is observed that application of these phase profiles limits the increases in both of these parameters considerably. (c) 2006 Elsevier B.V. All rights reserved.