Gain (electronics)

In electronics, gain is a measure of the ability of a two-port circuit (often an amplifier) to increase the power or amplitude of a signal from the input to the output port by adding energy converted from some power supply to the signal. It is usually defined as the mean ratio of the signal amplitude or power at the output port to the amplitude or power at the input port. It is often expressed using the logarithmic decibel (dB) units ("dB gain"). A gain greater than one (greater than zero dB), that is amplification, is the defining property of an active component or circuit, while a passive circuit will have a gain of less than one.
The term "gain" alone is ambiguous, and can refer to the ratio of output to input voltage ("voltage gain"), current ("current gain") or electric power ("power gain"). In the field of audio and general purpose amplifiers, especially operational amplifiers, the term usually refers to voltage gain, but in radio frequency amplifiers it usually refers to power gain. Furthermore, the term gain is also applied in systems such as sensors where the input and output have different units; in such cases the gain units must be specified, as in "5 microvolts per photon" for the responsivity of a photosensor. The "gain" of a bipolar transistor normally refers to forward current transfer ratio, either "h"FE ("beta", the static ratio of "I""c" divided by "I"b at some operating point), or sometimes "h"fe (the small-signal current gain, the slope of the graph of "I""c" against "I""b" at a point).
The gain of an electronic device or circuit generally varies with the frequency of the applied signal. Unless otherwise stated, the term refers to the gain for frequencies in the passband, the intended operating frequency range of the equipment. 
The term "gain" has a different meaning in antenna design; antenna gain is the ratio of radiation intensity from a directional antenna to formula_1 (mean radiation intensity from a lossless antenna).
Logarithmic units and decibels.
Power gain.
Power gain, in decibels (dB), is defined as follows:
where formula_3 is the power applied to the input, formula_4 is the power from the output.
A similar calculation can be done using a natural logarithm instead of a decimal logarithm, resulting in nepers instead of decibels:
Voltage gain.
The power gain can be calculated using voltage instead of power using Joule's first law formula_6; the formula is:
In many cases, the input impedance formula_8 and output impedance formula_9 are equal, so the above equation can be simplified to:
This simplified formula, the 20 log rule, is used to calculate a voltage gain in decibels and is equivalent to a power gain if and only if the impedances at input and output are equal.
Current gain.
In the same way, when power gain is calculated using current instead of power, making the substitution formula_12, the formula is:
In many cases, the input and output impedances are equal, so the above equation can be simplified to:
This simplified formula is used to calculate a current gain in decibels and is equivalent to the power gain if and only if the impedances at input and output are equal.
The "current gain" of a bipolar transistor, formula_16 or formula_17, is normally given as a dimensionless number, the ratio of formula_18 to formula_19 (or slope of the formula_18-versus-formula_19 graph, for formula_17).
In the cases above, gain will be a dimensionless quantity, as it is the ratio of like units (decibels are not used as units, but rather as a method of indicating a logarithmic relationship). In the bipolar transistor example, it is the ratio of the output current to the input current, both measured in amperes. In the case of other devices, the gain will have a value in SI units. Such is the case with the operational transconductance amplifier, which has an open-loop gain (transconductance) in siemens (mhos), because the gain is a ratio of the output current to the input voltage.
Example.
Q. An amplifier has an input impedance of 50 ohms and drives a load of 50 ohms. When its input (formula_23) is 1 volt, its output (formula_24) is 10 volts. What is its voltage and power gain?
A. Voltage gain is simply:
The units V/V are optional but make it clear that this figure is a voltage gain and not a power gain.
Using the expression for power, "P" = "V"2/"R", the power gain is:
Again, the units W/W are optional. Power gain is more usually expressed in decibels, thus:
A gain of factor 1 (equivalent to 0 dB) where both input and output are at the same voltage level and impedance is also known as "unity gain".