Skip to content

Op-Amp Gain Calculator

Calculate op-amp gain for inverting, non-inverting, summing, difference and instrumentation amplifiers, in V/V and dB, with output clipping and bandwidth.

Calculator Details

Voltage gain:5.7 V/VSee results ↓

How the op-amp and resistors are wired

The gain from your resistors, or the feedback resistor for a gain you want

From the output to the inverting input (R in the instrumentation amplifier)

Rin (inverting, difference), Rg to ground (non-inverting) or the gain resistor Rg (instrumentation)

Signal at the input (the inverting input of a difference or in-amp)

Upper rail

Lower rail (0 for a single supply)

How close the output can swing to each rail: about 1.5 V for classic bipolar op-amps, near 0 for rail-to-rail parts

From the datasheet (1 MHz for a 741-class part)

Your Results

Voltage gain: 5.7 V/V

Voltage gain

5.7 V/V

Non-inverting · 15.12 dB

Output voltage

2.85 V

Swing −13.5 V to 13.5 V

Gain in decibels

15.118 dB

20 log₁₀ |G|

−3 dB bandwidth

175.4 kHz

GBW ÷ noise gain 5.7

Input resistance

Very high (op-amp input)

Seen by the source

The non-inverting amplifier has a gain of 5.7 V/V (15.118 dB); the output is 2.85 V, with a bandwidth of about 175,440 Hz.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Output against V1

Output against V1

Detailed Breakdown

Amplifier results
QuantityValue
Gain (V/V)5.7
Gain (dB)15.1175
Noise gain (sets bandwidth)5.7
−3 dB bandwidth175.44 kHz
Ideal output2.85 V
Output after clipping (result)2.85 V

How This Calculator Works

How It’s Calculated

G = 1 + Rf ÷ Rg · dB = 20 log₁₀ |G| · f−3 dB = GBW ÷ noise gain

Your calculation: the non-inverting amplifier has a gain of 5.7 V/V (15.118 dB). With V1 = 0.5 V, the ideal output is 2.85 V. That is inside the output swing of −13.5 V to 13.5 V. The noise gain is 5.7, so a 1 MHz op-amp has a −3 dB bandwidth of about 175.4 kHz.

An ideal op-amp drives its output so that its two inputs sit at the same voltage and draws no input current. Those two rules give every formula above. Real op-amps have finite gain, offset voltage and bias current, which matter at high gains and with large resistors.

Frequently Asked Questions

What is the gain of a non-inverting amplifier?

G = 1 + Rf ÷ Rg, where Rf runs from the output to the inverting input and Rg from that input to ground. Rf = 47 kΩ and Rg = 10 kΩ give 5.7 V/V, or 15.12 dB, so 0.5 V in gives 2.85 V out. The gain can never be below 1.

What is the gain of an inverting amplifier?

G = −Rf ÷ Rin. The minus sign means the output is upside down compared with the input. 100 kΩ and 10 kΩ give -10 V/V (20 dB). The source sees an input resistance equal to Rin, so make Rin large enough not to load it.

How do I convert op-amp gain to decibels?

Voltage gain in dB is 20 × log₁₀ |G|. A gain of 10 is 20 dB, 100 is 40 dB and 5.7 is 15.12 dB. The sign of an inverting gain only flips the phase by 180°; it doesn't change the dB figure. Use the decibel calculator for other conversions.

Why is my op-amp output stuck at the supply voltage?

The ideal output is outside the range the op-amp can swing to, so it clips. An inverting gain of 10 with 2 V in asks for −20 V; on ±15 V with 1.5 V of headroom the output stops at -13.5 V. Lower the gain, the input, or use higher supply rails. Rail-to-rail op-amps get within a few tens of millivolts of each rail.

What limits the bandwidth of an op-amp amplifier?

The gain-bandwidth product (GBW). For a single-pole op-amp the −3 dB bandwidth is GBW divided by the noise gain, which is 1 + Rf ÷ Rin for both the inverting and non-inverting circuits. A 1 MHz op-amp at a gain of 5.7 gives about 175.4 kHz; at a gain of 100 only 10 kHz. For more bandwidth, split the gain across two stages.

How does a summing amplifier add voltages?

Each input feeds the inverting input through its own resistor, and Vout = −Rf × (V1/R1 + V2/R2 + V3/R3). With every resistor 10 kΩ, 0.5 V, 0.2 V and 0.1 V sum to -0.8 V. Different input resistors weight the inputs, which is how simple audio mixers and digital-to-analog converters work.

What is the gain of an instrumentation amplifier?

For the classic three-op-amp circuit with a unity-gain difference stage, G = 1 + 2R ÷ Rg. With R = 25 kΩ and Rg = 5 kΩ the gain is 11. Integrated in-amps print their own gain equation on the datasheet (the internal R differs between parts), so check it before choosing Rg.

How do I choose resistors for a given gain?

Fix the ground or input resistor (1 kΩ to 100 kΩ is typical) and solve for Rf. For a non-inverting gain of 10 with Rg = 10 kΩ, Rf = 90 kΩ; the nearest E24 value, 91 kΩ, gives 10.1. Very large resistors add noise and offset from bias current; very small ones load the output.

Uses ideal op-amp formulas (Horowitz & Hill, The Art of Electronics 3rd ed. ch. 4; Texas Instruments, Op Amps for Everyone, SLOD006B) with a fixed output headroom per rail and a single-pole bandwidth of GBW ÷ noise gain. The difference amplifier assumes matched resistor pairs and the instrumentation amplifier a unity-gain difference stage. It leaves out finite open-loop gain, offset voltage, bias current, slew rate, noise, input common-mode limits, resistor tolerance (which sets a difference amplifier's common-mode rejection), load current and stability with capacitive loads. Check the datasheet of your op-amp for its real output swing.

Op-Amp Gain Calculator: Inverting, Non-Inverting, Summing, Difference and In-Amp

By FindMySum · Last reviewed

An operational amplifier on its own has an enormous, unpredictable gain. Add two resistors of negative feedback and the gain becomes a simple ratio that depends only on the resistors. This op-amp gain calculator covers the six circuits you meet most: the inverting and non-inverting amplifiers, the voltage follower, the summing amplifier, the difference amplifier and the three-op-amp instrumentation amplifier. It gives the gain in V/V and decibels, the output voltage for your input with clipping at the supply rails, the noise gain and bandwidth from the op-amp's gain-bandwidth product, and, for the circuits with one gain-setting resistor, the resistor you need for a target gain with the nearest standard value.

The two rules behind every formula

With negative feedback, an ideal op-amp drives its output so that its two inputs sit at the same voltage, and its inputs draw no current. Apply those two rules and Ohm's law to any circuit below and the gain formula falls out.

Non-inverting amplifier

The signal goes to the + input. Rf runs from the output to the − input and Rg from the − input to ground, forming a divider that feeds back Rg ÷ (Rf + Rg) of the output. For the inputs to match, the output must be

G = 1 + Rf ÷ Rg

The calculator opens with Rf = 47 kΩ and Rg = 10 kΩ, so G = 5.7, which is 20 × log₁₀ 5.7 = 15.12 dB. An input of 0.5 V gives 2.85 V out. The input resistance is the op-amp's own, very high, so the circuit doesn't load the source.

Inverting amplifier

The signal feeds the − input through Rin, and the + input is grounded. The − input sits at 0 V (a "virtual ground"), so the input current V ÷ Rin all flows through Rf:

G = −Rf ÷ Rin

The output is inverted. The source sees Rin as the load. With 100 kΩ and 10 kΩ the gain is −10, or 20 dB.

Voltage follower

Connect the output straight to the − input: the gain is exactly 1. It is used as a buffer, to drive a load from a source that can't supply current, such as a high-resistance divider or a sensor.

Summing amplifier

Several inputs, each through its own resistor, meet at the inverting input:

Vout = −Rf × (V1/R1 + V2/R2 + V3/R3)

With equal resistors it adds the inputs (and inverts the sum); with different resistors it weights them. Leave an input's resistor at 0 in the calculator to switch it off.

Difference amplifier

One op-amp and four resistors subtract two voltages. With matched pairs (R1 = R3 = Rin, R2 = R4 = Rf),

Vout = (Rf ÷ Rin) × (V2 − V1)

It is used to measure current through a shunt resistor or to remove a common offset. The resistor matching sets how well it ignores the voltage common to both inputs.

Instrumentation amplifier

Two non-inverting buffers feeding a difference amplifier give very high input resistance on both inputs and a gain set by one resistor:

Vout = (1 + 2R ÷ Rg) × (V2 − V1)

for the classic three-op-amp circuit with a unity-gain difference stage. Integrated in-amps print their own version of this equation (the internal R varies), so use the datasheet's for a specific part.

Gain in decibels

Voltage gain in dB is 20 × log₁₀ |G|, because power is proportional to voltage squared. A gain of 10 is 20 dB, 100 is 40 dB, and 1 is 0 dB. An inverting amplifier's minus sign is a phase shift of 180°, not a negative dB value.

Output clipping

No op-amp can drive its output past its supply rails, and older bipolar parts stop 1 to 2 V short of each. The calculator takes your supply voltages and a headroom per rail (1.5 V by default; set 0 for a rail-to-rail part), works out the swing limits, and clips the output at them. The transfer chart shows the output rising with the input at the set gain until it flattens at the limits.

Bandwidth and the gain-bandwidth product

An op-amp's open-loop gain falls with frequency. For most general-purpose op-amps, the product of closed-loop gain and bandwidth is roughly constant: the gain-bandwidth product, GBW, on the datasheet. The −3 dB bandwidth is

f = GBW ÷ noise gain

where the noise gain is 1 + Rf ÷ Rin for both the inverting and the non-inverting amplifier. That is why an inverting amplifier with a gain of −1 has the same bandwidth as a non-inverting one with a gain of 2. A 1 MHz op-amp at a gain of 5.7 reaches about 175 kHz. The summing amplifier's noise gain uses the parallel combination of all its input resistors, so adding inputs narrows the bandwidth.

Choosing resistors

Switch "Solve for" to the resistor and enter a target gain: the calculator returns the Rf (or the in-amp's R) for your other resistor and rounds it to the nearest E12, E24 or E96 value, with the gain that value actually gives. Keep resistors between about 1 kΩ and 1 MΩ: smaller ones load the output and waste current, larger ones add thermal noise and turn bias current into offset voltage.

What the calculator leaves out

It treats the op-amp as ideal apart from the output swing and a single-pole bandwidth. Finite open-loop gain, offset voltage, bias current, slew rate, noise, the input common-mode range and resistor tolerance all move a real circuit away from these numbers, most at high gain and high frequency.

More questions

What are the golden rules of an ideal op-amp?

With negative feedback, an ideal op-amp adjusts its output so that the voltage difference between its two inputs is zero, and its inputs draw no current. Every gain formula on this page follows from those two rules and Ohm's law. They stop being true when the output clips or the signal is faster than the op-amp can follow.

Why put a resistor on the non-inverting input of an inverting amplifier?

Bipolar op-amps draw a small bias current into each input. A resistor equal to Rin in parallel with Rf from the non-inverting input to ground makes both inputs see the same resistance, so the bias currents cause matching voltage drops that cancel. With FET-input op-amps the bias current is tiny and the resistor is usually left out.

What is common-mode rejection in a difference amplifier?

A voltage that appears on both inputs at once (common mode) should not reach the output. With perfectly matched resistors it doesn't, but a 1% mismatch lets a fraction of it through. Resistor matching, not the op-amp, usually limits a discrete difference amplifier's rejection, which is why integrated difference and instrumentation amplifiers use laser-trimmed resistors.

Can an op-amp run from a single supply?

Yes, with the negative rail at 0 V. The output then can't go below ground (or a little above it, for older parts), so AC signals are biased at mid-supply with a divider and coupling capacitors. Choose a single-supply or rail-to-rail op-amp whose input range includes ground.

What is the difference between gain-bandwidth product and slew rate?

Gain-bandwidth product limits small signals: the gain falls as frequency rises. Slew rate limits large signals: the output can only change so many volts per microsecond, so a big sine wave distorts into a triangle before the bandwidth limit is reached. The full-power bandwidth is slew rate ÷ (2π × peak output voltage).

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy