Saved

Press the star next to a tool's name to save it.

All my tools

Phase Shift Calculator

Use this phase shift calculator to find the horizontal shift, period, amplitude and midline of a sine or cosine function, from A sin(B(x − C)) + D or A sin(Bx + φ) + D.

Restored your last values ·

Write your function as A·sin(B(x − C)) + D, or as A·sin(Bx + φ) + D, and enter the numbers. You can type angles in radians as multiples of pi, such as pi/4. The calculator gives the amplitude, the period, the phase shift and its direction, and the highest and lowest values.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose the function, enter A, B and the shift, then press Calculate.

A phase shift calculator tells you how far a sine or cosine graph is moved sideways, and gives its amplitude, period and midline too. Enter A, B, the shift and the vertical shift of y = A sin(B(x − C)) + D, or enter the phase φ of y = A sin(Bx + φ) + D, and the calculator converts the shift for you. You can type angles such as pi/4, and it works in radians or degrees. It runs in your browser.

How to use the phase shift calculator

  1. Choose sine or cosine, and the form in which your function is written.
  2. Enter A, B, the shift and the vertical shift.
  3. Choose radians or degrees.
  4. Press Calculate and read the shift, period and amplitude.

The general sine wave

The Wikipedia article on the sine wave writes the general form as y(t) = A sin(ωt + φ) = A sin(2πft + φ). Here A is the amplitude, which is the peak deviation of the function from zero, ω is the angular frequency in radians per second, f is the ordinary frequency, the number of oscillations each second, and φ is the phase, which specifies where in its cycle the oscillation is at t = 0.[1] The page says that the entire waveform appears to be shifted backwards in time by the amount φ ÷ ω seconds, so a negative phase represents a delay and a positive phase an advance.[1] It also notes that sin(ωt + π/2) = cos(ωt), so a cosine is a sine with a phase of π/2.[1]

The form with the shift written out

The article on amplitude writes the same idea as x = A sin(ω[t − K]) + b, where |A| is the amplitude, ω is the angular frequency, and K and b are constants that represent the time and displacement offsets.[2] In school algebra the letters are usually y = A sin(B(x − C)) + D. Matching them, B plays the role of ω, C the role of K, and D the role of b. The number C is the horizontal shift, and it is also called the phase shift. It moves the graph to the right when C is positive and to the left when C is negative.

The period and the frequency

The page on wave phase says that a periodic wave with period T has the frequency f = 1 ÷ T.[3] Since ω = 2πf, the period of A sin(B(x − C)) + D is 2π ÷ |B| when x is in radians, and 360° ÷ |B| when x is in degrees. This is a short derivation from the definitions, and it is not a separate rule on the pages. For B = 2 in radians, the period is π, about 3.14159, which is half the usual 2π period of the sine, because the graph repeats twice as often.

Converting between the two forms

If your function is written as A sin(Bx + φ) + D, factor B out of the bracket: Bx + φ = B(x + φ ÷ B), so the shift is C = −φ ÷ B. For y = sin(2x + π/2), the shift is −(π/2) ÷ 2 = −π/4, which is π/4 to the left. This matches the statement on the sine wave page that a positive phase advances the wave.[1] Choose the second form in the calculator, enter φ, and it does the division for you, and shows the equation in the first form.

A worked example

Take y = 3 sin(2(x − π/4)) + 1. The amplitude is 3, the period is π, and the shift is π/4, about 0.785398, to the right. The vertical shift is 1, so the midline is y = 1, the maximum is 1 + 3 = 4, and the minimum is 1 − 3 = −2. In degrees, y = 2 sin(3(x − 30°)) has a period of 360° ÷ 3 = 120° and a shift of 30° to the right. The calculator gives these values when you enter them. A negative A, such as −2, flips the graph over, so that it starts by going down, but the period and the shift do not change.

Typing angles

In radians you can enter numbers like 0.7854 or multiples of pi, such as pi/4, 2pi/3, 0.5pi or −pi/6. The symbol π is accepted too. The shift can be zero, so you can leave it blank. The result row called the shift within one period shows where the shift falls in the range from 0 up to one period, which is helpful when the shift is large or negative, since shifts that differ by a whole period give the same graph.

Using the result to graph the function

To sketch the graph by hand, draw the midline at the vertical shift D. Mark the maximum and the minimum, which lie at a distance of the amplitude above and below the midline. A sine wave starts on the midline and rises at the point x = C, so mark that point, then mark the end of the first period at x = C plus the period. Between them, the wave rises to the maximum a quarter of the way along, returns to the midline at the half, falls to the minimum at three quarters, and is back on the midline at the end. A cosine starts at its maximum at x = C instead.

Phase shift in physics and engineering

The same idea is used for alternating current, sound waves and light. Two waves of the same frequency with a phase difference of π are exactly opposite, and they cancel out when added, which is the principle behind noise-cancelling headphones. A phase difference of zero means that the waves are in step. The phase shift calculator helps you to convert the angle in the equation into a time or distance offset that you can use in such a problem.

Common mistakes

  • Reading the sign of the shift backwards. In (x − C), a positive C moves the graph right.
  • Forgetting to factor B. In sin(2x + π/2), the shift is π/4, not π/2.
  • Using degrees with a radian formula. Choose the correct unit.
  • Taking B as the period. The period is 2π ÷ B.

What next

Use this often? Add Phase Shift to your Home screen.

Frequently asked questions

What is a phase shift calculator?

A tool that finds how far a sine or cosine graph is moved horizontally, plus its amplitude, period and vertical shift, from the numbers in its equation.

How do I find the phase shift of a sine function?

For y = A sin(B(x − C)) + D, the phase shift is C. For y = A sin(Bx + φ) + D, it is −φ ÷ B. A positive shift is to the right.

How do I find the period?

Divide 2π by the absolute value of B, or 360° by |B| in degrees. For B = 2 the period is π.

Does a negative A change the phase shift?

No. It flips the graph, but the period and the horizontal shift stay the same.

Is a cosine a shifted sine?

Yes. A cosine is a sine with a phase of π/2, since sin(ωt + π/2) = cos(ωt).

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools