How To Calculate Phase Difference Between Two Sine Waves

Phase Difference Calculator for Two Sine Waves

Compute phase shift in degrees and radians using either time offset or initial phase angles, then visualize both signals on the chart.

Enter values and click Calculate Phase Difference.

How to Calculate Phase Difference Between Two Sine Waves

Understanding phase difference is one of the most practical skills in signal analysis, electrical engineering, acoustics, communications, instrumentation, and control systems. If two sine waves have the same frequency, phase difference tells you how far one wave is shifted along the time axis relative to the other. This shift can be expressed in degrees, radians, or time units such as milliseconds. Engineers use phase difference to evaluate timing alignment, power factor, synchronization quality, sensor matching, and transmission delays.

A sine wave is commonly written as: x(t) = A sin(2πft + φ) where A is amplitude, f is frequency in hertz, and φ is phase angle. When comparing two waves with the same frequency, the phase difference is: Δφ = φ2 – φ1. If you only know time delay, then: Δφ = 2πfΔt (radians) or Δφ = 360fΔt (degrees).

Why phase difference matters in real systems

  • AC power systems: voltage and current phase angle determines real and reactive power flow.
  • Audio engineering: phase mismatch between microphones can cause comb filtering and tone loss.
  • RF and communications: coherent demodulation and beamforming depend on precise phase control.
  • Motor control: torque smoothness in multi-phase machines depends on correct relative phase.
  • Measurement systems: timing skew between channels directly appears as phase error.

Step by step method using time shift

  1. Measure or estimate the signal frequency f in hertz.
  2. Measure the relative delay Δt between equal landmarks on both waveforms, such as positive zero-crossings or peaks.
  3. Convert delay to seconds if needed. For example, 2 ms = 0.002 s.
  4. Apply Δφ(deg) = 360fΔt.
  5. Optionally wrap the result into a preferred range, such as 0° to 360° or -180° to +180°.

Example: for f = 50 Hz and Δt = 2 ms, Δφ = 360 × 50 × 0.002 = 36°. This means one wave leads or lags the other by 36 degrees depending on the sign convention used.

Step by step method using initial phase angles

  1. Read each wave equation, for example x1(t) = sin(2πft + φ1), x2(t) = sin(2πft + φ2).
  2. Compute Δφ = φ2 – φ1.
  3. If values are in radians and you need degrees, convert with deg = rad × 180/π.
  4. Normalize to a standard interval if needed.
Tip: if two sine waves do not share the same frequency, there is no single constant phase difference for all time. In that case, phase is time dependent and often analyzed using instantaneous phase, beat analysis, or cross-spectral methods.

Practical sign conventions

In practice, teams often disagree because sign conventions are not written down. Decide this first:

  • If wave 2 occurs later in time than wave 1, call it lagging and assign negative phase, or positive phase, but remain consistent.
  • Document whether your reporting range is 0° to 360° or -180° to +180°.
  • When using software tools, verify that phase unwrap settings are understood.

Common frequency and timing contexts where phase is measured

Application domain Typical frequency range Typical timing skew of concern Equivalent phase shift example
Utility AC grid 50 Hz or 60 Hz 1 ms 18° at 50 Hz, 21.6° at 60 Hz
Audio crossover region 1000 Hz 0.25 ms 90° at 1 kHz
Industrial vibration sensing 10 to 500 Hz 0.5 ms 1.8° at 10 Hz, 90° at 500 Hz
PMU synchrophasor monitoring 50 Hz or 60 Hz nominal 26 us 0.468° at 50 Hz, 0.562° at 60 Hz

The table above highlights a key engineering truth: phase error scales with frequency for the same absolute time skew. A delay that is almost negligible at 10 Hz can be catastrophic at 1 kHz or above.

Comparison table: phase error caused by the same delay at different frequencies

Frequency (Hz) Delay (100 us) Phase error (degrees) Portion of one cycle
50 0.0001 s 1.8° 0.5%
60 0.0001 s 2.16° 0.6%
400 0.0001 s 14.4° 4.0%
1000 0.0001 s 36° 10.0%
10000 0.0001 s 360° 100.0%

Measurement best practices for accurate phase difference

  • Use stable triggering: unstable trigger points create random phase jitter.
  • Match channel paths: unequal cable lengths and filter delays add hidden skew.
  • Average in noise: noisy zero-crossings increase uncertainty. Averaging improves repeatability.
  • Confirm same frequency: if frequencies differ slightly, measured phase drifts over time.
  • Account for instrument delay: ADC and DSP pipelines can add fixed latency between channels.

Interpreting lead and lag correctly

Lead and lag are directional statements. If wave 2 reaches its peak earlier than wave 1, wave 2 leads wave 1. If it reaches peak later, it lags. In formulas, this depends on your sign convention for time shift. A reliable habit is to define: Δt = t2 – t1. Then positive Δt means wave 2 occurs later and therefore lags in time. Convert with Δφ = 360fΔt and keep this convention throughout your report.

What happens when amplitudes are different

Different amplitudes do not change phase difference directly. Phase concerns timing alignment, not signal height. However, amplitude imbalance can make edge or zero-crossing detection harder under noise, so practical phase estimates may still degrade. In instrumentation, use band-limited filtering and consistent reference points to reduce bias.

Advanced note: phase from cross-correlation and FFT

For real-world data, especially sampled signals, you may estimate delay using cross-correlation and then convert to phase at a target frequency. Alternatively, use FFT and compare complex spectra at the bin of interest. The angle of the cross-power spectrum provides phase relation and can be more robust in multi-tone environments. These methods are standard in vibration analysis, acoustic localization, and power quality diagnostics.

Trusted references for further study

Quick recap

To calculate phase difference between two sine waves, use either angle subtraction (φ2 – φ1) or time-shift conversion (360fΔt in degrees, 2πfΔt in radians). Always verify frequency consistency, document sign conventions, and normalize your final angle range. With these steps, phase calculations become repeatable, auditable, and useful across power, audio, controls, and communications engineering.

Leave a Reply

Your email address will not be published. Required fields are marked *