In this paper, we describe the properties of Fabry-Perot fiber cavity formed by two fiber Bragg gratings in terms of the grating effective length. We show that the grating effective length is determined by the group delay of the grating, which depends on its diffraction efficiency and physical length. We present a simple analytical formula for calculation of the effective length of the uniform fiber Bragg grating and the frequency separation between consecutive resonances of a Fabry-Perot cavity. Experimental results on the cavity transmission spectra for different values of the gratings' reflectivity support the presented theory.