# Phase Shift Calculator

Created by Maciej Kowalski, PhD candidate
Reviewed by Anna Szczepanek, PhD and Steven Wooding
Last updated: May 22, 2023

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). We can write such functions with the formula (sometimes called the phase shift equation or the phase shift formula):

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

or:

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

where $A$, $B$, $C$, $D$ are arbitrary real numbers, but with $A$ and $B$ 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 $1$ since the centerline is at $0$, and the function's values range from $-1$ to $1$.

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\pi$ since $\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 $0$ 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 $0$ 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$ to $1$. What is more, that simple fact doesn't change if we substitute $\sin(x)$ or $\cos(x)$ for $\sin(Bx - C)$ or $\cos(Bx - C)$ for a non-zero $B$ and arbitrary $C$. In fact, it's because the function $f(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 $D$, i.e., if we have $\sin(Bx - C) + D$ or $\cos(Bx - C) + D$ instead. Since the first part gives something between $-1$ and $1$, the whole thing will be between $-1 + D$ and $1 + D$ (see How to find the vertical shift for comparison). That means the centerline falls at $D$, and the amplitude is still $1$ because the values fall as far as $1$ away from $D$.

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

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

## How to find the period

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

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

and:

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

So, we see that the $A$ and $D$ 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(x - C + 2\pi) = \sin(x - C),$

and:

$\cos(x - C + 2\pi) = \cos(x - C)$

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

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

$\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\pi/B$ added to the argument $x$, 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\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)$ or $\cos(x)$. As such, the basic functions have it equal to $0$. In fact, if we compare their graphs:  …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:

$\sin\left(x+\frac{\pi}{2}\right)=\cos(x),$

and:

$\cos\left(x-\frac{\pi}{2}\right)=\sin(x)$

The example above already suggests where in $A \cdot\sin(Bx - C) + D$ and $A \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)$ by calculating $f(x - a)$: the shift of the graph by $a$ to the right. In other words, we substitute every occurrence of $x$ with $x - a$ in the formula for $f(x)$. For instance, applying the translation to $\sin(x)$ gives $\sin(x - a)$, but for, say, $\cos(3x + 1)$ we'd get:

$\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 $x$.

In our case, the phase shift formula gives:

$\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/B$ (to the right) of the function $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/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 $A \cdot\sin(Bx - C) + D$ and $A \cdot\cos(Bx - C) + D$, the $A$ determines how far the values fluctuate on either side of the centerline. The $B$ specifies how far we extend the graph's bumps and, as a result, how fast we get to repeat the values. Also, together with $C$, 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: $D$.

The $D$ in the phase shift equations is precisely the vertical shift. It determines the function's range, i.e., how far from the usual, no-$D$ 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.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) = A \cdot\sin(Bx - C) + D$. Looking back at what we have, we input the following:

$\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)$. 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 = 1$, $B = 1$, $C = 0$, and $D = 0$, which gives:

$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 $x_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.5$;
• The period is $2\pi / B = 2\pi / 2 = \pi$;
• The phase shift is $C / B = 3 / 2 = 1.5$; and
• The vertical shift is $D = 4$.

All in all, the graph looks like this: 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.

## FAQ

### 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 from that distance.
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 The trigonometric function in f
sine
f(x) = A * sin(Bx - C) + D
A
B
C
D
Result
The amplitude is A = 1.
The period is 2π / B = .
The phase shift is C / B = 0.
The vertical shift is D = 0.
People also viewed…

The adding and subtracting polynomials calculator finds the sum or difference of two polynomials up to degree 6.

### Body fat

Use the body fat calculator to estimate what percentage of your body weight comprises of body fat.

### Car crash force

With this car crash calculator, you can find out how dangerous car crashes are. 