# Op-Amp Gain Calculator

URL: https://speedycalculator.com/calculators/other/op-amp-gain/
Last updated: 2026-11-08

> The op-amp gain calculator finds the voltage gain of inverting, non-inverting, voltage-follower and difference amplifiers from the input and feedback resistors (or the feedback resistor for a target gain), with the gain in dB, phase, output voltage and a clipping check against the supply rails.

## Inputs

- Amplifier configuration
- Calculate
- Input resistance (R_in, R1) (kΩ, Ω, MΩ)
- Feedback resistance (R_f, R2) (kΩ, Ω, MΩ)
- Target gain (magnitude)
- Input voltage (V₊ − V₋ for the difference amplifier) (V, mV)
- Supply rails (±) (V)

## Results

- Feedback resistor
- Voltage gain
- Gain magnitude
- Gain in decibels
- Phase shift
- Output voltage
- Output check
- Input impedance

## Formula

```
Inverting: A = −R_f ÷ R_in · Non-inverting: A = 1 + R_f ÷ R_in · Follower: A = 1 · Difference (matched): A = R_f ÷ R_in · gain (dB) = 20 log₁₀|A| · V_out = A × V_in
```

## Explanation

An operational amplifier on its own has an enormous, poorly controlled gain, often 100,000 or more. Negative feedback through a pair of resistors tames it: the closed-loop gain then depends almost only on the resistor ratio, which is precise and stable. That is why op-amp circuits are so easy to design.

In the inverting amplifier the signal enters through R_in to the inverting input, and R_f feeds the output back to the same node. The gain is −R_f ÷ R_in: 1 kΩ and 10 kΩ give −10, an output ten times larger and flipped by 180°. The input impedance equals R_in. In the non-inverting amplifier the signal drives the non-inverting input directly and the resistors form a divider in the feedback path; the gain is 1 + R_f ÷ R_in (11 for the same resistors), in phase, with a very high input impedance. Remove the divider and you have a voltage follower with a gain of exactly 1, a buffer. A difference amplifier with matched resistor pairs amplifies V₊ − V₋ by R_f ÷ R_in.

Real op-amps cannot swing past their supply rails, so the calculator checks the output against the supply you enter.

### How to use the Op-Amp Gain Calculator

- **Amplifier configuration**
- **Calculate**
- **Input resistance (R_in, R1)**
- **Feedback resistance (R_f, R2)**
- **Target gain (magnitude)**
- **Input voltage (V₊ − V₋ for the difference amplifier)**
- **Supply rails (±)**

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

### How it works

Choose the configuration, enter R_in and R_f (or a target gain to get R_f) and optionally the input voltage and supply rails. The calculator applies the closed-loop gain formula and multiplies by the input voltage.

### Worked example

An inverting amplifier with R_in = 1 kΩ and R_f = 10 kΩ has a gain of −10 kΩ ÷ 1 kΩ = **−10** (20 dB, 180° phase shift); a 0.1 V input gives −1 V. As a non-inverting amplifier the same resistors give 1 + 10 = 11 (20.83 dB) and +1.1 V. For a non-inverting gain of 10 with R_in = 1 kΩ you need R_f = (10 − 1) × 1 kΩ = 9 kΩ.

### Gain in dB

Gain (V/V)dB1026.021020100401,00060

### Inputs explained

FieldWhat to enterAmplifier configurationChoose one: Inverting, Non-inverting, Voltage follower (buffer), Difference amplifier (matched resistors)CalculateChoose one: Gain from the resistors, Feedback resistor for a target gainInput resistance (R_in, R1)Units: kΩ, Ω, MΩFeedback resistance (R_f, R2)Units: kΩ, Ω, MΩTarget gain (magnitude)A numberInput voltage (V₊ − V₋ for the difference amplifier)Units: V, mVSupply rails (±)In V

### What each result means

- **Gain magnitude** = abs([Voltage gain])
- **Gain in decibels** = 20×log10(abs([Voltage gain]))
- **Output voltage** = [Voltage gain]×[Input voltage (V₊ − V₋ for the difference amplifier)]

## Worked example

Inputs: Amplifier configuration: Inverting; Calculate: Gain from the resistors; Input resistance (R_in, R1): 1 kΩ; Feedback resistance (R_f, R2): 10 kΩ; Input voltage (V₊ − V₋ for the difference amplifier): 0.1 V; Supply rails (±): 15 V.

Results: Feedback resistor = 10 kΩ; **Voltage gain = -10 V/V**; Gain magnitude = 10; Gain in decibels = 20 dB; Phase shift = 180 °; Output voltage = -1 V; Output check = Within the supply rails (check your op-amp's output swing); Input impedance = 1 kΩ.

## Key terms

- **Closed-loop gain**: Gain of the circuit with feedback, set by the resistors.
- **Feedback resistor (R_f)**: Resistor from the output back to the inverting input.
- **Virtual ground**: The inverting input of an inverting amplifier, held at 0 V by feedback.
- **Gain–bandwidth product**: Open-loop gain × bandwidth, roughly constant for a given op-amp.

## FAQ

**What is the gain of an inverting amplifier?**
−R_f ÷ R_in: with 1 kΩ and 10 kΩ the gain is −10 (20 dB, inverted).

**What is the gain of a non-inverting amplifier?**
1 + R_f ÷ R_in: the same resistors give 11 (20.8 dB, in phase).

**Why is the inverting gain negative?**
The output is 180° out of phase with the input, so a positive input gives a negative output.

**Can a non-inverting amplifier have a gain below 1?**
No, its minimum is 1 (a voltage follower). Use an inverting stage or a divider for attenuation.

**What resistor values should I use?**
Typically 1 kΩ–100 kΩ: lower values load the op-amp output, higher values add noise and offset from bias currents.

**Does gain affect bandwidth?**
Yes, for a voltage-feedback op-amp, gain × bandwidth is roughly constant (the gain–bandwidth product).


## Sources

- [Texas Instruments: Handbook of Operational Amplifier Applications (SBOA092)](https://www.ti.com/lit/an/sboa092b/sboa092b.pdf)
- [Operational amplifier applications: Wikipedia](https://en.wikipedia.org/wiki/Operational_amplifier_applications)
