Large-scale ab initio calculations have been performed on linear and cyclic oligomers of hydrogen cyanide molecules applying basis sets ranging from double-zeta to near-Hartree-Fock quality. Equilibrium geometries of linear (HCN)n clusters with n = 1 to 5 and of cyclic clusters with n = 3, 4 are reported. For most of the complexes complete vibrational analysis has been carried out. In agreement with recent experimental data the linear HCN trimer was found to be more stable than the cyclic trimer. In case of the tetramer linear and cyclic structures are of comparable stability. The structural changes taking place upon polymerization of linear HCN clusters and the convergence of various stage properties to those of the infinite polymer (HCN)∞ are discussed in detail. The evolution from vibrational spectra of small oligomers to phonon dispersion curves of the infinite polymer is illustrated too.