In audio circles, the terms harmonic distortion, and total harmonic distortion, are often heard, especially in reference to electronic equipment. In this article, we would like to explain, hopefully in a simple and intuitive way, exactly what these terms mean, and what importance should be ascribed to them. The formal definition of total harmonic distortion is very precise and easy to state, but it requires some technical knowledge that the average consumer of sound equipment may not possess. Our goal here is to discuss the main ideas, with some audio and visual examples, and without the technical overhead.
Distortion, in an acoustical context, refers to a change in some characteristic of a sound. So harmonic distortion is a change in the harmonics of a sound. To describe harmonic distortion, then, we first need to talk a little bit about harmonics. To begin the discussion, we’ll start with a seemingly unrelated example, the mass-spring system, also known as the simple harmonic oscillator. This is a model that occurs over and over again in countless applications from electronics, to mechanics, to atomic physics. Luckily, it is very easy to understand. Hang a mass from a spring. Pull the mass down, just a little bit, and let it go. It will move up and down in a regular motion. In an idealized world, with no mechanical loss and no friction (which can never occur in practice, but hey, it’s a model), the motion would continue indefinitely. This is called simple harmonic motion. If we keep track of the position of the mass at each time and plot it on a piece of graph paper, we get a characteristic shape called a sine wave, shown below.
Actually, this is a cosine wave, which is just a sine wave shifted to the left by a quarter of a cycle. For the purposes of this article, we will disregard shifts to the right or left, and call everything with this characteristic shape a sine wave. A sine wave is sort of a mathematical miracle. If it is used to represent the position of an object, as in this example, it turns out that the velocity of the object also looks like a sine wave. So does the acceleration. From the picture above, we see that the object goes through one complete cycle per unit of time. If time is represented in seconds, we would say that the object is oscillating at the frequency of one cycle per second, also known as 1 Hertz (written 1 Hz).
What does a bouncing mass have to do with sound? A lot. For example, the picture above might also represent a voltage potential at the output of your amplifier, on it’s way to drive your speakers. This time, let’s assume that time is represented in milliseconds, so that the signal makes 1000 cycles per second, or 1000 Hz. Ideally (neglecting room effects), the speakers will produce sound waves whose pressure variations look pretty much like the same sine wave when they reach your ears. When that pressure wave does reach your ears, you will hear a “pure” tone, something like this:
Listen to the same sine wave two octaves lower, at 250 Hz:
Music would be quite boring if the notes were composed of sine waves, don’t you think? Well, actually, all music is composed of sine waves, along with all other sounds and signals. It is a mathematical fact that every “finite energy” signal can be represented by a sum (or integral) of sine waves (and cosine waves). Read about Fourier series and the Fourier transform if you are interested in the math. In a very real and practical sense, every sound we hear is a combination of sine waves.
A signal is called periodic if it repeats itself indefinitely. The sine wave in the picture above is periodic, since it looks the same every multiple of one time unit. If a periodic signal repeats itself 100 times per second (at frequency 100 Hz), then a sample of the signal 1/100th of a second long can be repeated to re-create the entire signal. Periodic signals are perceived by the ear as having a distinct pitch. For example, you would hear a periodic signal at 440 Hz as an ‘A’ on the musical scale. The frequency of the signal determines the pitch. What about the shape of the signal? This determines what is usually called “timbre”; it is the characteristic tone. A flute at 440 Hz sounds different than a violin at 440 Hz, because the timbre is different. If you were to record each instrument with a microphone and plot the voltage versus time, you would see two signals with the same frequency, but with very different wave shapes. Two artificial examples follow. First, consider a “triangle wave”. Three cycles of the wave looks like this:

Listen to this waveform played at 250 Hz:
Next, here are three cycles of a “square wave”, followed by audio at 250 Hz:

Compare the sounds of the sine wave, the triangle wave, and the square wave. Although they all have the same pitch and amplitude, the sine wave sounds more mellow than the triangle wave, and the square wave sounds rough or fuzzy. It is harmonics that determine the distinct tonal qualities of the triangle and square waves. So what are harmonics?
As mentioned above, all sounds are composed of sums or integrals of sine waves. For periodic signals, the sum (called a Fourier series) is particularly simple. Any periodic signal with frequency x can be decomposed into a sum of sine waves of frequency x, 2x, 3x, 4x, and so on. These sine waves are the harmonics of the signal. Although there are in principle an infinite number of harmonics, humans are unable to hear sounds at frequencies larger than 20,000 Hz. It turns out that the square wave only has odd harmonics x, 3x, 5x, and so on. So the 250 Hz square wave above would have harmonics at 250 Hz, 750 Hz, 1250 Hz, 1750 Hz, etc, but those above 20,000 Hz are not audible (and in fact, audio equipment usually does not reproduce frequencies beyond the audible range).
Ideally, audio equipment reproduces sine waves (harmonics) perfectly. A perfect audio amplifier is linear, meaning that the output is a uniformly rescaled version of the input. For example, if the triangle wave above represents the input to a perfect linear amplifier, the output waveform would look exactly the same, except that the numbers on the vertical scale would be larger. Unfortunately, amplifiers are not perfect. All amplifiers exhibit some nonlinearity. Nonlinearity in this context means that the input waveform is not reproduced perfectly. In particular, a sine wave at the input might not look exactly like a sine wave at the output. Since it is no longer a sine wave, it must contain additional harmonics. This is harmonic distortion. Total harmonic distortion is measured (in principle–there are trickier ways) by presenting a sine wave of a particular frequency at the input, and measuring the total magnitude (RMS) of additional harmonics present at the output. This number is divided by the magnitude of the original sine wave (the fundamental frequency) at the output, to give total harmonic distortion (THD) as a percent. Usually, manufacturers measure THD across a range of frequencies, at a particular gain, and report the maximum THD. Sometimes, the figure THD + N (total harmonic distortion plus noise) is reported. This figure, similar to THD, is the ratio of output power without the fundamental frequency to the power of the fundamental frequency. This is actually a preferable figure, since noise is often more of a problem than distortion in modern audio gear.
So, how important is THD? Well, it depends. In the early days of audio, when amplification was accomplished with vacuum tubes, equipment tended to produce a lot of distortion. Sometimes, distortion is actually desirable, as with guitar amplifiers. The amplifier distortion is part of the distinctive electric guitar sound. Even today, many people prefer the sound of tube-powered audio gear, distortion and all. The reasons are debatable, but it seems that tube amps typically produce primarily even-order harmonics, which sound “more musical”, since they occur in octaves of the fundamental. When transistor amplifiers first came along, the distortion tended to be very harsh, due to signal “clipping”, which produces odd harmonics as in the square wave example above. For these amplifiers, a much lower level of THD was tolerable. Modern, high-quality audio equipment generally has very respectable, if not amazing, THD figures. In our experience, THD below about 1% for an amplifier is generally not audible in anything short of a clinical listening environment. Generally, speakers and room acoustics will completely overwhelm the effects of harmonic distortion present in the amplifier output. However, people are different, and so are amplifiers. The best thing a consumer can do is to compare different amp possibilities side-by-side, with the speakers they intend to use, playing their preferred type of music. Forget about the THD numbers and choose the amp that sounds best to you.
Finally, it’s worth mentioning that harmonic distortion can in some cases by caused by the listening environment itself. Our favorite example is the ubiquitous teenager driving around in a 30 year-old compact car with 2000 watt amplifiers in the trunk. In addition to whatever distortion is produced by the amplifiers and speakers, the audible rattle of the car itself at high volume is harmonic distortion. We love it.