Summary of How to Build a Class-D Power Amp
This article introduces building a DIY Class-D audio power amplifier, highlighting its high efficiency (80–95%) and minimal heat generation compared to linear amplifiers. It explains the theoretical operation using Pulse-Width Modulation (PWM) with a comparator to convert input signals into rectangular pulses, which are then amplified and filtered back into analog sound via a low-pass filter.
Parts used in the Class-D Amplifier:
- Power transistors (MOSFETs)
- Comparator
- Low-pass filter
Have you always wanted to build your own audio power amplifier? An electronic project where you not only see the results but also hear them?
If your answer is yes, then you should continue reading this article on how to build your own Class D amplifier. I will explain to you how they work and then guide you step by step to make the magic happen all by yourself.
Theoretical Basics
What is a Class-D audio power amplifier? The answer could be just a sentence long: It is a switching amplifier. But in order to fully understand how one works, I need to teach you all its nooks and crannies.
Let’s start with that first sentence. Traditional amplifiers, like the class AB, operate as linear devices. Compare this to switching amplifiers, so called because the power transistors (the MOSFETs) are acting like switches, changing their state from OFF to ON. This allows a very high efficiency, up to 80 – 95%. Because of this, the amplifier does not generate a lot of heat and does not require a big heat sink like linear class AB amplifiers do. For comparison, the class B amplifier can only achieve a maximum efficiency of 78.5% (in theory).
Below you can see the block diagram of a basic PWM Class-D amplifier, just like the one that we are building.
The input signal is converted into a pulse width modulated, rectangular signal using a comparator. This basically means that the input is encoded into the duty cycle of the rectangular pulses. The rectangular signal is amplified, and then a low-pass filter results in a higher-power version of the original analog signal.
There are other methods for converting the signal into pulses, such as ΔΣ (delta-sigma) modulation, but for this project we will be using PWM.
Pulse-Width Modulation Using a Comparator
In the plot below, you can see how we transform a sinusoidal signal (the input) into a rectangular signal by comparing it to a triangle signal.
Read more: How to Build a Class-D Power Amp
- How efficient is a Class-D amplifier?
It achieves very high efficiency, up to 80 - 95%. - Does a Class-D amplifier generate a lot of heat?
No, it does not generate a lot of heat and barely gets warm. - What type of signal conversion does this project use?
The project uses Pulse-Width Modulation (PWM). - How is the input signal transformed into a rectangular signal?
A comparator converts the input signal by comparing it to a triangle signal. - What component results in a higher-power version of the original analog signal?
A low-pass filter processes the amplified rectangular signal to produce the output. - Can you build your own Class-D amplifier?
Yes, the article guides readers step by step on how to make one. - How do switching amplifiers differ from traditional linear devices?
Switching amplifiers use MOSFETs acting like switches that change state from OFF to ON.

