On this page
Vector components tell you how much of a displacement, velocity, or force lies along each axis. Draw a right triangle with the vector as the hypotenuse. For an acute angle to either axis, use cosine for the adjacent leg and sine for the opposite leg, then use the arrow’s direction to set the signs.
Prerequisites — Review Units and dimensions if you need a refresher. You’ll use right-triangle sine, cosine, and the Pythagorean theorem.
Vector components
Scalars and vectors
A runner who turns from east to north at 5 m/s keeps the same speed but changes velocity. Both quantities use m/s. If east is positive, a one-dimensional velocity of already tells you the runner is moving west.
A sign can carry a different meaning for a scalar. For example, negative work describes energy transfer without giving a spatial direction. Mass is also a scalar. Weight is the gravitational force and points downward near Earth’s surface.
| Quantity type | What it tells you | Examples |
|---|---|---|
| Scalar | A single value, which can carry a sign | Mass, time, speed, energy, work, pressure |
| Vector | Magnitude and, for a nonzero vector, direction | Displacement, velocity, acceleration, force, weight |
Resolve a vector into components
Choose perpendicular and axes and mark their positive directions. With as the vector’s magnitude and measured counterclockwise from , the signed components are:
With this angle convention, sine and cosine give the component signs directly in every quadrant. A vector pointing up and left is in quadrant II, where and . Its component is negative and its component is positive. The trig ratios are dimensionless, so each component keeps the vector’s units.
In the diagram, the vector points up and right. Both components are positive, and the horizontal leg is adjacent to .
You can also use an acute reference angle to an axis. Use cosine for the adjacent component’s magnitude and sine for the opposite component’s magnitude. If the angle is measured from vertical, the leg is adjacent. Read the signs from your sketch. With right and up, a vector pointing down and right has and .
Use familiar angles to estimate components. At 0° or 90° from , one component is zero. At 45°, the components have equal magnitudes. The sine and cosine values swap between 30° and 60°, so and .
Recover magnitude and direction
Because the x and y components are perpendicular, they form the legs of a right triangle. The magnitude of the vector is therefore:
For direction, use when . Take the arctangent of the ratio’s absolute value to get the angle to the horizontal, then use the component signs to place the vector. For example, a ratio of 1 gives 45° from if both components are positive and 225° if both are negative.
Suppose a hiker’s displacement has components and . With right and up positive, the hiker ends up left and up from the starting point. The equal component magnitudes give a 45° angle above the negative axis, so the direction is counterclockwise from . Taking the arctangent of the signed ratio alone gives , which points down and right.
When , a positive means 90° and a negative means 270°. The zero vector has no direction.
Worked example: Velocity at the top of a flight
Traps
- Check which axis the angle touches. If you’re unsure which component gets cosine, imagine the angle shrinking to 0°. The vector would lie along the axis the angle is measured from. That component gets cosine because .
- Use the right triangle to check magnitude. A 3 m displacement east and a 4 m displacement north give a 5 m net displacement. The sum, 7 m, is the distance traveled along those two legs.
- Keep the original signs for direction. Squaring removes signs when you calculate magnitude. Go back to the signed components when you report where the vector points.
Use signed components to combine displacements or forces in Vector addition.