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 β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.
Configuration 1: Inverting Amplifier
The output is an amplified, inverted version of the input. A positive input voltage produces a negative output.
Example: Rin = 1kΞ©, Rf = 10kΞ© β Gain = β10. A 0.5V input produces β5V output (assuming Β±15V rails).
βΆ Simulate Inverting AmplifierConfiguration 2: Non-Inverting Amplifier
The output is an amplified, non-inverted version of the input. Input and output are in phase.
Example: R1 = 1kΞ©, Rf = 9kΞ© β Gain = 1 + 9 = 10. A 0.5V input gives +5V output.
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.
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 FollowerConfiguration 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.
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.
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).
Practical Op-Amp Considerations
- Supply voltage: Most op-amps run from dual supplies (Β±5V to Β±15V) or single supply (5V to 30V). Rail-to-rail op-amps (like the MCP6002) can output voltages close to both supply rails.
- Output swing: Standard op-amp outputs typically can only reach within 1β2V of the supply rails. If your output clips at unexpected levels, check the supply voltage and output swing specs.
- Slew rate: The maximum rate at which the output can change (V/Β΅s). For high-frequency signals, choose an op-amp with a slew rate faster than 2Ο Γ f Γ Vpeak.
- Bypass capacitors: Always place 100nF ceramic capacitors from each supply pin to ground as close to the IC as possible. This prevents oscillation from power supply noise.
- Gain-bandwidth product: Gain Γ bandwidth = constant. A TL071 with GBP = 3MHz gives 300kHz bandwidth at gain 10, or 30kHz at gain 100.
Circuit Topology Diagrams
These diagrams show the feedback connections that define each op-amp configuration.
Inverting Amplifier
Non-Inverting Amplifier
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.