This paper focuses on the mathematical study of the existence of solitary gravity waves (solitons) and their characteristics (amplitude, velocity, ) generated by a piston wave maker lying upstream of a horizontal channel. The mathematical model requires both incompressibility condition, irrotational flow of no viscous fluid and Lagrange coordinates. By using both the inverse scattering method and a given initial potential we can transform the KdV equation into Sturm–Liouville spectral problem. The latter problem amounts to find negative discrete eigenvalues and associated eigenfunctions , where each calculated eigenvalue gives a soliton and the profile of the free surface. For solving this problem, we can use the Runge–Kutta method. For illustration, two examples of the wave maker movement are proposed. The numerical simulations show that the perturbation of wave maker with hyperbolic tangent displacement under physical conditions affect the number of solitons emitted.