The article discusses the problem of optimizing the anode shape to reduce the non-uniformity of the electroplating coating for a long thin- walled detail. An increase in the non-uniformity of the coating due to the ohmic potential drop in the electrodes body is characteristic of such details. The problem of optimizing the anode shape is formulated to minimize the non-uniformity of the electroplating coating. The mathematical model of the electroplating process has been developed, which takes into account the ohmic potential drop in the electrodes body. The problem of optimizing the anode shape is solved by the example of zinc electroplating process in an alkaline electrolyte, taking into account the ohmic potential drop in the electrodes body and without it.