Saved

Press the star next to a tool's name to save it.

All my tools

Op Amp Gain Calculator

Use this op amp gain calculator to find the gain, the gain in dB and the output voltage of inverting, non-inverting, summing and differential op amp circuits.

Restored your last values ·

V
V
V
V

Choose the circuit, then enter the resistor values in the same unit, such as ohms or kilohms. You get the gain, the gain in decibels and, if you enter input voltages, the output voltage. Add the supply voltage to see whether the output would clip.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose the amplifier, enter the resistors and the input voltage, then press Calculate.

See full result

An op amp gain calculator gives the closed-loop gain of the common operational amplifier circuits from their resistors: inverting, non-inverting, voltage follower, summing and differential. Enter the resistor values, and you get the gain, the gain in decibels and, if you add the input voltages, the output voltage. You can also give the supply voltage to see whether the output would hit the rail. It runs in your browser.

How to use the op amp gain calculator

  1. Choose the amplifier.
  2. Enter Rf and the input resistor, in the same unit.
  3. Add the input voltage or voltages, and the supply voltage, if you want the output.
  4. Press Calculate.

The ideal op amp

The Wikipedia article on operational amplifiers lists what is assumed of an ideal one: arbitrarily high open-loop gain, infinite input impedance and so zero input current, zero output impedance, an unbounded output voltage range and zero input offset voltage. With negative feedback, the output adjusts to make the difference between the two inputs zero, and the inputs draw no current.[1] These two rules give all the formulas below. The calculator applies them, so real parts only match when the feedback is much weaker than the open-loop gain, which is true for gains of up to a few hundred in ordinary circuits.

Inverting amplifier

The article on op amp applications says that the closed-loop gain of the inverting amplifier is Rf ÷ Rin, with the output given by Vout = −(Rf ÷ Rin) × Vin. The input impedance of this circuit is Rin, and the inverting input is a virtual ground.[2] With Rf = 10 kilohms and Rin = 1 kilohm, the gain is −10, or 20 decibels with the output inverted, and an input of 0.5 volts gives −5 volts. The calculator shows the sign, since the output of this circuit is the opposite of the input.

Non-inverting amplifier and the follower

For the non-inverting amplifier, the applications page gives Vout = (1 + R2 ÷ R1) × Vin, and the op amp article writes the closed-loop gain as 1 + Rf ÷ Rg, where Rf and Rg form the feedback divider. Its example is that with Vin = 1 volt and Rf equal to Rg, the output is 2 volts.[1][2] In the calculator, the input resistor box is Rg. A voltage follower has a gain of 1, with Vout = Vin, which makes it a buffer that has a high input impedance and a low output impedance.[2] The gain of the non-inverting circuit is never below 1.

Summing amplifier

The summing amplifier adds several inputs, each with its own resistor. The page gives Vout = −Rf × (V1 ÷ R1 + V2 ÷ R2 + … + Vn ÷ Rn). When all the input resistors are equal, it becomes −(Rf ÷ R1) × (V1 + V2 + … + Vn), and when they all equal Rf, the output is the plain sum with its sign reversed, −(V1 + … + Vn).[2] The calculator takes up to three inputs and shows the gain of each one. With Rf = 10 kilohms, R1 = 10 kilohms, R2 = 10 kilohms, V1 = 1 volt and V2 = 2 volts, the output is −3 volts.

Differential amplifier

The differential amplifier amplifies the difference between two inputs. The page gives Vout = (Rf ÷ R1) × (V2 − V1), valid when R1 ÷ Rf = R2 ÷ Rg, and it notes that the simple ratio Rf ÷ R1 is then the closed-loop gain.[2] With the unity case, the output is V2 − V1. In the calculator you enter Rf and R1 and the two voltages, and the calculator assumes that the other pair of resistors matches. With Rf = 10 kilohms, R1 = 2 kilohms, V1 = 1 volt and V2 = 3 volts, the gain is 5 and the output is 10 volts.

Gain in decibels

Gain in decibels is 20 times the base-10 logarithm of the magnitude of the voltage gain. The op amp page uses it only for an example, in which an open-loop gain of 100,000 corresponds to 100 decibels.[1] By the same formula, a gain of 10 is 20 decibels, a gain of 2 is 6.02 decibels and a follower is 0 decibels. The calculator shows the decibel value, and adds a note when the gain is negative, so that you know the output is inverted.

Saturation

An ideal op amp has an unbounded output range, but a real one cannot go beyond its supply. The article warns that even a few microvolts between the inputs, with no feedback, may drive the amplifier into clipping or saturation.[1] If you enter the supply voltage, the calculator compares the output with it and says when the result would clip. With a gain of −10 and an input of 2 volts, the formula gives −20 volts, which a 15 volt supply cannot deliver. Real op amps also stop a volt or two short of the rails, unless they are rail-to-rail types, so leave some margin.

Choosing the resistors

Pick resistor values in the range of a few kilohms to a few hundred kilohms for most circuits, since very small values load the source and very large ones add noise. The gain depends only on the ratio, so you can scale all the resistors together. Use tight-tolerance parts for the gain that you need, because a 1 percent error in a resistor gives about a 1 percent error in the gain.

Common mistakes

  • Mixing units. Use the same unit for all the resistors.
  • Forgetting the sign. The inverting and the summing circuits invert.
  • Expecting a gain below 1 from the non-inverting circuit. It is at least 1.
  • Ignoring the supply. The output cannot exceed the rails.

What next

Use this often? Add Op Amp Gain to your Home screen.

Frequently asked questions

What is an op amp gain calculator?

A tool that finds the closed-loop gain and output voltage of op amp circuits from their resistor values.

What is the gain of an inverting amplifier?

−Rf ÷ Rin. With 10 kΩ and 1 kΩ it is −10, so 0.5 V in gives −5 V out.

What is the gain of a non-inverting amplifier?

1 + Rf ÷ Rg. With Rf equal to Rg the gain is 2.

How do I convert gain to decibels?

20 × log₁₀ of the magnitude of the gain. A gain of 10 is 20 dB.

Why does the output clip?

A real op amp cannot go beyond its supply, so a result larger than the rails is not valid.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools