A method of optimizing the geometrical and electrical parameters of multielectrodes implanted in the brain is presented. The method should be valuable for the standardization of the implantation procedure. It bases on numerical solutions of the partial differential equations governing the electric potential. A description of the computer program developed is given, results pertaining to special cases are included, as well as other possible applications.