The conditions under which the nonuniform compensating field of the reflector of the mass-reflectron can be generated with an acceptable accuracy at the symmetry axis of the reflector and extrapolated to the radial neighborhood of the axial line are determined. The plots that illustrate the distribution of the calculated nonuniform field of the reflector, the possibilities for implementation, and errors of focusing with respect to time of flight in the radial neighborhood are presented. Analytical expressions for the calculation of the time of flight of ions in the reflector in which the field distribution is described using a power series and analytical expressions for the calculation of the field distribution in the reflector in which the time of flight is determined using a power series are derived. A method for the analytical calculation of the compensating nonuniform field of the reflector based on the given dependence of the time of flight in the absence of such a field is proposed using a solution to the Abel integral equation. The solution to this equation yields analytical expressions for the calculation of the compensating field of the reflector in mass-reflectrons that contain the zero-field drift space and regions of acceleration (deceleration) of ions with a uniform field.