Skip to content
ihateDesmos

Derivative of sin x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of sin x
ddx(sin(x))=cos(x)

The derivative of sin x is cos x. The slope of the sine curve at any point is exactly the height of the cosine curve there, with x in radians.

−6−4−2246−110
Open in calculator
y=sin(x)
in blue and its derivative
y=cos(x)
in red.

How to find the derivative of sin x

Method: limit definition.

  1. 1
    Start from the definition: d/dx sin x = limit as h → 0 of (sin(x + h) − sin x) / h.
  2. 2
    Expand with the angle addition formula: sin(x + h) = sin x cos h + cos x sin h.
  3. 3
    Group the terms: sin x · (cos h − 1)/h + cos x · (sin h)/h.
  4. 4
    Use the two standard limits: (cos h − 1)/h → 0 and (sin h)/h → 1.
  5. 5
    What remains is sin x · 0 + cos x · 1 = cos x.

What it means on the graph

Where sine climbs fastest, at x = 0, cosine is at its peak of 1. At the top of the sine curve the slope is 0, and cosine crosses zero at exactly that point. Where sine falls fastest, cosine reaches −1.

In the window shown, the derivative is zero at x = −3π/2, x = −π/2, x = π/2, x = 3π/2. Those are the points where the graph of sin x has a horizontal tangent.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of sin x and its derivative
xsin xcos xSlope, measured
−5.030.9499840.3122980.312298
−3.14−0.00159265−0.999999−0.999999
−1.26−0.952090.3058170.305817
0011
1.880.952576−0.3043−0.3043
3.77−0.587857−0.808965−0.808965
5.03−0.9499840.3122980.312298

Second derivative

Differentiating once more gives:

d2dx2(sin(x))=−sin(x)

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
sin(3x)
3cos(3x)
sin(x2)
2xcos(x2)
sin(ex)
excos(ex)

Common mistakes

  • Using degrees. The result cos x only holds for x in radians. In degrees, the derivative is (π/180) cos x.
  • Writing −cos x. The minus sign belongs to the derivative of cosine, not sine.

Frequently asked questions

What is the derivative of sin x?
The derivative of sin x is cos x.
What is the second derivative of sin x?
Differentiate cos x again to get the second derivative. The result is shown on this page under “Second derivative”.
Why is the derivative of sin x equal to cos x?
The limit definition with the angle addition formula gives it directly, and it rests on the limit of sin(h)/h being 1 as h → 0. That limit is only 1 when angles are measured in radians.
What are the higher derivatives of sin x?
They repeat every four steps: cos x, −sin x, −cos x, then sin x again.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator