Loading…

Components and Length of a Vector

Physics Classical Mechanics • Vectors

View all topics

Resolve a vector into its x, y, and optional z components, convert between Cartesian and polar input, and compute its length, unit vector, and direction angles.

In 2D, θ is measured counterclockwise from the +x axis. In 3D, θ is the azimuth in the xy-plane and φ is the elevation measured upward from the xy-plane. Accepted numeric expressions include pi/6, sqrt(2), 1e-3, sin(0.4), and abs(-5).

Ready
Choose a dimension and input mode, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How do you find the length of a vector?

In 2D, the length is sqrt(x^2 + y^2). In 3D, the length is sqrt(x^2 + y^2 + z^2). This is the Pythagorean theorem applied to vector components.

How do you convert a 2D vector from magnitude and angle to components?

Use x = |v| cos(theta) and y = |v| sin(theta), where theta is measured from the +x axis.

How do you convert a 3D vector from magnitude and angles to components?

With azimuth theta in the xy-plane and elevation phi from the xy-plane, use x = |v| cos(phi) cos(theta), y = |v| cos(phi) sin(theta), and z = |v| sin(phi).

What is the unit vector?

The unit vector is the original vector divided by its length. It points in the same direction but has magnitude 1.

Why is the direction undefined for the zero vector?

The zero vector has length 0, so it cannot be normalized into a unit vector and it does not point in any unique direction.