Phase Shift Calculator — Amplitude, Period, Vertical Shift & Graph

Calculate phase shift, amplitude, period, and vertical shift for y = A·sin(Bx + C) + D. Visualize the function with an interactive SVG graph and key-point tables.

Vertical stretch/compression. Negative = reflection.
Horizontal stretch/compression. Period = 2π/|B|
Phase shift = -C/B (radians)
Shifts the entire curve up or down
Planning notes, formulas, and examples

About the Phase Shift Calculator — Amplitude, Period, Vertical Shift & Graph

Every sinusoidal function can be written in the standard form y = A·sin(Bx + C) + D, where four parameters control the shape and position of the wave. The amplitude |A| determines the height, the period 2π/|B| determines how wide each cycle is, the phase shift -C/B moves the wave left or right, and the vertical shift D moves the midline up or down.

Phase shift is especially important in physics and engineering: in AC circuits, the relative phase between voltage and current determines power delivery. In signal processing, phase alignment is critical for interference and superposition. In music, phase differences produce constructive and destructive interference patterns.

This calculator takes the four parameters A, B, C, D and any of sin, cos, or tan, then computes all wave properties: amplitude, period, frequency, phase shift (in radians and degrees), vertical shift, range, and midline. A live SVG graph shows the wave with phase shift and midline markers, and a key-points table shows the y-values at evenly spaced x-positions across the first period.

When This Page Helps

Use this page when you need the parameter relationships without losing the connection between the equation and the graph. It ties A, B, C, and D to amplitude, period, frequency, phase shift, range, and midline so you can check how each transformation changes the waveform.

It is especially useful in precalculus, trigonometry, AC circuit analysis, and signal-processing work where the horizontal offset and vertical baseline matter as much as the raw y-values.

How to Use the Inputs

  1. Select the base function: sin, cos, or tan.
  2. Enter A (amplitude coefficient), B (frequency coefficient), C (phase parameter), and D (vertical shift).
  3. Or click a preset for common configurations.
  4. Read the phase shift from the output cards: Phase Shift = -C/B.
  5. View the graph with marked phase shift (red dashed) and midline (orange dashed).
  6. Check key points at 0, ¼, ½, ¾, and 1 full period.
  7. Review the parameter breakdown table for detailed effects.
Formula used
Phase shift = -C/B. Amplitude = |A|. Period = 2π/|B| for sin/cos, π/|B| for tan. Frequency = 1/period. Midline: y = D. Range: [D - |A|, D + |A|] for sin/cos, all reals for tan.

Example Calculation

Result: Amplitude = 3, Period ≈ 3.14, Phase shift ≈ -0.39 rad (−22.5°), Midline = -1

For y = 3·sin(2x + π/4) − 1: amplitude |3| = 3, period = 2π/2 = π ≈ 3.14, phase shift = −(π/4)/2 = −π/8 ≈ −0.393 rad (shift left 22.5°), vertical shift = −1.

Tips & Best Practices

  • Remember: phase shift = -C/B, not just -C. Many students forget to divide by B.
  • The period of tangent is π/|B|, not 2π/|B| — tangent repeats twice as often.
  • Changing A to negative flips the wave but does not change the amplitude value.
  • If you want a specific phase shift φ, set C = -Bφ.
  • For cos to sin conversion: cos(x) = sin(x + π/2), so a cosine function is a sine with phase shift π/(2B) more.
  • The AC Current preset shows a 60 Hz signal (B = 2π·60 ≈ 376.99) with 30° phase lag — a common electrical engineering scenario.

From Standard Form to Real-World Waves

The equation y = A·sin(Bx + C) + D is not just a math exercise — it models countless real phenomena. Sound waves, electromagnetic radiation, ocean tides, cardiac rhythms, and seasonal temperature patterns all follow sinusoidal models. The four parameters map directly to physical properties: A → loudness (sound) or intensity (light), B → pitch (sound) or color (light), -C/B → timing offset, and D → baseline level.

For example, the daily temperature in a city can be modeled as T(t) = A·sin(2π/365 · (t - φ)) + D, where A is half the annual range, φ is the day of peak temperature, and D is the annual average. The phase shift gives the lag between the solstice and the hottest day — typically about 3-4 weeks.

Phase Shift in Signal Processing

In signal processing, relative phase is everything. Two signals of the same frequency can add constructively (in phase, φ = 0°) or destructively (out of phase, φ = 180°). This principle underlies noise-canceling headphones, radio antenna arrays, and Fourier analysis. The Discrete Fourier Transform decomposes any signal into sinusoidal components, each with its own amplitude and phase — the phase spectrum carries as much information as the amplitude spectrum.

Euler's Formula Connection

Euler's formula e^(ix) = cos(x) + i·sin(x) provides the deepest view of phase: a complex exponential rotates in the complex plane, and the phase determines the starting angle. Engineers use the phasor representation V = V₀·e^(iφ) to simplify AC circuit analysis, converting differential equations into algebraic ones. The phase shift between voltage and current phasors determines the power factor of the circuit.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • C is the phase parameter in the equation y = A·sin(Bx + C) + D. The actual horizontal shift is -C/B, not just C or -C. The division by B accounts for the frequency coefficient.