The short answer is -sin(x)
If you are looking at cos(x) in isolation, the derivative is just -sin(x). That is the whole thing. The negative sign is the part everyone forgets because you spend so much time memorizing that the derivative of sin is cos that your brain auto-fills the positive version. It is not positive. I ran into this exact issue last year on a signal processing project where we were building a phase estimator. Someone had coded the derivative of a cosine wave as just sin(x) without the negative. The phase output drifted backwards by 180 degrees compared to what the reference model produced. We chased it for about three hours before I noticed the sign flip. Fixing that one minus sign solved it immediately.
What Is The Derivative Of Cos
The formal definition comes from first principles using the limit as h approaches zero of [cos(x + h) - cos(x)] / h. If you expand cos(x + h) using the angle addition formula you get cos(x)cos(h) - sin(x)sin(h) - cos(x) all over h. Separate it into two fractions, evaluate the limits using the standard results that sin(h)/h goes to one and [cos(h) - 1]/h goes to zero, and you are left with -sin(x). The derivation is standard textbook material but it matters that you know it exists because when you hit a case where you cannot just plug into the formula, falling back to the limit definition is the only reliable path. The chain rule version shows up constantly. If you have cos(g(x)) where g is some function of x, the derivative is -sin(g(x)) * g'(x). So cos(3x) gives -3sin(3x). Cos(x^2) gives -2xsin(x^2). The mistake people keep making here is differentiating the outer function and forgetting to multiply by the inner derivative, or worse, dropping the negative sign in the process. I also want to flag something that comes up in applied work and almost never gets mentioned in a intro calc class. When you are computing derivatives numerically, especially with noisy data, a straight finite difference approximation of the derivative of cos will amplify high frequency noise because the sine wave is oscillating and the difference operation acts as a high-pass filter. If you are working with real sensor data and need the derivative of a cosine-like signal, a Savitzky-Golay filter applied before differentiation will give you a far more stable result than just taking the raw difference. I learned that the hard way when my numerical derivative was completely unusable on a gyroscope signal until I added the filter.
Another thing that trips people up is when the variable is not in radians. If x is in degrees, the derivative picks up an extra factor of pi/180 because the chain rule applies to the degree-to-radian conversion. So d/dx[cos(x°)] = -(pi/180)sin(x°). This matters in engineering codes where angle inputs are sometimes left in degrees instead of being converted first. If your simulation output is scaled wrong by roughly 57.3, this is usually why. Here are a few examples laid out plainly. Derivative of 5cos(2x): multiply by the constant, apply the chain rule to the inner 2x, giving -10sin(2x).
Get the Full Details

Derivative of cos(x) / x: use the quotient rule. The result is [-xsin(x) - cos(x)] / x^2. Do not skip the quotient rule and try to factor it differently, that is where algebra mistakes happen. Derivative of cos^2(x): treat it as [cos(x)]^2 and use the chain rule. You get -2cos(x)sin(x), which you can also write as -sin(2x) if you want to clean it up. If you need to look this up later, any standard calculus textbook or reference like Abramowitz and Stegun will list it. WolframAlpha and Symbolab will compute it instantly for composite forms. For a downloadable reference sheet, the MIT OCW single variable calculus notes at ocw.mit.edu include the full derivative table with the cos entry and surrounding context.
The limitation worth stating outright is that this rule only applies cleanly to the cosine function itself. Once you move into hyperbolic cosine, inverse cosine, or composite forms involving absolute values or piecewise definitions, the simple negative sine rule is no longer sufficient and you need to apply the appropriate extended rule for each case. Cosine squared, cosine of a matrix argument, and discrete-time cosine sequences each have their own treatment. The -sin(x) answer is correct but narrowly so.