Note 1: Net gain is measured by applying a test signal at an appropriate power level (see Note 5) at the input port of a circuit and measuring the power delivered at the output port. The net gain in dB is calculated by taking 10 times the logarithm of the ratio of the output power to the input power.
Note 2: The net gain expressed in dB may be positive or negative.
Note 3: If the net gain expressed in dB is negative, it is also called the "net loss."
Note 4: If the net gain is expressed as a ratio, and the ratio is less than unity, a net loss is indicated.
Note 5: The test signal must be chosen so that its power level is within the usual operating range of the circuit being tested.
Source: from Federal Standard 1037C and from MIL-STD-188