# Cross correlation vs FFT for finding phase between 2 signals

I have been struggling with this issue for months now, trying to understand which one to pick: FFT or cross correlation.

I am given a sine wave (with phase, amplitude, frequency and time vector known), and I have to extract the phase shift between that sine wave and another signal. The new signal has the same frequency and the same time vector as the sine wave, however the amplitude and the phase are unknowns. What would you guys suggest? I am at a loss.

Thank you.

• Can you tell us what is your criteria for choosing? Are you looking for the lowest complexity algorithm, or the easiest to implement, or something else? Your problem can be solved with either method.
– MBaz
Commented Oct 13, 2014 at 18:44
• @MBaz: criteria is mainly the complexity and the amount of work that would go into it. I am a grad student and finding the correct phase is a tiny part of my research so being stuck has been really frustrating. Any tips? Commented Oct 14, 2014 at 15:02