In order to obtain the flat-top beam, an offset reflector antenna that works at 19 GHz-22 GHz is designed using reflector shaping method. Using Zernike polynomial expansion method and the genetic algorithm to optimize reflector shape. The difference between actual and ideal value of the irradiation intensity of a specific area on the far-field radiation surface of the antenna is selected as the objective function to achieve flat-top beam. The simulation results show that irradiation intensity ripple of the antenna is less than 0.6dB and the amplitude is greater than 20.5 dBi within ±8° in the azimuth pattern.