FreeCircuitSim
πŸ“… April 2026⏱ 12 min read🏷 Intermediate

Op-Amp Circuits for Beginners

Operational amplifiers (op-amps) are the building blocks of analog electronics. This guide covers the six most important op-amp configurations with gain formulas and live simulations for each.

⚑ Open Op-Amp Simulator β†’
Advertisement

What is an Op-Amp?

An operational amplifier is a high-gain differential amplifier IC with two inputs (inverting βˆ’ and non-inverting +) and one output. The ideal op-amp has infinite open-loop gain, infinite input impedance, and zero output impedance. Real op-amps (like the LM741, LM358, or TL071) approximate this closely enough for most circuits.

Op-amps are almost always used with negative feedback β€” connecting the output back to the inverting input β€” which reduces the gain to a stable, predictable level set by external resistors. This is the foundation of every amplifier configuration below.

πŸ’‘ Negative feedback is like a shower thermostat: If the water gets too hot, the thermostat backs off the heat β€” the output corrects the input. An op-amp with negative feedback does the same: if the output gets too high, it feeds back to the inverting input and pulls it back down. This self-correction is what makes the gain stable and predictable.

Configuration 1: Inverting Amplifier

The output is an amplified, inverted version of the input. A positive input voltage produces a negative output.

Gain = βˆ’Rf / Rin
Negative sign means output is inverted. Rf = feedback resistor, Rin = input resistor

Example: Rin = 1kΞ©, Rf = 10kΞ© β†’ Gain = βˆ’10. A 0.5V input produces βˆ’5V output (assuming Β±15V rails).

β–Ά Simulate Inverting Amplifier

Configuration 2: Non-Inverting Amplifier

The output is an amplified, non-inverted version of the input. Input and output are in phase.

Gain = 1 + (Rf / R1)
Always β‰₯ 1. R1 goes from inverting input to ground, Rf from output to inverting input.

Example: R1 = 1kΞ©, Rf = 9kΞ© β†’ Gain = 1 + 9 = 10. A 0.5V input gives +5V output.

πŸ’‘ Note: The non-inverting configuration has very high input impedance, making it ideal for buffering high-impedance sources like sensors.
β–Ά Simulate Non-Inverting Amp

Configuration 3: Voltage Follower (Buffer)

The output follows the input exactly β€” gain of exactly 1. No resistors needed. The purpose is impedance transformation: present high impedance to the source, drive a low-impedance load without loading the signal.

Vout = Vin (Gain = 1)
Connect output directly to inverting input. Nothing else needed.

Use a voltage follower whenever you need to connect a high-impedance source (like a microphone, sensor, or resistor divider) to a low-impedance load (like a speaker or ADC input).

β–Ά Simulate Voltage Follower

Configuration 4: Summing Amplifier

Adds multiple input voltages together (with scaling), producing a weighted sum at the output. Used in audio mixers, DACs, and signal combination circuits.

Vout = βˆ’Rf Γ— (V1/R1 + V2/R2 + V3/R3)
Each input has its own resistor. If all input resistors are equal: Vout = βˆ’Rf/R Γ— (V1+V2+V3)
β–Ά Simulate Summing Amplifier

Configuration 5: Differential Amplifier

Amplifies the difference between two input voltages while rejecting signals common to both inputs (common-mode rejection). Essential in instrumentation and sensor interfaces.

Vout = (Rf / R1) Γ— (V2 βˆ’ V1)
All four resistors must be equal for maximum common-mode rejection
β–Ά Simulate Differential Amplifier

Configuration 6: Comparator

No feedback β€” the op-amp runs open-loop with maximum gain. The output swings to the positive or negative rail depending on which input is higher. Used for threshold detection, zero-crossing detection, and window comparators.

If Vin+ > Vinβˆ’: output β†’ +Vcc. If Vin+ < Vinβˆ’: output β†’ βˆ’Vcc (or 0V with single supply).

πŸ’‘ Tip: For comparator applications, a dedicated comparator IC (like LM393) is better than a general-purpose op-amp β€” comparators have faster response and open-collector outputs designed for this use case.
β–Ά Simulate Op-Amp Comparator

Practical Op-Amp Considerations

Circuit Topology Diagrams

These diagrams show the feedback connections that define each op-amp configuration.

Inverting Amplifier

graph LR Vin["Vin"] -->|Rin| INV["βˆ’ Input"] INV --> OPAMP["Op-Amp"] OPAMP --> Vout["Vout"] Vout -->|Rf feedback| INV GND["GND"] --> NINV["+ Input"] NINV --> OPAMP style Vout fill:#1a3a2a,stroke:#00ff88,color:#00ff88 style Vin fill:#1a3a4a,stroke:#00e5ff,color:#00e5ff

Non-Inverting Amplifier

graph LR Vin["Vin"] --> NINV["+ Input"] NINV --> OPAMP["Op-Amp"] OPAMP --> Vout["Vout"] Vout -->|Rf| NodeB["Junction"] NodeB -->|R1| GND["GND"] NodeB --> INV["βˆ’ Input"] INV --> OPAMP style Vout fill:#1a3a2a,stroke:#00ff88,color:#00ff88 style Vin fill:#1a3a4a,stroke:#00e5ff,color:#00e5ff

Common Beginner Mistakes

⚠️

Output Clipping

Op-amp output cannot reach the supply rails (typically 1–2V short). If your calculated output is close to Vcc or Vss, you'll get a clipped, distorted waveform.

⚠️

Missing Supply Bypass Capacitors

Every op-amp needs 100nF ceramic capacitors from each supply pin to ground. Without them, the op-amp can oscillate at high frequencies from supply noise β€” invisible in simulation but real on the bench.

⚠️

Floating Non-Inverting Input

In the inverting configuration, the non-inverting input must be tied to a defined voltage (ground or a mid-supply reference), never left floating. A floating input will latch the output high or low unpredictably.

⚠️

Bandwidth Limitation

A TL071 has a Gain-Bandwidth Product (GBP) of 3MHz. At gain 100, maximum usable bandwidth is only 30kHz. For audio or higher frequencies, check your op-amp's GBP specification before choosing components.

⚠️

Single Supply vs Dual Supply Confusion

An op-amp on a single +5V supply cannot output negative voltages. For AC signal amplification on single supply, you must bias the non-inverting input to Vcc/2 (2.5V), creating a virtual ground.

⚠️

Using Wrong Op-Amp for Comparator

General-purpose op-amps (LM741, TL071) work as comparators but are slow β€” 1–10Β΅s response time. For fast comparator circuits, use a dedicated comparator IC (LM393, LM339) with an open-collector output.

Why Op-Amps Matter in 2026

Despite decades of digital electronics dominance, op-amps remain essential. Every microphone pre-amplifier, temperature sensor interface, battery management IC, and audio output stage contains op-amps. In IoT devices where sensors must convert physical quantities (temperature, pressure, light) to voltage levels readable by an ADC, the op-amp voltage follower and instrumentation amplifier are the critical bridge between analog world and digital processing.

Modern rail-to-rail op-amps like the MCP6002 (under $0.50) operate from 1.8V to 6V, making them ideal for battery-powered sensor nodes. Understanding op-amp configurations is a prerequisite for analog-digital interface design in any embedded system.

Frequently Asked Questions

What is the difference between inverting and non-inverting op-amp?
In an inverting amplifier, the input is applied through a resistor to the inverting (βˆ’) input, and the output is 180Β° out of phase with the input. Gain = βˆ’Rf/Rin. In a non-inverting amplifier, the input goes to the non-inverting (+) input, and the output is in phase. Gain = 1 + Rf/R1.
Why does an op-amp need both positive and negative supply?
Dual supplies allow the output to swing both positive and negative of the reference (ground). With a single supply, the output can only swing between ground and Vcc, limiting AC signal handling. Single-supply op-amps require input biasing to place the DC operating point in the middle of the supply range.
What is a rail-to-rail op-amp?
A rail-to-rail op-amp can output voltages up to or very close to both supply rails β€” important in single-supply, low-voltage circuits. For example, an MCP6002 running from 0V to 3.3V can output voltages from near 0V to near 3.3V, maximising dynamic range.
Keep Going
Ready to simulate this yourself?
Open the free simulator β€” no account, no download needed.
⚑ Open Simulator β†’
πŸ“ Continue to signal processing
Continue Learning β†’
Next up: RC Filters
Next: RC Filters β†’

Related Guides

← Back to All Guides