Compute output voltage, differential gain (Ad), common-mode gain (Acm), and CMRR (dB) for a classic four-resistor differential amplifier.
A differential amplifier (subtractor) using an operational amplifier amplifies the difference between two input signals while rejecting common-mode signals. The classic circuit uses four external resistors: R1, R2, R3, R4. Under ideal op-amp conditions (infinite gain, infinite input impedance, zero output impedance), the output voltage is given by:
When resistor ratios are matched (R1/R2 = R3/R4), the circuit becomes a true differential amplifier: Vout = (R2/R1)·(V2 − V1). In this condition, common-mode gain (Acm) drops to zero, yielding infinite CMRR (theoretically). In real-world applications, mismatched resistors cause finite CMRR, limiting performance. Our calculator uses the general transfer function to accurately compute output and key metrics.
In ECG amplifiers, differential amplifiers reject 50/60 Hz common-mode interference while amplifying the small heart signal (millivolts). With matched resistors (tolerance 0.1%), CMRR > 80 dB is achieved. Our calculator helps designers select resistor values to maximize CMRR before trimming.
| Condition | Vout Formula | CMRR | Typical Use |
|---|---|---|---|
| Matched Ratios (R1/R2 = R3/R4) | (R2/R1)·(V2-V1) | Very high (ideal ∞) | Precision measurement |
| R1=R3, R2=R4 | (R2/R1)(V2-V1) | Infinite (ideal) | Standard diff-amp |
| Mismatched ratios | General formula | Degraded | Low-cost applications |