Op-Amp Simulator Online: Gain and Bode Plot

An operational amplifier (op-amp) is a high-gain differential amplifier that, with negative feedback, gives a precisely set gain. In the inverting configuration the closed-loop gain is Av=−Rf/RinA_v = -R_f/R_{in} and in the non-inverting one Av=1+Rf/RinA_v = 1 + R_f/R_{in}. The output is limited by the supply rails, and the gain-bandwidth product limits the frequency range.

  • Power off
  • Input path
  • Feedback path
  • Output
  • Drag to rotate

Parameters

Amplifier configuration, resistors and op-amp ratings

Editable

Closed-loop gain

-4.7 V/V (13.4 dB)

Educational single-pole op-amp model · Ideal input stage, finite bandwidth and slew rate

Live values

Off

0.0 s

Closed-loop gain-4.7V/V
Output voltage (peak)Power off
Closed-loop bandwidth175.4kHz
Full-power bandwidth—

Charts

Change the resistors, input and frequency to move the operating point on the transfer line and on the gain curve.

Transfer characteristic · Vout–Vin

A line with slope equal to the gain, flattened at the supply rails

Frequency response · gain vs frequency

Closed-loop gain in dB from a single-pole model, 3 dB down at the bandwidth

Set the feedback resistors and watch how gain, clipping at the supply rails, bandwidth and slew rate shape the amplified signal.

What is an operational amplifier?

A high-gain block tamed by feedback

An operational amplifier (op-amp) is a high-gain differential amplifier that, with negative feedback, gives a precisely set gain. In the inverting configuration the closed-loop gain is Av=−Rf/RinA_v = -R_f/R_{in} and in the non-inverting one Av=1+Rf/RinA_v = 1 + R_f/R_{in}. The output is limited by the supply rails, and the gain-bandwidth product limits the frequency range.

Saturation, bandwidth and slew rate

A real op-amp cannot produce more than its supply allows. When the ideal output exceeds the rails, it clips at a level a little inside ±Vsupply, and the waveform flattens. Speed is limited too: the gain-bandwidth product means the closed-loop bandwidth is roughly GBW divided by the gain, so a gain of 100 on a 1 MHz part leaves only about 10 kHz. Slew rate adds a separate limit on how fast the output voltage can change, which distorts large, fast signals into triangles.

More about this simulator

Where it is used

Op-amps are found wherever an analog signal must be amplified, filtered or conditioned: sensor preamplifiers, active filters, audio stages, buffers, integrators, comparators and the control loops of power supplies. Choosing one means balancing gain-bandwidth product, slew rate, input offset and noise, and supply range against cost. A general-purpose part such as the LM358 or TL072 is adequate for most hobby circuits, while precision and high-speed applications call for specialized devices. Run a hands-on op-amp simulation: this free op-amp simulator works online in your browser, with live readouts beside the 3D model. Compare it with the NPN transistor simulator and the resistor simulator. The glossary defines closed-loop gain.

Frequently asked questions

Why does the output of an op-amp clip?
The output stage cannot swing beyond the supply voltages, and most parts stop slightly short of them. If the input times the gain asks for more than that, the output saturates at a rail and the waveform is flattened. Reduce the gain, lower the input amplitude or raise the supply to restore linear operation.

What you will learn

  • Calculate the closed-loop gain of the inverting and non-inverting configurations from Rf and Rin and predict when the output is phase-inverted.
  • Predict the closed-loop bandwidth by dividing the gain-bandwidth product by the noise gain 1 + Rf/Rin, and explain why more gain means less bandwidth.
  • Determine the input amplitude at which the output clips at the rails for a given supply voltage and gain.
  • Distinguish slew-rate limiting from bandwidth roll-off and estimate the full-power bandwidth from the slew rate and output swing.
Model assumptions & references

Model assumptions and limitations

  • The low-frequency gain is ideal, exactly −Rf/Rin or 1 + Rf/Rin; finite open-loop DC gain, input offset voltage, bias currents, noise and loading of the source or output are not modelled.
  • The frequency response has a single pole: the closed-loop bandwidth is GBW/(1 + Rf/Rin) in both configurations and the gain falls as 1/√(1 + (f/fc)²). Only the magnitude is applied; the 45° phase lag at the corner is not shown.
  • The output clips hard at ±(Vs − 1.5 V) on symmetric rails, so a ±12 V supply limits it to about ±10.5 V. At a supply of 1.5 V or less the amplifier does not operate and the output stays at 0 V.
  • Slew limiting is assumed once the required slope 2πf·Vpeak exceeds the slew rate; the sine then switches abruptly to a triangle with a peak of at most SR/(4f), whereas a real output changes shape gradually.
  • The full-power bandwidth is computed as SR/(2π(Vs − 1.5 V)), the highest frequency at which a sine with full rail swing is not slew limited.
  • The input is a sine of fixed peak (a DC level at 0 Hz) and only the periodic steady-state output is computed; start-up transients, recovery from saturation and temperature effects are not included.

References

  • Microelectronic Circuits — Adel S. Sedra, Kenneth C. Smith. Covers the inverting and non-inverting op-amp configurations, the gain-bandwidth product, slew rate and full-power bandwidth used in this simulator.
  • The Art of Electronics — Paul Horowitz, Winfield Hill. Gives a practical treatment of op-amp feedback, output swing limits near the supply rails and slew rate.
  • Design with Operational Amplifiers and Analog Integrated Circuits — Sergio Franco. Explains the dynamic limitations of op-amps, including the single-pole frequency response, noise gain and slew-rate distortion.