Tools / Decibel ↔ Gain Ratio

How to work out decibels from a gain ratio

Decibels turn big ratios into small numbers you can add. Voltage ratios use 20 × log10; power ratios use 10 × log10.

dB = 20·log10(ratio); power dB = 10·log10(ratio²)

Inputs

V/V

Results update as you type. Prefixes work: 4.7k, 100u, 10n.

Result
Voltage gain (dB)
20
Power gain (dB)
20
Ratio
10
Step by step

The working with your numbers

  1. Take the log of the ratiolog10(10) = 1
  2. Voltage gain in dB20 × 1 = 20 dB
  3. Power ratio is the voltage ratio squared10² = 100 → 10 × log10(100) = 20 dBSame dB either way, as long as the impedance is the same.
See it

Decibels against gain ratio

−20 dB0 dB20 dB100 m1 10 Voltage ratio20.0 dB
Gain against voltage ratio. Every ten times more gain adds 20 dB; a ratio of 1 is 0 dB.

Does the answer make sense?

  • OK: A ratio above 1 is a gain, so the dB value is positive.
  • OK: Quick rules: ×2 ≈ +6 dB, ×10 = +20 dB, ×0.707 ≈ −3 dB (the filter cutoff point).
  • OK: Gains in dB add: a 20 dB stage followed by a 6 dB stage is 26 dB, a ratio of about 20.

Common mistakes

  • Using 10 × log10 for a voltage ratio, which halves the answer.
  • Treating dBm as dB. dBm is an absolute power compared with 1 mW; dB is only a ratio.
  • Taking the log of a negative or zero ratio. Use the magnitude.

Learn it, try it, build it

Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.

Just need the number? Use the decibel ↔ gain ratio calculator on Geekobot.

Common questions

How do you convert gain to decibels?

For voltage, dB = 20 × log10(Vout ÷ Vin). A gain of 10 is 20 dB and a gain of 100 is 40 dB.

Why is −3 dB used for filters?

−3 dB is a voltage ratio of about 0.707, where the output power is half. Filter cutoff frequencies are defined at that point.