Peak Detector: Hold the Peak of a 1 V Signal and Read It with a Voltmeter

Author: Abloom Instruction Date: November 21, 2026

How do you measure the peak of a fast AC signal with an ordinary DC voltmeter? A peak detector does it: it charges a capacitor up to the highest voltage the signal reaches, then holds that voltage so a slow meter can read it. The same circuit sits inside AC millivoltmeters, envelope detectors and audio level meters. This article builds one with an op-amp and works out the numbers.

Schematic of an op-amp peak detector with a 1 volt peak 1 kilohertz sine input, a diode inside the feedback loop, a 1 microfarad hold capacitor and a 100 kilo-ohm bleed resistor, beside a plot showing the output holding at 1 volt while the input sine swings up and down

Figure 1: An op-amp peak detector (a) — the diode sits inside the feedback loop and the capacitor holds the peak. The output stays at the 1 V peak, drooping only 10 mV between cycles (b). (Schematic, not to scale.)

How it works — the formula

The op-amp is wired as a voltage follower, but the diode D1 sits between its output and the capacitor, and the feedback is taken from the capacitor side. When the input rises above the capacitor voltage, the op-amp's output swings up, the diode conducts, and the capacitor charges up to the input. When the input falls below the capacitor voltage, the diode turns off and the capacitor is left holding its charge — it can only discharge slowly through the bleed resistor R. Because the diode is inside the feedback loop, the op-amp supplies the 0.7 V diode drop itself, so the output is the true peak, not the peak minus 0.7 V. Compare that with a plain diode and capacitor: fed with a 1 V peak signal, an ordinary diode detector would hold only 1.0 − 0.7 = 0.3 V, and the reading would be wrong by 70%.

Between peaks the capacitor discharges through R, so the output droops by:

ΔV ≈ Vpk × T / (RC)

where T is the time between peaks. With R = 100 kΩ and C = 1 µF, RC = 100 ms — one hundred times longer than the 1 ms period of a 1 kHz signal, so the droop is small.

Worked example — a 1 V peak sine at 1 kHz

Feed a 1 V peak, 1 kHz sine into the circuit with C = 1 µF and R = 100 kΩ. The capacitor charges to 1.00 V at the first peak. Between peaks it discharges for one period, T = 1 ms, so the droop is:

ΔV = 1 V × (1 − e−T/RC) = 1 × (1 − e−0.01) = 9.95 mV ≈ 10 mV

— just 1% of the reading. The next peak tops the capacitor back up to 1.00 V, so the output is a nearly flat 1 V with a 10 mV sawtooth ripple on it. A DC voltmeter reads the average, about 0.995 V — a 0.5% error, far better than the 0.3 V a plain diode would give. The bleed resistor is essential: without it the capacitor would hold the highest peak forever, even after the signal got smaller. With R in place, the output follows a falling signal down with a time constant of RC = 100 ms.

The catch — the op-amp must charge the capacitor fast enough

Charging the capacitor takes current. While the input is rising to its peak, the capacitor voltage must follow it, and the fastest the input rises is the sine's maximum slope:

dV/dt = 2Ï€f × Vpk = 2 × 3.1416 × 1000 × 1 = 6,283 V/s

so the charging current is:

I = C × dV/dt = 1 µF × 6,283 V/s = 6.3 mA

— easily inside a 741's output current of about 20 mA. But make C ten times bigger, 10 µF, and the same signal needs 62.8 mA, more than the op-amp can deliver. Then the capacitor cannot keep up, the output lags behind the peaks, and the reading comes out low. The fix is a bigger capacitor only together with an op-amp that can source the current, or a smaller bleed resistor with a smaller capacitor. (Slew rate is not the problem here: the 741 slews at 0.5 V/µs = 500,000 V/s, about 80 times faster than the 6,283 V/s the signal needs.)

Designing a 10 ms hold with less than 50 mV droop

Suppose you need to hold a 5 V peak for 10 ms — for example, to let a slow ADC take a reading — with a droop of no more than 50 mV. Rearranging the droop formula:

RC ≥ Vpk × T / ΔV = 5 × 0.01 / 0.05 = 1.0 s

With R = 100 kΩ that means C = 10 µF, and the actual droop is 5 × (1 − e−0.01/1.0) = 49.8 mV — just inside the limit. Check the charging current first, though: at the signal frequency, 10 µF needs ten times the current of 1 µF, so this design suits a slow signal or an op-amp with a stronger output stage. If the droop is still too big, the answer is a larger RC, not a larger capacitor alone — and remember that leakage in the capacitor and the op-amp's input bias current also discharge it, so a low-leakage film capacitor and a FET-input op-amp give the longest holds.

Key points to remember

  • A peak detector charges a capacitor to the signal's peak and holds it there; the bleed resistor lets the output follow a falling signal.
  • Worked example: 1 V peak at 1 kHz, C = 1 µF, R = 100 kΩ → RC = 100 ms, droop 9.95 mV (1%) per cycle; a plain diode detector would hold only 0.3 V.
  • Putting the diode inside the op-amp's feedback loop removes the 0.7 V diode drop from the reading.
  • Charging current is I = C × 2Ï€f × Vpk: 6.3 mA for 1 µF at 1 kHz, but 62.8 mA for 10 µF — more than a 741's ~20 mA output can supply.
  • Design rule: to hold 5 V for 10 ms with under 50 mV droop, RC must be at least 1 s — C = 10 µF with R = 100 kΩ gives 49.8 mV of droop.