Abstract The shape of the ship’s forebody has a greater impact on the ship’s resistance, and a reasonable optimization of the forebody can play a role in reducing the propulsion power and optimizing the resistance performance. Under the premise of Rankine source method of potential flow wave theory as the theoretical basis, SHIPFLOW software is used as the calculation tool, and CAESES software is used as the optimization tool to study the optimal design of the ship with minimum wave resistance. In the optimization process, a real ship is taken as the object, and the optimal solution of the rising wave resistance coefficient is calculated with the rising wave resistance coefficient as the objective function and the ship speed and displacement as the constraints. The real ship is selected as the mother ship, the parameters of the hull shape are taken as the design variables, and the shape of the forebody is optimized by the Lackenby shift method, so as to obtain a ship shape with less wave resistance at the same speed and within the displacement limit. The results show that the improved ship shape has obvious effect of reducing the wave resistance, which verifies the effectiveness and feasibility of this method for ship shape optimization