A method for electrochemical phosphating of metal surfaces, particularly stainless steel, in connection with cold forming of metal workpieces, which method provides the cold formed work-piece with a lubricant after phosphating, involves an electrochemical phosphating through a cathodic process applying an aqueous phosphating solution containing: 0.5 to 100 g Ca?2+¿/1, 0.5 to 100 g Zn?2+¿/1, 5 to 100 g PO¿4??3-¿/1, 0 to 100 g NO¿3??-¿/1, 0 to 100 g ClO¿3??-¿/1 and 0 to 50 g F?-¿ or Cl?-¿/1, by which the temperature of the solution is between 0 and 95 °C, the pH-value of the solution is between 0.5 and 5, and the current density is between 0.1 and 250 mA/cm?2¿. This gives a good lubrication effect, a good adhesion to the metal surface, particularly stainless steel, and a more expedient texture than ordinary phosphating.