Math calculator

Phase Shift Calculator

The shift is −C ÷ B — the division nobody does.

y = A f(Bx + C) + D

The shift is −C/B, not −C.

y = 2 sin(3x − 90) + 1

30° right

Amplitude 2, period 120°, midline y = 1. The shift is −C ÷ B = 90 ÷ 3.

Amplitude

2

|A| — never negative

Period

120°

360° ÷ 3 = 120° (2π/3 in radians)

Phase shift

30° right

−C ÷ B, and positive means right

Vertical shift

1

midline y = 1

Maximum

3

D + |A|

Minimum

-1

D − |A|

  • Read the equation as 2 sin(3(x − 30)) + 1 by factoring B out of the bracket. In that form the shift is visible directly, and it is the form worth writing before answering.
  • The phase shift is −C/B, not −C. Forgetting to divide by B is the commonest error here, and it is wrong by exactly the factor B — invisible when B is 1, which is when people learn it.
  • A positive shift moves the graph RIGHT. y = sin(x − 90°) is sin shifted right by 90°, even though the sign inside the bracket is a minus. The bracket and the direction disagree, which is why the convention is worth stating.
  • Amplitude is |A| = 2, so the wave runs from -1 to 3 about the midline y = 1.

The equation is rewritten in factored form first, because that is the form the shift can simply be read from.

What this tool shows

In y = 2 sin(3x − 90°) + 1 the phase shift is 30°, not 90°. The C has to be divided by the B, and it is invisible when B is 1 — which is exactly the case people learn the formula on, and exactly why the mistake survives.

  • Amplitude, from |A|
  • Period, from 360 ÷ |B|
  • Phase shift, as −C ÷ B
  • Which direction that shift goes
  • Vertical shift and the midline
  • The maximum and minimum values
All four parameters Factored form shown The ÷B step Direction convention stated

Degrees throughout; the equation is refactored first.

Updated 7 September 2026 · Works in any browser, no installation

Phase shift = −C ÷ B. For y = 2 sin(3x − 90°) + 1 that is −(−90) ÷ 3 = 30°, a shift to the right. Not 90° — the B has to be divided out, and factoring the bracket into 3(x − 30°) makes it obvious.

At a glance

Formula shown
For y = A f(Bx + C) + D: amplitude = |A|, period = 360\u00b0/|B| (or 2\u03c0/|B| in radians), phase shift = \u2212C/B with positive meaning right, and vertical shift = D. Maximum is D + |A| and minimum is D \u2212 |A|.
Scenario support
Reading a wave equation for a graph question; describing a measured oscillation; converting between a written equation and its picture.
Educational estimate
Planning support from the values you enter — not professional advice.

Why it is −C/B

The shift is about x, and C is not sitting next to x on its own — it is sitting next to Bx.

Factor the bracket. 3x − 90 is 3(x − 30). Now the bracket reads (x − 30), and the 30 is directly comparable with x, so the shift is 30.

Do that in general: Bx + C = B(x + C/B), so the shift is −C/B. Reading −C off the unfactored equation gives an answer that is wrong by exactly the factor B.

It is invisible when B is 1, which is where everybody meets it first. y = sin(x − 90°) really does shift by 90°, so the division never announces itself — and then the first question with B = 3 gets an answer three times too large.

The habit worth building: factor before answering. In factored form there is nothing left to get wrong.

Which way is positive

A minus inside the bracket moves the graph right. This feels backwards and it is worth understanding rather than memorising.

y = sin(x − 90°) reaches at x = 90° whatever y = sin(x) reached at x = 0°. To get the same output you need a larger input, so every feature happens later — further right.

So the sign inside the bracket and the direction of travel are opposite. The formula −C/B already accounts for it: with C = −90 the shift is +30, and positive means right.

Some sources define the shift as +C/B and say a positive value means left. Both conventions are in use, which is exactly why this page states which one it is using rather than assuming.

The four parameters

A — amplitude. The height from the midline to a peak, reported as |A|. A negative A flips the wave upside down but does not make the amplitude negative; amplitude is a distance.

B — frequency factor. The period is 360°/|B|. Larger B means more cycles in the same span, so the wave is squeezed horizontally. B is not the period; it is what you divide into 360 to get it.

C — phase. Horizontal shift, after dividing by B.

D — vertical shift. Moves the whole wave up or down, and the midline is y = D. The maximum is D + |A| and the minimum is D − |A|.

A and D describe the vertical picture, B and C the horizontal one. Only C needs the other coefficient to interpret it, which is the whole difficulty.

Sine or cosine

The two are the same wave, a quarter cycle apart: cos x = sin(x + 90°).

So any wave can be written either way, with a different phase. y = 3 cos(2x) and y = 3 sin(2x + 90°) are the same curve, and neither form is more correct.

That means the phase shift is not a property of the wave alone — it depends on which function you chose to write it with. When comparing two phase shifts, check they were both written against the same function.

In practice: physics tends to write cosine, since it starts at a maximum, and mathematics tends to write sine. Converting between them shifts the phase by 90°, which is one of the more common sources of a factor-of-nothing disagreement between two correct answers.

Degrees and radians

This page works in degrees, and the period comes out in degrees too.

In radians the only change is the period formula: 2π/|B| instead of 360/|B|. Everything else is identical, since amplitude and vertical shift have no angular unit at all.

The trap is mixing them. An equation written with a phase in radians and read with a degree convention gives a shift wrong by a factor of about 57, and the resulting graph looks nothing like the data.

A quick tell: if the phase constant is a small number like 1.57 or 3.14, it is almost certainly radians. If it is 90 or 180, it is degrees.

Where waves like this turn up

Alternating current. Mains voltage is a sinusoid, and the phase difference between voltage and current is what the power factor measures. A phase shift there has a direct cost on an electricity bill.

Sound and music. A pure tone is a sinusoid; amplitude is loudness and the period sets the pitch. Two identical tones out of phase by half a period cancel entirely, which is how noise-cancelling headphones work.

Tides and daylight. Both are close to sinusoidal over a year, with the phase shift encoding when the peak falls.

Seasonal data. Fitting A sin(Bx + C) + D to monthly figures gives the size of the seasonal swing in A, the average level in D, and when the peak occurs in C — which is often the most interesting of the four.

Sources and methodology

The parameter conventions are standard across curricula and signal processing; these are the references.

Method. The shift is computed as −C/B and the equation is rewritten in factored form so the reader can see where that division comes from. Amplitude is reported as |A| rather than A, since a negative coefficient flips the wave without making its amplitude negative. The suite checks that the wave really does sit on its midline at the reported shift, across every combination of six B values and twenty-five phases. That engine is verified on every change against 71 hand-written assertions, including that evaluating the wave at the reported phase shift lands exactly on the midline across one hundred and fifty generated equations, which a missing divide-by-B would break immediately. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Trigonometric FunctionsAll six functions at once with exact surd values at the sixteen special angles — and tan 90° reported as undefined rather than as the 1.6 × 10¹⁶ a double returns.
Sum and Difference IdentitiesEach identity evaluated twice — through the formula and by computing the combined angle directly — so the agreement between them is evidence rather than a restatement.
Double and Half Angle2θ and θ/2 on one page, with all three forms of cos 2θ evaluated and the half-angle ± resolved from the quadrant of θ/2 — not of θ.
Unit CircleWhere an angle lands, with exact surd coordinates and the radian measure as a multiple of π — because the coordinates ARE the cosine and sine.
Exponential GrowthGrowth, decay, doubling time and half-life from one rate — with the widening period-on-period change that is what exponential actually means.
Geometric SequenceNth term, partial sum, and whether the infinite series converges at all — with exact ratios, so 1/3 stays 1/3 instead of becoming 0.3333333333.

More in Math, or browse all calculators.

Read the guide

The unshifted functions underneath are on the Trigonometric Functions Calculator, and the identities that let one wave be rewritten as another are on the Sum and Difference Identities Calculator.

Educational use disclaimer

This is an educational tool. Angles are handled in degrees; a phase given in radians has to be converted first, and mixing the two is a common source of a wrong shift.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the phase shift page computing the shift as −C/B rather than −C, since forgetting to divide by B is the commonest error here and it is invisible when B is 1 — which is exactly when people learn the formula.
  2. The equation is rewritten in factored form first, because in that form the shift can simply be read rather than derived.
  3. States the direction convention outright: a positive shift moves the graph RIGHT, even though the sign inside the bracket is a minus.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.