Decibel Gain Calculator
Enter an input and output value to read the gain in decibels, or switch to decibel mode to turn a dB figure back into a linear ratio. Voltage and other amplitude ratios use a factor of 20 while power ratios use a factor of 10, and the calculator picks the right one for you. Results show both the gain in dB and the plain ratio, ready to copy.
How to use the decibel gain calculator
- Set 'Ratio type' to Voltage (amplitude) or Power to choose the 20 or 10 factor.
- Leave 'Enter' on Input and output to work from measured values, or switch it to Decibels to invert.
- In ratio mode, type positive Input value and Output value figures in the same unit.
- In decibel mode, type the Gain (dB) figure to solve for the linear ratio instead.
- Read the Gain card in decibels and the Linear ratio card beside it.
- Click Copy to grab both results as text for a report or notebook.
Examples
Voltage gain of ten
Ratio type Voltage, Input value 1, Output value 10
Gain 20 dB, Linear ratio 10
Power gain of one hundred
Ratio type Power, Input value 1, Output value 100
Gain 20 dB, Linear ratio 100
Six decibels back to a voltage ratio
Ratio type Voltage, Enter Decibels, Gain (dB) 6
Gain 6 dB, Linear ratio 1.9953
Frequently asked questions
What is the decibel voltage gain formula?
Voltage gain in decibels is twenty times the base-10 logarithm of output over input, gainDb = 20 * log10(Vout / Vin). A voltage ratio of 10 works out to exactly 20 dB, and a ratio of 100 to 40 dB.
Why does power use 10 and voltage use 20?
Power is proportional to voltage squared, so the logarithm of a power ratio is twice that of the matching voltage ratio. Doubling the factor from 10 to 20 keeps a given physical change reading the same number of decibels whether you measure it as power or as amplitude.
How do I convert decibels back to a ratio?
Raise 10 to the decibels divided by the factor, so ratio = 10^(dB / 20) for voltage or 10^(dB / 10) for power. Switch the Enter menu to Decibels and the calculator does this for you: 6 dB of voltage gain returns a ratio of about 1.9953.
What does 3 dB mean?
In power terms 3 dB is close to a doubling, since 10^(3/10) is about 1.9953, which is why the half-power point of a filter is called its 3 dB point. For voltage the same near-doubling of the ratio lands at about 6 dB.
Can the gain be negative?
Yes. When the output is smaller than the input the ratio falls below 1 and the decibel figure is negative, which represents attenuation or loss. A voltage ratio of 0.5, for example, reads as roughly minus 6 dB.
What units should the input and output use?
Any units, as long as both boxes use the same one, because only their ratio matters. Volts against volts, watts against watts, or two readings from the same meter all give the correct decibel result.
Why must the values be greater than zero?
The gain depends on the logarithm of the ratio, and the logarithm of zero or a negative number is undefined. If you enter a non-positive input or output the tool shows a prompt to enter positive values instead of a result.
How precise are the results?
The engine computes with full floating-point precision and rounds to nine decimal places, then the display shows up to four decimals. That is far finer than typical measurement error, so the figure you copy is limited by your instruments, not the maths.
Is my data sent anywhere?
No. The calculation runs entirely in your browser with no server call, so your measurements stay on your device and the tool keeps working offline once loaded.
Learn more
- Decibels for voltage and power
Why the decibel is a ratio on a log scale, when to use the factor of 20 or 10, and how to read common gain figures at a glance.
Related tools
Op-Amp Gain Calculator
Calculate op-amp voltage gain and gain in dB for inverting and non-inverting configurations from the input and feedback resistors. Free EE design tool.
Decibel Calculator
Add sound levels in decibels and convert between ratios and dB. Combine noise sources logarithmically and switch between power and amplitude ratios.
Ohm's Law Calculator
Solve Ohm's law online. Enter any two of voltage, current, resistance or power and get the other two, with the V, I, R and P formulas shown.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.
Allele Frequency Calculator
Find allele frequencies from genotype counts. Enter the number of AA, Aa and aa individuals to get the A and a allele frequencies and allele totals.