A Class D power amplifier IC is a highly efficient integrated circuit that amplifies audio signals by converting them into high-frequency pulse-width modulated (PWM) square waves, switching output transistors fully on or off to minimize heat loss. What this changes in a real circuit is massive: it replaces the heavy, finned aluminum heat sinks and bulky linear regulators of traditional Class AB designs with a tiny surface-mount chip that can push 50 watts of audio from a standard 24V laptop power brick.
The Core Mechanism: PWM and the Output Stage
To understand a Class D power amplifier IC, you have to look past the audio waveform and look at the switching node. Inside the IC, an internal oscillator generates a high-frequency triangle wave, typically running between 400 kHz and 1.2 MHz. A comparator continuously measures your low-frequency analog audio input against this triangle wave.
When the audio voltage is higher than the triangle wave, the comparator outputs a logic high. When it is lower, it outputs a logic low. This creates a PWM square wave where the duty cycle perfectly mirrors the instantaneous amplitude of your audio signal. This high-frequency square wave then drives the gates of internal MOSFETs in a half-bridge or full-bridge configuration.
Before this square wave reaches your speaker, it must pass through a passive LC low-pass filter. This filter strips away the ultrasonic switching frequency, leaving only the smoothed, amplified analog audio waveform to drive the speaker cone. For a deeper look at the underlying comparator math, the All About Circuits Class D primer provides an excellent breakdown of the modulation index.
The Math: Heat Dissipation and LC Filter Sizing
Let us run a worked numeric example to see why Class D dominates modern portable and high-density audio. Suppose you need to deliver 50W of continuous RMS power into a 4-ohm speaker load.
| Metric | Class AB (Linear) | Class D (Switching) |
|---|---|---|
| Typical Efficiency | ~50% | ~90% |
| Required PSU Power | 100W | 55.5W |
| Heat Dissipated (Waste) | 50W | 5.5W |
| Heat Sink Required? | Massive extruded aluminum | Small PCB copper pour or bare IC |
In the Class AB scenario, you are burning 50W as heat, requiring a large heat sink and forced air cooling. In the Class D scenario, 5.5W of heat can easily be managed by the IC's exposed thermal pad soldered directly to the PCB ground plane.
Sizing the Output LC Filter
The LC filter must pass 20 kHz audio while aggressively attenuating the 400 kHz switching frequency. We target a cutoff frequency ($f_c$) of roughly 40 kHz to 50 kHz. The formula is:
$f_c = \frac{1}{2\pi\sqrt{LC}}$
If we select a standard 10 µH inductor ($10 \times 10^{-6}$ H), we can solve for the capacitor ($C$):
$45,000 = \frac{1}{2\pi\sqrt{10 \times 10^{-6} \times C}}$
Solving for C yields approximately 1.24 µF. In practice, you would use a 1 µF or 1.5 µF film or high-Q ceramic capacitor (like a C0G/NP0 dielectric) rated for at least 50V to handle the reactive ringing without microphonic distortion.
Where You Meet This In Practice
You will rarely see discrete Class D designs on a hobbyist workbench; the high-speed gate driving and dead-time management required to prevent shoot-through (where both high and low MOSFETs turn on simultaneously, shorting the power rail) are best handled by integrated silicon. Here are the specific ICs you will encounter in 2026 DIY and commercial builds:
- Texas Instruments TPA3116D2: The undisputed king of DIY audio modules. It is an analog-input, 50W stereo IC that costs around $4. It requires minimal external components and is the backbone of thousands of cheap Amazon amplifier boards.
- TI TAS5805M: A modern digital-input Class D IC. It takes I2S audio directly from an ESP32 or Raspberry Pi, handling the digital-to-PWM conversion internally. Priced around $6, it eliminates the need for an external DAC.
- Infineon MA12070: A premium multi-level Class D IC. It uses a 3-level modulation scheme that drastically reduces idle power consumption and EMI, making it ideal for battery-powered Bluetooth speakers. It runs about $12 to $15.
Bench Scenario: The TPA3116D2 Clipping Mystery
Theory is clean, but the workbench is messy. Here is a real-world scenario that trips up many first-time Class D builders.
- The Setup: You are building a powered bookshelf speaker using a generic TPA3116D2 breakout board. You power it with a 24V, 5A laptop power brick (120W total capacity) and connect a pair of 4-ohm bookshelf speakers.
- The Numbers: The datasheet claims 50W per channel into 4 ohms at 24V. 50W x 2 = 100W. Your 120W power supply seems to have plenty of headroom.
- The Outcome: At low volumes, it sounds pristine. But the moment you push the volume up and a bass-heavy track hits, the audio clips horribly, emits a high-frequency whine, and the amplifier shuts down completely until you cycle the power.
- What Went Wrong: Two distinct hardware failures occurred. First, music has a high crest factor; bass transients demand instantaneous current spikes that exceed the 5A continuous rating of the cheap power brick, causing the 24V rail to sag below the TPA3116D2's Undervoltage Lockout (UVLO) threshold, triggering a shutdown. Second, the generic module manufacturer used undersized, unshielded 10 µH inductors rated for only 2A. During the bass transient, the current spiked to 4A, saturating the inductor's ferrite core. Once saturated, the inductance dropped to near zero, allowing the 400 kHz switching noise to blast directly into the speaker voice coil.
Common Confusions and FAQ
Is Class D actually "Digital"?
No. The "D" simply follows the alphabetical progression of amplifier classes (A, B, AB, C, D). The signal path inside a standard Class D power amplifier IC is entirely analog until the PWM comparator stage. The PWM wave is a continuous-time analog square wave with varying duty cycles, not a discrete binary digital stream (like PCM or I2S). True "digital" amplifiers (like the TAS5805M) include an integrated DSP and DAC to accept digital inputs, but the final output stage is still analog PWM.
Can I run a Class D amp without the LC output filter?
Only in very specific, limited scenarios known as "filterless" operation. This is only safe if your speaker wires are extremely short (under 10 cm), your speaker has a naturally high impedance at high frequencies, and the IC is specifically designed for filterless operation (often utilizing spread-spectrum clocking to reduce EMI). If you omit the filter on a standard TPA3116D2 with long speaker cables, the cables will act as antennas, radiating massive electromagnetic interference that will likely desense nearby WiFi and Bluetooth radios.
Why do Class D amps sound "harsh" at high frequencies?
If a Class D amp sounds harsh or fatiguing, it is rarely the switching topology itself. It is almost always the result of poor LC filter design. If the output capacitor has a high Equivalent Series Resistance (ESR) or the wrong dielectric (like X7R instead of C0G), it will introduce microphonic distortion and phase shifts near the 20 kHz upper limit of human hearing. Always use high-quality film or C0G/NP0 ceramics for the filter capacitor.






