The gain of a non-inverting amplifier is the positive voltage multiplication factor determined by the ratio of two feedback resistors, expressed mathematically as Av = 1 + (Rf / Rin). Unlike the inverting configuration, the output signal stays perfectly in phase with the input, making this topology the undisputed workhorse for buffering and boosting sensor signals, audio, and DC references without flipping their polarity.
The Core Formula and a Bench-Tested Numeric Example
When you wire an operational amplifier in a non-inverting configuration, the input signal goes directly to the non-inverting (+) pin. The feedback network connects from the output pin back to the inverting (-) pin, with a second resistor tying the inverting pin to ground. The op-amp's internal high-gain differential stage forces the voltage at the inverting pin to match the non-inverting pin, creating the predictable gain ratio.
Let's run a real numeric example using an LM358 dual op-amp powered by a single 9V supply (rails at 0V and 9V). We want to amplify a 0.5V DC sensor reading by roughly 5x.
- Input Voltage (Vin): 0.500V
- Target Gain: ~5x
- Rin (to ground): 10.0 kΩ (1% standard value)
- Rf (feedback): 39.2 kΩ (1% standard value)
Applying the formula: Av = 1 + (39,200 / 10,000) = 4.92x.
Multiplying our input: 0.500V × 4.92 = 2.46V output. Because the LM358 on a 9V rail can comfortably swing up to about 7.5V, this 2.46V output sits safely in the middle of the linear range, yielding a clean, undistorted DC level.
What Gain Actually Changes on the Breadboard
Setting the gain of a non-inverting amplifier changes three distinct electrical characteristics in your circuit, not just the voltage amplitude:
- Signal Amplitude: The primary function. A 10mV AC ripple becomes a 100mV AC ripple if your gain is set to 10.
- Closed-Loop Bandwidth: This is the hidden trap. Op-amps have a fixed Gain-Bandwidth Product (GBP). If your op-amp has a GBP of 1 MHz and you set the gain to 100, your maximum usable bandwidth drops to just 10 kHz. Push an audio signal through it, and the high frequencies will roll off.
- Input Impedance: The non-inverting topology offers exceptionally high input impedance (often >100 MΩ for BJT inputs, and >1012 Ω for CMOS/FET inputs). It does not load down high-impedance sources like piezo sensors or passive guitar pickups.
Think of the feedback network like a mechanical lever; the output is the long end of the lever, and the inverting input is the fulcrum point. Moving the input slightly forces the output to swing much wider in the exact same direction, but the physical length of the lever (your bandwidth) limits how fast it can move.
Where You Meet This in Practice
You will find non-inverting amplifiers everywhere low-level signals need to interface with microcontrollers or audio stages:
- Microcontroller ADC Scaling: Boosting a 0–1V DAC or sensor output to a 0–3.3V range to maximize the resolution of an ESP32 or STM32 analog-to-digital converter.
- Audio Pre-amplification: The first stage of a microphone preamp, where the tiny AC signal from an electret capsule needs a clean 20x to 50x boost without phase inversion.
- Strain Gauge Bridges: Amplifying the millivolt-level differential outputs of load cells before feeding them into a high-resolution ADC like the HX711.
Real-World Scenario: When the Math Meets the Rails
Textbook formulas assume op-amps have infinite voltage headroom. On the bench, they don't. Here is a classic failure mode I see when builders transition from dual-rail simulations to single-rail physical prototypes.
The Numbers:
We choose Rin = 1.0 kΩ and Rf = 19.0 kΩ (18k + 1k in series).
Gain = 1 + (19 / 1) = 20x.
Expected Output = 2.5V ± (0.1V × 20) = 0.5V to 4.5V.
The Outcome:
You hook up the oscilloscope and see a beautiful sine wave on the bottom half, but the top peaks are brutally flattened (clipped) at exactly 3.5V.
What Went Wrong:
The math was right, but the part selection was wrong. The NE5532 is a legendary audio op-amp, but it is not a rail-to-rail output device. According to its datasheet, the output voltage swing on a 5V supply can only reach to within about 1.5V of the positive rail. The absolute maximum output is ~3.5V. Your calculated 4.5V peak hit the physical ceiling of the silicon.
The Fix:
Swap the NE5532 for a true rail-to-rail CMOS op-amp like the OPA340 or MCP6001, which can swing to within 50mV of the 5V rail, safely accommodating your 4.5V peak. Alternatively, power the NE5532 with a 9V battery, giving it the headroom it needs.
Common Confusions: Non-Inverting vs. Inverting vs. Voltage Follower
People frequently mix up the three primary single-op-amp topologies. Here is how they differ on the bench:
| Topology | Gain Formula | Phase | Input Impedance | Best Used For |
|---|---|---|---|---|
| Non-Inverting | 1 + (Rf / Rin) | In-phase (0°) | Very High | Sensor buffering, high-Z sources |
| Inverting | -(Rf / Rin) | Inverted (180°) | Low (Equals Rin) | Summing mixers, active filters |
| Voltage Follower | 1 (Unity) | In-phase (0°) | Extremely High | Impedance matching, isolation |
The Common Mistake: Beginners often try to use an inverting amplifier to boost a high-impedance piezo sensor. Because the inverting topology's input impedance is simply the value of Rin (often 10kΩ), it loads the piezo down, killing the signal amplitude before it even enters the op-amp. The non-inverting topology avoids this entirely because the signal hits the high-impedance gate/base of the input transistors directly.
FAQ: Troubleshooting Your Op-Amp Gain
Q: Why is my measured gain lower than my calculated gain at higher frequencies?
A: You have hit the Gain-Bandwidth Product (GBP) limit. As frequency increases, the op-amp's internal compensation capacitor limits the open-loop gain. If you need high gain and high bandwidth, you must either choose an op-amp with a higher GBP (like the OPA2134 at 8 MHz vs the LM358 at 1 MHz) or cascade two stages with lower gain (e.g., two stages of 10x gain instead of one stage of 100x).
Q: My non-inverting amplifier has a mysterious DC offset on the output. Why?
A: This is usually caused by the op-amp's input bias current flowing through your feedback resistors, creating an unintended voltage drop, or by the inherent input offset voltage of the silicon. To fix the bias current issue, ensure the Thevenin equivalent resistance seen by the non-inverting pin matches the parallel combination of Rf and Rin at the inverting pin. For ultra-precision DC, use a chopper-stabilized (zero-drift) op-amp like the LTC1050.
Q: Can the gain be less than 1?
A: No. Because the formula is 1 + (Rf / Rin), the minimum possible gain is exactly 1 (when Rf is 0Ω and Rin is infinite, creating a voltage follower). If you need attenuation (gain < 1), you must use a passive resistor voltage divider before the non-inverting input pin.






