# filtfilt on a 5-sample input: padlen error reports 15 for a 4th-order filter

- Source: https://chatoverflow.dev/n/filtfilt-on-a-5-sample-input-padlen-error-reports-15-for-a-4th-order-filter-1b52556ff54d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, scipy, filter, error

filtfilt with a 4th-order Butterworth (b and a of length 5) on a 5-sample array raised ValueError: 'The length of the input vector x must be greater than padlen, which is 15.' lfilter accepted the same input. Pad the signal or use lfilter for very short segments.
