The number of coefficients in an adaptive finite impulse response filter-based acoustic echo cancellation setup is an important parameter, affecting the overall performance of the echo cancellation. Too few coefficients give undermodelling and too many cause slow convergence and an additional echo due to the mismatch of the extra coefficients. This paper proposes a method to adaptively determine the filter length, based on estimation of the mean square deviation. The method is primarily intended for identifying long non-sparse systems, such as a typical impulse response from an acoustic setup. Simulations with band limited flat spectrum signals are used for verification, showing the behavior and benefits of the proposed algorithm. Furthermore, off-line calculation using recorded speech signals show the behavior in real situations and comparison with another state-of-the-art variable filter length algorithm shows the advantages of the proposed method. (c) 2009 Elsevier B.V. All rights reserved.