Guide
Op-amp gain: inverting, non-inverting and differential stages, bandwidth and clipping
An operational amplifier has an enormous gain on its own, so circuit designers wrap it in negative feedback and let two resistors set the gain precisely. The formulas are short, but a design also has to account for the input source, the supply limits and the bandwidth. This calculator covers the four standard stages and shows the output voltage, the gain in dB, the input impedance and the bandwidth.
Feedback and the ideal op-amp
With negative feedback an ideal op-amp keeps its two inputs at the same voltage and draws no input current. Everything else follows from that. In the inverting amplifier the input goes through Rin to the inverting input, and Rf feeds back from the output to the same node, which gives a gain of −Rf / Rin. In the non-inverting amplifier the signal drives the non-inverting input and the resistors form a divider on the feedback, so the gain is 1 + Rf / Rin.
The four stages
The tool offers an inverting amplifier, a non-inverting amplifier, a voltage follower and a differential amplifier. The follower has a gain of 1 and is used to buffer a high-impedance source. The differential amplifier amplifies the difference between two signals, V2 − V1, by R2 / R1 when its resistors are matched in pairs. Matching matters: a mismatch of 1% can ruin the rejection of signals common to both inputs.
Input impedance
An inverting stage presents an input impedance equal to Rin, so it loads the source, and a 10 kΩ input resistor draws current from a sensor. A non-inverting stage presents the very high impedance of the op-amp’s own input, which is why it suits high-impedance sources. The differential stage presents about twice Rin differentially. The page states the figure for the circuit you choose.
Output voltage and clipping
Enter the input voltage and the output swing limit, usually a volt or two inside the supply rails. The ideal output is gain × input. If it exceeds the limit the page shows both the ideal and the clipped output and warns. For an inverting gain of −10 with a 0.25 V input the output is −2.5 V, well inside a 10 V limit. A gain of 100 with a 0.5 V input would clip.
Bandwidth
The usable bandwidth is the gain-bandwidth product divided by the noise gain, which for the inverting and non-inverting stages is 1 + Rf / Rin. With a 1 MHz op-amp, the inverting stage of gain −10 has a noise gain of 11, so its bandwidth is 90.9 kHz. The non-inverting stage with a gain of 11 on a 3 MHz op-amp gives 273 kHz. Choose an op-amp with at least ten times the bandwidth you need.
Designing Rf
In design mode, choose inverting or non-inverting, set Rin and the wanted gain, and the tool finds Rf. For a non-inverting gain of 5 with Rin = 10 kΩ, Rf must be 40 kΩ. It rounds to the nearest E96 value, 40.2 kΩ, which gives a gain of 5.02, 14.01 dB, with a bandwidth of 199 kHz on a 1 MHz part. A non-inverting stage cannot have a gain below 1.
Limits
These are the ideal equations. A real op-amp has input offset voltage, bias current, noise, slew rate, finite open-loop gain and a limited common-mode range, and capacitive loads can make it unstable. The tool does not simulate those effects. Resistors of about 1 kΩ to 1 MΩ usually behave well; outside that range offset and noise grow.
Related tools
- Voltage Divider Calculator sets the bias and scaling around an op-amp.
- Ohm’s Law Calculator covers the currents in the resistors.
- dB to Ratio Converter converts gain in decibels to a plain ratio.
- Capacitor Code Calculator designs the RC filters added to an amplifier.
Checked against the current version of the Op-Amp Gain Calculator on .

