Skip to content
Toolcroft

Science & Engineering

Op-Amp Calculator - Inverting, Non-Inverting & Difference Gain

Calculate op-amp gain for inverting, non-inverting, and difference amplifier configurations. Enter Rf and Rin to get the gain, or supply input voltage to compute the output.

Your inputs are saved in this browser only. No data is ever sent to a server, and saved values won't be visible in other browsers or devices.

Gain

-10.0000

Output Voltage (Vout)

-10.0000 V

Op-Amp Configurations

Inverting: Gain = −Rf / Rin. The output is inverted relative to the input.

Non-Inverting: Gain = 1 + Rf / Rin. The output is in phase with the input.

Difference: For a symmetric resistor network (R1=R3, R2=R4), the gain equals Rf / Rin and the output represents the amplified difference between two inputs.

Gain formulas summary

ConfigurationGain formulaPhase inversion
Inverting amplifier−Rf / RinYes (180°)
Non-inverting amplifier1 + Rf / RinNo
Voltage follower (unity gain buffer)1No
Summing amplifier−Rf × Σ(Vᵢ / Rᵢ)Yes (each input)
Difference amplifier (balanced network)Rf / RinNo

Bandwidth limitation

Every op-amp has a fixed Gain-Bandwidth Product (GBW): for a given device, Gain × Bandwidth = constant. This means higher closed-loop gain comes at the cost of usable bandwidth.

Example: the TL071 has GBW ≈ 3 MHz. At a closed-loop gain of 10, the −3 dB bandwidth is 300 kHz. At gain 100, bandwidth drops to 30 kHz. At gain 1000, only 3 kHz - too narrow for audio applications. Always check GBW against your required gain and signal frequency.

Active filter configurations

Op-amps enable active filters with gain and controllable frequency response, unlike passive RC filters which have insertion loss. Two common topologies:

  • Sallen-Key: uses two RC stages and one op-amp in non-inverting configuration. Simple, low component count, good for low-Q (Butterworth) filters. Cutoff frequency: fc = 1 / (2π√(R1·R2·C1·C2)).
  • MFB (Multiple Feedback / Infinite Gain): uses one op-amp in inverting configuration with three passive elements in the feedback path. Better suited for higher-Q (Chebyshev) filters. More sensitive to component tolerances but provides more design flexibility.

Real vs. ideal op-amp differences

ParameterIdeal op-ampReal op-amp (typical)
Open-loop gain100–140 dB (×10⁵–10⁷)
BandwidthLimited by GBW (kHz–MHz)
Input offset voltage0 V0.1–10 mV
Input impedance10 kΩ–10 TΩ (depends on type)
Output impedance0 Ω1–100 Ω (open loop)
Slew rate0.5–6,000 V/µs (depends on type)
Output voltage swingRail-to-rail1–2 V below rails (typical)