THDN is measured by using a sine wave as an input, then filtering it out at the output. This gives the total distortion without the principal signal. Then THDN is obtained by taking the ratio of the principal signal with total distortion to the principal signal (RMS Amplitudes)