A novel gain measurement technique based on the integration of the measured amplified spontaneous emission spectrum multiplying a phase function over one longitudinal mode interval is proposed for Fabry-Perot semiconductor lasers.