Total Harmonic Distortion (THD) is a key factor when designing and checking different electronic and electrical systems, where keeping signals clear and accurate is very important. From speakers and music equipment to delicate electronic devices, knowing and controlling THD is remarkable for keeping a system working well and efficiently. This article looks into what THD is, why it matters, and how it's measured and reduced. By understanding how unwanted harmonic frequencies affect signals and how THD is calculated, we aim to give you the information you need to make your systems work better and last longer.

Total Harmonic Distortion, or THD, measures how much an electrical signal changes as it passes through a system. It's a way to evaluate how accurately a device handles signals, especially in high-precision applications like audio equipment or sensitive electronics.
In concept, a clean electrical signal—usually shaped like a smooth sine wave—should stay the same from input to output. But in practice, that rarely happens. As the signal moves through circuits and components, it encounters imperfections. Resistors, capacitors, transistors, and other parts can introduce subtle shifts. These parts may not respond perfectly, especially when dealing with varying voltages or loads. As a result, extra frequencies—called harmonics—get added to the original signal. These harmonics are multiples of the main frequency and weren’t there to begin with. They change the shape of the waveform, causing it to deviate from the original sine wave. THD measures how strong those added frequencies are compared to the strength of the main, original frequency.
When THD is low, it means the signal has stayed mostly intact, with minimal distortion. But when the THD is high, the signal has been significantly altered. This can degrade performance, especially in systems where clarity and accuracy are used. Understanding THD helps you design and evaluate systems to ensure they deliver clean, faithful signal reproduction.
Periodic electrical signals—like voltage or current—are made up of basic building blocks called frequencies. The most important of these is the ultimate frequency, which sets the primary rhythm or cycle of the waveform. Harmonics are extra frequency components layered on top of this base. They occur at whole-number multiples of the ultimate frequency. This breakdown of a complex signal into a set of simple sine waves is described through a method called Fourier analysis.
In an ideal case, a waveform might be perfectly smooth—a pure sine wave. This kind of signal contains only the ultimate frequency and nothing else. Since no extra frequencies are present, there is zero harmonic distortion.
Signals rarely stay that clean in actuality. As electrical current flows through a system, it interacts with various components—resistors, capacitors, switches, and loads. These interactions are often imperfect. Slight delays, non-linear behavior, or irregular loading can distort the signal’s shape. These distortions show up as added harmonic frequencies that weren’t in the original signal.

Figure 2. A Sinusoidal Voltage and a Square Wave Voltage in the time Domain
The more a signal strays from the clean sine wave, the more harmonics it contains. These added frequencies make the waveform more jagged or complex, and the signal becomes increasingly distorted. The strength and number of these harmonics give a clear indication of how far the waveform has deviated from its ideal shape.
To better understand how this works, imagine two waveforms displayed side by side. One is a pure sine wave—smooth, continuous, and regular. The other is a square wave—sharp, angular, and highly structured. In the time domain, the difference is obvious: the square wave looks much more abrupt. Now, imagine looking at these same signals in the frequency domain, where each frequency component is shown as a separate spike. The sine wave shows just one spike, representing its single frequency. The square wave, by contrast, has many spikes—its shape is built from multiple harmonics stacked on top of the base frequency.

Figure 3. Sinusoidal Voltage and a Square Wave Voltage in the Frequency Domain
These visual differences help reveal how harmonics affect a signal. When too many harmonics are present, the waveform loses its clarity. This kind of distortion can lead to reduced performance or faulty readings for systems that rely on precise signal reproduction—like audio amplifiers or control systems.
That’s why you can use measurements like Total Harmonic Distortion (THD). THD gives a clear number that reflects how much of a signal’s power comes from unwanted harmonic content. It helps determine whether a signal remains close to its ideal shape or whether it's been altered in ways that could compromise system performance.
Total Harmonic Distortion (THD) measures how much a waveform deviates from a pure sine wave due to the presence of harmonics. In this article, we'll walk through how to calculate THD using a 50% duty cycle square wave as an example.
THD is the ratio of the RMS (root mean square) voltage of all harmonic components (excluding the fundamental) to the RMS voltage of the fundamental frequency. Harmonics are higher-frequency signals that distort the original waveform.

Where:
-