Op Amp Gain: explanation & equations

Gain is a key aspect of op amp circuit design: calculations can be undertaken for generic circuits or with more specific formulas for inverting & non-inverting amplifiers.


Op-amp Tutorial Includes:
Introduction     Op amp gain     Bandwidth     Op amp slew rate     Offset null     Input impedance     Output impedance     Current feedback op amp     Understanding specifications     How to choose an op amp     Op amp circuits summary    


One of the key aspects of the performance of operational amplifiers and their electronic circuit design is the gain. Operational amplifiers on their own offer huge levels of gain when used in what is termed an open loop configuration.

Under open loop conditions, the op amp gain may be anything upwards of 10 000, with some operational amplifiers having gain levels extending to well over ten times this figure. Even with op amps of the same type there may be large gain variations as a result of the fabrication processes used.

Whilst op amps themselves offer huge levels of gain, this gain is seldom used in this form to provide signal amplification - it would be hugely difficult to utilise as even very small input signals would drive the output to beyond the rail voltages with the resulting limiting or clipping of the output.

By using a technique known as negative feedback within the electronic circuit design, the huge levels of gain can be used to provide the high levels of performance required.



Video: Operational amplifier gain

Using the high gain of the op amp combined with the use of negative feedback can enable the overall electronic circuit design to have a flat frequency responses, low distortion, and very defined levels of gain for the overall electronic circuit design.

The overall gain of the electronic circuit design is not dependent upon the actual level of gain of the IC, but on that of the external components whose values can be accurately chosen.

In other op amp circuits, the feedback may be used to provide other effects such as filtering, and the like.

In some circumstances positive feedback may be used, but this is normally undertaken in a particular way to achieve a particular effect.

Op amp gain basics

The gain of the op amp circuit is one of the very important factors about the basic op amp and also the electronic circuit designs using them.

The high levels of gain enable these operational amplifiers to have very high levels of performance by using the gain in various ways. However it is necessary to understand the definitions of gain for op amps.

There are two main scenarios that can be considered when looking at op amp gain and electronic circuit design using these electronic components:

  • Open loop gain:   This form of gain is measured when no feedback is applied to the op amp circuit. In other words it is running in an open loop format. Gain figures for the op amp in this configuration are normally very high, typically between 10 000 and 100 000. This is the gain of the operational amplifier on its own.

    Figures are often quoted in the op amp data-sheets in terms of volts per millivolt, V/mV. Quoting the the gain in these terms enables the gain to be written in a more convenient format. 10 V/mV corresponds to a voltage gain of 10 000. It saves writing many zeros.

  • Closed loop gain:   This form of gain is measured when the feedback loop is operation, i.e. a closed loop. By applying negative feedback, the overall gain of the circuit is much reduced, and can be accurately tailored to the required level or to produce the required output format as in the case of filters, integrators, etc.. A few electronic components can be added to the op amp circuit to provide the required feedback.

    The gain is measured with the loop closed and provided there is a sufficient difference between the open loop and closed loop gain, the circuit will operate according to the feedback placed around it. In other words, provided the op amp has sufficient gain (which it will have) the gain of the overall circuit is defined by the negative feedback, and not by the gain of the operational amplifier itself.

    Although negative feedback is normally used for analogue circuits, there are instances where positive feedback is used. The most common application of this is for comparators where the output is required at one of two levels. The Schmitt trigger is one example where hysteresis is introduced into the system. In these applications, comparator ICs should be used rather than op amps because they are designed to operate in this mode.

One aspect closely associated with operational amplifier gain is the bandwidth and this has a huge impact on the performance of these integrated circuits.

The huge gain of operational amplifiers can lead to instability if steps are not taken to ensure that the op amp and its circuit remain stable, even with negative feedback applied.

With open loop gain levels in excess of 10 000 or much more, it is hardly surprising that feedback and instability becomes an issue.

A technique known as compensation is used. In early op amps, external electronic components were used to add the compensation, but in later chips, it was added internally.

In its basic terms a small capacitor is added to the internal elements of the op amp. This has the effect of reducing tendency to oscillate, but it also reduces the open loop bandwidth.

Closed feedback loop op amp gain and bandwidth.
Closed feedback loop op amp gain and frequency response.

Although the open loop bandwidth of the op amp circuit is reduced, once negative feedback has been applied, a sufficient level gain with a flat frequency response can be achieved for most purposes.


Generalised op-amp gain

Negative feedback is used to control the gain of the overall op amp circuit. There are many ways in which the feedback can be applied when designing an electronic circuit - it may be independent of frequency, or it may be frequency dependent to produce filters for example.

It is possible to produce a generalised concept for applying negative feedback. From this the more specific scenarios can be developed.

Generic op amp gain feedback configuration
Generic op amp negative feedback configuration

It is possible to calculate a general formula for the op amp gain in the circuit:

V sum = V in - B   V out

The output voltage can then be calculated from a knowledge of the input voltage, gain and feedback:

V out = A   V sum = A   V in - A   B   V out

This can now be used to generate the generic closed loop op amp gain equation.

V out V in = G = A 1   +   A B

Using this generic equation it is possible to develop equations for more specific scenarios. The feedback can be frequency dependent, or flat as required.

The two simplest examples of op amp circuits using feedback are the formats for inverting and non-inverting amplifiers.

Inverting op-amp gain

The circuit for the inverting op-amp circuit is shown below. This circuit has the output 180° out of phase with the input and also provides a virtual earth input.

The op amp circuit is quite straightforward using few electronic components: a single feedback resistor from the output to the inverting input, and a resistor from the inverting input to the input of the circuit. The non-inverting input is taken a ground point. This op amp circuit uses only two additional electronic components and this makes it very simple and easy to implement.

Basic inverting operational amplifier used in electronic cicuit design

Basic inverting operational amplifier circuit

It is easy to derive the op-amp gain equation. The input to the op-amp itself draws no current as far as our calculations are concerned as the impedance of each input to the amplifier will be well above 100kΩ and possibly well over 1MΩ. This means that any current flowing into the chip can be ignored.

From this we can see that the current flowing in the resistors R1 and R2 is the same, because no current is flowing out of the junction between the two resistors.

Using ohms law Vout /R2 = -Vin/R1. Hence the voltage gain of the circuit Av can be taken as:

A v = - R2 R1

As an example, an amplifier requiring a gain of ten could be built by making R2 47 k ohms and R1 4.7 k ohms.

Read more about . . . . the inverting op amp circuit.

Non-Inverting op-amp gain

The circuit for the non-inverting op-amp is shown below. It offers a higher input impedance than the inverting op amp circuit. Like the inverting op amp circuit, it only requires the addition of two electronic components: two resistors to provide the required feedback.

The non-inverting amplifier also has the characteristic that the input and output are in the same phase as a result of the signal being applied to the non-inverting input of the op amp.

Basic non-inverting operational amplifier circuit used in electronic ciuit design

Basic non-inverting operational amplifier circuit

The gain of the non-inverting circuit for the operational amplifier is also easy to determine during the electronic circuit design process. The calculation hinges around the fact that the voltage at both inputs is the same.

This arises from the fact that the gain of the amplifier is exceedingly high. If the output of the circuit remains within the supply rails of the amplifier, then the output voltage divided by the gain means that there is virtually no difference between the two inputs.

We can assume that for the purpose of our calculation, the input to the operational amplifier draws no current as the impedance of the chip inputs will be well above the resistor values used.

This means that the current flowing in the resistors R1 and R2 is the same. The voltage at the inverting input is formed from a potential divider consisting of R1 and R2, and as the voltage at both inputs is the same, the voltage at the inverting input must be the same as that at the non-inverting input.

This means that Vin = Vout x R1 / (R1 + R2). Hence the op amp gain equation for the voltage gain of the circuit Av can be taken as:

A v = 1 + R2 R1

As an example, an amplifier requiring a gain of eleven could be built by making R2 47 k ohms and R1 4.7 k ohms.

Op-amp gain is very easy to determine. The calculations for the different circuits is slightly different, but essentially both circuits are able to offer similar levels of gain, although the resistor values will not be the same for the same levels of op amp gain.

Read more about . . . . the non-inverting op amp circuit.

Op amp gain in other situations

It is normal to use operational amplifiers in linear applications with negative feedback, although this is not always the case. This utilises the very high gain of the open loop amplifier to provide repeatable performance governed by the external components.

Examples of these op amp circuits include amplifiers, filters, differentiators and integrators.

However it is also possible to use operational amplifiers with other forms of feedback to produce other effects.

One of the applications of using positive feedback within an op amp circuit to provide switching, for which comparators provide much better performance as they operator much faster and do not suffer from latching issues, but that does not mean that the basic principles of positive feedback do not apply. However the basic principles of feedback and gain still apply to this type of IC or circuit block.

That said, negative feedback is by the most widely used form of feedback for analogue, linear applications.

More Circuits & Circuit Design:
Op Amp basics     Op Amp circuits     Power supply circuits     Transistor design     Transistor Darlington     Transistor circuits     FET circuits     Circuit symbols    
    Return to Circuit Design menu . . .