Sine & Cosine Graph Calculator
A sinusoidal graph is a smooth repeating wave described by y = A sin(Bx + C) + D. A sets the height, B the period, C the horizontal shift and D the midline. This calculator works out each of these features, gives the maximum, minimum and range, and draws two full periods of the wave.
How to use the sine & cosine graph calculator
- Choose sine or cosine.
- Enter A, B, C and D (π is allowed, e.g. -pi/4).
- Press Calculate to see the features and the graph.
Formula
Worked example: y = 3 sin(2x) + 1
- Function: y = A sin(Bx + C) + D
- A (amplitude): 3
- B: 2
- C: 0
- D (vertical shift): 1
✓ Answer checked
- Maximum / minimum
- Range
- Frequency (cycles per unit)
Step-by-step working (4 steps)
Amplitude
The amplitude is |A|: how far the wave goes above and below the midline.
Period Period = 2π/|B|
One full cycle of sin or cos is 2π; dividing by |B| squeezes or stretches it.
Phase shift
Solve Bx + C = 0: the graph starts its cycle there.
Vertical shift
D moves the midline up or down.
Formulas used
How this was checked
- ✓ f(x + period) equals f(x) at several test points.
- ✓ The sampled graph reaches the predicted maximum and minimum.
Frequently asked questions
What is the period of y = sin(2x)?
π, because the period is 2π ÷ |B| and B = 2.
What does a negative A do?
It reflects the wave upside down. The amplitude is still |A|.
How do I find the phase shift?
Solve Bx + C = 0, giving x = −C ÷ B. A positive answer shifts the graph to the right.
Related calculators
Trigonometry Calculator
Find sin, cos, tan, csc, sec and cot of any angle in degrees or radians.
Graphing Calculator
Plot up to three functions with an animated graph.
Degrees to Radians Calculator
Convert degrees to radians as an exact multiple of π (like 135° = 3π/4) and as a decimal, with the steps and a unit circle diagram.
