Op-Amp Circuit Simulator Back
Circuit Simulator

Op-Amp Circuit Simulator

Choose from 6 fundamental op-amp topologies and visualize input/output waveforms, transfer curves, gain, bandwidth, and clipping behavior in real time.

Parameters
Circuit Type
R₁
R_f
Input Frequency
Range: 1 Hz – 100 kHz (log)
Input Amplitude V_in
V
Supply Voltage ±V_cc
V
Output clipping detected! Reduce gain or increase V_cc.
Results
Voltage Gain A_v
Gain [dB]
Input Impedance
Bandwidth BW
Input / Output Waveforms (Time Domain)
Wave
Transfer Curve V_out vs V_in
Transfer
Theory & Key Formulas

Inverting: $A_v = -\dfrac{R_f}{R_1}$ Non-Inverting: $A_v = 1 + \dfrac{R_f}{R_1}$

Voltage Follower: $A_v = 1$ Summing: $V_{out}= -R_f\!\left(\dfrac{V_1}{R_1}+\dfrac{V_2}{R_2}\right)$

Differentiator: $V_{out}= -R_f C \dfrac{dV_{in}}{dt}$ Integrator: $V_{out}= -\dfrac{1}{RC}\int V_{in}\,dt$

GBW product: $\text{BW}= \dfrac{\text{GBW}}{|A_v|}$ (GBW = 1 MHz assumed)

What is an Op-Amp Circuit?

🙋
What exactly is an operational amplifier, and why is it such a big deal in electronics?
🎓
Basically, it's a super-versatile integrated circuit that acts as a nearly perfect voltage amplifier. Its key feature is the ability to perform mathematical operations on signals—like addition, subtraction, and integration—which is where the name comes from. In practice, you'll find them in everything from audio gear to medical sensors. Try selecting the "Inverting Amplifier" in the simulator above and see how it flips the signal upside down.
🙋
Wait, really? It can do math? So the gain formulas like $A_v = -R_f / R_1$ are just the start? What's the deal with the "virtual short" concept I keep hearing about?
🎓
Exactly! The "virtual short" is the magic trick. An ideal op-amp adjusts its output to force the voltage difference between its two input pins to zero. This creates a "virtual ground" at the inverting input in many circuits. This is why the gain depends only on the external resistors, making the circuit stable and predictable. For instance, in the simulator, change R₁ and R_f sliders and watch the output amplitude change precisely according to that formula.
🙋
Okay, that makes sense. But the simulator also has a "Supply Voltage" control. What happens if I crank up the input signal too high?
🎓
Great question! That's where clipping happens. The op-amp's output can't exceed its power supply rails, ±V_cc. If your calculated output (gain × input) tries to go beyond that, the signal gets brutally chopped off. A common case is in audio systems, causing distortion. Try it: set a high gain with the resistors, then increase the "Input Amplitude" V_in. You'll see the clean sine wave turn into a flattened square wave at the top and bottom.

Physical Model & Key Equations

The core principle of an ideal op-amp in a negative feedback configuration is the virtual short condition, which leads to the fundamental gain equations. For the inverting amplifier, the current through R₁ equals the current through R_f.

$$ \frac{V_{in} - V_-}{R_1}= \frac{V_- - V_{out}}{R_f}$$

Since $V_- \approx V_+ = 0$ (virtual ground), this simplifies to the classic gain formula: $V_{out}= -\frac{R_f}{R_1}V_{in}$.

For the summing amplifier, the principle of superposition applies. The output is the weighted sum of the input voltages, inverted. Each input channel has its own resistor (R₁, R₂, etc.) connected to the virtual ground.

$$ V_{out}= -R_f \left( \frac{V_1}{R_1}+ \frac{V_2}{R_2} + \cdots \right) $$

Here, $V_1, V_2$ are the input voltages, and $R_1, R_2$ are their respective input resistors. This makes the circuit a precise analog adder, crucial for mixing signals.

Frequently Asked Questions

This is a phenomenon called clipping, which occurs when the output voltage of the operational amplifier attempts to exceed the power supply voltage range. Since the simulator allows you to change the power supply voltage, try lowering the input amplitude or increasing the power supply voltage.
In an inverting amplifier, the phase of the input signal is inverted by 180 degrees at the output, and the gain is calculated as -Rf/R1. In a non-inverting amplifier, the phase is not inverted, and the gain is 1+Rf/R1. Additionally, non-inverting amplifiers have a very high input impedance, placing less load on the signal source.
After changing the resistance values, be sure to click the "Update" button on the screen or press the Enter key after entering the value to confirm. Also, for an inverting amplifier, the gain will not be correctly reflected unless both R1 and Rf are set appropriately, and for a non-inverting amplifier, both R1 and Rf must be set appropriately.
The simulator assumes an ideal operational amplifier, but in real circuits, it is affected by frequency characteristics and noise. In particular, differentiator circuits tend to amplify high-frequency noise, so try setting the input signal frequency lower, or wait a few seconds until the waveform stabilizes before checking.

Real-World Applications

Sensor Signal Conditioning: Tiny voltage signals from sensors like thermocouples or strain gauges are too small for microprocessors to read. A non-inverting op-amp circuit provides clean, stable amplification to boost the signal to a usable level without loading the sensitive sensor.

Active Filter Design: By adding capacitors and inductors to op-amp feedback networks, you can build precise high-pass, low-pass, and band-pass filters. These are essential in communication systems to isolate specific frequencies, like extracting a bass signal in an audio crossover.

Analog Computing & Control Systems: The summing amplifier is used as an error detector in control loops, subtracting the desired setpoint from the measured output. Integrator circuits convert velocity signals to position, and differentiators can detect sudden changes, like in edge detection circuits.

Analog-to-Digital Converter (ADC) Front-Ends: Before an analog signal is digitized, it often needs to be scaled and biased to perfectly match the input voltage range of the ADC. Op-amp circuits perform this level-shifting and scaling accurately, ensuring no signal detail is lost during conversion.

Common Misconceptions and Points to Note

First, are you thinking that "increasing the gain solves everything"? While it's true that increasing R_f raises the gain, take a look at the "Bandwidth" display on the simulator. If you increase the gain from 10x to 100x, you should see the bandwidth drop sharply. This is due to a fixed characteristic of op-amps called the "Gain-Bandwidth Product (GBW)." High gain means you can no longer amplify high-frequency signals. For instance, if you set the gain too high in an audio signal circuit, the high-frequency sounds will become inaudible.

Next, there is a knack to choosing resistor values. If only the ratio of R1 to R_f determines the gain, can you use any values? Not exactly. For example, even if you aim for a gain of 10,000x with R1=1kΩ and R_f=10MΩ, in reality, the op-amp's input bias current will create a significant offset voltage across these high resistances, causing the output to saturate. Conversely, if you choose values that are too small, like R1=10Ω and R_f=100Ω, the op-amp may not be able to supply the required large current, leading to heating or distortion. In practice, it's safer to choose values within the range of a few kΩ to several hundred kΩ.

Finally, don't forget that the simulator is an "ideal" world. The model used here is an ideal op-amp where the "virtual short" principle holds perfectly. Real op-amps have limitations like input offset voltage and frequency response. After you understand the "expected behavior" with this tool, the next step is to use more accurate simulation tools like SPICE with actual op-amp IC models to check parameters like phase margin and transient response.