dB Gain Calculator

The dB Gain Calculator calculates decibel gain from power or amplitude ratios and converts dB values back to linear scale.

dB Gain Calculator
Choose a mode. For voltage/pressure/amplitude, use 20·log10(Out/In). For power, use 10·log10(Out/In).
Controls whether the formula uses 20·log10 (amplitude) or 10·log10 (power).
Used when calculating dB gain, or when solving for output.
Used when calculating dB gain, or when solving for input.
Positive increases, negative decreases. 0 dB means no change.
Used only if you want to convert a ratio into dB (switch mode to dB if needed).
Affects numeric formatting in results.
Example Presets

Report an issue

Spotted a wrong result, broken field, or typo? Tell us below and we’ll fix it fast.


dB Gain Calculator Explained

Decibels express ratios on a logarithmic scale. A small dB change can represent a large change in power or amplitude. That is why audio, RF, and instrumentation all use dB for gain, loss, and dynamic range.

There are two common forms. For power ratios, gain in dB equals 10 times the base-10 logarithm of the power ratio. For voltage or current ratios, gain in dB equals 20 times the base-10 logarithm of the amplitude ratio, provided the impedance is the same at input and output.

This difference comes from physics. Power is proportional to the square of voltage or current across a given impedance. Squaring the amplitude ratio doubles the logarithm, which is why 20 appears instead of 10. Using dB keeps calculations stable across large ranges and simplifies cascaded systems, because dB values add and subtract.

dB Gain Calculator
Model db gain and see the math.

How to Use dB Gain (Step by Step)

You can enter either power or amplitude values. Pick the one that matches your measurement. If you mix power and voltage, also provide the impedance so the calculator can convert properly.

  • Choose power ratio if you have watts, milliwatts, or measured power at two points.
  • Choose amplitude ratio if you have voltages or currents with the same impedance.
  • If you have absolute references like dBm or dBV, select the correct reference scale.
  • Type your input and output values and, if needed, the impedance.
  • Read the gain or loss in dB. Positive numbers are gain; negative numbers are loss.

The tool can also reverse the math. Enter a dB value to find the linear ratio or the output needed to hit that target. This is useful for headroom estimates or link budgets.

Equations Used by the dB Gain Calculator

The calculator switches formulas based on whether you enter power or amplitude. It also supports standard reference scales used in audio and RF work. Here are the core equations.

  • Power gain: GdB = 10 log10(Pout Pin−1)
  • Amplitude gain (voltage or current, same impedance): GdB = 20 log10(Aout Ain−1)
  • From dB to power ratio: Pout Pin−1 = 10 GdB 10
  • From dB to amplitude ratio: Aout Ain−1 = 10 GdB 20
  • Absolute scales: dBV = 20 log10(V 1 V−1); dBu = 20 log10(V 0.775 V−1); dBm = 10 log10(P 1 mW−1)

The 20 vs 10 factor arises from the derivation: power is proportional to amplitude squared in a resistive load. If impedance differs between input and output, amplitude-based dB does not equal true power gain. In that case, convert amplitude to power using P = V2 R−1 or P = I2R to get correct results.

Inputs and Assumptions for dB Gain

The calculator accepts either power or amplitude inputs, with optional reference scales. It assumes steady-state or RMS values unless otherwise stated. You can work with volts, amps, watts, or the common dB references used in practice.

  • Power inputs: Pin and Pout in watts or milliwatts.
  • Amplitude inputs: Vin and Vout, or Iin and Iout, in volts or amps.
  • Impedance: R in ohms, used when translating between voltage and power or for dBm voltage equivalents.
  • Reference choices: dBV, dBu, dBm for absolute readings.
  • Mode: forward calculation (ratio to dB) or inverse (dB to ratio or output).

Power and amplitude must be positive. Zero or negative values are not valid in logarithms. If you enter values near instrument noise floors, expect higher uncertainty. Peak and RMS values differ by waveform, so use consistent definitions to get meaningful results.

Step-by-Step: Use the dB Gain Calculator

Here’s a concise overview before we dive into the key points:

  1. Select whether you are working with power or amplitude.
  2. Choose any absolute reference scale you need, such as dBV or dBm.
  3. Enter the input value (Pin, Vin, or Iin) with units.
  4. Enter the output value (Pout, Vout, or Iout) with units.
  5. Provide impedance if needed for conversions or reference calculations.
  6. Click Calculate to see gain or loss in dB and the linear ratio.

These points provide quick orientation—use them alongside the full explanations in this page.

Case Studies

An audio preamp takes a 10 mV RMS microphone signal to 1.0 V RMS line level. The amplitude ratio is 1.0 V 0.01 V−1 = 100. Gain in dB is 20 log10(100) = 40 dB. Because the impedance seen by the mic and line are high compared with the source, we treat them as the same for a first estimate. What this means: The preamp needs about 40 dB of clean gain to lift mic level to line level.

An RF link has a 2 W transmitter and the receiver measures 10 mW at its input. The power ratio is 0.01 2 = 0.005. Gain in dB is 10 log10(0.005) ≈ −23 dB. If the cable loss is −3 dB and the antenna adds +6 dBi, the propagation path accounts for about −26 dB. What this means: The path and hardware together reduce received power by roughly 23 dB overall, so increasing transmit power by 23 dB would restore the original level.

Accuracy & Limitations

dB is simple to compute, but the details matter. The accuracy of your result depends on waveform definitions, impedance, bandwidth, and measurement noise. Keep these limits in mind when you interpret the number.

  • Impedance mismatch skews amplitude-based dB if input and output impedances differ.
  • RMS vs peak values make several dB of difference depending on waveform shape.
  • Bandwidth and filtering change measured power; measurement windows must match.
  • Noise floor and quantization limit small-signal accuracy for very low ratios.
  • Instrumentation calibration and cable losses add hidden dB that must be accounted for.

When in doubt, compute both amplitude-based and power-based gains using measured R. If they disagree, revisit the measurement chain. Document the assumptions you used so others can reproduce the derivation and verify the units.

Units & Conversions

dB expresses ratios without units, but absolute readings like dBV, dBu, and dBm include a reference. Converting between linear quantities and decibels requires the right base units. We note first uses of symbols with abbreviations such as dB, V, and W.

Common decibel-related units and conversions
Symbol Definition Conversion
dB (power) Ratio of powers dB = 10 log10(P2 P1−1)
dB (amplitude) Ratio of voltages or currents (same impedance) dB = 20 log10(A2 A1−1)
dBV Voltage relative to 1 V RMS dBV = 20 log10(V 1 V−1)
dBu Voltage relative to 0.775 V RMS dBu = 20 log10(V 0.775 V−1)
dBm Power relative to 1 mW dBm = 10 log10(P 1 mW−1)

Use the table to pick the right formula for your case. For absolute readings, convert from volts or watts into the chosen reference. To turn dB back into linear values, invert with 10dB 10 for power or 10dB 20 for amplitude. If you need volts from dBm, include impedance with P = V2 R−1.

Troubleshooting

Strange dB numbers usually come from unit mix-ups or hidden assumptions. Check each input and verify that the calculation matches your measurement conditions.

  • Confirm RMS vs peak and convert if needed.
  • Verify input and output impedances match when using amplitude ratios.
  • Ensure you did not mix milliwatts with watts without conversion.
  • Check cables and attenuators for added loss or gain.

If your result still seems off, compute both the linear ratio and the dB value manually. That will expose unit errors quickly. Then compare to a known reference point, such as 0 dBV or 0 dBm, to sanity-check the magnitude.

FAQ about dB Gain Calculator

What is the difference between power gain and voltage gain in dB?

Power gain uses 10 log10 of the power ratio. Voltage gain uses 20 log10 of the amplitude ratio and only equals power gain when the impedances match.

Can dB gain be negative?

Yes. Negative dB indicates loss. For example, −3 dB means the output power is about half the input power.

Why does the formula use 20 for voltage but 10 for power?

Power is proportional to the square of voltage or current across a fixed resistance. Squaring doubles the logarithm’s coefficient, so 20 is used for amplitude ratios.

How accurate is dB without knowing impedance?

For power ratios, impedance is not needed. For voltage or current ratios, unknown impedances can make the dB value misleading relative to true power gain.

dB Gain Terms & Definitions

Decibel (dB)

A logarithmic unit that expresses the ratio of two quantities, typically power or amplitude. It is dimensionless.

Gain

The increase in signal level from input to output. In dB, positive gain means amplification and negative gain means attenuation.

Power Ratio

The quotient of output power to input power. It converts to dB using 10 log10 of the ratio.

Amplitude Ratio

The quotient of output to input voltage or current. It converts to dB using 20 log10 of the ratio if impedances match.

Reference Level

A fixed baseline used for absolute dB scales such as 1 V for dBV, 0.775 V for dBu, or 1 mW for dBm.

Impedance

The opposition a circuit presents to current at a given frequency, measured in ohms. It affects how amplitude relates to power.

dBV

An absolute voltage level referenced to 1 volt RMS. It is used to specify audio line levels and instrument outputs.

dBm

An absolute power level referenced to 1 milliwatt. It is common in RF systems and requires impedance to convert to voltage.

Sources & Further Reading

Here’s a concise overview before we dive into the key points:

These points provide quick orientation—use them alongside the full explanations in this page.

Save this calculator
Found this useful? Pin it on Pinterest so you can easily find it again or share it with your audience.

Leave a Comment