🧮
🧮 Math & statistics

Phase Shift Calculator (amplitude, period, phase & vertical shift of sine and cosine)

Results update as you type.

Your numbers

Understanding the phase shift calculator — concept and principle

This calculator reads a sine or cosine function in the form y = A·sin(Bx − C) + D or y = A·cos(Bx − C) + D and gives its phase shift, amplitude, period, frequency, midline, maximum and minimum. Use it for precalculus and trigonometry homework, for sketching graphs, and for modelling waves, tides, sound or alternating current.

Phase shift of a sine functionReading y = 2·sin(3x − 1.5) − 1A · B2 · 3C · D1.5 · −1shift = C ÷ B = 1.5 ÷ 3period = 2π ÷ 3Phase shift0.5 rightPeriod · max · min2.0944 · 1 · −3
Factor out B: sin(3(x − 0.5)) is sin(3x) moved 0.5 to the right.

How it is calculated

The page also shows the shift as a multiple of π, as a fraction of the period, and reduced to the range from 0 to one period.

The principle

Start from y = sin x. Multiplying the input by B squeezes the graph horizontally, so one cycle takes 2π ÷ |B| instead of 2π. Factor the inside as B(x − C/B): the graph of sin(Bx) is moved by C/B units, because the curve now reaches the value it had at x = 0 when x = C/B. A scales the height (amplitude) and D lifts the whole curve so the midline is at y = D. Since sine and cosine repeat every period, adding or subtracting whole periods to the shift gives the same graph.

Worked example

Default inputs: sine, A = 2, B = 3, C = 1.5, D = −1, radians.

  1. Function: y = 2·sin(3x − 1.5) − 1.
  2. Phase shift = 1.5 ÷ 3 = 0.5, to the right.
  3. Amplitude = 2; period = 2π ÷ 3 ≈ 2.0944; frequency ≈ 0.477465.
  4. Midline y = −1; maximum −1 + 2 = 1; minimum −1 − 2 = −3.
  5. As a multiple of π: 0.5 ÷ π ≈ 0.159155; as a fraction of the period: 0.5 ÷ 2.0944 ≈ 0.2387.
How Phase shift C ÷ B changes with B (frequency factor)How Phase shift C ÷ B changes with B00.511.520.751.52.2533.754.56Example: 0.5B (frequency factor)
Each point is the calculator re-run with only “B (frequency factor)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
B (frequency factor)Phase shift C ÷ B
0.752
1.51
2.250.666667
30.5
3.750.4
4.50.333333
60.25

How to read the result

A shift of 0.5 means every feature of sin(3x) — zero crossings, peaks, troughs — happens 0.5 units later. The fraction of the period is useful for comparing two waves: 0.25 of a period is a quarter-cycle lag (90°). If the shift is larger than the period, the reduced value describes the same graph more simply.

Common mistakes

Keep in mind: Some books write y = A·sin(B(x − h)) + D; then the phase shift is h directly. Make sure you enter C = B·h in this calculator.

Frequently asked questions

Is a positive phase shift to the left or right?

In the form Bx − C, a positive C ÷ B moves the graph to the right.

What is the phase shift of cos x compared with sin x?

cos x = sin(x + π/2), so cosine is sine shifted π/2 to the left.

Does the amplitude affect the phase shift?

No. A changes height only; the shift depends on B and C.

Sources: OpenStax, Precalculus 2e (2021), §6.1 Graphs of the Sine and Cosine Functions

Checked 9 Nov 2026. OpenStax, Precalculus 2e (2021), Chapter 6 Key Concepts, §6.1 Graphs of the Sine and Cosine Functions (for y = A sin(Bx − C) + D: amplitude |A|, period P = 2π ÷ |B|, phase shift C ÷ B, vertical shift D).

🧮 All math & statistics tools →🌍 Calculators by country →