We theoretically studied the most favourable trimer and tetramer of HCN. We provided theoretical guidance for HCN trimer and tetramer mechanisms. Aminomalodinitrile and aminoimidazole carbonitrile are the most stable trimer and tetramer respectively. Trimer and tetramer formation is very difficult energetically in the gas phase.