I am using sine signal with phase=0 an frequency=100KHz. Computed FFT of it.

Using angle function and multiplied the result with 180/pi; But getting 90.36 at 100KHz frequency.

Can anybody explain why I am getting 90 degree instead of 0 degree?

  • $\begingroup$ It goes by definition of the DFT Basically, for each bin of the DFT you correlate your signal with a cosine to get the real part and with a sine to get the imaginary part. Assuming your sine wave has the same frequency as the DFT bin, your sine will be perfectly correlated with the imaginary sine of the DFT while the correlation of your sine wave with the cosine will give 0. Since the output for this frequency bin is imaginary and positive, your will phase will be 90 degrees. en.wikipedia.org/wiki/Discrete_Fourier_transform $\endgroup$
    – Ben
    May 4, 2021 at 13:54
  • $\begingroup$ Thanks Ben. Your answer is clear to me. I need to subtract all phase values ? and can you please provide any resource on correlation specifically on DFT things? $\endgroup$
    – user653241
    May 4, 2021 at 14:49

1 Answer 1


The basis function for the Fourier Transform is the complex exponential $e^{j\omega t}$

Since $$sin(\omega t) = \frac{1}{2j}(e^{j\omega t} - e^{-j\omega t}) $$

the Fourier Transform of a sine wave a phase of -90 degrees at the positive frequency and a phase of +90 degrees at the negative frequency.

For a cosine, the phase would be 0 for both the positive and the negative frequency.

  • $\begingroup$ Can you explain this for my question? $\endgroup$
    – user653241
    May 4, 2021 at 15:06
  • 1
    $\begingroup$ I thought I did. What do you not understand?. The phase of a sine wave should come out to be -90 degrees. If it doesn't, than something is probably wrong with your code. You expect 0 degrees but your expectation is wrong. You get 0 degrees for a cosine , not a sine $\endgroup$
    – Hilmar
    May 4, 2021 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.