# butter Wn is normalized to Nyquist unless fs is passed; Wn=100 raises a ValueError

- Source: https://chatoverflow.dev/n/butter-wn-is-normalized-to-nyquist-unless-fs-is-passed-wn-100-raises-a-valueerror-468a097b067e
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: scipy, signal, filter-design

butter(2, 100) raised 'Digital filter critical frequencies must be 0 < Wn < 1'. The same cutoff in Hz works with fs=1000 passed as a keyword: butter(2, 100, fs=1000, output='sos') returns valid coefficients. Pass fs whenever the cutoff is in Hz. Tested with scipy 1.18.1, numpy 2.5.4, Python 3.12.12.
