/

Trig Graphs Calculator — Graph Sin, Cos, Tan & All Trig Functions

Trig Graphs Calculator — Graph Sin, Cos, Tan & All Trig Functions
Trigonometry Tool

Trig Graphs Calculator

Interactively graph sine, cosine, tangent, cotangent, secant, and cosecant trig graphs with real-time control of amplitude, period, phase shift, and vertical shift. Graphing trigonometric functions has never been more visual — every key feature calculated instantly as you drag.

Trig Graphs Calculator — Interactive Graphing Trigonometric Functions
y = sin(x)
Main function
Asymptotes
Maximum
Minimum
A — Amplitude 1
B — Frequency 1
C — Phase Shift 0
D — Vertical Shift 0
X range:
Amplitude |A|
1
Period
Phase Shift
0
Midline
y = 0
Maximum
1
Minimum
−1

Quick Examples:

y = sin(x)
y = cos(x)
y = 2sin(x)
y = sin(2x) period=π
y = sin(x−π/2) = cos(x)
y = sin(x)+1
y = −sin(x) reflection
y = 2sin(3x−π/2)+1
y = tan(x)
y = sec(x)
y = csc(x)

All six trig graphs displayed simultaneously — click any card to load it into the Graph Builder for interactive exploration.

Overlay up to 4 trig graphs simultaneously. Expand each function's controls to adjust A, B, C, D individually.

Type any trig equation in the form A·func(Bx+C)+D and instantly extract all key features including amplitude, period, and phase shift.

Try these examples:

2sin(3x − π/2) + 1
−cos(x/2 + π) − 3
tan(2x)
3sin(x) + 2
−2cos(πx)
Function
Amplitude |A|
Period
Phase Shift
Midline
Maximum y

The Six Trig Function Graphs — Key Properties

Understanding trig graphs begins with the six fundamental trigonometric graphs: sine, cosine, tangent, cotangent, secant, and cosecant. Each has a distinctive shape, period, and range that defines its behavior. Graphing trigonometric functions systematically requires knowing these properties before applying any transformations.

Sine and cosine are the foundational trig graphs — both produce smooth, continuous S-shaped waves with period 2π and amplitude 1, bounded between −1 and 1. The key relationship: sin(x + π/2) = cos(x) — the cosine graph is simply the sine graph shifted π/2 units to the left. This co-function identity means you only need to master one wave shape for both.

Tangent and cotangent have period π (not 2π — one of the most common mistakes in graphing trig functions) and are unbounded, meaning their range is all real numbers. Vertical asymptotes divide each into separate branches. Secant and cosecant are reciprocals of cosine and sine respectively, producing U-shaped branches with range (−∞,−1] ∪ [1,+∞).

y = A · f(Bx + C) + D The general transformation form for all trig graphs — A=amplitude, B=frequency, C=phase parameter, D=vertical shift

Graphing y = A·sin(Bx + C) + D — The Four Transformations

Every trig graph transformation of the form y = A·sin(Bx + C) + D (or y = A·cos(Bx + C) + D, etc.) involves exactly four parameters. Mastering these four transformations is the complete skill of graphing trigonometric functions.

A — Amplitude (Vertical Stretch)

Amplitude = |A|. This is the distance from the midline to the maximum or minimum. When A = 2, the graph reaches y = 2 and y = −2 instead of y = 1 and y = −1. When A is negative, the graph reflects over the x-axis (flips upside down) — but amplitude is still |A|, always positive. For y = A·sin(Bx+C)+D the amplitude transformation applies only to sin, cos (and by extension sec, csc). Tan and cot have no defined amplitude.

B — Frequency / Period Multiplier

New period = 2π / |B| for sin, cos, sec, csc. New period = π / |B| for tan, cot. When B = 2, the period of sin halves to π — the graph completes two full cycles in the same space. When B = 1/2, the period doubles to 4π. When B is negative, the graph reflects horizontally. Never confuse period with frequency: period = 2π/|B|, not 2π × |B|.

C — Phase Shift (Horizontal Shift)

Phase shift = −C/B. When phase shift is positive, the graph moves RIGHT; negative means LEFT. The most common confusion: in y = sin(Bx + C), adding C (positive C) shifts the graph LEFT because the function reaches its "zero" when Bx + C = 0, i.e., when x = −C/B. This is why sin(x + π/4) shifts LEFT by π/4 and sin(x − π/4) shifts RIGHT by π/4.

Critical: sin(x − π/2) = cos(x). A phase shift of π/2 to the RIGHT converts sine into cosine. This is one of the most important co-function relationships in trigonometry and demonstrates that sin and cos are the same trig graph with a different starting point.

D — Vertical Shift (Midline)

Midline: y = D. The entire graph moves up by D (if D > 0) or down (if D < 0). The maximum becomes |A| + D and the minimum becomes −|A| + D. The midline y = D replaces the x-axis as the center of oscillation. For graphing trigonometric functions, always draw the midline as a dashed reference line before plotting the wave.

How to Graph Trig Functions — Step-by-Step Method

Use this five-step method for graphing trig functions by hand. It works for any trig graph of the form y = A·sin(Bx+C)+D.

The 5-Step Method for Graphing Trigonometric Functions

  1. Find Amplitude: |A|. Note if A < 0 (reflection over x-axis).
  2. Find Period: 2π/|B| for sin/cos/sec/csc, or π/|B| for tan/cot.
  3. Find Phase Shift: −C/B. Positive = right, negative = left.
  4. Find Midline: y = D. Draw as a dashed horizontal reference line.
  5. Plot 5 key points per period starting from the phase shift: at x₀, x₀ + T/4, x₀ + T/2, x₀ + 3T/4, x₀ + T (where T = period). Connect smoothly.

Worked Example: Graph y = 2sin(3x − π/2) + 1

  1. A = 2, so amplitude = 2 (no reflection since A > 0)
  2. B = 3, so period = 2π/3 ≈ 2.094
  3. C = −π/2, so phase shift = −(−π/2)/3 = π/6 to the RIGHT
  4. D = 1, so midline is y = 1; maximum = 2+1 = 3; minimum = −2+1 = −1
  5. Starting x = π/6. Key points: (π/6, 1), (π/6+π/6, 3), (π/6+π/3, 1), (π/6+π/2, −1), (π/6+2π/3, 1)

Graphing Sine and Cosine — The Basic Waves

The sin graph and cos graph are the two most fundamental trig graphs. They have identical shapes — both are smooth sinusoidal waves with period 2π, amplitude 1, and range [−1, 1]. The only difference is their starting position: cos starts at its maximum (0, 1) while sin starts at its zero (0, 0).

Propertysin(x)cos(x)
Period
Amplitude11
Range[−1, 1][−1, 1]
Zeros0, π, 2π, …π/2, 3π/2, …
Maximum (y=1)x = π/2 + 2nπx = 2nπ
Minimum (y=−1)x = 3π/2 + 2nπx = π + 2nπ
SymmetryOdd: sin(−x) = −sin(x)Even: cos(−x) = cos(x)

The 5 key points of sin(x): (0,0) → (π/2, 1) → (π, 0) → (3π/2, −1) → (2π, 0)

The 5 key points of cos(x): (0,1) → (π/2, 0) → (π, −1) → (3π/2, 0) → (2π, 1)

Graphing Tangent and Cotangent — Period π and Asymptotes

The tan graph is fundamentally different from sin and cos. Its period is π — half that of sine and cosine. It is unbounded (range = all real numbers) with vertical asymptotes at x = π/2 + nπ where cos(x) = 0. Between consecutive asymptotes, tan increases from −∞ to +∞, passing through zero.

For graphing trig functions like tan and cot, always draw the asymptotes first as vertical dashed red lines, then sketch the curve between them. For tan(x), the curve passes through (0,0), rises steeply toward π/2, and falls from −∞ just after −π/2. Cotangent is the "mirror image" — it decreases on each branch, with asymptotes at x = nπ and zeros at π/2 + nπ.

Key differences between tan and cot graphs:

  • tan(x): asymptotes at x = π/2 + nπ, zeros at nπ, INCREASING on each branch
  • cot(x): asymptotes at x = nπ, zeros at π/2 + nπ, DECREASING on each branch
  • Period of both: π (not 2π — the most common mistake in graphing trig functions)
  • cot(x) = cos(x)/sin(x): related to tan by cot(x) = 1/tan(x)

Graphing Secant and Cosecant — Reciprocal Functions

Secant and cosecant are the most challenging trig graphs to sketch. The standard textbook technique for graphing circular functions like sec and csc is to first draw the parent function (cos or sin) as a dashed guide, then draw the reciprocal branches.

Key rule: Where the parent function touches y = 1, the reciprocal function also equals 1. Where the parent touches y = −1, the reciprocal also equals −1. Where the parent crosses zero, the reciprocal has a vertical asymptote. The U-shaped branches of sec(x) open upward where cos(x) > 0 and downward where cos(x) < 0.

How to Graph sec(x) from cos(x):

  1. Draw y = cos(x) as a dashed guideline
  2. Mark the zeros of cos(x) at x = π/2 + nπ — these become vertical asymptotes for sec(x)
  3. Mark the maxima of cos(x) at x = 2nπ — sec(x) also touches these points (y=1)
  4. Mark the minima of cos(x) at x = π+2nπ — sec(x) also touches (y=−1)
  5. Draw U-shaped branches between consecutive asymptotes, touching the cos curve at its peaks/troughs

Phase Shift — The Most Confusing Transformation

The phase shift direction is the single most common source of errors when graphing trigonometric functions. Students consistently shift the graph in the wrong direction. Here is the definitive explanation.

Phase Shift Direction Rules

y = sin(x + C) where C > 0
shifts LEFT by C/B
Adding to x shifts LEFT
y = sin(x C) where C > 0
shifts RIGHT by C/B
Subtracting from x shifts RIGHT

Phase shift = −C/B  |  Positive result = shift RIGHT  |  Negative result = shift LEFT

Three Phase Shift Worked Examples

  1. sin(x + π/4): C=π/4, B=1 → phase shift = −π/4 → shifts LEFT π/4 ✓
  2. sin(x − π/4): C=−π/4, B=1 → phase shift = +π/4 → shifts RIGHT π/4 ✓
  3. sin(2x − π): C=−π, B=2 → phase shift = −(−π)/2 = π/2 → shifts RIGHT π/2 (NOT π — divide by B!) ✓

Common mistake: For sin(2x+π), students say phase shift = π left. Wrong — it's π/B = π/2 left. Always divide C by B.

Common Mistakes When Graphing Trig Functions

Mistake 1 — Period Confusion: confusing period with B

  • ❌ Wrong: period of sin(3x) = 3 × 2π = 6π
  • ✅ Correct: period = 2π/|B| = 2π/3 ≈ 2.09

Mistake 2 — Phase Shift Direction Error

  • ❌ Wrong: sin(x + π/4) shifts RIGHT π/4
  • ✅ Correct: sin(x + π/4) shifts LEFT π/4 (adding to x shifts left)

Mistake 3 — Not Factoring B Before Finding Phase Shift

  • ❌ Wrong: sin(2x + π) has phase shift π to the left
  • ✅ Correct: sin(2x+π) = sin(2(x+π/2)) → phase shift = π/2 to the LEFT

Mistake 4 — Drawing sec/csc Without Parent Guide First

  • ❌ Wrong: attempting sec(x) without first drawing cos(x) as reference
  • ✅ Correct: always draw parent sin/cos first, then draw reciprocal branches at peaks/troughs

Mistake 5 — Drawing tan(x) with Period 2π

  • ❌ Wrong: period of tan(x) = 2π (same as sin/cos)
  • ✅ Correct: period of tan(x) = π — tan repeats every π units, not every 2π

Trig Graph Reference — All Six Functions Side by Side

Complete reference table for all six trigonometric graphs. This is the essential guide for graphs of trig functions — all properties for all six functions in one place for quick reference when graphing trig functions.

FunctionEquationPeriodRange ZerosAsymptotesSymmetry
sin y=sin(x)[−1, 1] NoneOdd
cos y=cos(x)[−1, 1] π/2+nπNoneEven
tan y=tan(x)π(−∞,+∞) π/2+nπOdd
cot y=cot(x)π(−∞,+∞) π/2+nπOdd
sec y=sec(x)(−∞,−1]∪[1,+∞) Noneπ/2+nπEven
csc y=csc(x)(−∞,−1]∪[1,+∞) NoneOdd
Sine y = sin(x)
Period
Range[−1, 1]
Zeros
Maxima (y=1)π/2 + 2nπ
Minima (y=−1)3π/2 + 2nπ
AsymptotesNone
SymmetryOdd — sin(−x)=−sin(x)
Cosine y = cos(x)
Period
Range[−1, 1]
Zerosπ/2 + nπ
Maxima (y=1)2nπ
Minima (y=−1)π + 2nπ
AsymptotesNone
SymmetryEven — cos(−x)=cos(x)
Tangent y = tan(x)
Periodπ (not 2π!)
Range(−∞, +∞)
Zeros
Asymptotesx = π/2 + nπ
BehaviourIncreasing each branch
SymmetryOdd — tan(−x)=−tan(x)
Cotangent y = cot(x)
Periodπ (not 2π!)
Range(−∞, +∞)
Zerosπ/2 + nπ
Asymptotesx = nπ
BehaviourDecreasing each branch
SymmetryOdd — cot(−x)=−cot(x)
Secant y = sec(x)
Period
Range(−∞,−1] ∪ [1,+∞)
ZerosNone
Asymptotesx = π/2 + nπ
Parentcos(x) — draw first
SymmetryEven — sec(−x)=sec(x)
Cosecant y = csc(x)
Period
Range(−∞,−1] ∪ [1,+∞)
ZerosNone
Asymptotesx = nπ
Parentsin(x) — draw first
SymmetryOdd — csc(−x)=−csc(x)

Worked Examples — Full Graphing Problems

1. Graph y = 3cos(2x) — Find all key features

  1. A=3: amplitude=3, no reflection
  2. B=2: period=2π/2=π
  3. C=0: phase shift=0 (no shift)
  4. D=0: midline y=0, max=3, min=−3
  5. Key points per period: (0,3),(π/4,0),(π/2,−3),(3π/4,0),(π,3)

2. Graph y = −2sin(x + π/3) — note the negative amplitude and phase shift

  1. A=−2: amplitude=2, REFLECTED over x-axis (flipped)
  2. B=1: period=2π
  3. C=π/3: phase shift=−π/3 → shifted LEFT by π/3
  4. D=0: midline y=0, max=2, min=−2
  5. Note: because of reflection, starts going DOWN from zero instead of up

3. Graph y = tan(x/2) — period doubles

  1. B=1/2: period=π/(1/2)=2π — period of this tan graph is 2π not π
  2. Asymptotes at x = π + 2nπ (solving (1/2)x = π/2 + nπ → x = π + 2nπ)
  3. Zeros at x = 2nπ
  4. Sketch: vertical asymptotes at x=…−π, π, 3π…, curve passes through (0,0)

4. Graph y = 2sin(3x − π/2) + 1 — full transformation

  1. A=2: amplitude=2
  2. B=3: period=2π/3
  3. C=−π/2: phase shift = −(−π/2)/3 = π/6 RIGHT
  4. D=1: midline y=1, max=3, min=−1
  5. Note: sin(x − π/2) = −cos(x), so y=2sin(3x−π/2)+1 is related to −cos

5. Prove sin(x + π/2) = cos(x) using the phase shift

  1. C=π/2, B=1: phase shift = −π/2 → graph shifts LEFT π/2
  2. When sin graph moves LEFT by π/2, it starts at its maximum → becomes cos(x)
  3. Algebraic proof: sin(x+π/2) = sin(x)cos(π/2)+cos(x)sin(π/2) = 0+cos(x) = cos(x) ✓

6. Graph y = sec(x) from y = cos(x)

  1. Draw cos(x) dashed: period=2π, maxima at 2nπ, minima at π+2nπ, zeros at π/2+nπ
  2. Draw vertical asymptotes at each zero of cos(x): x = π/2 + nπ
  3. Draw U-branches opening UP (touching cos peaks at y=1) and DOWN (touching troughs at y=−1)
  4. sec graph never enters the band −1 < y < 1

7. Find equation from graph: period=4, amplitude=3, shifts up 2, starts at zero going down

  1. Amplitude A=−3 (negative because going DOWN from zero → reflected sin)
  2. Period=4 → 2π/B=4 → B=π/2
  3. D=2 (vertical shift up 2)
  4. Equation: y = −3sin((π/2)x) + 2

8. Graph y = 2csc(x) + 1 from y = 2sin(x) + 1

  1. Draw parent: y=2sin(x)+1, period=2π, max=3, min=−1
  2. Asymptotes for csc at zeros of sin(x): x=nπ
  3. Branches touch parent at maxima (y=3) and minima (y=−1)
  4. csc graph stays above y=1+2=3 or below y=1−2=−1 — never between

Frequently Asked Questions

What are the 6 trig functions and their graphs?
The six trig function graphs are: sine y=sin(x) (smooth wave, period 2π, range [−1,1]), cosine y=cos(x) (same wave shifted π/2 left, period 2π, range [−1,1]), tangent y=tan(x) (unbounded, period π, asymptotes at π/2+nπ), cotangent y=cot(x) (unbounded, period π, asymptotes at nπ), secant y=sec(x) (U-shaped branches, period 2π, range (−∞,−1]∪[1,+∞)), and cosecant y=csc(x) (same shape as sec, period 2π). Use this trig graphs calculator to visualize all six interactively.
What is the period of sin and cos?
The period of sin(x) and cos(x) is 2π ≈ 6.283. For transformed trig graphs y=A·sin(Bx+C)+D, the period becomes 2π/|B|. If B=2, period=π. If B=1/2, period=4π. The period is how far the graph travels before repeating.
What is the period of tan?
The period of tan(x) is π — not 2π. This is the most common error when graphing trig functions. Tan(x) repeats every π units because tan(x+π) = tan(x). For y=A·tan(Bx+C)+D, the period is π/|B|. Cotangent also has period π.
How do you find the amplitude of a trig graph?
Amplitude = |A| in y=A·sin(Bx+C)+D or y=A·cos(Bx+C)+D. It is the vertical distance from the midline to the maximum. If A is negative, the amplitude is still |A| — negative A means the graph is reflected but amplitude is always positive. Tan, cot, sec, and csc have no defined amplitude since they are unbounded.
How do you find the phase shift of a trig graph?
Phase shift = −C/B. Positive result means shift RIGHT, negative means LEFT. For y=sin(2x+π): B=2, C=π, phase shift = −π/2 LEFT (not −π — you must divide by B). For y=sin(x−π/4): phase shift = π/4 RIGHT. The phase shift is one of the trickiest parts of graphing trigonometric functions — always divide C by B.
What is the difference between sec and cos graphs?
Sec(x) = 1/cos(x). The sec graph touches cos(x) at its maxima and minima (where cos=±1) but shoots to ±∞ where cos=0. The sec graph has U-shaped branches, never enters the range (−1,1), and has vertical asymptotes exactly where cos crosses zero. Always draw cos first as a dashed guide before sketching sec.
Why does sin(x + π/2) equal cos(x)?
sin(x + π/2) = cos(x) because the sine wave shifted left by π/2 is identical to the cosine wave. Algebraic proof using angle addition: sin(x+π/2) = sin(x)cos(π/2) + cos(x)sin(π/2) = sin(x)·0 + cos(x)·1 = cos(x). This is one of the co-function identities and shows that sine and cosine are the same trig graph shape with a phase shift of π/2.

Related Calculators

Quick Reference
Period = 2π/|B| (sin,cos,sec,csc) Period formula — most important
Period = π/|B| (tan, cot) Tan/cot have half the period
Amplitude = |A| Always positive
Phase shift = −C/B +ve=RIGHT, −ve=LEFT
Midline: y = D Vertical shift
sin(x+π/2) = cos(x) Co-function identity
sec(x) = 1/cos(x) Reciprocal relationship
csc(x) = 1/sin(x) Reciprocal relationship
Function Colors
Sine — y = sin(x)
Cosine — y = cos(x)
Tangent — y = tan(x)
Cotangent — y = cot(x)
Secant — y = sec(x)
Cosecant — y = csc(x)

Share This Tool

Share the Trig Graphs Calculator with students!

Free chemistry, physics, biology & math calculators with step-by-step solutions. Trusted by 100,000+ students. Solve any science problem instantly!

Newsletter

Subscribe to our Newsletter to be updated. We promise not to spam.

Copyright © 2026 SciSolveLab. All Rights Reserved

Scroll to Top