Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Amplitude, Period and Phase Shift Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example 3sin(2x) + 1 or 2cos(x - pi/3). Type π\pi as pi. Learn more about entering the function
  2. Read the period, the amplitude, the phase shift, and the midline with the range.
  3. The same wave, two ways writes your function once as a sine and once as a cosine, in the factored form Asin⁡(B(x−h))+DA\sin\big(B(x - h)\big) + D. Learn more about reading the answer
  4. On the graph the amber bar is the amplitude, the navy bar is one period, the dashed line is the midline, and the hollow dot is where the wave starts.
  5. Tangent, cotangent, secant and cosecant work too: they have a period and asymptotes but no amplitude.

Amplitude, period and phase shift
Period
T=π\displaystyle T = \pi
Amplitude
A=3\displaystyle A = 3
Phase shift
0(as a sine)\displaystyle 0 \quad (\text{as a sine})
Midline and range
y=1,[−2, 4]\displaystyle y = 1, \qquad [-2,\ 4]
The same wave, two ways
3sin⁡(2 x)+1  =  3cos⁡(2 (x−π4))+1\displaystyle 3\sin\left(2\,x\right) + 1 \;=\; 3\cos\left(2\,\left(x - \frac{\pi}{4}\right)\right) + 1
How it was found

f(x)=3 sin⁡(2x)+1f(x) = 3\,\sin\left(2 x\right)+1 repeats itself: f(x+T)=f(x)f(x + T) = f(x) for every xx. The shortest such TT is the period, T=πT = \pi.

The highest value is 44 and the lowest is −2-2. The midline runs halfway between them, y=4+(−2)2=1y = \dfrac{4 + (-2)}{2} = 1.

The amplitude is the distance from the midline to a peak: A=4−(−2)2=3A = \dfrac{4 - (-2)}{2} = 3.

In the form y=Asin⁡(B(x−h))+Dy = A\sin\big(B(x - h)\big) + D the period is 2πB\dfrac{2\pi}{B}, so B=2ππ=2B = \dfrac{2\pi}{\pi} = 2.

A plain sine climbs through its midline at x=0x = 0. This wave does so at x=0x = 0: no phase shift. Read as a cosine, which starts at a peak, the shift is π4\frac{\pi}{4} (the peak nearest to 00).

The phase shift is read from the factored form B(x−h)B(x - h). In sin⁡(2x−π)\sin(2x - \pi) the shift is π2\dfrac{\pi}{2}, not π\pi: factor BB out first.

f(x)=3 sin⁡(2x)+1f\left(x\right)=3\,\sin\left(2 x\right)+1


Finding amplitude, period and phase shift

DemoRead the four numbers of a wave
Step 0 of 4
Type a trigonometric function in the f(x)f(x) box. The calculator reads its period, amplitude, phase shift and midline from the curve itself, so the function can be written in any form: 3sin(2x) + 1, sin(2x - pi), 2cos(x - pi/3), or even sin(x)^2.

Type π\pi as pi. Multiplication signs can be left out: 3sin(2x) is 3sin⁡(2x)3\sin(2x).

The function must repeat. For something like x2x^2 the calculator says that there is no period to find.

Reading the answer

  • Period TT: the length of one full cycle along the xx-axis.
  • Amplitude AA: the height from the midline to a peak. It is never negative.
  • Phase shift: how far, and which way, the wave is moved sideways compared with a plain sine.
  • Midline and range: the horizontal line the wave swings about, and the interval of values it takes.
  • The same wave, two ways: your function written as Asin⁡(B(x−h))+DA\sin\big(B(x - h)\big) + D and as Acos⁡(B(x−h))+DA\cos\big(B(x - h)\big) + D.

  • Every sine wave is also a cosine wave, moved by a quarter of a period. So the phase shift depends on which of the two you compare with; the calculator states the shift as a sine and shows the cosine form beside it.

    Numbers that are simple multiples of π\pi are written that way.

The general form of a sine wave

    Every sine or cosine wave can be written as

    y=Asin⁡(B(x−h))+Dy = A\sin\big(B(x - h)\big) + D


    and each of the four numbers does one job:

  • ∣A∣|A| is the amplitude.
  • BB sets the period: T=2π∣B∣T = \dfrac{2\pi}{|B|}.
  • hh is the phase shift: positive moves the wave right, negative moves it left.
  • DD is the vertical shift; the midline is y=Dy = D.

  • For y=3sin⁡(2x)+1y = 3\sin(2x) + 1: amplitude 33, period 2π2=π\dfrac{2\pi}{2} = \pi, no phase shift, midline y=1y = 1. The wave runs between 1−3=−21 - 3 = -2 and 1+3=41 + 3 = 4.
3sin⁡(2x)+13\sin(2x) + 1: amplitude 33 (amber), period π\pi (navy), midline y=1y = 1.

Amplitude and midline

The amplitude is half the distance between the highest and the lowest value:

A=max−min2A = \frac{\text{max} - \text{min}}{2}


and the midline lies halfway between them:

D=max+min2D = \frac{\text{max} + \text{min}}{2}


Multiplying a sine by 33 makes it three times as tall; multiplying by 12\dfrac{1}{2} halves its height. Neither changes where it crosses its midline.

A negative factor, as in −2sin⁡(x)-2\sin(x), turns the wave upside down. The amplitude is still 22. Turning a sine upside down is the same as moving it half a period sideways, which is how the calculator reports it.
sin⁡(x)\sin(x), 3sin⁡(x)3\sin(x) and 12sin⁡(x)\frac{1}{2}\sin(x): same period, different heights.

Period and frequency

sin⁡(x)\sin(x) and cos⁡(x)\cos(x) complete one cycle every 2π2\pi. Multiplying xx by BB makes the cycle BB times as fast, so the period becomes

T=2π∣B∣T = \frac{2\pi}{|B|}


sin⁡(2x)\sin(2x) has period π\pi; sin⁡(x2)\sin\left(\dfrac{x}{2}\right) has period 4π4\pi; cos⁡(πx)\cos(\pi x) has period 22.

The frequency is the number of cycles per unit of xx: 1T\dfrac{1}{T}. A short period means a high frequency.

On the graph, the navy bar joins two neighbouring peaks. Its length is the period.
sin⁡(x)\sin(x), sin⁡(2x)\sin(2x) and sin⁡(x2)\sin\left(\frac{x}{2}\right): periods 2π2\pi, π\pi and 4π4\pi.

Phase shift

DemoPhase shift, cosine and tangent
Step 0 of 4
Replacing xx by x−hx - h moves a graph hh units to the right. sin⁡(x−π2)\sin\left(x - \dfrac{\pi}{2}\right) is the sine curve moved π2\dfrac{\pi}{2} to the right; sin⁡(x+π2)\sin\left(x + \dfrac{\pi}{2}\right) is moved the same distance to the left.

The trap is a formula that is not factored. In sin⁡(2x−π)\sin(2x - \pi) the shift is not π\pi. Factor the 22 out first:

sin⁡(2x−π)=sin⁡(2(x−π2))\sin(2x - \pi) = \sin\Big(2\Big(x - \frac{\pi}{2}\Big)\Big)


so the shift is π2\dfrac{\pi}{2} to the right. In general, for sin⁡(Bx−C)\sin(Bx - C) the shift is CB\dfrac{C}{B}.

The calculator finds the shift on the curve: it looks for the point nearest to 00 where the wave climbs through its midline, which is where a plain sine starts.
sin⁡(x−π2)\sin\left(x - \frac{\pi}{2}\right) is the sine curve (dashed) moved π2\frac{\pi}{2} to the right.

Tangent, cotangent, secant and cosecant

    The other four trigonometric functions repeat as well, but their values run off without bound, so they have no amplitude.

  • tan⁡(Bx)\tan(Bx) and cot⁡(Bx)\cot(Bx) have period π∣B∣\dfrac{\pi}{|B|}.
  • sec⁡(Bx)\sec(Bx) and csc⁡(Bx)\csc(Bx) have period 2π∣B∣\dfrac{2\pi}{|B|}.

  • For these the calculator gives the period, the phase shift where one can be read, and the vertical asymptotes nearest to 00. The navy bar on the graph still marks one period.
tan⁡(x)\tan(x): period π\pi, asymptotes, no amplitude.

Waves that are not a single sine

Some periodic functions are bounded and repeat but are not one sine wave. sin⁡(x)+sin⁡(2x)\sin(x) + \sin(2x) is an example: its period is 2π2\pi, and its highest value is about 1.761.76, but no choice of AA, BB, hh and DD reproduces its shape.

For such a function the calculator still gives the period, the height from midline to peak, and the range, and says that the wave cannot be written as a single sine.

Some surprises go the other way. sin⁡2(x)\sin^2(x) does not look like a sine formula, yet it is one: sin⁡2(x)=12−12cos⁡(2x)\sin^2(x) = \dfrac{1}{2} - \dfrac{1}{2}\cos(2x), a wave of amplitude 12\dfrac{1}{2}, period π\pi and midline y=12y = \dfrac{1}{2}.

Common mistakes

  • Reading the phase shift without factoring. In sin⁡(2x−π)\sin(2x - \pi) the shift is π2\dfrac{\pi}{2}.
  • Getting the direction backwards. x−hx - h moves right; x+hx + h moves left.
  • Calling a negative AA the amplitude. The amplitude of −2sin⁡(x)-2\sin(x) is 22.
  • Using 2π2\pi for the tangent. The period of tan⁡(Bx)\tan(Bx) is π∣B∣\dfrac{\pi}{|B|}.
  • Multiplying instead of dividing. A larger BB gives a shorter period: T=2π∣B∣T = \dfrac{2\pi}{|B|}.
  • Mixing up amplitude and range. For 3sin⁡(2x)+13\sin(2x) + 1 the amplitude is 33 and the range is [−2, 4][-2,\ 4].