Gain Calculator

Gain Calculator
Av = Vout/Vin
dB = 20 log₁₀(Av)
Ap = Pout/Pin
Voltage Gain — Enter Any Direction
Vin Input Voltage
Vout Output Voltage
dB Or Enter Gain in dB
Enter dB to find the linear ratio, or enter values above
Enter input/output values or dB
Gain Results
Gain (dB)
dB
Linear Ratio
×
Power Gain
×
Gain Visualisation
Input
Output
% Change
%
Gain/Loss
 
Nepers
Np
Amplifier Gain: Av = Vout/Vin Vin (small) Av Vout (amplified) Gain > 1 (positive dB) = amplification | Gain < 1 (negative dB) = attenuation

Figure 1: An amplifier increases the signal level. Gain is expressed as a linear ratio (Vout/Vin) or in decibels (20 log of the ratio). Gain > 0 dB means amplification; < 0 dB means attenuation.

Table of Contents
Fundamentals
  1. What Is Gain?
  2. The Formulas
  3. Common Gain Values
Mode Guides
  1. Mode 1 — Voltage Gain
  2. Mode 2 — Op-Amp Gain
  3. Mode 3 — Cascaded Gain
Deep Dive
  1. Voltage Gain vs Power Gain
  2. Gain-Bandwidth Product
  3. Inverting vs Non-Inverting
Reference
  1. Frequently Asked Questions
  2. Related Calculators

What Is Gain?

Gain is the ratio of a circuit’s output to its input. A voltage gain of 10 (20 dB) means the output voltage is ten times the input. A gain less than 1 (negative dB) means attenuation — the output is smaller than the input. Gain can be expressed as a linear ratio (Av), in decibels, or as a percentage change. The Decibel Calculator converts freely between dB and linear ratios if you need to work purely in those units.

The calculator above has three modes. Mode 1 converts bidirectionally between dB, voltage ratio, and Vin/Vout. Mode 2 designs op-amp circuits for three topologies from two resistor values. Mode 3 cascades up to 8 gain/loss stages for multi-stage amplifier chains.

The Formulas

Voltage gain: Av = Vout / Vin
In decibels: dB = 20 × log₁₀(Av)
Power gain: Ap = Av²  →  dB = 10 × log₁₀(Ap) (same number)
Reverse: Av = 10(dB/20)
Op-amp inverting: Av = −Rf/Rin  |  Non-inverting: Av = 1 + Rf/Rin

Common Gain Values

dBVoltage RatioPower RatioDescription
+60×1,000×1,000,000High-gain preamp
+40×100×10,000Microphone preamp
+20×10×100Standard amplifier stage
+6×2×4Voltage doubling
0×1 (unity)×1Buffer / no change
−6×0.5×0.25Voltage halving
−20×0.1×0.0120 dB attenuator

Mode 1 — Voltage Gain (Bidirectional)

Enter any one of Vin + Vout, gain in dB, or linear ratio. The calculator fills in everything else: voltage gain in dB, linear ratio, power gain (dB and ratio), percentage change, and nepers. A visual signal comparison bar shows input versus output.

Example: 0.1 V In, 5 V Out

Given: Vin = 0.1 V, Vout = 5 V

Av = 5 / 0.1 = 50×

dB = 20 × log₁₀(50) = 33.98 dB

Power gain Ap = 50² = 2,500× (33.98 dB)

Voltage change: +4,900%  |  Assessment: amplified

Example: Enter −6 dB → Find Ratio

Given: −6 dB

Av = 10(−6/20) = 0.501× ≈ 0.5

Ap = 0.5² = 0.25×

Voltage halved, power quartered. This is the loss through a simple resistive voltage divider or a 6 dB attenuator pad.

Mode 2 — Op-Amp Gain

Select a topology (inverting, non-inverting, or differential), enter Rf and Rin in Ω, kΩ, or MΩ. The calculator returns gain with sign, gain in dB, phase (0° or 180°), Rf/Rin ratio, input impedance, and the formula used.

Inverting Amplifier: Av = −Rf/Rin

Rf = 100 kΩ, Rin = 10 kΩ

Av = −100k / 10k = −10  |  20 dB

Phase: 180° (inverted)  |  Input Z: 10 kΩ

A +0.5 V input produces −5 V output. The input impedance equals Rin. For higher input impedance, scale both resistors up proportionally — 1 MΩ / 100 kΩ gives the same gain with 100 kΩ input impedance.

Non-Inverting Amplifier: Av = 1 + Rf/Rin

Rf = 100 kΩ, Rin = 10 kΩ

Av = 1 + 100k/10k = +11  |  20.83 dB

Phase: 0° (in-phase)  |  Input Z: Very high (op-amp input)

Same resistors as the inverting example but gain is +11 instead of −10, and there is no phase inversion. The very high input impedance makes it ideal for buffering high-impedance sources like sensors and piezo transducers.

Voltage Follower (Unity Gain Buffer)

Rf = 0 Ω (short), Rin = open

Av = 1 + 0/∞ = 1 (0 dB)

Output equals input. No voltage gain, but massive impedance transformation. Essential for driving low-impedance loads from high-impedance sources without signal loss.

Differential Amplifier: Av = Rf/Rin

Rf = 100 kΩ, Rin = 10 kΩ

Av = 100k / 10k = 10  |  20 dB

Amplifies only the difference between the two inputs (Vout = Av × (V+ − V−)), rejecting any signal common to both. Used for sensor bridges, current-sense amplifiers, and differential signal conditioning. The Noise Figure Calculator can then analyse how the amplifier’s noise contribution affects the overall signal-to-noise ratio.

Mode 3 — Cascaded Gain

Enter up to 8 stages with positive (gain) or negative (loss) dB values. The calculator shows a running total at each stage in both dB and voltage ratio, plus the final totals.

Key rule: dB values add. Linear ratios multiply. +20 dB + (+20 dB) + (−6 dB) = +34 dB. In linear: 10 × 10 × 0.5 = 50×. Same answer — the dB method is faster and less error-prone.

Example: Two Amplifiers + Cable Loss

3-stage cascade

Stage 1: Preamp +20 dB → running: +20 dB (10×)

Stage 2: Power amp +20 dB → running: +40 dB (100×)

Stage 3: Cable loss −6 dB → running: +34 dB (50.1×)

Total: +34 dB = 50.1× voltage, 2,512× power

Example: 5-Stage Receiver

RF receiver chain

Stage 1: RF amp +15 dB → +15

Stage 2: Filter loss −10 dB → +5

Stage 3: IF amp +25 dB → +30

Stage 4: Cable −6 dB → +24

Stage 5: Baseband amp +30 dB+54 dB

Total: +54 dB = 501× voltage, 251,189× power

The running total at each stage tells you where the signal is strongest and weakest. If any stage drives the signal above the next stage’s maximum input, you get clipping. If any stage drops the signal below the noise floor, you lose it. The Signal Attenuation Calculator extends this with a link budget mode that includes named stages for real system design.

Voltage Gain vs Power Gain

Voltage gain (Av) is Vout/Vin. Power gain (Ap) is Pout/Pin. For the same load impedance, Ap = Av². In decibels, both give the same number: 20 × log(Av) = 10 × log(Ap). A voltage gain of 10× (20 dB) corresponds to a power gain of 100× (also 20 dB). When people say “20 dB gain,” it means 10× voltage and 100× power simultaneously.

Gain-Bandwidth Product

Every op-amp has a gain-bandwidth product (GBW): the product of gain and bandwidth is constant. An op-amp with GBW = 1 MHz can provide a gain of 100 (40 dB) up to 10 kHz, or a gain of 10 (20 dB) up to 100 kHz, or unity gain up to 1 MHz. Higher gain means lower bandwidth. The calculator shows the DC gain from your resistor values — check the op-amp data sheet to confirm the GBW supports your gain at your signal frequency. The Bandwidth Calculator computes the −3 dB bandwidth from cutoff frequencies or Q factor.

Inverting vs Non-Inverting — When to Use Which

Non-inverting when you need high input impedance (sensor buffering, high-impedance sources) or when phase inversion is unacceptable. The input sees the op-amp’s own input impedance (typically megaohms or higher), not Rin.

Inverting when you need precise gain set purely by the Rf/Rin ratio, or when the 180° phase inversion does not matter (AC-coupled signals, differential pairs). Input impedance equals Rin, which can load the source.

Differential when you need to amplify the difference between two signals while rejecting common-mode noise. Used in sensor bridges, current-sense circuits, and balanced audio inputs.

Frequently Asked Questions

What is gain?
The ratio of output to input. Av = Vout/Vin. Greater than 1 means amplification, less than 1 means attenuation, equal to 1 means unity (buffer). It can be expressed as a linear ratio, in dB, or as a percentage change.
What is the difference between voltage gain and power gain?
Voltage gain = Vout/Vin. Power gain = (Vout/Vin)². In dB both give the same number because 20 × log(Av) = 10 × log(Av²). When someone says “20 dB gain” it means 10× voltage and 100× power.
Why does the inverting op-amp have negative gain?
The output is 180° out of phase with the input — when the input goes positive, the output goes negative by Av times as much. The magnitude is Rf/Rin; the minus sign indicates phase inversion. In dB, gain is usually expressed as the absolute value.
What is gain-bandwidth product?
A constant for a given op-amp: GBW = Av × fbandwidth. If you increase the gain, the usable bandwidth decreases proportionally. An op-amp with GBW = 10 MHz gives 100× gain up to 100 kHz, or 10× gain up to 1 MHz.
How do cascaded gains combine?
In dB: add them. +20 + (+10) + (−3) = +27 dB. In linear: multiply them. 10 × 3.16 × 0.707 = 22.3×. Both give the same answer. The dB method is faster for long chains.
When should I use inverting vs non-inverting?
Non-inverting for high input impedance and no phase inversion. Inverting for precise Rf/Rin gain setting when phase inversion is acceptable. Differential for amplifying the difference between two signals while rejecting common-mode noise. The Duty Cycle Calculator handles PWM signal analysis if your gain stage drives a switched output.

Browse all Electronics Calculators →

Last updated: March 2026