1. Home
  2. Calculators
  3. Op-Amp Gain Calculator

Op-Amp Gain Calculator

For analog design and study: see the gain, the clipped output and the bandwidth of a standard op-amp stage.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Op-Amp Gain Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Inverting, non-inverting, follower and differential stages
  • Gain in V/V and dB
  • Output with clipping at the swing limit
  • Bandwidth from the gain-bandwidth product
  • Design mode that picks an E96 feedback resistor

Supported formats

Input

  • Typed numbers with SI prefixes (4.7k, 100n, 20m)

You get

  • On-screen results
  • Copyable text

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Op-Amp Gain Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It uses ideal op-amp equations; offset, slew rate, bias current and noise are not modelled.
  • The bandwidth estimate assumes a single-pole op-amp with a constant gain-bandwidth product.

Guide

Op-amp gain: inverting, non-inverting and differential stages, bandwidth and clipping

An operational amplifier has an enormous gain on its own, so circuit designers wrap it in negative feedback and let two resistors set the gain precisely. The formulas are short, but a design also has to account for the input source, the supply limits and the bandwidth. This calculator covers the four standard stages and shows the output voltage, the gain in dB, the input impedance and the bandwidth.

Feedback and the ideal op-amp

With negative feedback an ideal op-amp keeps its two inputs at the same voltage and draws no input current. Everything else follows from that. In the inverting amplifier the input goes through Rin to the inverting input, and Rf feeds back from the output to the same node, which gives a gain of −Rf / Rin. In the non-inverting amplifier the signal drives the non-inverting input and the resistors form a divider on the feedback, so the gain is 1 + Rf / Rin.

The four stages

The tool offers an inverting amplifier, a non-inverting amplifier, a voltage follower and a differential amplifier. The follower has a gain of 1 and is used to buffer a high-impedance source. The differential amplifier amplifies the difference between two signals, V2 − V1, by R2 / R1 when its resistors are matched in pairs. Matching matters: a mismatch of 1% can ruin the rejection of signals common to both inputs.

Input impedance

An inverting stage presents an input impedance equal to Rin, so it loads the source, and a 10 kΩ input resistor draws current from a sensor. A non-inverting stage presents the very high impedance of the op-amp’s own input, which is why it suits high-impedance sources. The differential stage presents about twice Rin differentially. The page states the figure for the circuit you choose.

Output voltage and clipping

Enter the input voltage and the output swing limit, usually a volt or two inside the supply rails. The ideal output is gain × input. If it exceeds the limit the page shows both the ideal and the clipped output and warns. For an inverting gain of −10 with a 0.25 V input the output is −2.5 V, well inside a 10 V limit. A gain of 100 with a 0.5 V input would clip.

Bandwidth

The usable bandwidth is the gain-bandwidth product divided by the noise gain, which for the inverting and non-inverting stages is 1 + Rf / Rin. With a 1 MHz op-amp, the inverting stage of gain −10 has a noise gain of 11, so its bandwidth is 90.9 kHz. The non-inverting stage with a gain of 11 on a 3 MHz op-amp gives 273 kHz. Choose an op-amp with at least ten times the bandwidth you need.

Designing Rf

In design mode, choose inverting or non-inverting, set Rin and the wanted gain, and the tool finds Rf. For a non-inverting gain of 5 with Rin = 10 kΩ, Rf must be 40 kΩ. It rounds to the nearest E96 value, 40.2 kΩ, which gives a gain of 5.02, 14.01 dB, with a bandwidth of 199 kHz on a 1 MHz part. A non-inverting stage cannot have a gain below 1.

Limits

These are the ideal equations. A real op-amp has input offset voltage, bias current, noise, slew rate, finite open-loop gain and a limited common-mode range, and capacitive loads can make it unstable. The tool does not simulate those effects. Resistors of about 1 kΩ to 1 MΩ usually behave well; outside that range offset and noise grow.

Checked against the current version of the Op-Amp Gain Calculator on .

Frequently asked questions

Why does an output stop at a voltage lower than my calculation?

An op-amp output cannot go beyond its supply rails, and a general-purpose part usually stops 1 to 2 volts short of each rail. The calculator compares the ideal output with the swing limit you enter, 10 V for a plus and minus 12 V supply, and shows the clipped value with a warning. Reduce the gain or the input amplitude, or use a rail-to-rail op-amp.

How is the bandwidth worked out?

An op-amp has a gain-bandwidth product, a single number from the data sheet such as 1 MHz for an LM358. Dividing it by the closed-loop noise gain gives the frequency at which the gain has fallen by 3 dB. For the non-inverting stage with a gain of 11 and a 3 MHz op-amp that is about 273 kHz. Higher gain therefore means lower bandwidth, and a stage that needs both may have to be split into two.

Why can a non-inverting amplifier not have a gain below 1?

Its gain is 1 + Rf ÷ Rin, which is never less than 1. For smaller gains use an inverting stage or a voltage divider in front.

Why does the bandwidth fall when I raise the gain?

An op-amp has a roughly constant gain-bandwidth product, so a stage with a gain of 100 has about one hundredth of the bandwidth of a follower.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.