In electrical circuit theory, a port is a pair of terminals connecting an electrical network or circuit to an external circuit, as a point of entry or exit for electrical energy. A port consists of two nodes (terminals) connected to an outside circuit which meets the port condition – the currents flowing into the two nodes must be equal and opposite.
The use of ports helps to reduce the complexity of circuit analysis. Many common electronic devices and circuit blocks, such as transistors, transformers, electronic filters, and amplifiers, are analyzed in terms of ports. In multiport network analysis, the circuit is regarded as a "black box" connected to the outside world through its ports. The ports are points where input signals are applied or output signals taken. Its behavior is completely specified by a matrix of parameters relating the voltage and current at its ports, so the internal makeup or design of the circuit need not be considered, or even known, in determining the circuit's response to applied signals.
The concept of ports can be extended to waveguides, but the definition in terms of current is not appropriate and the possible existence of multiple waveguide modes must be accounted for.