Understanding Operational Amplifiers

An operational amplifier is a high-gain voltage amplifier with two input terminals and a single output. The inverting input (−) and non-inverting input (+) allow the op-amp to process differential signals—it amplifies the voltage difference between them. Practical op-amps have extremely high input impedance (the inputs draw almost no current) and very low output impedance, making them ideal building blocks for precision circuits.

Op-amps require external resistors or capacitors to set their behavior through feedback networks. Without feedback, an op-amp saturates instantly because internal gain is enormous. Negative feedback—routing a fraction of the output back to the inverting input—stabilizes the circuit and allows you to control gain precisely using simple resistor ratios.

Common applications include signal amplification, filtering, integration, differentiation, and converting between voltage and current domains. They appear in audio preamps, sensor interfaces, active filters, and instrumentation.

Voltage Gain Formulas

The gain of an op-amp circuit depends on its configuration. For an inverting amplifier, you set gain using two resistors: the input resistor and the feedback resistor. For a non-inverting amplifier, the formula includes an additional unity-gain term.

Inverting gain: Av = −Rf / Rin

Non-inverting gain: Av = 1 + (Rf / Rin)

  • R<sub>f</sub> — Feedback resistance in ohms
  • R<sub>in</sub> — Input resistance in ohms
  • A<sub>v</sub> — Voltage gain (dimensionless ratio)

Inverting vs. Non-Inverting Configurations

Inverting amplifier: The input signal connects to the inverting terminal through an input resistor. The non-inverting terminal ties to ground. Gain magnitude equals the ratio of feedback resistance to input resistance, but the output is inverted (180° phase shift). If you apply a +1 V input with Rf = 10 kΩ and Rin = 1 kΩ, you get a −10 V output.

Non-inverting amplifier: The input signal connects directly to the non-inverting terminal. The inverting terminal receives part of the output through a voltage divider. The output is in-phase with the input. The same 1 kΩ and 10 kΩ resistors yield a gain of 11 (output: +11 V for a +1 V input). This configuration also presents higher input impedance to the source.

Choose inverting when you need phase reversal or when the input source can tolerate the low input impedance. Choose non-inverting when input impedance matters or when you need positive gain.

Real-World Op-Amp Behavior

Ideal op-amps have infinite input impedance, zero output impedance, infinite gain, and flat frequency response to infinity. Real devices fall short. Input offset voltage (typically 1–10 mV) causes output errors even with zero input. Finite bandwidth limits the maximum frequency at which the op-amp can maintain specified gain—crossing the gain-bandwidth product boundary causes gain to roll off.

Temperature changes cause thermal drift: gain, bias currents, and offset voltage all shift. A 1°C rise might change gain by 0.1%. Power supply rejection ratio (PSRR) determines how much supply-voltage noise couples to the output. Choose an op-amp with low offset voltage, adequate bandwidth, and low thermal drift if your application demands precision, such as sensor conditioning or audio.

Practical Gain-Design Tips

Selecting resistor values and op-amps requires attention to several practical constraints.

  1. Resistor tolerance and accuracy — Standard 5% resistors introduce gain errors. For precision circuits, use 1% metal-film resistors. If you need gain of exactly 10, use 1% parts: e.g., 10 kΩ and 1 kΩ resistors from a matched pair to minimize mismatch error.
  2. Frequency response limits — Gain extends only within the bandwidth. A ±15 V op-amp with 1 MHz gain-bandwidth product and gain of 10 maintains that gain only up to 100 kHz. Beyond that, gain rolls off at −20 dB/decade. Choose an op-amp with sufficient gain-bandwidth product for your signal frequency.
  3. Input impedance considerations — Inverting amplifiers present low input impedance (approximately equal to R<sub>in</sub>) because the inverting node is a virtual ground. High-impedance sources see significant loading. Non-inverting amplifiers present input impedance in the megaohm range and suit high-impedance sensor outputs better.
  4. Stability and compensation — Adding a small capacitor across R<sub>f</sub> (typically 1–100 pF) compensates for parasitic reactances and prevents oscillation at high gains. This capacitor rolls off high-frequency noise and stabilizes the feedback loop.

Frequently Asked Questions

How do I choose between inverting and non-inverting op-amp configurations?

Choose inverting if you need the output 180° out-of-phase with the input, can accept low input impedance, or want simple circuit topology. Choose non-inverting if the source has high impedance, you need in-phase output, or the gain must be greater than 1 without a phase shift. Non-inverting also provides higher input impedance and better source isolation.

Why does an op-amp need feedback resistors?

Without feedback, the op-amp's enormous open-loop gain causes it to saturate immediately at its supply rails. Feedback resistors create negative feedback, which forces the differential input voltage toward zero and allows you to set a stable, predictable closed-loop gain using a simple resistor ratio. The negative feedback also improves linearity and frequency response.

What happens if I use mismatched resistor tolerances?

Resistor tolerance errors directly affect gain accuracy. If you specify 1% gain accuracy and use 5% resistors, the tolerances can combine to produce ±10% gain error. For gains of 10 or higher, use 1% or better resistors. Matched pairs or thin-film arrays maintain tighter ratios between R<sub>f</sub> and R<sub>in</sub>, improving reproducibility in production.

How does temperature affect op-amp gain?

Thermal drift shifts the effective gain as temperature changes. Most op-amps exhibit 0.01–0.1% gain change per degree Celsius. Over a 50°C range, gain might shift by 0.5–5%, which is significant in precision instrumentation. Select op-amps with low temperature coefficient, use thermal compensation networks, or maintain a stable operating temperature for sensitive circuits.

Can I achieve very high gains with a single op-amp stage?

Theoretically, yes—a gain of 1000 is achievable with R<sub>f</sub> = 1 MΩ and R<sub>in</sub> = 1 kΩ. However, large resistor ratios reduce bandwidth and amplify thermal drift, offset voltage, and input bias current effects. Multiple lower-gain stages (cascading) often provide better noise, stability, and frequency response than a single high-gain stage.

What is the purpose of a compensation capacitor across the feedback resistor?

A capacitor (typically 1–100 pF) in parallel with R<sub>f</sub> creates a low-pass filter that stabilizes the feedback loop and prevents oscillation, especially at high gains. It also rolls off high-frequency noise and improves phase margin. The resistor-capacitor time constant should match the op-amp's natural response for optimal stability without excessive bandwidth loss.

More other calculators (see all)