# Nyquist–Shannon sampling theorem <!-- MICROSIMGEN:BEGIN v1.7 — generated by g08_place_microsims.py; three.js first (§15); do not hand-edit inside --> ## Microsims — p5.js ### Nyquist–Shannon sampling theorem (p5.js) · `fs ≥ 2B` <div class="microsim-player"> <iframe src="https://editor.p5js.org/sciencenibber/full/LtHYb0kBB" width="100%" height="480" frameborder="0" loading="lazy" sandbox="allow-scripts allow-same-origin" title="Nyquist–Shannon sampling theorem — p5.js microsim"></iframe> </div> *Sample above twice the highest frequency and the continuous signal can be reconstructed perfectly — the theorem the whole movement rests on.* **Open in the editor:** [&#9654; fork this sketch](https://editor.p5js.org/sciencenibber/sketches/LtHYb0kBB) · movement *I · Sampling, quantization & data conversion* · library `p5js` ### Related microsims Live sims on neighbouring articles — 6 of them inside this article's own Wikipedia link tree: - [[Companding]] *(in tree)* - [[Convolution]] *(in tree)* - [[Data_compression]] *(in tree)* - [[Delta_modulation]] *(in tree)* - [[Detection_theory]] *(in tree)* - [[Differential_pulse-code_modulation]] *(in tree)* *Sim hosted off-article; the article owns the reference, not the runtime (WIKI_RULES §10.4). Placed by `g08_place_microsims.py`.* <!-- MICROSIMGEN:END --> ## Links (Wikipedia order) <!-- injected from _registry/childlinks/Nyquist–Shannon_sampling_theorem.json (2026-07-30T02:09:12Z) --> `44,100_Hz` · `842_(compression_algorithm)` · `A-law_algorithm` · `A_Mathematical_Theory_of_Communication` · `Adaptive_Huffman_coding` · `Adaptive_coding` · `Adaptive_differential_pulse-code_modulation` · `Advanced_z-transform` · `Algebraic_code-excited_linear_prediction` · `Aliasing` · `Analog-to-digital_converter` · `Anti-aliasing_filter` · `Arithmetic_coding` · `Asymmetric_numeral_systems` · `Audio_codec` · `Audio_signal_processing` · `Average_bitrate` · `Bandlimiting` · `Bandwidth_(signal_processing)` · `Baseband` · `Bell_Labs` · `Bilinear_transform` · `Bit_rate` · `Bochner's_theorem` · `Brotli` · `Burrows–Wheeler_transform` · `Byte-pair_encoding` · `Bzip2` · `Canonical_Huffman_code` · `Chain_code` · `Chroma_subsampling` · [[Claude_Shannon]] · `Code-excited_linear_prediction` · `Coding_tree_unit` · `Color_space` · `Communication_theory` · [[Companding]] · `Compressed_data_structure` · `Compressed_sensing` · `Compressed_suffix_array` · `Compression_artifact` · `Constant-Q_transform` · `Constant_bitrate` · `Context_mixing` · `Context_tree_weighting` · [[Convolution]] · [[Data_compression]] · `Data_compression_symmetry` · `Daubechies_wavelet` · `David_A._Huffman` · `Deblocking_filter` · `Deflate` · `Delta_encoding` · [[Delta_modulation]] · `Dennis_Gabor` · [[Detection_theory]] · `Dictionary_coder` · [[Differential_pulse-code_modulation]] · `Digital-to-analog_converter` · [[Digital_image_processing]] · [[Digital_signal_processing]] · `Dirac_comb` · `Discrete-time_Fourier_transform` · `Discrete_Fourier_transform` · [[Discrete_cosine_transform]] · `Discrete_sine_transform` · [[Discrete_time_and_continuous_time]] · [[Discrete_wavelet_transform]] · `Display_resolution` · `Downsampling_(signal_processing)` · `Duality_(mathematics)` · `Dynamic_Markov_compression` · [[Dynamic_range]] · `E._T._Whittaker` · `Elias_gamma_coding` · `Embedded_zerotrees_of_wavelet_transforms` · [[Entropy_(information_theory)]] · `Entropy_coding` · [[Estimation_theory]] · `Exponential-Golomb_coding` · `FM-index` · `FM_broadcasting` · [[Fast_Fourier_transform]] · `Fibonacci_coding` · `Film_frame` · `Fourier_series` · `Fourier_transform` · `Fractal_compression` · `Frame_rate` · `Golomb_coding` · `Grammar-based_code` · [[Graphics_processing_unit]] · `Harold_Stephen_Black` · `Harry_Nyquist` · `Hertz` · `Huffman_coding` · `Hutter_Prize` · [[Image_compression]] · `Image_resolution` · `Image_sensor` · `Impulse_invariance` · `Incremental_encoding` · [[Information_theory]] · [[Integral_transform]] · `Interlaced_video` · `Karl_Küpfmüller` · `Kolmogorov_complexity` · `LHA_(file_format)` · `LZ4_(compression_algorithm)` · `LZ77_and_LZ78` · `LZFSE` · `LZMA` · `LZRW` · `LZWL` · `LZX` · [[Laplace_transform]] · `Lapped_transform` · `Latency_(audio)` · `Lempel–Ziv–Oberhumer` · `Lempel–Ziv–Stac` · `Lempel–Ziv–Storer–Szymanski` · `Lempel–Ziv–Welch` · `Levenshtein_coding` · `Line_spectral_pairs` · `Linear_predictive_coding` · `Linear_programming` · `Log_area_ratio` · `Lossless_compression` · `Lossy_compression` · `Low-pass_filter` · `Macroblock` · `Mark_Adler` · `Matched_Z-transform_method` · `Modified_Huffman_coding` · `Modified_discrete_cosine_transform` · `Moiré_pattern` · `Motion_compensation` · `Motion_estimation` · `Move-to-front_transform` · `Mu-law_algorithm` · `Numerical_stability` · `Nyquist_ISI_criterion` · `Nyquist_frequency` · `Nyquist_rate` · `Oversampling` · `Oxford_English_Dictionary` · `PAQ` · `Peak_signal-to-noise_ratio` · `Periodic_summation` · `Phil_Katz` · `Pixel` · `Prediction_by_partial_matching` · `Prefix_code` · `Psychoacoustics` · `Pyramid_(image_processing)` · `Quantization_(image_processing)` · [[Quantization_(signal_processing)]] · `Range_coding` · `Rate–distortion_theory` · `Re-Pair` · `Rectangular_function` · `Redundancy_(information_theory)` · `Run-length_encoding` · [[Sampling_(signal_processing)]] · `Sequitur_algorithm` · `Set_partitioning_in_hierarchical_trees` · `Shannon_coding` · `Shannon–Fano_coding` · `Shannon–Fano–Elias_coding` · `Shannon–Hartley_theorem` · [[Signal_processing]] · `Silence_compression` · `Sinc_function` · [[Sine_wave]] · `Single-sideband_modulation` · `Smallest_grammar_problem` · `Smartphone` · `Snappy_(compression)` · `Sound_quality` · `Spectrum` · [[Speech_coding]] · `Speech_processing` · `Standard_test_image` · `Starred_transform` · `Step_function` · `Sub-band_coding` · `Texture_compression` · `Timeline_of_information_theory` · `Transform_coding` · `Tunstall_coding` · `Unary_coding` · `Undersampling` · `Universal_code_(data_compression)` · `Upsampling` · `Variable_bitrate` · `Vector-valued_function` · `Video` · `Video_codec` · `Video_compression_picture_types` · `Video_quality` · `Warped_linear_predictive_coding` · `Wavelet_transform` · [[Wayback_Machine]] · `Whittaker–Shannon_interpolation_formula` · [[Z-transform]] · `Zak_transform` · `Zero-order_hold` · `Zstd` · `Émile_Borel` > Signal Processing concept · part of the Signal Processing Portal · movement I · !73 計算 keisan.svg ## From the Real GENERATIVE library ![Animated: Nyquist–Shannon sampling theorem](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Nyquist_sampling.gif/400px-Nyquist_sampling.gif) *Animated: Nyquist–Shannon sampling theorem — placed from the Real G.E.N.E.R.A.T.I.V.E. course library (Information room). Source: Wikimedia Commons (via Wikipedia article media). [Details & license](https://commons.wikimedia.org/wiki/File:Nyquist_sampling.gif).* > The Nyquist–Shannon sampling theorem is an essential principle for digital signal processing linking the frequency range of a signal and the sample rate required to avoid a type of distortion called aliasing. The theorem states that the sample rate must be at least twice the bandwidth of the signal to avoid aliasing. ([Wikipedia](https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem)) <!-- REAL-GENERATIVE-MEDIA:END --> ## Media (PD/CC) <!-- MEDIA-DEPLOY:Nyquist–Shannon_sampling_theorem/Nyquist_sampling.gif --> !Gif Library/Nyquist–Shannon sampling theorem/Nyquist sampling.gif *Nyquist_sampling.gif · CC0* <!-- /MEDIA-DEPLOY --> ## What it is The Nyquist–Shannon sampling theorem states that a continuous-time signal whose spectrum contains no frequencies above $B$ hertz (a band-limited signal) is completely determined by, and can be perfectly reconstructed from, samples taken at a rate strictly greater than $2B$ samples per second. ## How it works / why it matters The critical rate $2B$ is called the **Nyquist rate**, and half the sampling rate, $f_s/2$, is the **Nyquist frequency** — the highest frequency that a given sampling rate can represent unambiguously. If $f_s > 2B$, the periodic copies (images) of the signal's spectrum created by sampling do not overlap, so an ideal low-pass filter can isolate the original spectrum and reconstruction (via the sinc-interpolation / Whittaker–Shannon formula) is exact. If the rate is too low, the spectral images overlap and fold back, which is Aliasing. This theorem is the theoretical foundation that makes digital audio (e.g. 44.1 kHz capturing frequencies up to ~22 kHz) and all lossless [[Sampling_(signal_processing)|sampling]] possible. ## Signs & universals This concept instantiates the semiotic universals: sampling · frequency · spectrum · signal — it relates the sampling rate to the signal's frequency content and spectral bandwidth. ## Related Completes the movement I triad: it governs [[Sampling_(signal_processing)]] and, when violated, causes Aliasing. The band-limiting condition is stated in terms of the signal spectrum, best understood via the Fourier transform. --- Back to Signal Processing Portal · the room · Semiotic gateway <!-- REAL-GENERATIVE-MEDIA:START --> <!-- CRAFT-LINK:START g12 --> *Built to the [[WT!P5_js_Microsim_Master_Class|p5.js Master Class]].* <!-- CRAFT-LINK:END --> <!-- SPINEPATH:BEGIN g20 — shortest chain of Wikipedia links between local articles to a Compendium Main article; do not hand-edit inside --> *Connected to the Apex Spine:* Nyquist–Shannon sampling theorem → [[Sine_wave|Sine wave]] → [[Wind_wave|Wind wave]] — [[WT!Thury_Hydrodynamics_Compendium|Compendium]] section 34, *Waves and tides*. <!-- SPINEPATH:END --> <!-- FLIGHTSIM:BEGIN g22 — Aviation x Avionics microsim (framework build, specs/variants/Nyquist–Shannon_sampling_theorem.json); do not hand-edit inside --> **Microsim — three.js (Wikitube framework):** *Nyquist–Shannon sampling theorem* <div class="wt-sim" data-src="https://wikitube-3d-microsims.netlify.app/flight/Nyquist–Shannon_sampling_theorem.html" data-title="Nyquist–Shannon sampling theorem"></div> *Built from `MICROSIM_GUIDE/specs/variants/Nyquist–Shannon_sampling_theorem.json`; part of the [[Aviation]] · [[Avionics]] flight set.* <!-- FLIGHTSIM:END --> <!-- FLIGHTLINK:BEGIN g23 — generated from _registry/plans/AVIATION_AVIONICS_SECTIONS.md; do not hand-edit inside --> *Linked from the [[Avionics]] hub, section X20, Flight recorders.* <!-- FLIGHTLINK:END --> ## Wikipedia : Wikitube **Strict pair:** [Wikipedia](https://en.wikipedia.org/wiki/Nyquist–Shannon_sampling_theorem) : [Wikitube](https://en.wikitube.io/wiki/Nyquist–Shannon_sampling_theorem) ## Previous hub tags Tree parent: [[Information_theory]]. Legacy hubs: none. --- *Sources: 1 legacy note. Minted wave 1, 2026-07-30 (v1.6 order).*