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.
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 , the inverting gain is , non-inverting gain is , matched difference gain is applied to , and the summer is . Difference mode fixes and 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: , with added for the summer. The dominant-pole approximation gives and . 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 , the required slew rate is and the full-power frequency is . 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 . Current is positive into a pin, and positive offset raises the output. With zeroed ideal sources, ; balancing 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 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 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; .
- 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
| Input | Symbol | Unit | Default |
|---|---|---|---|
| Amplifier topology | stage | Inverting | |
| 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_in | kohm | 10 |
| Rf: feedback resistor | R_feedback | kohm | 100 |
| R2: second summing input resistor | R_second | kohm | 10 |
| 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. | series | Exact 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_input | V | 0.5 |
| Input DC level Difference mode: DC value of V2 − V1. | V_dc | V | 0 |
| Sine frequency | f_signal | Hz | 20000 |
| Second input sine peak | V_second | V | 0.25 |
| Second input DC level | V_second_dc | V | 0 |
| Second input phase relative to first | phase_second | deg | 0 |
| Source common-mode voltage V1 = Vcommon − (V2 − V1)/2; V2 = Vcommon + (V2 − V1)/2. | V_common | V | 0 |
| Op-amp gain-bandwidth product Use the data-sheet value for a dominant-pole voltage-feedback op amp. | GBW | MHz | 3 |
| Symmetric slew rate Use the smaller of the positive and negative data-sheet slew rates. | SR | V/us | 1.5 |
| Positive supply rail | V_supply_hi | V | 15 |
| Negative supply rail | V_supply_lo | V | -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_hi | V | 1.5 |
| Output headroom above negative rail | head_lo | V | 1.5 |
| Lowest permitted op-amp input common mode Absolute input pin voltage from the data sheet at the chosen supplies. | CM_lo | V | -13 |
| Highest permitted op-amp input common mode | CM_hi | V | 13 |
| Signed input offset voltage Positive offset is defined to raise the output by noise gain × offset. | V_os | mV | 0.5 |
| Bias current into + input Positive means current flows into the op-amp pin; match signs from the device model. | I_plus | nA | 20 |
| Bias current into − input | I_minus | nA | 20 |
| 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. | compensate | true | |
| 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_source | kohm | 0 |
| Waveform cursor phase â–¶ Play follows one signal cycle. The waveform is solved once; only the cursor moves. | phase_play | deg | 90 |
Results
With the default inputs above, the calc gives:
| Result | Value |
|---|---|
| Low-frequency signal gain | -10 |
| Noise gain (sets bandwidth) | 11 |
| Closed-loop −3 dB bandwidth | 272.7273 kHz |
| Linear sine output peak | 4.9866 V |
| Output swing margin | 8.5079 V |
| Slew rate for requested output peak | 0.6283 V/us |
| Linear sine slope / available slew rate | 0.4178 |
| Full-power frequency at requested peak | 47.7465 kHz |
| Signed output DC error | 5.5 mV |
| Input common-mode margin | 12.9998 V |
| Signal check | Within 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.
| Result | Source | This calc |
|---|---|---|
| Low-frequency signal gain | -2 | -2 |
| Noise gain (sets bandwidth) | 3 | 3 |
| Closed-loop −3 dB bandwidth | 400,000 Hz | 400,000 Hz |
| Requested low-frequency output sine peak | 14 V | 14 V |
| Slew rate for requested output peak | 0.26 ± 0.005 V/us | 0.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.
| Result | Source | This calc |
|---|---|---|
| Low-frequency signal gain | 10 | 10 |
| Closed-loop −3 dB bandwidth | 300,000 Hz | 300,000 Hz |
| Requested low-frequency output sine peak | 10 V | 10 V |
| Slew rate for requested output peak | 1.257 V/us | 1.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.
| Result | Source | This calc |
|---|---|---|
| Low-frequency signal gain | 2 | 2 |
| Nominal output DC | 2.5 V | 2.5 V |
| Output DC including offset and bias error | 2.5 V | 2.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.
| Result | Source | This calc |
|---|---|---|
| Slew rate for requested output peak | 1.57 ± 0.002 V/us | 1.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.
| Result | Source | This 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
Related articles
Related courses
IEC Electrical Schematics and Industrial Control Panels
5
Original price was: 42 €.21 €Current price is: 21 €.
Basic Electrical Controls & Diagram Reading
7
Original price was: 32 €.18 €Current price is: 18 €.
Modeling Electrical Motor Faults with FEM Simulation using ANSYS MAXWELL
3
Original price was: 50 €.15 €Current price is: 15 €.







Responses