Figure 1: Op-Amp Gain Calculator — enter values to calculate the result with step-by-step workings.
Table of Contents
How Op-Amp Gain Works
An op-amp is a high-gain differential amplifier. With negative feedback (a resistor from output to inverting input), the gain becomes set entirely by external resistor ratios — independent of the op-amp’s internal gain. This is why op-amp circuits are predictable, stable, and easy to design. The calculator above computes gain, dB, phase, and input impedance for inverting, non-inverting, and differential configurations.
The Transistor Biasing Calculator designs discrete amplifiers where gain depends on transistor parameters. Op-amps eliminate that dependency through feedback, trading simplicity for the cost of a dedicated IC.
The Three Configurations
Non-inverting: Av = 1 + Rf/Rin, phase = 0°, Zin = very high
Differential: Av = Rf/Rin, phase = 0°, Zin = Rin
Example: Inverting ×−10
Av = −10k/1k = −10
dB = 20 log(10) = 20 dB
Phase = 180° (output inverted)
Zin = 1 kΩ (virtual ground at inverting input)
A 100 mV input produces a −1 V output. The BJT Gain Calculator shows that achieving 20 dB voltage gain with a discrete BJT requires careful biasing and RC/RE selection.
Example: Non-Inverting ×11
Av = 1 + 10k/1k = 11
Zin = Very high (op-amp input impedance, typically >1 MΩ)
Non-inverting has higher input impedance — use it for high-impedance sources (sensors, piezo pickups). The Emitter Resistor Calculator shows how discrete amplifiers with RE unbypassed also achieve predictable (but lower) gain from a resistor ratio.
Example: Unity Gain Buffer
Av = 1 (output follows input exactly)
Used to isolate a high-impedance source from a low-impedance load. The op-amp provides current gain without voltage gain. The MOSFET Gate Resistor Calculator can design the gate drive for a MOSFET buffer that serves a similar isolation purpose at higher power levels.
Gain-Bandwidth Product
Every op-amp has a gain-bandwidth product (GBW): gain × bandwidth = constant. A 1 MHz GBW op-amp at gain = 10 has only 100 kHz bandwidth. At gain = 100, only 10 kHz. For wideband amplifiers, choose an op-amp with GBW well above your required gain × bandwidth. The 555 Timer Calculator generates square waves up to 500 kHz without the bandwidth limitations of linear amplifiers.
Rail-to-Rail and Saturation
Standard op-amps cannot swing their output to the supply rails — they saturate 1–2 V below V+ and above V−. Rail-to-rail op-amps swing within 50–200 mV of the rails. For single-supply circuits (V+ = 5V, V− = 0V), rail-to-rail output is essential to use the full voltage range. The LM317 Resistor Calculator handles a related output voltage limitation where the regulator needs 2–3 V of headroom.
Frequently Asked Questions
What is the difference between inverting and non-inverting?
What is a unity gain buffer?
What limits the gain?
What about rail-to-rail output?
How do I choose Rf and Rin?
Related Calculators
Browse all Electronics Calculators →