The Talbot interferometer used for writing fiber Bragg grating (FBG) is analyzed effectively in this paper. Based on electromagnetic theory, a computing model of the Talbot interferometer is established with the temporal and the spatial coherence taken into account and with the turning angle of the reflectors as a critical parameter. The model can provide a more detailed and precise information about the interference field and is used to study the effect of the turning error of the reflectors in writing FBG. The calculation result shows that the turning error has an important effect on the visibility of the far interference field.