The Patchbay_

Decibel ↔ Gain Converter

Convert between decibels and a linear amplitude factor — the multiplier you actually apply to a signal in code. Edit any field: gain = 10^(dB/20), and dB = 20·log₁₀(gain).

Handy anchors: 0 dB = ×1, +6 dB ≈ ×2, −6 dB ≈ ×0.5, −∞ dB = silence. More in the decibel reference.

How it works

Decibels are a ratio on a logarithmic scale, and the formula depends on whether you are measuring amplitude or power.

amplitude (voltage):  dB = 20 × log10(new / old)
power:                dB = 10 × log10(new / old)

gain factor from dB:  factor = 10 ^ (dB / 20)

Audio faders and plugin gain controls work in amplitude, so the 20× form is the one you want almost always.

Worked example

In practice

Related

Decibel reference tableDynamics markingsAudio file size calculator