The retention of histidine-containing peptides in immobilized metal-affinity chromatography is studied using several hundred modeled peptides. Retention is driven primarily by the number of histidine residues; however, the amino acid composition in the immediate vicinity plays a significant role. Specifically, the arginine and tryptophan content has to be taken into consideration. During the course of this study, an alternative tag that can be used similarly to a polyhistidine tag is discovered.