Omni Calculator logo

Phase Shift Calculator

Created by Maciej Kowalski, PhD candidate
Reviewed by Anna Szczepanek, PhD and Steven Wooding
Last updated: Jan 18, 2024

Welcome to Omni's phase shift calculator, where we'll study trigonometric functions and how to calculate their phase shift. In fact, we'll cover more than that: we'll also explain how to find the amplitude and how to find the period. As a matter of fact, it turns out that a huge class of functions behave virtually the same, and the differences boil down to describing the very values mentioned above; the amplitude, period, and phase shift. Well, up to a vertical shift, at least.

The amplitude, period, phase shift, and vertical shift

As we've mentioned above, we'll be focusing here on trigonometric functions: more specifically on the sine and cosine. Nevertheless, it's important to remember that many of the notions are more general, especially those of the horizontal translation or the vertical shift.

First of all, let's look at a picture showing where the amplitude, period, phase shift, and vertical shift appear on the graph (note that the same image appears at the top of Omni's phase shift calculator).

The amplitude, period, phase shift, and vertical shift.

We can write such functions with the formula (sometimes called the phase shift equation or the phase shift formula):

f(x)=Asin(BxC)+D,f(x) = A\cdot\sin(Bx-C)+D,


f(x)=Acos(BxC)+D,f(x) = A\cdot\cos(Bx-C)+D,

where AA, BB, CC, DD are arbitrary real numbers, but with AA and BB non-zero (otherwise, it wouldn't be a trigonometric function). Obviously, those four numbers determine the amplitude, period, phase shift, and vertical shift. To an extent, the picture suggests how they affect the graph. Still, it'd be useful to support the visuals with some definitions.

  1. The amplitude is how far (either way) the values run from the graph's centerline. For a simple sine or cosine, its value is 11 since the centerline is at 00, and the function's values range from 1-1 to 11.

  2. The period is the length on the horizontal axis, after which the function begins repeating itself. In other words, the (infinite) graph is just a bunch of period-length copies glued together at the ends. For a simple sine or cosine, the period equals 2π2\pi since sin(0)=sin(2π)=sin(4π)=...\sin(0) = \sin(2\pi) = \sin(4\pi) = ... and the parts in between are exactly the same (and similarly for the cosine).

  3. The phase shift (also called the horizontal shift or horizontal translation) describes how far horizontally the graph has been moved from the regular sine or cosine. As such, the value is equal to 00 if we have the two functions unaltered.

  4. The vertical shift (also called the vertical translation) describes how far vertically the graph has been moved from the regular sine or cosine. In other words, it's the phase shift's twin that concerns the perpendicular direction. In particular, the value is again equal to 00 if we have the two functions unaltered.

Alright, we've learned what the phase shift is, as well as the three accompanying values. The sections below describe how to calculate each of them based on the notation from the phase shift formula above. First, we show how to find the amplitude.

The concept we introduced is widespread in the study of oscillatory and harmonic motions. To say it all, those phenomena are best buddies with trigonometry. You can discover the connection at our trigonometry calculator or learn more about the various functions that keep popping up when you analyze a pendulum at the trigonometric functions calculator — or the more specific cosine calculator and sine calculator!

How to find the amplitude

We know that the sine and cosine functions have values ranging from 1-1 to 11. What is more, that simple fact doesn't change if we substitute sin(x)\sin(x) or cos(x)\cos(x) for sin(BxC)\sin(Bx - C) or cos(BxC)\cos(Bx - C) for a non-zero BB and arbitrary CC. In fact, it's because the function f(x)=BxCf(x) = Bx - C is then a bijection (i.e., a one-to-one correspondence) onto the space of real numbers.

Now let's see what happens if we add DD, i.e., if we have sin(BxC)+D\sin(Bx - C) + D or cos(BxC)+D\cos(Bx - C) + D instead. Since the first part gives something between 1-1 and 11, the whole thing will be between 1+D-1 + D and 1+D1 + D (see How to find the vertical shift for comparison). That means the centerline falls at DD, and the amplitude is still 11 because the values fall as far as 11 away from DD.

Therefore, the only thing that can affect the amplitude in the phase shift formulas Asin(BxC)+DA\cdot\sin(Bx - C) + D and Acos(BxC)+DA\cdot\cos(Bx - C) + D is the non-zero AA. And indeed, since sin(BxC)\sin(Bx - C) and cos(BxC)\cos(Bx - C) are all this time between 1-1 and 11, the multiplier AA changes this range to 1A=A-1\cdot A = -A and 1A=A1 \cdot A = A.

Yup, you guessed it: the amplitude of the phase shift equations Asin(BxC)+DA \cdot\sin(Bx - C) + D and Acos(BxC)+DA \cdot\cos(Bx - C) + D is simply equal to AA.

How to find the period

Recall that the sine and cosine functions have periods equal to 2π2\pi, i.e., we have sin(x+2π)=sin(x)\sin(x + 2\pi) = \sin(x) and cos(x+2π)=cos(x)cos(x + 2\pi) = cos(x) for any xx. In particular, that gives:

A ⁣ ⁣sin(x ⁣+ ⁣2π) ⁣+ ⁣D ⁣= ⁣A ⁣ ⁣sin(x) ⁣+ ⁣D,\small A\!\cdot\!\sin(x\!+\!2\pi)\!+\!D\!=\!A\!\cdot\!\sin(x)\!+\!D,


A ⁣ ⁣cos(x ⁣+ ⁣2π) ⁣+ ⁣D ⁣= ⁣A ⁣ ⁣cos(x) ⁣+ ⁣D\small A\!\cdot\!\cos(x\!+\!2\pi)\!+\!D\!=\!A\!\cdot\!\cos(x)\!+\!D

So, we see that the AA and DD in the phase shift formula have no effect on the period. Indeed, it all boils down to what happens inside the trigonometric functions. And yet:

sin(xC+2π)=sin(xC),\sin(x - C + 2\pi) = \sin(x - C),


cos(xC+2π)=cos(xC)\cos(x - C + 2\pi) = \cos(x - C)

By the very same rules as above, so it's not the CC either that does the job. So, with three options discarded, it must be the fourth: the BB.

We again turn to the comment we started with to understand why and how BB affects periodicity in the phase shift equations Asin(BxC)+DA \cdot \sin(Bx - C) + D and Acos(BxC)+DA \cdot \cos(Bx - C) + D. After all:

sin(Bx)=sin(Bx+2π)=sin(B ⁣ ⁣(x+2πB) ⁣)\begin{split} \sin(Bx) &= \sin(Bx + 2\pi)\\[.8em] & = \sin\left(B\! \cdot\! \left(x + \frac{2\pi}{B}\right)\!\right) \end{split}

So with every 2π/B2\pi/B added to the argument xx, we land back in the same spot, and the function repeats itself (and similarly for the cosine).

All in all, the period of a phase shift equation is equal to 2π/B2\pi/B.

Our daily knowledge of waves usually prioritizes the frequency over the period; however, they are almost the same thing. Discover why at Omni's frequency calculator.

How to find the phase shift

By definition, the phase shift describes the horizontal translation of the function with respect to the regular sin(x)\sin(x) or cos(x)\cos(x). As such, the basic functions have it equal to 00. In fact, if we compare their graphs:

Plot of sin(x) in <-2π, 2π> rangePlot of cos(x) in <-2π, 2π> range

…we'll notice that we can get one by translating the other (in fact, mutual cofunctions have many similarities). To be precise, we have the following:




The example above already suggests where in Asin(BxC)+DA \cdot\sin(Bx - C) + D and Acos(BxC)+DA \cdot\cos(Bx - C) + D, we should look for the values responsible for phase shifts. However, as opposed to the amplitude and period, this time, we'll need two of the four letters.

In general, (that is, not only in phase shift equations), we obtain the horizontal translation of an arbitrary function f(x)f(x) by calculating f(xa)f(x - a): the shift of the graph by aa to the right. In other words, we substitute every occurrence of xx with xax - a in the formula for f(x)f(x). For instance, applying the translation to sin(x)\sin(x) gives sin(xa)\sin(x - a), but for, say, cos(3x+1)\cos(3x + 1) we'd get:

cos(3(xa)+1)=cos(3x3a+1)\begin{split} \cos&(3(x-a)+1)\\ &=\cos(3x-3a+1) \end{split}

In other words, we cannot forget about the multipliers standing in front of xx.

In our case, the phase shift formula gives:

Asin(BxC)+D=Asin(B(xCB))+D,\begin{split} A\cdot&\sin(Bx-C)+D\\ =A\cdot&\sin\left(B\cdot\left(x-\frac{C}{B}\right)\right)+D, \end{split}

which is a phase shift of C/BC/B (to the right) of the function Asin(Bx)A \cdot\sin(Bx). Of course, we can repeat the above for the cosine as well.

To sum it all up, in order to calculate the phase shift of a phase shift equation, you need to find C/BC/B.

How to find the vertical shift

This one's easy, especially now that we've seen what the phase shift, amplitude, and period are and how to calculate them. Let us build on what we've learned so far.

We know that in the phase shift formulas Asin(BxC)+DA \cdot\sin(Bx - C) + D and Acos(BxC)+DA \cdot\cos(Bx - C) + D, the AA determines how far the values fluctuate on either side of the centerline. The BB specifies how far we extend the graph's bumps and, as a result, how fast we get to repeat the values. Also, together with CC, the two describe if we've moved the function to the left or right and how much.

Obviously, the horizontal translation doesn't affect the vertical shift: those are two perpendicular directions, after all. On the other hand, the amplitude only tells us how far vertically the graph reaches but it doesn't shift it. All in all, we're left with only one letter: DD.

The DD in the phase shift equations is precisely the vertical shift. It determines the function's range, i.e., how far from the usual, no-DD version we move the graph.

That concludes the theoretical part for today. It's time to see how to calculate the phase shift on a nice example. And you know what? We'll show how to find the period, the amplitude, and the vertical shift as well. After all, why not? More mathematical calculation = more fun!

Example: using the amplitude period phase shift calculator

Let's see how to find the amplitude, period, phase shift, and vertical shift of the function f(x)=0.5sin(2x3)+4f(x) = 0.5 \cdot\sin(2x - 3) + 4. Firstly, we'll let Omni's phase shift calculator do the talking.

At the top of our tool, we need to choose the function that appears in our formula. In our case, we choose "sine" under "The trigonometric function in f." That'll trigger a symbolic representation of such a phase shift equation: f(x)=Asin(BxC)+Df(x) = A \cdot\sin(Bx - C) + D. Looking back at what we have, we input the following:

A=0.5B=2C=3D=4\begin{split} A&=0.5\\ B&=2\\ C&=3\\ D&=4 \end{split}

Note how even before we input the values, the phase shift calculator displays the graph of the function sin(x)\sin(x). That is because the tool understands not giving certain values as no numbers in the corresponding places in the formula. As such, it reads no input at all as A=1A = 1, B=1B = 1, C=0C = 0, and D=0D = 0, which gives:

1sin(1x0)+0=sin(x)1 \cdot \sin(1\cdot x - 0) + 0 = \sin(x)

The moment we give the last value, the function's graph appears underneath together with the amplitude, period, phase shift, and vertical shift further down. Also, observe that if needed, you can go into the advanced mode of the calculator to find the function's value at any point x0x_0.

Now let's explain how to find the phase shift and all the other values ourselves. For that, it's enough to recall the four sections above to calculate that:

  • The amplitude is A=0.5A = 0.5;
  • The period is 2π/B=2π/2=π2\pi / B = 2\pi / 2 = \pi;
  • The phase shift is C/B=3/2=1.5C / B = 3 / 2 = 1.5; and
  • The vertical shift is D=4D = 4.

All in all, the graph looks like this:

A phase shift equation example.

A piece of cake, wasn't it? Make sure to play around with the phase shift calculator to see how different coefficients affect the graph.


How do I calculate the phase shift?

To calculate the phase shift of a function of the form A × sin(Bx - C) + D or A × cos(Bx - C) + D, you need to:

  1. Determine B.
  2. Determine C.
  3. Divide C/B.
  4. Remember that if the result is:
    • Positive, the graph is shifted to the right.
    • Negative, the graph is shifted to the left.
  5. Enjoy having found the phase shift.

How do I find the phase shift from a graph?

To find the phase shift from a graph, you need to:

  1. Determine whether it's a shifted sine or cosine.
  2. Look at the graph to the right of the vertical axis.
  3. Find the first:
    • Peak if the coefficient before the function is positive; or
    • Trough if the coefficient is negative.
  4. Calculate the distance from the vertical line to that point.
  5. If the function was a sine, subtract π/2 or 3π/2 from that distance for a peak or a trough, respectively.
  6. Enjoy having found the phase shift from a graph.

How do I find the amplitude, period, and phase shift?

Finding the amplitude, period, and phase shift of a function of the form A × sin(Bx - C) + D or A × cos(Bx - C) + D goes as follows:

  • The amplitude is equal to A;
  • The period is equal to 2π / B; and
  • The phase shift is equal to C / B.

How do I graph trig functions with phase shift?

To graph trig functions with phase shift, you need to:

  1. Determine what the trig function is.
  2. Focus on the point (0,0) on the plane.
  3. If the phase shift is:
    • Positive, move to the right.
    • Negative, move to the left.
  4. Move the distance given by the phase shift.
  5. The point you land in is your starting point.
  6. Draw the non-shifted function's graph as if the point were (0,0).
  7. Enjoy having graphed a trig function with a phase shift.

Are horizontal and phase shift the same?

When it comes to trigonometric functions, yes. We usually reserve the term "phase shift" for trig functions. In other words, we can have a horizontal shift of any graph or function. Still, when it is, in fact, a trigonometric one, we can equivalently call that horizontal shift a phase shift.

Maciej Kowalski, PhD candidate
Related calculators
The amplitude, period, phase shift, and vertical shift.
The trigonometric function in f
f(x) = A * sin(Bx - C) + D
The amplitude is A = 1.
The period is 2π / B = .
The phase shift is C / B = 0.
The vertical shift is D = 0.
Check out 21 similar trigonometry calculators 📐
ArccosArcsinArctan… 18 more
People also viewed…

Hadamard product

Understand what is Hadamard product and calculate the Hadamard product of vectors easily with our precise and efficient calculator. Just dive in!

Height of a square pyramid

Use this height of a square pyramid calculator to find the height or altitude of any right square pyramid by entering any two known measurements of the said pyramid.


The perfect snowman calculator uses math & science rules to help you design the snowman of your dreams!

Social Media Time Alternatives

Check what you could have accomplished if you get out of your social media bubble.