A silicon diode needs about 0.7 V before it conducts at all. That is fine for a 12 V power supply, but it is a wall for small signals: a 100 mV audio signal, a sensor output or a millivolt-level measurement never reaches 0.7 V, so an ordinary diode rectifier passes nothing — the signal simply disappears. The precision rectifier, also called a superdiode, fixes this with one clever move: it puts the diode inside an op-amp's feedback loop, so the op-amp itself supplies the 0.7 V and the output sees a diode with (almost) no forward voltage at all. This article builds one and works out the numbers.
Figure 1: A precision half-wave rectifier (a) — the diode D1 sits inside the op-amp's feedback loop. A 100 mV peak sine in comes out as a 100 mV peak half-wave (b); an ordinary diode would pass nothing at all. (Schematic, not to scale.)
How it works — the formula
The circuit is an inverting amplifier with a diode in the feedback path. When Vin is positive, the op-amp's output swings positive, the diode conducts, the loop closes, and the circuit behaves like an ordinary inverting amplifier with gain −R2 / R1. When Vin is negative, the op-amp's output swings negative, the diode is reverse-biased, the loop opens, and the output sits at 0 V (held there through R2 to the virtual earth). So with R1 = R2:
Vout = −Vin when Vin > 0, and Vout = 0 when Vin < 0
The 0.7 V diode drop never appears at the output, because the op-amp's output pin sits 0.7 V above the output node and the feedback loop corrects for it automatically. The effective forward voltage is the diode's 0.7 V divided by the op-amp's open-loop gain — with a 741's gain of about 100,000 that is:
VF(effective) = 0.7 V / 100,000 = 7 µV
— ten thousand times smaller than a real diode's 0.7 V, and far below any signal you would ever rectify. (To get the positive half instead, simply turn the diode around.)
Worked example — a 100 mV peak sine at 1 kHz
Choose R1 = R2 = 10 kΩ and Vin = 100 mV peak at 1 kHz. The output is the negative half of the input, with a peak of:
Vout(pk) = (R2 / R1) × 100 mV = 100 mV
and the average (DC) value of that half-wave is:
Vavg = Vpk / π = 100 mV / 3.1416 = 31.8 mV
— a DC voltage you can read straight off a multimeter, proportional to the AC signal's size. The peak diode current is only I = Vout(pk) / R2 = 100 mV / 10 kΩ = 10 µA. Compare that with an ordinary half-wave rectifier fed the same 100 mV: the diode never turns on, so the output is 0 V — the whole signal is lost. Even a 1 V peak signal would come out badly through an ordinary diode: only the part above 0.7 V survives, a thin 0.3 V slice of each half-cycle, instead of the full 1 V.
The catch — the op-amp must swing from saturation every cycle
There is one price to pay. During the blocked half-cycle the diode is off, the loop is open, and the op-amp saturates at about −13 V (on ±15 V supplies). When the input crosses zero, the op-amp must slew all the way from −13 V up to about +0.7 V — a swing of 13.7 V — before the diode can conduct again. A 741 slews at 0.5 V/µs, so that takes:
t = 13.7 V / 0.5 V/µs = 27.4 µs
At 1 kHz the period is 1,000 µs, so the 27.4 µs recovery is only 2.7% of the cycle — a small glitch near each zero crossing. But at 10 kHz the period is 100 µs and the same recovery eats 27% of the cycle, badly distorting the output. The fix is a faster op-amp: a TL081 slews at 13 V/µs, so the same 13.7 V swing takes only about 1.05 µs, and the circuit works cleanly well past 10 kHz. (Some designs also add a resistor from the output to ground so the op-amp never quite saturates, at the cost of a small offset.)
Designing for a 50 mV audio signal
Suppose you need to measure a 50 mV peak audio signal with a DC voltmeter. With R1 = R2 = 10 kΩ the precision rectifier gives a 50 mV peak half-wave and an average of:
Vavg = 50 mV / π = 15.9 mV
Add a second op-amp stage that inverts the other half-cycle and sums the two, and you have a precision full-wave rectifier: both halves appear at the output, and the average doubles to 2 × Vpk / Ï€ = 63.7 mV for a 100 mV peak input. The same circuit is used in AC millivoltmeters, envelope detectors and anywhere a small AC signal must be turned into a DC reading without losing the bottom 0.7 V.
Key points to remember
- A precision rectifier puts the diode inside an op-amp's feedback loop: the op-amp supplies the 0.7 V, so the output sees a diode with an effective forward voltage of only about 7 µV.
- Worked example: R1 = R2 = 10 kΩ, 100 mV peak at 1 kHz → a 100 mV peak half-wave out, average 31.8 mV; an ordinary diode would pass nothing at all.
- During the blocked half-cycle the op-amp saturates at −13 V and must slew 13.7 V to recover — 27.4 µs with a 741, which is 2.7% of a 1 kHz cycle but 27% at 10 kHz; use a faster op-amp (TL081, 13 V/µs) for higher frequencies.
- Design rule: a 50 mV peak signal gives 15.9 mV average; a two-op-amp full-wave version doubles the average to 63.7 mV for a 100 mV peak input.
- Reverse the diode to get the positive half instead of the negative half.
