The invention relates to a preparation method of a nanometer Pd or the Pd platinum gold electrocatalysis catalyzer which is used in a kind of fuel cell, whose characteristic lies in that dissolve the mixture of the ration Pd salt or the Pd salt and the platinum salt (in which the Pd atomic ratio accounts for metal quantity 10-100%) in the water, after joining the right amount complexing agent solution, elevates temperature to 0-80deg.C and keeps the temperature 5 minutes to 8 hours, then cooling to the room temperature, adjusts the pH value to 5 to 12 and adds the carbon carrier, then adds the solution of hydroboration sodium, hydrazine or formic acid and so on reducing agent under the 0 to 80deg.C , and maintains 10 minutes to 10 hours, then filtrating, laundering, dry, finally in inert atmosphere or reducing atmosphere through 100 to 300deg.C heat treatment in 0.5 to 10h, namely carries the carbon Pd or the Pd platinum electrocatalysis. The particle size of catalyst is controllable, adjustable, the composition is controllable, regards the heat treatment temperature to be different, the particle size which obtains is relatively 1.8nm to 20nm above, and the granule distribution is narrow, is suitable to serve as the direct formic acid fuel cell anode catalyst as well as the direct methanol fuel cell anti-methyl alcohol negative pole catalyst.