Decibel gain and loss

The values filled in are an example: 1 mW into an amplifier with 20 dB of gain.

Input parameters:
Pin = power going in
G = power gain in dB (10 log₁₀ of the power ratio); enter a loss as a negative number, e.g. −3 dB
$$ P_\mathrm{out} = P_\mathrm{in} \, 10^{G/10} $$
$$ P_\mathrm{dBm} = 10 \log_{10} \frac{P}{1\ \mathrm{mW}} $$
Power ratio = —
Output power = —
Input power = — dBm
Output power = — dBm
Output parameters:
Power ratio = Pout/Pin = 10G/10
Output power = power after the gain or loss
dBm = power in decibels relative to 1 mW

Formula: P. Horowitz and W. Hill, The Art of Electronics, 3rd ed. (Cambridge University Press, 2015).