dB Gain Calculator

Gain of an amplifier or a whole signal chain in dB, with cascaded losses, linear ratios and attenuator pad resistor values.

📶 dB Gain Calculator
Power unitused for both input and output
Input and output power
Input power Pin
Output power Pout
Input and output voltagesame type for both, RMS or peak
Input voltage Vin
Output voltage Vout
Impedancesequal impedances make power gain equal voltage gain
Input impedance Zin (ohm)
Load impedance Zout (ohm)
Input level
dBm
Stage gain in dBnegative for a loss, blank skips a stage
Stage 1 (dB)
Stage 2 (dB)
Stage 3 (dB)
Stage 4 (dB)
Gain
dB
Input power (optional)gives the output power
dBm
Attenuation and impedance
Attenuation (dB)
System impedance Z0 (ohm)
Input power (optional)gives output power and heat in the pad
dBm
Power gain
—
Power ratio
—
Voltage ratio (equal impedances)
—
Type
—
Input level
—
Output level
—

Voltage gain
—
Voltage ratio
—
Power gain (with impedances)
—
Power ratio
—
Type
—

Total gain
—
Total power ratio
—
Total voltage ratio
—
Output level
—
Output power
—
Stages used
—

Power ratio
—
Voltage ratio
—
Power change
—
Output level
—
Output power
—

T pad series R (each arm)
—
T pad shunt R
—
Pi pad shunt R (each end)
—
Pi pad series R
—
K (voltage ratio)
—
Output level
—
Power dissipated in the pad
—

Chart: Power gain, Voltage gain and Gain to linear plot the linear ratio against dB with your gain marked. Cascade plots the signal level at each point along the chain. Attenuator pad plots the four resistor values against the attenuation (T series blue, T shunt orange, Pi shunt purple, Pi series teal), with your values marked.

📶 What is a dB Gain Calculator?

dB gain is the ratio of the output of a device to its input, expressed in decibels. A positive value means the device amplifies the signal, a negative value means it attenuates it, and 0 dB means the output equals the input. This calculator finds the gain of an amplifier or of a whole signal chain. In power terms the gain is 10 log10 of Pout divided by Pin. In voltage terms it is 20 log10 of Vout divided by Vin, because power goes as voltage squared. The decibel scale compresses huge ratios into small numbers: a power gain of one million is only 60 dB.

Gain figures matter in radio receivers and transmitters, audio preamplifiers, sensor front ends, antenna feed lines, fibre links and test equipment. Their great practical advantage is that gains in dB add. A receiver with a 3 dB cable loss, a 20 dB low noise amplifier, a 7 dB mixer loss and a 25 dB intermediate frequency amplifier has a total of +35 dB, found by simple addition instead of multiplying four linear ratios. The Cascade mode lists the running signal level after each stage and plots it, so you can see whether any stage drops the signal close to a noise floor or pushes it toward overload.

There are some important traps. Voltage gain in dB and power gain in dB are identical only when the input and output impedances are equal, which is why the Voltage mode also asks for Zin and Zout. A gain in dB has no reference, so it says nothing about absolute signal level unless you know the input level, which the dBm input in the Cascade and Gain to linear modes provides. The cascade here is the ideal noise free total: it ignores each stage noise figure and compression point, which you would study with the noise figure and Friis formula calculator. For a gain stage built from an operational amplifier use the op-amp inverting gain calculator.

The last mode designs resistive attenuator pads, which are the opposite of gain: a controlled loss that keeps the system impedance matched. This page is about the gain of devices and chains. If you only want to convert a ratio, a level in dBm or dBV, or add decibel values of independent sources, use the general dB calculator. For a complete radio path including antennas and free space loss, the link budget calculator uses the same dB arithmetic.

📐 Formula

GP = 10 log10(Pout / Pin)    GV = 20 log10(Vout / Vin)    Gtotal = G1 + G2 + …
Pin, Pout = input and output power in the same unit. In dBm, the gain is simply Pout − Pin.
Vin, Vout = input and output voltage of the same type (RMS, peak or peak to peak). With different impedances the power gain is GP = GV + 10 log10(Zin / Zout).
Linear ratio: power ratio = 10G/10 and voltage ratio = 10G/20. Output level = input level + G when both are in dBm.
Cascade: Gtotal is the sum of the stage gains in dB, with losses negative. This ignores noise, compression and mismatch.
Pad: with K = 10A/20 and system impedance Z0. T pad: Rseries = Z0 (K − 1) / (K + 1), Rshunt = 2 Z0 K / (K2 − 1). Pi pad: Rshunt = Z0 (K + 1) / (K − 1), Rseries = Z0 (K2 − 1) / (2 K).
Example: 5 mW in and 500 mW out is 10 log10(100) = 20 dB.

📖 How to Use This Calculator

Steps

1
Choose what you know. Pick Power gain, Voltage gain, Cascade, Gain to linear or Attenuator pad from the tabs.
2
Enter the values. Type the input and output power or voltage, the stage gains (losses as negative numbers), the gain in dB, or the attenuation and impedance of the pad.
3
Check units and impedance. In Power gain pick W, mW or dBm for both powers. In Voltage gain enter the input and load impedances if they differ.
4
Read the gain and the chart. The gain, linear ratios, running levels or resistor values appear, and the chart marks your values.

💡 Example Calculations

Example 1 — An RF Power Amplifier

An amplifier turns 5 mW at its input into 500 mW at its output

1
Power ratio = 500 / 5 = 100.
2
Gain = 10 × log10(100) = 20.00 dB, and the voltage ratio for equal impedances is √100 = 10.
3
The input is 10 log10(5) = 6.99 dBm and the output is 26.99 dBm, a difference of 20 dB.
Gain = 20.00 dB, power ratio 100
Try this example →

Example 2 — A Lossy Cable in dBm

A signal of -20 dBm enters a cable and leaves it at -26 dBm

1
With both levels in dBm the gain is the difference: −26 − (−20) = −6.00 dB.
2
Power ratio = 10−6/10 = 0.25119, so about a quarter of the power arrives.
3
Voltage ratio = √0.25119 = 0.50119, so about half the voltage. The calculator labels it an attenuator.
Gain = −6.00 dB, a loss
Try this example →

Example 3 — A Headphone Amplifier

0.1 V in at 1000 ohm, 2 V out into an 8 ohm load

1
Voltage ratio = 2 / 0.1 = 20, so GV = 20 × log10(20) = 26.02 dB.
2
Impedance term = 10 × log10(1000 / 8) = 10 × log10(125) = 20.97 dB.
3
Power gain = 26.02 + 20.97 = 46.99 dB, a power ratio of 50000. Voltage and power gain differ by 20.97 dB because the impedances differ.
Voltage gain = 26.02 dB, power gain = 46.99 dB
Try this example →

Example 4 — A Four Stage Receiver Chain

An input of -30 dBm passes through a cable (-3 dB), an LNA (+20 dB), a mixer (-7 dB) and an IF amplifier (+25 dB)

1
Total gain = −3 + 20 − 7 + 25 = 35.00 dB.
2
Running levels: −33, −13, −20 and finally 5.00 dBm.
3
Power ratio = 103.5 = 3162.3, voltage ratio = 101.75 = 56.234, and the output power is 3.1623 mW.
Total gain = 35.00 dB, output 5.00 dBm (3.1623 mW)
Try this example →

Example 5 — Gain to Linear

A 13 dB gain stage driven with -10 dBm

1
Power ratio = 1013/10 = 19.953, a power change of 1,895.26 %.
2
Voltage ratio = 1013/20 = 4.4668.
3
Output level = −10 + 13 = 3.00 dBm, which is 1.9953 mW.
13 dB = power x19.953, voltage x4.4668, output 3.00 dBm
Try this example →

Example 6 — A 6 dB Pad for 50 Ohm

A 6 dB attenuator pad in a 50 ohm system carrying 20 dBm

1
K = 106/20 = 1.9953.
2
T pad: series = 50 × (K − 1) / (K + 1) = 16.61 ohm in each arm and shunt = 2 × 50 × K / (K2 − 1) = 66.93 ohm.
3
Pi pad: shunt = 50 × (K + 1) / (K − 1) = 150.48 ohm and series = 50 × (K2 − 1) / (2K) = 37.35 ohm. The output is 20 − 6 = 14.00 dBm and the pad dissipates 74.881 mW of the 100 mW.
T pad 16.61 / 66.93 ohm, Pi pad 150.48 / 37.35 ohm, output 14.00 dBm
Try this example →

❓ Frequently Asked Questions

How do you calculate gain in dB?+
Power gain in dB is 10 x log10(Pout / Pin). Voltage gain in dB is 20 x log10(Vout / Vin). An amplifier that turns 5 mW into 500 mW has a power ratio of 100, which is 20 dB. A negative result means the stage is a loss.
What is the difference between voltage gain and power gain in dB?+
They are equal only when input and output impedances are equal. In general power gain in dB equals voltage gain in dB plus 10 x log10(Zin / Zout). A 26.02 dB voltage gain from 1000 ohms into 8 ohms is a 46.99 dB power gain.
How do you add gains in dB for several stages?+
Simply add the dB values. Gains are positive and losses are negative. Stages of -3, +20, -7 and +25 dB give +35 dB overall. Multiplying linear ratios gives the same result, but the dB sum is far easier.
How do I convert dB gain to a linear ratio?+
Power ratio is 10 raised to dB / 10 and voltage ratio is 10 raised to dB / 20. A gain of 20 dB is a power ratio of 100 and a voltage ratio of 10. A gain of 3 dB is about x2 in power and x1.41 in voltage.
What does a gain of 0 dB mean?+
Unity gain: the output equals the input, a ratio of 1. A buffer amplifier or voltage follower is the standard example. It still provides current gain and impedance conversion, so it is not useless even though it adds no level.
How do you find the output power from input power and gain?+
In dBm the output is simply input plus gain. A -10 dBm signal through 13 dB of gain is +3 dBm, which is 2.0 mW. In watts multiply the input by the power ratio, 10 raised to gain / 10.
What is a 3 dB attenuator pad?+
A 3 dB pad halves the power. For a 50 ohm system the T pad uses two 8.55 ohm series resistors and a 141.9 ohm shunt resistor, and the Pi pad uses 17.61 ohm in series with two 292.4 ohm shunts. This calculator gives any dB value.
What is the difference between a T pad and a Pi pad?+
Both are three resistor networks that attenuate and keep the impedance matched. The T pad has two series arms and one shunt, the Pi pad one series arm and two shunts. They give the same attenuation, and the choice is usually about which resistor values are easier to get.
Why does a gain in dB not include noise?+
Gain only describes the signal path. Every real amplifier adds noise, described by its noise figure, and the cascade noise figure follows the Friis formula, which weights early stages most heavily. This calculator gives the noise free cascade total only.
How is this different from the dB calculator?+
The dB calculator is the general converter for ratios, dBm, dBV, dBu and adding levels. This page is for the gain of devices and chains: Pin to Pout, Vin to Vout with impedances, stage by stage cascades and attenuator pads.
Can the gain of a passive device be positive?+
A passive network cannot increase the power, so its power gain is 0 dB or lower. It can, however, increase the voltage: an ideal step-up transformer raises the voltage while lowering the current, and the power gain of the stage is still at most 0 dB.

How do you calculate gain in dB?

Power gain in dB is 10 x log10(Pout / Pin). Voltage gain in dB is 20 x log10(Vout / Vin). An amplifier that turns 5 mW into 500 mW has a power ratio of 100, which is 20 dB. A negative result means the stage is a loss.

What is the difference between voltage gain and power gain in dB?

They are equal only when input and output impedances are equal. In general power gain in dB equals voltage gain in dB plus 10 x log10(Zin / Zout). A 26.02 dB voltage gain from 1000 ohms into 8 ohms is a 46.99 dB power gain.

How do you add gains in dB for several stages?

Simply add the dB values. Gains are positive and losses are negative. Stages of -3, +20, -7 and +25 dB give +35 dB overall. Multiplying linear ratios gives the same result, but the dB sum is far easier.

How do I convert dB gain to a linear ratio?

Power ratio is 10 raised to dB / 10 and voltage ratio is 10 raised to dB / 20. A gain of 20 dB is a power ratio of 100 and a voltage ratio of 10. A gain of 3 dB is about x2 in power and x1.41 in voltage.

What does a gain of 0 dB mean?

Unity gain: the output equals the input, a ratio of 1. A buffer amplifier or voltage follower is the standard example. It still provides current gain and impedance conversion, so it is not useless even though it adds no level.

How do you find the output power from input power and gain?

In dBm the output is simply input plus gain. A -10 dBm signal through 13 dB of gain is +3 dBm, which is 2.0 mW. In watts multiply the input by the power ratio, 10 raised to gain / 10.

What is a 3 dB attenuator pad?

A 3 dB pad halves the power. For a 50 ohm system the T pad uses two 8.55 ohm series resistors and a 141.9 ohm shunt resistor, and the Pi pad uses 17.61 ohm in series with two 292.4 ohm shunts. This calculator gives any dB value.

What is the difference between a T pad and a Pi pad?

Both are three resistor networks that attenuate and keep the impedance matched. The T pad has two series arms and one shunt, the Pi pad one series arm and two shunts. They give the same attenuation, and the choice is usually about which resistor values are easier to get.

Why does a gain in dB not include noise?

Gain only describes the signal path. Every real amplifier adds noise, described by its noise figure, and the cascade noise figure follows the Friis formula, which weights early stages most heavily. This calculator gives the noise free cascade total only.

How is this different from the dB calculator?

The dB calculator is the general converter for ratios, dBm, dBV, dBu and adding levels. This page is for the gain of devices and chains: Pin to Pout, Vin to Vout with impedances, stage by stage cascades and attenuator pads.