help-calc

08 Numbers and Units

Convert Decibels to Gain: Formula & Calculator

Card 08-0289 · Updated · Standard formula, shown below

Gain (linear) 10.0000
Decibels
20 dB
Input
Ratio type
Voltage
Input
You enter
Decibels (dB), Ratio type
You get
Gain (linear)
Rounding
4 dp

To convert decibels (dB) to gain, use the formula Gain = 10^(dB/20) for voltage or current ratios, and Gain = 10^(dB/10) for power ratios. Enter your dB value and choose the type to get the linear gain factor instantly.

Formula

The decibel is a logarithmic unit that expresses a ratio between two values. For a voltage or current ratio (amplitude quantities), the gain in decibels is defined as:

Gain(dB) = 20 × log₁₀(V_out / V_in)

To reverse this, the linear voltage gain is:

V_out / V_in = 10^(Gain(dB) / 20)

For power ratios (e.g., watts), the definition uses 10 instead of 20:

Power Gain(dB) = 10 × log₁₀(P_out / P_in)

So the linear power gain is:

P_out / P_in = 10^(Gain(dB) / 10)

In both cases, the result is a dimensionless number that tells you how many times larger the output is than the input. A gain of 1 means no change (0 dB), a gain greater than 1 means amplification, and a gain less than 1 means attenuation.

Worked Example

Suppose you have an amplifier with a gain of 20 dB and you want to know the voltage gain factor. Using the default values from the calculator:

  1. Identify the type: voltage (20 multiplier).
  2. Divide the dB value by 20: 20 / 20 = 1.
  3. Raise 10 to that power: 10^1 = 10.

The voltage gain is 10, meaning the output voltage is 10 times the input voltage. If the same 20 dB were a power gain, the power ratio would be 10^(20/10) = 10^2 = 100, so the output power would be 100 times the input.

Why the 20 vs 10 Difference?

The decibel always compares powers, but voltage and current are related to power by the square of the amplitude (assuming constant impedance). Since power ∝ V², a 10× voltage gain results in a 100× power gain. The factor of 20 in the voltage formula comes from the power formula: 10 × log(V²) = 20 × log(V). This is why audio engineers and RF designers must be careful to specify whether they are working with amplitude ratios or power ratios.

For example, a microphone preamp might specify +20 dB of voltage gain, which means the signal voltage is amplified 10 times. A power amplifier might specify 30 dB of power gain, which means the output power is 1000 times the input power.

How to Use the Calculator

Enter any decibel value—positive for gain, negative for loss (attenuation), or zero for unity. Select whether your measurement refers to voltage/current or power. The calculator will output the linear factor.

  • Positive dB (e.g., +6 dB) → gain > 1 (output larger).
  • Negative dB (e.g., -3 dB) → gain < 1 (output smaller, often -3 dB = half power).
  • 0 dB → gain = 1 (output equals input).

Common reference points: +3 dB doubles power, +6 dB doubles voltage, +10 dB multiplies power by 10, and +20 dB multiplies voltage by 10. These are useful mental shortcuts for quick estimates.

Common Mistakes and Misconceptions

One frequent error is using the 20 multiplier for power ratios or the 10 multiplier for voltage ratios. This leads to incorrect results—for example, confusing a 20 dB power gain (100×) with a 20 dB voltage gain (10×).

Another misconception is that decibels are absolute units. In reality, dB is always a ratio. When you see “dBm” (decibels relative to 1 milliwatt) or “dBV” (decibels relative to 1 volt), the suffix indicates a reference level, but the conversion to linear gain still uses the same formulas—you just compare against that fixed reference.

Also, remember that the voltage formula assumes the input and output impedances are equal. If impedances differ, the power gain is not simply the square of the voltage gain. In most audio and RF contexts, impedances are matched, so the simple formulas work.

Practical Applications

Converting dB to gain is essential in many fields:

  • Audio engineering: Setting amplifier levels, understanding speaker sensitivity (e.g., 90 dB SPL at 1 watt) and equalizer adjustments.
  • Telecommunications: Calculating signal loss in cables or gain in repeaters, often specified in dB.
  • Antenna design: Gain in dBi (decibels relative to isotropic radiator) can be converted to a linear factor to compare directivity.
  • Electronics: Op-amp circuits, filter design, and feedback networks use dB for gain specifications.

For instance, if a fiber optic link has a loss of -15 dB, the power ratio is 10^(-15/10) ≈ 0.0316, meaning only about 3.16% of the input power arrives at the receiver.

Limits and Accuracy

The conversion is mathematically exact, but the result is only as accurate as the dB value you input. In real-world measurements, dB values are often rounded to the nearest tenth or whole number, which introduces small errors. For example, a 3 dB voltage gain is exactly 10^(3/20) ≈ 1.4125, but many people round to 1.41 or even 1.4.

Also, the formulas assume real, positive ratios. If you need to represent phase or complex impedance, you must use complex numbers, which are beyond this simple conversion. For most practical purposes, the magnitude is what matters.

Frequently Asked Questions

How do I convert dB to a percentage? First convert dB to a linear ratio using the appropriate formula, then multiply by 100. For example, -6 dB voltage gain = 10^(-6/20) ≈ 0.501, which is 50.1% of the input voltage. For power, -6 dB = 10^(-6/10) ≈ 0.251, or 25.1% of the input power.

What is the difference between dB and dBi? dB is a general ratio, while dBi specifically refers to antenna gain relative to an isotropic radiator (a theoretical point source that radiates equally in all directions). To convert dBi to a linear factor, use the same power formula: Gain = 10^(dBi/10). For example, a 3 dBi antenna has a power gain of about 2.

Can I use this calculator for dBm to watts? No, because dBm is an absolute power level relative to 1 milliwatt, not a ratio. To convert dBm to watts, use the formula: P(watts) = 10^(dBm/10) / 1000. This calculator only converts a dB ratio to a linear gain factor.

Why does -3 dB correspond to half power? Because 10^(-3/10) ≈ 0.501, which is very close to 0.5. This is a convenient approximation used in filter cutoff frequencies and bandwidth definitions. The exact value is -3.0103 dB for exactly half power.

What if I have a gain in dB and want the output value? Multiply the input value by the linear gain factor. For example, if you have a 6 dB voltage gain (factor ≈ 2) and an input of 0.5 V, the output is 0.5 × 2 = 1 V. For power, use the power gain factor.

Is there a difference between dB and dBc? dBc (decibels relative to carrier) is used in modulation and signal analysis to express the level of a signal component relative to the main carrier. It is still a ratio, so the same conversion formulas apply—just replace the input with the carrier level.

Related

Formula used
in db | Decibels | dB | 20 | -100 | 100
sel type | Ratio type | Voltage=20, Power=10
out gain | Gain (linear) | - | 10^(db / type) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this shelf

The whole Numbers and Units shelf →