Phase Shift Calculator
Free Phase shift Calculator for trigonometry. Enter values to get step-by-step solutions with formulas and graphs. Free to use with no signup required.
Calculator
Adjust values & calculateKey Points (One Period)
Formula
Where A is the amplitude (vertical stretch), B = 2pi/period determines the frequency, C is the phase shift (horizontal translation), and D is the vertical shift. The phase angle equals B times C. This general form applies to all sinusoidal functions including cosine and tangent.
Last reviewed: December 2025
Worked Examples
Example 1: Sine Wave with 45-Degree Phase Shift
Example 2: Extracting Phase Shift from General Form
Background & Theory
The Phase Shift Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Phase Shift Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Formula
y = A sin(B(x - C)) + D
Where A is the amplitude (vertical stretch), B = 2pi/period determines the frequency, C is the phase shift (horizontal translation), and D is the vertical shift. The phase angle equals B times C. This general form applies to all sinusoidal functions including cosine and tangent.
Worked Examples
Example 1: Sine Wave with 45-Degree Phase Shift
Problem: Find the properties of y = 2 sin(x - 45) + 1, where x is in degrees.
Solution: Amplitude A = 2\nPeriod = 360 degrees (B = 1)\nPhase shift C = 45 degrees (right shift)\nVertical shift D = 1\nMaximum value = 2 + 1 = 3\nMinimum value = -2 + 1 = -1\nMidline = y = 1\nPhase angle = 1 * 45 = 45 degrees
Result: y = 2 sin(x - 45) + 1 | Max: 3, Min: -1, Phase: 45 deg right
Example 2: Extracting Phase Shift from General Form
Problem: Find the phase shift of y = 3 cos(2x + 60).
Solution: Rewrite: y = 3 cos(2(x + 30))\nFactor B = 2 from the argument: 2x + 60 = 2(x + 30)\nPhase shift C = -30 degrees (shifted 30 degrees left)\nPhase angle = 2 * (-30) = -60 degrees\nPeriod = 360 / 2 = 180 degrees\nFrequency = 1/180 cycles per degree
Result: Phase shift: -30 degrees (left) | Period: 180 deg | Phase angle: -60 deg
Frequently Asked Questions
What is a phase shift in trigonometry and why does it matter?
A phase shift is the horizontal displacement of a trigonometric function along the x-axis. When you add a phase shift to a sine or cosine function, you effectively slide the entire wave left or right without changing its shape, amplitude, or period. In the general form y = A sin(B(x - C)) + D, the value C represents the phase shift. A positive C shifts the graph to the right, while a negative C shifts it to the left. Phase shifts are critically important in physics and engineering because they describe timing differences between oscillating systems. For instance, alternating current in a three-phase electrical system uses 120-degree phase shifts between each phase to ensure smooth power delivery.
How do you calculate the phase shift from a trigonometric equation?
To find the phase shift, first rewrite the function in the standard form y = A sin(B(x - C)) + D or y = A cos(B(x - C)) + D. The phase shift is the value C. If the equation is given as y = A sin(Bx + k) + D, you need to factor out B from the argument: y = A sin(B(x + k/B)) + D, making the phase shift equal to -k/B. For example, y = 3 sin(2x + pi) becomes y = 3 sin(2(x + pi/2)), so the phase shift is -pi/2 (shifted left by pi/2). Be careful with the sign convention, as many textbooks define phase shift differently. Always factor B out completely before identifying the horizontal translation.
What is the difference between phase shift and phase angle?
Phase shift and phase angle are related but distinct concepts. The phase shift (C) is the horizontal displacement of the wave measured in the same units as the x-axis (degrees, radians, or time). The phase angle is the product of B times C, measured in radians or degrees, representing the angular offset. For example, if y = sin(2(x - 30)), the phase shift is 30 degrees, but the phase angle is 2 times 30 = 60 degrees. In electrical engineering, phase angle is more commonly used because it directly relates to the fraction of a complete cycle that one waveform leads or lags another. A phase angle of 90 degrees means one wave is exactly one-quarter cycle ahead of the other.
How does phase shift apply to real-world wave phenomena?
Phase shift appears throughout physics, engineering, and natural science. In acoustics, phase differences between sound waves from multiple speakers determine whether they reinforce (constructive interference) or cancel (destructive interference) each other. Noise-canceling headphones exploit this by generating a wave that is 180 degrees out of phase with ambient noise. In optics, thin-film interference (like the colors in soap bubbles) results from phase shifts between reflected light waves. In electronics, phase-locked loops use phase comparison to synchronize oscillator frequencies. Even in biology, circadian rhythms can be modeled as phase-shifted sinusoidal functions, where jet lag represents a temporary phase misalignment between your internal clock and local time.
Can you have a negative phase shift and what does it mean graphically?
Yes, a negative phase shift means the graph is translated to the left instead of to the right. In the equation y = A sin(B(x - C)) + D, if C is negative (say C = -45), the graph shifts 45 units to the left. This is equivalent to the wave starting its cycle earlier than the standard position. In physics, a negative phase shift means one wave leads another, while a positive phase shift means it lags. For example, in an RC circuit, the voltage across the capacitor lags the input voltage by a phase angle that depends on the frequency and component values. The concept of leading and lagging phases is fundamental to AC circuit analysis and power factor correction.
How do you identify phase shift from a graph of a trigonometric function?
To identify the phase shift from a graph, locate a key reference point on the standard unshifted function and find where that same point appears on the shifted graph. For sine, the standard starting point is where the function crosses zero going upward, which occurs at x = 0 for y = sin(x). If the shifted graph crosses zero going upward at x = 30, the phase shift is 30 units to the right. For cosine, the reference point is typically the maximum, which occurs at x = 0 for y = cos(x). Measure how far the maximum has moved horizontally. Be careful to account for reflections (negative amplitude) and vertical shifts that might make the reference point harder to identify. Using multiple reference points helps confirm your measurement.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy