Op-Amp Gain Calculator

Calculate inverting and non-inverting op-amp gain, find a feedback resistor for a target gain, and check the output voltage against swing limits.

Amplifier circuit

Calculate
V
V
Output swing limits
V
V
VinVoutVrefRgRf

Gain and output

Closed-loop gain
10 V/V
Ideal output
2 V

Within output swing limits

Calculate op-amp gain or choose a feedback resistor

Select an inverting amplifier, a non-inverting amplifier, or a voltage follower. Choose closed-loop gain to calculate what a pair of resistors will do, or choose feedback resistance to solve for the resistor that gives a target gain. The schematic identifies the input resistor Rᵢₙ, reference resistor Rg, and feedback resistor Rf where they apply. The voltage follower connects its output directly to the inverting input and has unity gain.

An inverting amplifier has a signed gain of −Rf/Rᵢₙ. A non-inverting amplifier has a gain of 1 + Rf/Rg. For example, a 10 kΩ reference resistor and a 90 kΩ feedback resistor give a non-inverting gain of 10 V/V. With a 0 V reference, an input of 0.2 V then gives an ideal output of 2 V.

Set the reference voltage and check output swing

The resistor circuits use Vout = Vref + A × (Vin − Vref), where A is the signed gain. In the inverting circuit, Vref goes to the non-inverting input. In the non-inverting circuit, Rg returns to Vref. Set the reference to 0 V for a ground-referenced circuit or enter the intended bias voltage for a biased signal.

Set the lower and upper output swing limits for the device and load you expect to use. The calculator shows the ideal output and limits that voltage if it falls outside the entered range. For example, if the ideal output is 6 V and the upper limit is 4.5 V, the limited output reads 4.5 V. Consult the device datasheet for output swing at your supply voltage and load.

What the ideal model covers

The calculator uses ideal resistor feedback and the output limits you set. Feedback resistance is calculated exactly from the target gain before display rounding. If you choose a nearby standard resistor, enter its value in gain mode to check the result. Check the real part’s input common-mode range, offset, bandwidth, slew rate, and output current separately.