Sine function example
f(x) = 2 sin(3x - π/2) + 1
Result: A = 2, B = 3, C = π/2, D = 1. Phase shift = π/6, period = 2π/3, amplitude = 2, vertical shift = 1.
Sine · Cosine · C/B · 2π/B · Live control panel
Calculate, understand, and apply phase shifts for trigonometry, wave functions, physics, engineering, and sinusoidal equations. Enter A, B, C, and D in the live panel below, then read the full guide for formulas, examples, and applications.
Community rating 4.8/5 · 96 reviews
Result
B cannot be zero when finding phase shift or period.
A phase shift is the horizontal displacement of a sinusoidal graph. It tells you how far a sine or cosine wave moves left or right along the x-axis before the pattern repeats.
In standard form f(x) = A sin(Bx - C) + D, the phase shift equals C divided by B when B is not zero. That value describes where the wave starts relative to the parent function.
Phase shift appears in trigonometry homework, wave motion in physics, and timing offsets in signal processing. It is different from amplitude (height), period (length of one cycle), and vertical shift (midline height).
General form: y = A sin(B(x - C)) + D → phase shift = C
Expanded form: f(x) = A sin(Bx - C) + D → phase shift = C / B
Cosine: f(x) = A cos(Bx - C) + D → phase shift = C / B
Amplitude = A
Period = 2π / B
Vertical shift = D
Many textbooks write B(x - C) inside the sine. If you expand that expression, the horizontal shift still comes from C, but the coefficient on x inside Bx - C must be matched carefully before you divide.
This calculator uses f(x) = A sin(Bx - C) + D (or cosine). Enter the numbers exactly as they appear in that form so phase shift = C / B matches your worksheet.
Graph interpretation: the phase shift marks where the first key point of the cycle occurs compared with sin(x) or cos(x). Sketch one cycle to confirm direction (left or right) using your course sign convention.
Follow these steps by hand, in degrees or radians, or enter the same values in the calculator panel above for instant readouts.
These examples cover sine, cosine, and applied wave settings. For tangent phase shifts (different period rules), see our trigonometry guide. More walkthroughs live in the examples article.
f(x) = 2 sin(3x - π/2) + 1
Result: A = 2, B = 3, C = π/2, D = 1. Phase shift = π/6, period = 2π/3, amplitude = 2, vertical shift = 1.
f(x) = -1 cos(2x - π) + 4
Result: Phase shift = π/2, amplitude = -1, period = π, vertical shift = 4.
y = 5 sin(2(x - 3)) + 1 expands to sin(2x - 6) + 1 with B = 2 and C = 6.
Result: Phase shift = 6/2 = 3 in the Bx - C form used by the calculator.
Two signals y = sin(x) and y = sin(x - π/4) are offset by a quarter-cycle.
Result: Phase shift = π/4 radians between the waves, useful when aligning peaks in signal analysis.
Sinusoidal graphs combine amplitude, period, phase shift, and vertical shift. Phase shift is the horizontal piece: it moves every point on the graph by the same x-distance.
On the unit circle, a phase shift in the input angle rotates where the wave begins. Identities such as sin(x - φ) relate to cos(x) with an extra shift, which helps rewrite equations.
For deeper coverage, read Phase Shift in Trigonometry.
Waves in physics are often written as sinusoids. Phase shift describes how far one oscillation is ahead of or behind another at the same frequency.
In simple harmonic motion, matching phase helps predict when a mass-spring system or pendulum reaches maximum displacement relative to a reference wave.
Explore applications in Phase Shift in Physics.
Engineers describe timing offsets between periodic signals as phase. A shift in degrees or radians shows how much one waveform leads or lags another.
Audio alignment, electrical AC analysis, and communication timing all use the same math as trigonometry phase shift, with units tied to frequency.
Learn more in Phase Shift in Signal Processing.
Phase shift moves a graph horizontally at a fixed frequency. Frequency shift changes how fast the wave oscillates, which alters period and pitch.
Do not confuse C/B with B itself. B controls period (2π/B) and scaling of the input. C controls where the cycle starts.
Read the full comparison in Phase Shift vs Frequency Shift.
Most errors come from mixing the two standard forms or forgetting to divide by B. Always rewrite the equation before you report a shift.
Sketching confirms calculator output. For a full plotting walkthrough, see Graphing Phase Shift Functions.
In f(x) = A sin(Bx - C) + D, phase shift = C / B. That is the horizontal shift in x-units when B is not zero.
That form uses C directly as the shift before factoring. Expanded, it becomes sin(Bx - BC) + D, so the Bx - C form uses C_input = BC.
Period = 2π / B. The calculator shows this as a coefficient times π radians.
Yes. For f(x) = A cos(Bx - C) + D, phase shift = C / B with the same amplitude, period, and vertical shift rules.
It describes timing offset between periodic waves at the same frequency, such as voltage and current in AC circuits or aligned audio channels.
No. Phase shift slides the graph horizontally. Frequency shift changes B or ω and alters how quickly the wave repeats.
Both phase shift and period require division by B. When B = 0 the function is no longer a periodic wave in x.
Enter C as a decimal. For π/2 use 1.5708 or symbolic fractions if your workflow allows. Keep units consistent when comparing to textbook answers.