-
🎛️ Phase Shift Calculator
Calculate audio phase shifts, time offsets, sample delays, and sound-path differences. Explore how phase affects waveform alignment and interference.
1. Choose a Calculation Mode
Positive delays, sample offsets, and path differences mean the second signal arrives later. This produces a negative phase shift relative to the reference. Polarity inversion adds 180° to the relative phase for a pure sine wave.
2. Phase Shift Results
Combined Phase Shift — Relative phase of the second signal—Delay-Only Phase Shift—Combined Phase (radians)—Physical Time Offset—Sample Offset—Equivalent Path Difference—Waveform Period—Wavelength—Combined Peak Amplitude—Level vs. Reference Alone3. Waveform Phase Visualization
Reference Shifted Signal Combined SignalThe waveform plot uses pure sine waves at the selected frequency. All traces share the same vertical scale, adjusted to fit the largest plotted amplitude.
4. Phase Shift Across Frequencies
For a fixed time offset, phase shift changes with frequency. The table below shows the effect at selected audio frequencies. Polarity inversion is included.
Frequency Unwrapped Phase Wrapped Phase Combined Amplitude 5. Phase Shift Formulas
φ = −360° × f × ΔtPhase shift in degrees from frequency and a signed time offset.
Δt = −φ / (360° × f)Time offset corresponding to an unwrapped phase shift.
Samples = Δt × Sample RateConvert time delay in seconds into an audio sample offset.
Δt = Δx / cCalculate arrival-time difference from additional sound path Δx and sound speed c.
A = √(A₁² + A₂² + 2A₁A₂cosφ)Combined amplitude of two coherent sine waves with relative phase φ.
6. Practical Audio Phase Notes
In Phase: Identical sine waves at 0° relative phase reinforce when summed.
Out of Phase: Signals with different phase angles can reinforce or partially cancel.
180° Difference: Two equal-amplitude sine waves cancel completely when summed.
Polarity Inversion: Reverses waveform amplitude. For a pure sine wave, it is equivalent to adding 180° of phase.
Sample Delay: A time offset measured in discrete digital audio samples.
Comb Filtering: Alternating reinforcement and cancellation across frequencies when a signal is combined with a delayed version of itself.
Important: This calculator models ideal coherent sine waves. Real recordings can have different frequency content, amplitudes, phase responses, and timing variations. -
A Phase Shift Calculator helps musicians, music producers, audio engineers, sound designers, and acoustics enthusiasts calculate how one audio signal shifts in time or phase relative to another.
Phase shift plays an important role in audio recording, mixing, microphone placement, speaker alignment, sound-wave interference, and digital signal processing. When two similar signals are combined, their relative timing and phase can affect how strongly certain frequencies reinforce or cancel each other.
This interactive calculator allows you to calculate phase shift from time delay, convert phase shift into milliseconds, calculate sample offsets, estimate phase differences from speaker or microphone distance, and explore constructive and destructive interference.
It also includes a waveform visualization and a frequency comparison table to show how phase relationships change across the audio spectrum.
How to Use the Phase Shift Calculator
Start by selecting one of the calculation modes.
Time Delay to Phase Shift: Enter a frequency and time delay in milliseconds to calculate the phase shift in degrees.
Phase Shift to Time Delay: Enter a desired phase shift and frequency to calculate the equivalent time offset.
Sample Offset to Phase Shift: Enter a sample offset and audio sample rate to calculate the resulting phase shift.
Distance Difference to Phase Shift: Enter the additional distance a sound travels to estimate its phase difference at the selected frequency.
You can also adjust the sample rate, speed of sound, phase display, signal polarity, and relative amplitude.
Click Calculate Phase Shift to view the results.
The calculator displays the phase shift, time offset, sample difference, equivalent path difference, waveform period, wavelength, and predicted combined amplitude.
What Is Phase Shift?
Phase shift describes the difference in position between two periodic waveforms.
A complete waveform cycle contains 360 degrees.
When two equal-frequency signals have matching phase positions, they are considered in phase.
When their cycles are offset, they have a phase difference.
For example, a 90-degree phase shift represents one-quarter of a cycle, while a 180-degree phase shift represents half a cycle.
Phase differences can influence the way signals combine.
Phase Shift Formula
The phase shift caused by a time delay can be calculated using:
φ = −360 × f × Δt
Where:
-
φ is phase shift in degrees.
-
f is frequency in hertz.
-
Δt is the signed time delay in seconds.
The negative sign indicates that a positive time delay produces a phase lag.
For example, a 1,000 Hz signal delayed by 0.0005 seconds has a phase shift of:
φ = −360 × 1,000 × 0.0005 = −180°
This means the delayed signal is half a cycle behind the original.
Phase Shift vs. Time Delay
Phase shift and time delay are related, but they are not identical concepts.
Time delay describes how much later or earlier a signal occurs.
Phase shift describes the resulting angular difference at a particular frequency.
A fixed time delay produces different phase shifts at different frequencies.
For example, a delay of 1 millisecond creates:
-
A −36° phase shift at 100 Hz.
-
A −180° phase shift at 500 Hz.
-
A −360° phase shift at 1,000 Hz.
This frequency dependence is important when combining complex audio signals.
How to Convert Phase Shift Into Milliseconds
To calculate time delay from an unwrapped phase shift, use:
Δt = −φ / (360 × f)
For example, a −90-degree phase shift at 1,000 Hz corresponds to:
Δt = 90 / (360 × 1,000) = 0.00025 seconds
That equals 0.25 milliseconds.
Remember that phase angles repeat every 360 degrees, so multiple time offsets can produce the same wrapped phase at one frequency.
What Is Phase Cancellation?
Phase cancellation occurs when signals combine in a way that reduces their resulting amplitude.
For two identical sine waves with equal amplitudes, a 180-degree phase difference produces complete cancellation.
However, real recordings often contain many frequencies with different phase relationships.
As a result, cancellation may affect some frequencies more than others.
This can change the perceived tonal balance of the combined audio.
What Is Constructive Interference?
Constructive interference occurs when coherent signals combine to produce a greater amplitude.
For example, two identical, perfectly in-phase sine waves of equal amplitude produce a combined amplitude twice that of either individual signal.
That corresponds to an increase of approximately 6.02 dB in amplitude level relative to one signal alone.
The result depends on the signals' relative amplitudes and phase relationship.
Phase Shift and Comb Filtering
Comb filtering occurs when a signal is combined with a delayed version of itself.
The delay causes alternating reinforcement and cancellation at different frequencies.
This creates a series of peaks and dips in the combined frequency response.
Comb filtering can occur when recording with multiple microphones, blending direct and reflected sound, or using delay-based audio effects.
The calculator's frequency comparison table helps illustrate why the same time delay produces different phase shifts at different frequencies.
Phase Shift in Music Production
Music producers often encounter phase relationships when layering sounds.
For example, combining two similar kick drum samples may produce unexpected changes in low-frequency energy.
Layered bass sounds can also interact depending on their relative timing and phase.
Small timing adjustments may change the combined sound.
However, perfect waveform alignment is not always necessary or desirable. The best result depends on the musical context.
Phase Shift and Microphone Alignment
When two microphones capture the same sound source from different distances, the sound reaches each microphone at a different time.
These arrival-time differences can create phase shifts.
For example, a close microphone and a distant microphone recording the same drum may capture related waveforms with different arrival times.
When the recordings are mixed together, certain frequencies may reinforce or cancel.
A phase shift calculator can help estimate the timing relationships involved.
Phase Shift and Speaker Placement
Speaker placement can influence the relative arrival times of sound waves.
When multiple speakers reproduce overlapping frequency ranges, their outputs may interact.
For example, a subwoofer and main speaker may both reproduce frequencies near the crossover region.
Their relative timing, acoustic phase, and frequency responses affect how they combine.
The calculator can estimate the phase shift caused by an additional sound path, but complete speaker alignment requires measurements across the relevant frequency range.
Phase Shift and Sample Rate
Digital audio represents sound using samples taken at regular intervals.
The sample rate determines how many samples are recorded or played each second.
For example:
-
At 44.1 kHz, one sample lasts approximately 22.68 microseconds.
-
At 48 kHz, one sample lasts approximately 20.83 microseconds.
-
At 96 kHz, one sample lasts approximately 10.42 microseconds.
A sample offset creates a time delay, which produces a frequency-dependent phase shift.
The calculator converts between sample offsets, milliseconds, and phase angles.
How Many Samples Equal a Phase Shift?
The number of samples corresponding to a time offset is:
Samples = Time Delay × Sample Rate
For example, a delay of 0.5 milliseconds at 48,000 samples per second equals:
0.0005 × 48,000 = 24 samples
At 1,000 Hz, that delay corresponds to a −180-degree phase shift.
The sample count needed for a particular phase angle depends on both frequency and sample rate.
Phase Shift vs. Polarity Inversion
Phase shift and polarity inversion are related but different.
Polarity inversion changes every positive amplitude value into a negative value and vice versa.
For a pure sine wave, this is equivalent to adding 180 degrees to its phase.
However, polarity inversion does not move a recording forward or backward in time.
A time delay creates a phase shift that varies with frequency, while polarity inversion reverses the entire waveform's sign.
This distinction is important when troubleshooting audio alignment.
What Is Phase Wrapping?
Phase wrapping expresses a phase angle within a selected interval.
For example, 270 degrees is equivalent to −90 degrees when represented within a signed range.
Similarly, 360 degrees is equivalent to 0 degrees in terms of position within a repeating cycle.
However, an unwrapped phase angle can preserve information about how many complete cycles of delay have occurred.
The calculator allows you to compare signed, positive, and unwrapped phase values.
Phase Shift and Frequency
The amount of phase shift caused by a fixed time delay increases with frequency.
Lower frequencies have longer periods.
Higher frequencies have shorter periods.
This means the same delay represents a smaller fraction of a low-frequency cycle and a larger fraction of a high-frequency cycle.
Understanding this relationship is especially important when working with broadband audio.
Phase Shift in Stereo Audio
Stereo recordings contain left and right channels that may have different timing and phase relationships.
These differences can contribute to stereo width and spatial perception.
However, extreme phase differences may affect how a stereo recording sounds when summed to mono.
Mono compatibility checks can help identify potential cancellation problems.
The calculator provides a simplified way to explore the underlying phase relationships.
Phase Shift in Subwoofer Alignment
Subwoofers and main speakers often overlap around the crossover frequency.
Their relative acoustic phase affects how the outputs combine in that region.
For example, if two equal-amplitude signals are 180 degrees apart at a crossover frequency, significant cancellation can occur.
Changing delay, polarity, or filter settings may affect the result.
However, acoustic phase is influenced by more than physical distance, including crossover filters and speaker behavior.
Can Phase Shift Improve Audio Quality?
Adjusting relative timing or phase can improve the way certain audio signals combine.
For example, correcting an unwanted delay between related microphone signals may improve tonal consistency.
However, phase adjustments are not automatically beneficial.
Sometimes the existing timing differences contribute positively to the desired sound.
Listening and measurement are important when deciding whether to change phase relationships.
Important Limitations of Phase Shift Calculations
This calculator uses ideal sine-wave models to illustrate phase relationships.
It assumes coherent signals at the same frequency when calculating combined amplitude.
The interference calculation uses the selected relative amplitude and polarity.
Real audio recordings may contain different waveforms, varying frequency content, and complex phase relationships.
The calculator does not automatically analyze uploaded recordings or measure speaker alignment.
Its results are best used for learning, planning, and estimating phase relationships.
Tip: Enter 1,000 Hz with a 0.5-millisecond delay and equal signal amplitudes. The calculator shows a −180-degree phase shift and ideal cancellation. Next, change the frequency to 500 Hz without changing the delay. The phase shift becomes −90 degrees, and the combined amplitude increases. This demonstrates why a fixed audio delay can cancel some frequencies while allowing others to reinforce.
Related Pages:
Sound Quality And Acoustics In Home Music Studios
Having The Right Headphones And Monitors For Studio Recordings
-
