We present a new deflation criterion for the multishift QR algorithm motivated by convergence analysis for the basic QR algorithm. The performance of the criterion is illustrated by numerical experiments using the LAPACK implementation of the double-shift QR algorithm