A modified genetic algorithm (GA) has been proposed, which was used to wavelength demodulation in quasi-static fiber grating sensing system. The modification method of GA has been introduced and the relevant mathematical model has been established. The objective function and individual fitness evaluation strategy interrelated with GA are also established. The influence of population size, chromosome size, generations, crossover probability and mutation probability on the GA has been analyzed, and the optimal parameters of modified GA have been obtained. The simulations and experiments, show that the modified GA can be applied to quasi-static fiber grating sensing system, and the wavelength demodulation precision is equal to or less than 3 pm.