The choice between sine and cosine in physics always comes down to one thing: the angle’s relationship to the component you need. Cosine gives you the component adjacent to (along) the reference angle, and sine gives you the component opposite to (across from) the reference angle. Once you internalize that single rule, every physics scenario follows logically.
The Core Rule: Adjacent vs. Opposite
Think of any vector (a force, a velocity, a displacement) as the hypotenuse of a right triangle. When you break that vector into two perpendicular components, you’re building two sides of that triangle. The component that sits along the direction of the angle is the adjacent side, and you get it with cosine. The component that reaches away from the angle, perpendicular to it, is the opposite side, and you get it with sine.
When the reference angle is measured from the x-axis, this produces the familiar formulas: x = r cos θ and y = r sin θ, where r is the magnitude of the vector. The x-component lies along the angle’s direction (adjacent), so it gets cosine. The y-component is across from the angle (opposite), so it gets sine.
That’s the entire principle. Every specific case in physics is just this triangle showing up in a new context.
Projectile Motion
When you launch a projectile at angle θ above the horizontal, the launch speed v₀ is your hypotenuse. The horizontal component sits along the angle, so it’s adjacent: v₀ₓ = v₀ cos θ. The vertical component reaches upward, away from the angle: v₀ᵧ = v₀ sin θ. A ball launched at 20 m/s at 30° has a horizontal speed of 20 cos 30° (about 17.3 m/s) and a vertical speed of 20 sin 30° (10 m/s).
Inclined Planes
Inclined planes trip people up because the sine and cosine assignments seem to flip. Gravity pulls straight down with force mg, and you need to split it into two components: one parallel to the slope (which makes the object slide) and one perpendicular to the slope (which pushes the object into the surface). The result is that the parallel component is mg sin θ and the perpendicular component is mg cos θ, where θ is the angle of the incline.
This feels backwards at first. Shouldn’t the x-direction get cosine? The key is that θ on an inclined plane is not measured from the direction of the component you might expect. The angle of the incline is measured from the horizontal, but the gravity vector points straight down. Through the geometry of the right triangle that forms, the angle between the gravity vector and the line perpendicular to the slope turns out to equal the incline angle θ. That makes the perpendicular component adjacent to θ (cosine) and the parallel component opposite to θ (sine).
If you’re ever unsure, sketch the triangle. Label the angle, identify which component is adjacent and which is opposite, and the trig function follows automatically.
What Happens When the Angle Is Measured From a Different Axis
The most common source of confusion is when the reference angle shifts. If θ is measured from the x-axis, the x-component uses cosine. But if the angle is measured from the y-axis instead, the assignments swap: the y-component becomes the adjacent side and gets cosine, while the x-component becomes the opposite side and gets sine. So x = r sin φ and y = r cos φ, where φ is the angle from the y-axis.
This isn’t a special rule. It’s the same adjacent/opposite logic applied to a different reference direction. A 50° angle from the x-axis is equivalent to a 40° angle from the y-axis (since they add to 90°), so cos 50° and sin 40° give you the same number. Before plugging into any formula, check which axis or direction the angle is measured from. That single step prevents most errors.
Work: Why It Uses Cosine
The formula for work is W = Fd cos θ, where F is the applied force, d is the displacement, and θ is the angle between the force and the direction of motion. Work measures how much of your force actually pushes the object in the direction it moves. That “how much” is the component of force along the displacement, which is the adjacent component, so it uses cosine.
When you push a box across the floor with the force angled 30° downward, only the horizontal portion of your push does work on the box. At θ = 0° (force perfectly aligned with motion), cos 0° = 1 and you get full work. At θ = 90° (force perpendicular to motion, like carrying a box horizontally while the force is straight up), cos 90° = 0 and no work is done. The cosine captures that relationship cleanly.
Torque and Magnetic Force: Why They Use Sine
Torque uses the formula τ = rF sin θ. The magnetic force on a moving charge is F = qvB sin θ. Both of these involve the cross product, and the cross product uses sine because it cares about the perpendicular component rather than the parallel one.
For torque, only the part of the force that is perpendicular to the lever arm actually causes rotation. If you push a wrench perfectly along its handle (θ = 0°), nothing turns, and sin 0° = 0 reflects that. If you push perpendicular to the handle (θ = 90°), you get maximum rotation, and sin 90° = 1 captures that. The sine function extracts the opposite (perpendicular) component, which is the one that matters for rotational effect.
The same logic applies to magnetic force. A charged particle moving perfectly parallel to a magnetic field feels no force (sin 0° = 0). Only the component of velocity perpendicular to the field generates a force.
Simple Harmonic Motion: Sine vs. Cosine for Timing
In oscillations like springs and pendulums, sine and cosine serve a different purpose entirely. They’re not breaking vectors into components. They’re describing where the oscillating object is at a given moment in time.
If the object starts at its maximum displacement (pulled to one side and released from rest), the position is described by x(t) = A cos(ωt), because cosine starts at its maximum value when t = 0. If the object starts at the center and is moving through equilibrium, the position is described by x(t) = A sin(ωt), because sine starts at zero when t = 0. Both functions describe the same repeating motion; the choice depends on when you start your clock.
For pendulums specifically, the restoring force depends on sin θ, where θ is the angle of swing. For small angles (roughly 20° or less), sin θ is approximately equal to θ itself (measured in radians). This simplification is what makes the pendulum period formula T = 2π√(L/g) work out so neatly, with the period depending only on the string length and gravity, not on how far you pull the pendulum back.
A Quick Decision Process
When you’re staring at a problem and unsure which function to use, run through these steps:
- Draw the right triangle. The vector you’re decomposing is the hypotenuse. The two components are the legs.
- Find the angle’s position. Identify exactly where the given angle sits in your triangle, specifically which axis or direction it’s measured from.
- Label adjacent and opposite. The component along the angle’s reference direction is adjacent (cosine). The component perpendicular to it is opposite (sine).
- Check with extremes. If the angle went to 0°, which component should equal the full vector and which should vanish? Cos 0° = 1 and sin 0° = 0, so make sure your formula behaves correctly at that limit.
That last check is especially powerful. On an incline, if θ = 0° the surface is flat, so the full gravitational force should press the object into the surface (perpendicular component = mg) and nothing should pull it along the slope (parallel component = 0). Since cos 0° = 1 and sin 0° = 0, the formulas mg cos θ and mg sin θ pass the test. If your formulas don’t behave sensibly at 0° or 90°, you’ve swapped sine and cosine somewhere.

