We present a method of analysis of prism-film coupler spectroscopy based on the use of transfer matrix and genetic algorithm, which allows the simultaneous determination of refractive index, thickness, and optical losses of the measured layer.