Op-Amp Gain and Bandwidth Calculator

Calculate inverting, non-inverting, difference and summing gain. Check bandwidth, slew rate, output swing and DC errors with a schematic and animated sine.

#bias current #common-mode voltage #gain-bandwidth product #op-amp #periodic steady state #slew rate

This op amp gain calculator checks a resistor-defined amplifier before you build it. Engineers and students can compare an inverting stage, a non-inverting stage, a matched difference amplifier, or a two-input inverting summer. It connects the familiar resistor-ratio equations to the limits that decide whether the output can reproduce a real signal.

Choose the topology, enter the input and feedback resistances, and set the sine-wave peak amplitude and frequency. The non inverting amplifier calculator uses R1 as the resistor from the inverting node to ground. In difference mode, R3 equals R1 and R4 equals Rf: both ratios are matched. The input amplitude and DC level then describe V2 minus V1, split equally about the source common-mode voltage. In summing mode, set the second input's amplitude, DC level, phase, and resistor separately.

Use exact resistances to check a schematic, or select E12, E24, or E96 to replace the entered values with nearby preferred values. The resistor table and schematic show the values actually used. Rounding is independent for each resistor, so the resulting gain can change. Difference-mode ratios remain matched by construction; resistor tolerance and common-mode rejection degradation are outside this calculation.

Enter the op amp's gain-bandwidth product, slew rate, supply rails, and output headroom at your intended load. This op amp bandwidth calculator divides gain-bandwidth product by noise gain, which differs from signal gain in inverting and summing stages. The Bode plots show the dominant-pole magnitude and extra phase lag. Compare the requested low-frequency output with the attenuated linear sine and the illustrative output after slew and swing limits. Press play to follow the same instant through the waveform.

The DC error section uses signed input offset and bias currents. Resistance balancing cancels equal bias currents in an ideal inverting or summing stage; unequal currents still leave an error. A non-inverting source resistance can also produce an output offset and move the input-pin voltage outside its common-mode range. The reported swing margin includes the calculated DC output shift.

Use the input common-mode limits from the data sheet as a separate check. A valid output swing alone does not prove that the input pins remain in range. The default values describe a generic 3 MHz, 1.5 V/µs amplifier on ±15 V supplies; they are editable assumptions, not a guaranteed part specification.

This tool assumes a dominant-pole voltage-feedback op amp, low-impedance signal sources except for the stated bias calculation, and resistive feedback. It does not predict phase margin, capacitive-load stability, output-current limiting, noise, thermal drift, distortion, or saturation recovery. Check the chosen device's data sheet and use a circuit simulation or measurement when those effects matter.

How it is calculated

Resistive gains follow the ideal op-amp node equations in TI Op Amps for Everyone, chapter 3: equal input voltages and no signal current into the pins. With k=Rf/R1k=R_f/R_1, the inverting gain is −k-k, non-inverting gain is 1+k1+k, matched difference gain is kk applied to V2−V1V_2-V_1, and the summer is −Rf(V1/R1+V2/R2)-R_f(V_1/R_1+V_2/R_2). Difference mode fixes R3=R1R_3=R_1 and R4=RfR_4=R_f with the divider returned to ground. Summer inputs share one frequency; their signed phasors add before amplitude and phase are extracted.

Set the signal sources to zero to find noise gain: N=1+Rf/R1N=1+R_f/R_1, with Rf/R2R_f/R_2 added for the summer. The dominant-pole approximation gives fc=GBW/Nf_c=GBW/N and H(f)=1/(1+jf/fc)H(f)=1/(1+jf/f_c). The Bode magnitude is for the primary input; the phase chart shows the additional pole lag. Inverting polarity adds 180° separately. TI SBOA270C and SBOA271A, design steps on p. 2, provide independent worked checks.

For sine peak VpV_p, the required slew rate is 2Ï€fVp2\pi fV_p and the full-power frequency is SR/(2Ï€Vp)SR/(2\pi V_p). The requested peak uses low-frequency gain; the slew utilization uses the attenuated linear peak. Swing limits are the rails moved inward by the entered headrooms, and the swing margin includes the output DC level.

The signed output error is NVOS+RfI−−NR+I+NV_{OS}+R_f I_- - N R_+ I_+. Current is positive into a pin, and positive offset raises the output. With zeroed ideal sources, R−=Rf/NR_-=R_f/N; balancing R+=R−R_+=R_- cancels equal signed currents. Difference mode has this balance inherently; non-inverting mode uses the entered source resistance. The + input pin DC voltage is its unloaded Thevenin voltage minus I+R+I_+R_+ in every topology; this loaded voltage is used in the common-mode margin. See SLOD006B chapters 10–11, especially printed p. 11-10 (attached p. 180), for offset, bias definitions and source loading.

The waveform uses a behavioral single pole with each sample increment bounded by SR ΔtSR\,\Delta t and then clamped to the output swing limits. The initial state is solved from the one-cycle fixed point. Two bracketed searches, each capped at 40 iterations of 256 sample intervals, locate the ends of the periodic-state interval; its midpoint avoids arbitrary DC offsets when severe sampled slew clamping makes the fixed point non-unique. An analytical fast path handles unconstrained linear operation. A canonical phase is solved first and the periodic samples are then shifted to the requested phase, avoiding phase-dependent startup transients. The canonical cycle closure is checked independently before wrapping; a residual above 0.1 µV produces a warning. The finite iteration budget bounds runtime. This remains an illustration of limiting, not a distortion or saturation-recovery prediction.

Preferred resistor selection minimizes absolute resistance difference, checks adjacent decades and breaks ties toward the lower value. E12/E24 values follow Vishay Sfernice Standard Ohmic Values; E96 is generated from the rounded three-significant-digit geometric progression. Suggestions use E24 when Exact is selected. No standard table or figure is reproduced.

Assumptions

  • A dominant-pole, voltage-feedback op amp with sufficiently high open-loop DC gain; fc≈GBW/Nf_c\approx GBW/N.
  • Ideal, low-impedance signal sources; the non-inverting source resistance affects both output bias error and input common-mode voltage. No source capacitance or parasitic feedback poles.
  • Difference resistors have exactly matched ratios and a grounded reference; resistor tolerance and CMRR error are omitted.
  • Input offset and bias currents are signed, constant values. Common-mode checks include the DC bias-current drop at the + input, with the linear signal amplitude; input protection and offset-induced differences between pins are omitted.
  • Symmetric, constant slew rate and hard output swing limits. Headrooms must be entered for the intended load, supply and temperature.
  • Defaults are a generic example, not guaranteed limits for a named op amp. Equations and original drawings are implemented here from circuit laws and the cited methods.

Where it applies

Use this calculator for preliminary gain and sinusoidal signal checks in resistive stages. Small-signal bandwidth is an estimate, not guaranteed data-sheet performance. A zero summed AC amplitude leaves the full-power frequency blank because no AC slew requirement remains.

The output waveform is an illustrative sampled behavioral model. It omits overload recovery, input protection, finite open-loop DC gain, noise, distortion, output-current limits and temperature drift. The displayed cycle is periodic within the stated closure tolerance. If the bounded solver does not verify closure, a warning is shown; use the analytical gain and limit checks until it clears. Phase shifting uses linear interpolation on the 256-interval cycle, so extrema between samples have finite resolution. Extremely low or high pole-to-signal ratios can make the behavioral shape less accurate.

Capacitive-load stability is not calculated. Load capacitance, high feedback resistance, input capacitance and layout can add poles and reduce phase margin. Check the device data sheet, any minimum stable noise gain, and the required isolation/compensation network. Current-feedback amplifiers are outside this model.

References

  • Texas Instruments, Ron Mancini (ed.), Op Amps for Everyone, SLOD006B (August 2002), chapters 3, 6, 10–11; p. 16-54. Open copy: https://web.mit.edu/6.101/www/reference/op_amps_everyone.pdf
  • Texas Instruments, Inverting Amplifier Circuit, SBOA270C, pp. 1–2. https://www.ti.com/lit/an/sboa270c/sboa270c.pdf
  • Texas Instruments, Non-Inverting Amplifier Circuit, SBOA271A, pp. 1–3. https://www.ti.com/lit/an/sboa271a/sboa271a.pdf
  • Texas Instruments, Difference Amplifier (Subtractor) Circuit, SBOA274A, pp. 1–2. https://www.ti.com/lit/an/sboa274a/sboa274a.pdf
  • Vishay Sfernice, Standard Ohmic Values, document 52022, revision 7 August 2013. https://www.vishay.com/docs/52022/stohval.pdf

Inputs

InputSymbolUnitDefault
Amplifier topologystageInverting
R1: input or ground resistor
R1 goes to the first signal in inverting, difference and summing stages; to ground in a non-inverting stage.
R_inkohm10
Rf: feedback resistorR_feedbackkohm100
R2: second summing input resistorR_secondkohm10
Use nearest preferred resistors
Select Exact to use the entered resistances. Other choices round each resistor independently to the nearest value by absolute resistance, including adjacent decades; a tie goes lower.
seriesExact entered values
Input sine peak amplitude
Difference mode: the peak of V2 − V1. Both legs split this signal equally about the common-mode voltage.
V_inputV0.5
Input DC level
Difference mode: DC value of V2 − V1.
V_dcV0
Sine frequencyf_signalHz20000
Second input sine peakV_secondV0.25
Second input DC levelV_second_dcV0
Second input phase relative to firstphase_seconddeg0
Source common-mode voltage
V1 = Vcommon − (V2 − V1)/2; V2 = Vcommon + (V2 − V1)/2.
V_commonV0
Op-amp gain-bandwidth product
Use the data-sheet value for a dominant-pole voltage-feedback op amp.
GBWMHz3
Symmetric slew rate
Use the smaller of the positive and negative data-sheet slew rates.
SRV/us1.5
Positive supply railV_supply_hiV15
Negative supply railV_supply_loV-15
Output headroom below positive rail
Take headroom from the output swing specification at your load and temperature; it is not a universal device constant.
head_hiV1.5
Output headroom above negative railhead_loV1.5
Lowest permitted op-amp input common mode
Absolute input pin voltage from the data sheet at the chosen supplies.
CM_loV-13
Highest permitted op-amp input common modeCM_hiV13
Signed input offset voltage
Positive offset is defined to raise the output by noise gain × offset.
V_osmV0.5
Bias current into + input
Positive means current flows into the op-amp pin; match signs from the device model.
I_plusnA20
Bias current into − inputI_minusnA20
Balance the + input resistance for bias current
Adds Rb = Rf/noise gain from + input to ground. Equal signed bias currents then cancel in the ideal DC model.
compensatetrue
Non-inverting source resistance
Thevenin source resistance: its I+ × R drop affects both output bias error and input-pin common-mode voltage. Input capacitance and source filtering are omitted.
R_sourcekohm0
Waveform cursor phase â–¶
Play follows one signal cycle. The waveform is solved once; only the cursor moves.
phase_playdeg90

Results

With the default inputs above, the calc gives:

ResultValue
Low-frequency signal gain-10
Noise gain (sets bandwidth)11
Closed-loop −3 dB bandwidth272.7273 kHz
Linear sine output peak4.9866 V
Output swing margin8.5079 V
Slew rate for requested output peak0.6283 V/us
Linear sine slope / available slew rate0.4178
Full-power frequency at requested peak47.7465 kHz
Signed output DC error5.5 mV
Input common-mode margin12.9998 V
Signal checkWithin the modeled signal limits

Checked against sources

Each case below was calculated by this calc and agrees with the value from its source (within the tolerance where one is shown).

TI inverting: −2 gain, 400 kHz, 14 V peak

Source: TI SBOA270C, pp. 1–2, design steps: R1 = 10 kΩ, R2 = 20 kΩ, gain −2 V/V, noise gain 3, GBP 1.2 MHz, BW 400 kHz; 14 V peak at 3 kHz requires about 0.26 V/µs. https://www.ti.com/lit/an/sboa270c/sboa270c.pdf

Inputs: Rf: feedback resistor = 20 kohm; Op-amp gain-bandwidth product = 1.2 MHz; Symmetric slew rate = 0.4 V/us; Sine frequency = 3,000 Hz; Input sine peak amplitude = 7 V; Signed input offset voltage = 0 mV; Bias current into + input = 0 nA; Bias current into − input = 0 nA; Output headroom below positive rail = 1 V; Output headroom above negative rail = 1 V; the others as above.

ResultSourceThis calc
Low-frequency signal gain-2-2
Noise gain (sets bandwidth)33
Closed-loop −3 dB bandwidth400,000 Hz400,000 Hz
Requested low-frequency output sine peak14 V14 V
Slew rate for requested output peak0.26 ± 0.005 V/us0.2639 V/us

TI non-inverting: +10 gain and slew requirement

Source: TI SBOA271A, p. 2, worked design: Rf = 9.09 kΩ, Rg = 1.01 kΩ, gain 10, GBP/G = 300 kHz, 10 V peak at 20 kHz requires 1.257 V/µs. The 323.2 kHz SPICE result on p. 3 uses a device macro-model and is not the single-pole estimate. https://www.ti.com/lit/an/sboa271a/sboa271a.pdf

Inputs: Amplifier topology = Non-inverting; R1: input or ground resistor = 1.01 kohm; Rf: feedback resistor = 9.09 kohm; Input sine peak amplitude = 1 V; Signed input offset voltage = 0 mV; Bias current into + input = 0 nA; Bias current into − input = 0 nA; the others as above.

ResultSourceThis calc
Low-frequency signal gain1010
Closed-loop −3 dB bandwidth300,000 Hz300,000 Hz
Requested low-frequency output sine peak10 V10 V
Slew rate for requested output peak1.257 V/us1.257 V/us

TI difference amplifier: 1.25 V differential gives 2.5 V

Source: TI SBOA274A, pp. 1–2: both input resistors 10 kΩ, feedback and positive-divider resistors 20 kΩ, gain 2 V/V; +1.25 V differential maps to +2.5 V output. Zero offset and bias isolate the published ideal transfer. https://www.ti.com/lit/an/sboa274a/sboa274a.pdf

Inputs: Amplifier topology = Difference (matched ratios); Rf: feedback resistor = 20 kohm; Input DC level = 1.25 V; Input sine peak amplitude = 0 V; Op-amp gain-bandwidth product = 1 MHz; Positive supply rail = 2.75 V; Negative supply rail = -2.75 V; Output headroom below positive rail = 0.1 V; Output headroom above negative rail = 0.1 V; Lowest permitted op-amp input common mode = -2.75 V; Highest permitted op-amp input common mode = 2.75 V; Signed input offset voltage = 0 mV; Bias current into + input = 0 nA; Bias current into − input = 0 nA; the others as above.

ResultSourceThis calc
Low-frequency signal gain22
Nominal output DC2.5 V2.5 V
Output DC including offset and bias error2.5 V2.5 V

TI handbook: 5 V peak-to-peak at 100 kHz

Source: TI Op Amps for Everyone SLOD006B, printed p. 16-54 / attached page 338: a 100 kHz, 5 V peak-to-peak sine requires at least 1.57 V/µs. This checks the amplitude-frequency requirement, independent of the filter topology.

Inputs: Amplifier topology = Non-inverting; Rf: feedback resistor = 40 kohm; Sine frequency = 100,000 Hz; Signed input offset voltage = 0 mV; Bias current into + input = 0 nA; Bias current into − input = 0 nA; the others as above.

ResultSourceThis calc
Slew rate for requested output peak1.57 ± 0.002 V/us1.571 V/us

Regression: bias loading takes the + input below common-mode range

Source: Independent reviewer regression: 1 µA into the + pin through a 1 MΩ source drops its DC voltage by 1 V, from 0 V to −1 V; the lower common-mode limit is −0.5 V. Expected values are Ohm's-law/KCL calculations, not published worked numbers. TI SLOD006B printed p. 11-10 (attached p. 180) describes this source-loading mechanism. https://web.mit.edu/6.101/www/reference/op_amps_everyone.pdf

Inputs: Amplifier topology = Non-inverting; Rf: feedback resistor = 10 kohm; Non-inverting source resistance = 1,000 kohm; Bias current into + input = 1,000 nA; Bias current into − input = 0 nA; Signed input offset voltage = 0 mV; Input sine peak amplitude = 0 V; Lowest permitted op-amp input common mode = -0.5 V; the others as above.

ResultSourceThis calc
Input-pin DC including positive bias-current loading-1 V-1 V
Input common-mode margin-0.5 V-0.5 V
Output DC including offset and bias error-2 V-2 V

Related Resources

Responses

Your email address will not be published. Required fields are marked *

L ading...