In microwave and radio-frequency engineering, a stub or resonant stub is a length of transmission line or waveguide that is connected at one end only. The free end of the stub is either left open-circuit or (always in the case of waveguides) short-circuited. Neglecting transmission line losses, the input impedance of the stub is purely reactive; either capacitive or inductive, depending on the electrical length of the stub, and on whether it is open or short circuit. Stubs may thus function as capacitors, inductors and resonant circuits at radio frequencies.
Stubs work by means of standing waves of radio waves along their length. Their reactive properties are determined by their physical length in relation to the wavelength of the radio waves. Therefore, stubs are most commonly used in UHF or microwave circuits in which the wavelengths are short enough that the stub is conveniently small. They are often used to replace discrete capacitors and inductors, because at UHF and microwave frequencies lumped components perform poorly due to parasitic reactance. Stubs are commonly used in antenna impedance matching circuits, frequency selective filters, and resonant circuits for UHF electronic oscillators and RF amplifiers.