Op-Amp Circuit Simulator Back
Analog Electronics

Op-Amp Circuit Simulator

Visualize inverting, non-inverting, summing, integrator, and differentiator op-amp circuits in real time. Experience gain, phase shift, and waveform clipping interactively.

Circuit Configuration
Circuit Type
Resistors & Capacitor
Rin (kΩ)
Rf (kΩ)
Supply & Input Signal
±Vcc (V)
V
Amplitude (Vp)
V
Frequency (Hz)
Hz
Waveform
Results
Gain (dB)
Vout Peak
Phase Shift
Clipping detected: output exceeds ±Vcc
Input/output waveforms (time domain)
Frequency spectrum (FFT estimate)
Spec
Theory & Key Formulas

Inverting Amplifier

Gain $A_v = -\dfrac{R_f}{R_{in}}$
The inverting input is a virtual ground; negative feedback inverts and amplifies the input.

What is an Operational Amplifier Circuit?

🙋
What exactly is an op-amp, and why is it called an "inverting" amplifier in this simulator?
🎓
Basically, an op-amp is a super-high-gain voltage amplifier. The "inverting" type uses negative feedback to create a stable, predictable gain. The output signal is the opposite polarity of the input. In this simulator, try selecting "Inverting Amplifier" and watch the output waveform (the orange line) flip upside-down compared to the blue input.
🙋
Wait, really? So the gain is just set by two resistors? What happens if I make R_f way bigger than R_in?
🎓
Exactly! That's the power of negative feedback. The gain $A_v = -R_f / R_{in}$. If you slide the R_f resistor value much higher than R_in in the controls, the gain increases. But watch the output waveform—if the amplified signal tries to exceed the op-amp's supply voltage (set by the ±Vcc parameter), it will "clip" and flatten, shown in red. That's a key practical limit.
🙋
Okay, so what's the point of the "non-inverting" circuit type then? And what does the "summing" amplifier do?
🎓
Great questions! The non-inverting amplifier doesn't flip the signal—it just amplifies it. Its gain is $1 + R_f/R_{in}$. The "summing amplifier" is incredibly useful: it mixes multiple input signals together, each with its own weight. In the simulator, switch to "Summing Amplifier" and adjust the different input voltages (V1, V2, V3). You'll see the output is the inverted, weighted sum of all inputs.

Physical Model & Key Equations

The core principle of an ideal op-amp with negative feedback is the virtual short circuit between its two inputs. This means the voltage at the inverting input ($V_-$) tracks the voltage at the non-inverting input ($V_+$). For the inverting configuration, $V_+$ is grounded (0V), so $V_-$ is also approximately 0V—this is the "virtual ground."

$$A_v = \frac{V_{out}}{V_{in}}= -\frac{R_f}{R_{in}}$$

Where $R_f$ is the feedback resistor, $R_{in}$ is the input resistor, and the negative sign indicates phase inversion.

For the non-inverting amplifier, the input signal is applied directly to $V_+$, and the feedback network determines the gain without inverting the signal.

$$A_v = \frac{V_{out}}{V_{in}}= 1 + \frac{R_f}{R_{in}}$$

Here, $R_{in}$ is the resistor connecting the inverting input to ground. The gain is always positive and greater than or equal to 1.

Frequently Asked Questions

This is clipping due to the limitation of the power supply voltage (Vcc/Vee). Since the output voltage cannot exceed the power supply voltage, the peaks of the waveform become flat. You can verify this by adjusting the power supply voltage or input amplitude in the simulator.
A virtual short circuit is a phenomenon where, under negative feedback in an ideal op-amp, the voltages at the inverting and non-inverting terminals become nearly equal. In a simulator, select an inverting amplifier circuit and display the voltage waveforms at both terminals; you can observe in real time that they always remain at the same potential (e.g., 0V).
In an ideal integrator, input offset voltage and bias current accumulate on the capacitor, causing the output to saturate to the power supply voltage. In the simulator, you can also try a practical integrator circuit with a resistor added in parallel.
To increase the gain, the feedback resistor Rf is increased, but if the output amplitude exceeds the power supply voltage, clipping distortion occurs. Additionally, at high gain, the frequency characteristics of the op-amp cause phase lag at high frequencies, which can also distort the waveform.

Real-World Applications

Audio Preamplifiers: Inverting and non-inverting op-amp circuits are the building blocks of microphone and instrument preamps. They boost weak audio signals to a level suitable for processing or recording. The gain can be precisely set by choosing stable resistor values.

Signal Mixing & Audio Consoles: The summing amplifier is the heart of an audio mixer. It allows multiple microphone or instrument signals to be combined into a single output, with the gain of each channel individually controlled by its input resistor.

Sensor Signal Conditioning: Many sensors (like temperature or pressure sensors) output tiny voltage changes. A non-inverting op-amp circuit can amplify this signal reliably. The high input impedance of the non-inverting configuration prevents loading the sensitive sensor.

Active Filters: By adding capacitors (like the 'C' parameter in the simulator) into the feedback loop, op-amps create precise low-pass or high-pass filters. These are essential in communications equipment to remove unwanted noise and select specific frequency bands.

Common Misconceptions and Points to Note

When you start using simulators, the first pitfall is becoming too accustomed to the ideal op-amp model. For instance, you might assume "the gain is independent of frequency." Indeed, the basic formula $A_v = -R_f/R_{in}$ contains no frequency term. However, real op-amps have an absolute limitation called the "Gain-Bandwidth Product (GBW)." For example, an op-amp with a GBW of 1MHz set for a gain of 100 will theoretically be unable to amplify correctly above 10kHz. In NovaSolver, try switching to the "Op-Amp Frequency Characteristics" model to observe how the gain drops at higher frequencies.

Next is designing while neglecting input impedance. The input impedance of an inverting amplifier circuit is essentially $R_{in}$ itself. For example, if $R_{in}=1k\Omega$, it appears as a heavy 1kΩ load from the perspective of the preceding sensor or signal source. This can cause the source voltage to be pulled down (loading effect), leading to measurement errors. Non-inverting amplifier circuits have extremely high input impedance, making them advantageous in such scenarios.

Finally, the point that "virtual short" is not a universal principle. This only holds true "when negative feedback is functioning properly." When the op-amp output is saturated (clipping) or when the feedback loop is open (as in comparator operation), the virtual short condition breaks down. If you intentionally set an extremely high gain in the simulator to cause saturation, you can observe the voltage at the inverting terminal deviate from 0V. This is the state where the "virtual" condition has collapsed.

How to Use

  1. Select circuit topology (inverting, non-inverting, summing, or integrator) from the dropdown menu
  2. Adjust input resistance (Rin) and feedback resistance (Rf) sliders to set closed-loop gain; gain in dB = 20*log10(Rf/Rin) for inverting configuration
  3. For integrator circuits, set the feedback capacitance (Cap) value in microfarads to control cutoff frequency
  4. Vary input signal amplitude (V1) and observe real-time output waveform, peak voltage, phase shift, and frequency response on the oscilloscope display

Worked Example

Configure an inverting amplifier with Rin=10kΩ, Rf=100kΩ, and 1kHz sinusoidal input at 500mV peak. The simulator calculates gain = -100kΩ/10kΩ = -10 (20dB), producing Vout peak = 5V with 180° phase shift. If feedback capacitance is added (e.g., 100nF across Rf), the integrator response shifts to -45° phase at 159kHz cutoff frequency (fc = 1/(2π*Rf*C) ≈ 15.9kHz for 100Ω feedback). Switching to summing configuration with three inputs (V1=2V, V2=1V, V3=0.5V) at equal impedances yields Vout = -(Rf/R)*(Vin1 + Vin2 + Vin3).

Practical Notes

  1. Non-inverting buffers (Rf=0, unity gain) exhibit minimal phase shift and are ideal for impedance isolation; use when driving capacitive loads below 100pF
  2. Summing amplifier input resistances typically range 10kΩ–100kΩ in audio mixing; lower values increase input current and noise floor
  3. Integrator circuits become unstable above 10× the calculated cutoff frequency; always include a small series resistor (1kΩ–10kΩ) in parallel with feedback cap for DC bias correction
  4. For high-frequency op-amps (GBW > 100MHz like TL072), verify that Gain × Signal Frequency remains below the gain-bandwidth product to avoid rolloff