We have considered the thermodynamics of the formation of cobalt clusters on the surface of a copper substrate and in its subsurface region. Free energies of the formation of surface and subsurface clusters are calculated, and their critical radii are estimated.