UTILS.
100% in-browser
📊

Decibel Gain / Ratio Calculator

Convert between a decibel gain and a linear ratio for power or voltage, or find the dB gain between two values.

About this tool

Decibel Gain / Ratio Calculator is a free, in-browser tool for working with dB. Choose whether your quantity is a power or a voltage/amplitude, then either enter two values to get the gain in dB, convert a linear ratio to dB, or convert a dB figure back to a linear ratio. It also labels the result as gain, loss or unity. All math is local; nothing is uploaded.

For power, gain in dB = 10 · log₁₀(P2 ⁄ P1) and the ratio back is 10^(dB ⁄ 10). For voltage or amplitude the factor is 20 instead of 10: dB = 20 · log₁₀(V2 ⁄ V1) and ratio = 10^(dB ⁄ 20). The factor of 20 appears because power is proportional to voltage squared, so a voltage ratio contributes twice as many decibels as the same numeric power ratio.

Use it to express an amplifier's gain, an attenuator's loss, or a signal-to-noise improvement in decibels — or to turn a spec sheet's dB figure into a plain multiplier. The decibel here is dimensionless, a ratio between two like quantities.

Frequently asked questions

When do I use 10·log versus 20·log?
Use 10·log₁₀ for power ratios (watts, milliwatts) and 20·log₁₀ for amplitude ratios (volts, current, sound pressure). Since power ∝ voltage², a given voltage ratio is worth twice the decibels of the same numeric power ratio.
How is this different from dBm?
A plain dB value here is a dimensionless ratio between two quantities — it has no absolute meaning on its own. dBm is an absolute power level referenced to 1 milliwatt. Use the dBm / Watts / Volts Converter when you need absolute power.
What do gain, loss and unity mean?
A positive dB is gain (output larger than input), a negative dB is loss or attenuation (output smaller), and 0 dB is unity — a ratio of exactly 1, meaning no change. A ratio of 100 in power equals 20 dB; in voltage it equals 40 dB.
Is my data private?
Yes. All decibel math runs in your browser; the values you enter never leave your device and the tool works offline.

More tools