Easy CalculatorsOnline
A little less guesswork.

Math · EVERYDAY CLARITY

Angle between vectors calculator

Find the unsigned angle between two nonzero3D vectors.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Angle between vectors
12.933154°
See visual ↓

Angle0–180°. Both vectors must be nonzero; cosine is clamped for numeric roundoff.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Dot product determines angular separation

32÷32.83291→arccos
Calculated result12.933154°

The angle is unsigned; it does not give a clockwise orientation.

03 · UNDERSTAND THE METHOD

How the angle between vectors calculator works

The angle between two nonzero vectors measures their directional separation. This calculator divides their dot product by the product of their magnitudes and applies the inverse cosine. The result is an unsigned angle from zero through 180 degrees. It is useful for comparing orientations and checking whether vectors are parallel, perpendicular, or opposed. The three-dimensional component representation does not require the vectors to lie in a particular coordinate plane.

The formula and its variables

θ=arccos[(u·v)/(|u||v|)]
u and v
Nonzero three-component vectors.
θ
Unsigned separation angle from zero through 180 degrees.

The calculation, step by step

  1. Enter three Cartesian components for each vector and ensure that neither vector is zero. Use a common coordinate basis.
  2. Calculate the dot product and both lengths. Divide by their magnitude product to obtain the cosine of the separation angle.
  3. Clamp only tiny numerical excursions outside the valid cosine range, then apply arccosine and convert the answer to degrees.

A worked example

Vectors (1, 0, 0) and (0, 1, 0) have dot product zero and unit magnitudes, producing an angle of 90 degrees. Vectors (1, 0, 0) and (−1, 0, 0) produce 180 degrees. Multiplying either nonzero vector by a positive scalar does not change these angles because its length scales with the dot product.

Example inputs and calculated output
First vector: x, y, z1,2,3
Second vector: x, y, z4,5,6
Angle between vectors12.933154°

How to read the result and visual

The angle describes separation rather than a clockwise rotation. In three dimensions, an additional reference normal would be needed to choose an oriented rotation convention. A zero-degree result indicates matching direction, while 180 indicates opposition. The result is independent of vector sizes but depends on their signs and directions.

Assumptions, rounding, and limitations

A zero vector has no direction, so either zero input is rejected. The method assumes an orthonormal Cartesian basis. Near-parallel vectors can be sensitive to rounding in the cosine ratio; clamping prevents a spurious invalid arccosine from tiny machine errors. It does not resolve uncertainty in approximate component measurements.

Frequently asked questions

Why can’t I use a zero vector?

There is no unique direction to compare, and its magnitude would make the denominator zero.

Does the answer indicate clockwise rotation?

No. It is the unsigned angle between directions.

Reference sources

How we check calculations and what verification covers