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.
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
| Configuration | Gain formula | Phase inversion |
|---|---|---|
| Inverting amplifier | −Rf / Rin | Yes (180°) |
| Non-inverting amplifier | 1 + Rf / Rin | No |
| Voltage follower (unity gain buffer) | 1 | No |
| Summing amplifier | −Rf × Σ(Vᵢ / Rᵢ) | Yes (each input) |
| Difference amplifier (balanced network) | Rf / Rin | No |
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
| Parameter | Ideal op-amp | Real op-amp (typical) |
|---|---|---|
| Open-loop gain | ∞ | 100–140 dB (×10⁵–10⁷) |
| Bandwidth | ∞ | Limited by GBW (kHz–MHz) |
| Input offset voltage | 0 V | 0.1–10 mV |
| Input impedance | ∞ | 10 kΩ–10 TΩ (depends on type) |
| Output impedance | 0 Ω | 1–100 Ω (open loop) |
| Slew rate | ∞ | 0.5–6,000 V/µs (depends on type) |
| Output voltage swing | Rail-to-rail | 1–2 V below rails (typical) |