ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

Op-amp gain calculator: inverting and non-inverting

Get the gain of an inverting or non-inverting op-amp amplifier, in times and in dB, and the output for a given input.

Op-amp gain

For an ideal op-amp with negative feedback. Real op-amps lose gain at high frequency: bandwidth ≈ gain-bandwidth product ÷ gain.

Inverting: −R_f / R_in. Non-inverting: 1 + R_f / R_in.

How it works

  • Inverting: gain = −Rf / Rin.
  • Non-inverting: gain = 1 + Rf / Rin.
  • Gain in dB = 20 × log₁₀(|gain|). The output cannot go beyond the supply rails.

Worked example

Inverting with Rf = 10 kΩ and Rin = 1 kΩ: gain = −10 (20 dB), so 0.5 V in gives −5 V out.

Common questions

Why is the inverting gain negative?

The output is flipped: a rising input gives a falling output. The size of the gain is still Rf / Rin.

Why is my real output lower than calculated?

It may be hitting the supply rails, or the op-amp may run out of bandwidth at high frequencies.

More calculators