Short answer
A differential amplifier amplifies the voltage difference between its two inputs and suppresses any voltage the two inputs share. Its ideal output is:
Vout = Ad × (V+ − V−)
where Ad is the differential gain. Because it ignores signals that appear equally on both inputs, it is useful for picking out a small signal from noise.
Differential vs common-mode signals
- A differential signal is the part that differs between the two inputs. It is the wanted signal.
- A common-mode signal is the part that appears equally on both inputs. Electrical interference and ground shifts often affect both wires of a pair in the same way, so they show up as common-mode.
The amplifier amplifies the first and rejects the second.
CMRR explained
The common-mode rejection ratio (CMRR) measures how well the amplifier rejects common-mode signals. It compares the differential gain with the common-mode gain:
CMRR (dB) = 20 × log10(Ad / Acm)
A higher CMRR means better rejection. Real amplifiers have some common-mode gain, so the CMRR is always finite. The datasheet gives the value for a given device, and it usually falls as frequency rises.
Difference amplifier with one op amp (formula and example)
The classic op-amp difference amplifier uses four resistors. When R1 = R3 and R2 = R4, the output is:
Vout = (R2 / R1) × (V2 − V1)
Here V1 goes to R1, which feeds the inverting input, and V2 goes through R3 to the non-inverting input, with R4 to ground. R2 is the feedback resistor from the output to the inverting input.
Worked example. Take R1 = R3 = 10 kΩ and R2 = R4 = 100 kΩ, so the gain is 10. If V1 = 1.00 V and V2 = 1.05 V:
- Difference = 0.05 V
- Vout = 10 × 0.05 V = 0.5 V
- The common-mode voltage (1.025 V here) does not change the result, in the ideal case.
Where resistor matching matters
The output formula depends on R1 = R3 and R2 = R4 being exact. In practice, resistor mismatch leaks some common-mode signal through to the output and reduces the CMRR. Precision resistors, or resistors matched on the same chip, help. Choosing a higher-precision resistor network or a dedicated amplifier is often better than trying to tune a discrete circuit by hand.
Instrumentation amplifiers (brief)
An instrumentation amplifier is a packaged differential amplifier. Its internal resistors are matched and it has a high input impedance, so the gain is set by a single external resistor. It is the usual choice for sensor bridges and small signals on a noisy background, where careful matching is hard to achieve with discrete parts.
Balanced signals in real life
A balanced audio or data line sends the signal on two wires, with one wire carrying the signal and the other carrying its opposite. Interference picks up on both wires roughly equally. A differential receiver subtracts one wire from the other, so the interference cancels and the signal remains. This is why balanced cables are used in studio audio and in many industrial links.
Differential amplifiers also form the input stage of many op amps, instrumentation amplifiers and ADC front-ends. The op amps in ADCs article discusses how an op amp prepares a signal for an ADC.
Quick checks
- Use the formulas with your actual resistor values, and calculate the gain before building.
- Keep the two signal paths as similar as possible, including length and impedance.
- Check the op amp’s common-mode input range, since both inputs must stay within it.
- Measure the output with both inputs tied to the same voltage, and check that the output is close to zero. A large reading points to mismatch or a wiring problem.
- For the inverting and non-inverting basics that underlie this circuit, see inverting and non-inverting op-amp gain.