# Angle between vectors calculator

Canonical HTML: https://easycalculatorsonline.com/math/vector-angle/

Find the unsigned angle between two nonzero3D vectors.

Interactive calculations run in your browser. Values below are the published example, not a calculation for your circumstances.

## Calculator inputs

| Input | Example value | Constraints and options |
| --- | --- | --- |
| First vector: x, y, z | 1,2,3 |  |
| Second vector: x, y, z | 4,5,6 |  |

**International formulas and units**

Use the units and assumptions stated on this page. Mathematical definitions apply across countries; material, device and measurement conditions remain your inputs.

## Published example result

> Angle between vectors
> Angle between vectors: 12.933154°
> 
> Angle0–180°. Both vectors must be nonzero; cosine is clamped for numeric roundoff.
> https://easycalculatorsonline.com/math/vector-angle/

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**

| Input or output | Value |
| --- | --- |
| First vector: x, y, z | 1,2,3 |
| Second vector: x, y, z | 4,5,6 |
| Angle between vectors | 12.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

- [OpenStax: dot product and projection ↗](https://openstax.org/books/calculus-volume-3/pages/2-3-the-dot-product)

[How we check calculations and what verification covers](https://easycalculatorsonline.com/methodology/)

## Related calculators

[**Vector dot product ↗**

Find the scalar product of two3D vectors.](https://easycalculatorsonline.com/math/vector-dot-product/)[**Vector addition & subtraction ↗**

Combine corresponding components of two3D vectors.](https://easycalculatorsonline.com/math/vector-arithmetic/)[**Scalar triple product ↗**

Calculate signed volume from three3D vectors.](https://easycalculatorsonline.com/math/scalar-triple-product/)

[← Explore all calculators](https://easycalculatorsonline.com/#browse)

## Publisher and access

Published by Wolfpack Labs. Free to use; no account or payment required.

[Email wolfpack.labs.in@gmail.com](mailto:wolfpack.labs.in@gmail.com)

[About](https://easycalculatorsonline.com/about/) · [Methodology](https://easycalculatorsonline.com/methodology/) · [Contact](https://easycalculatorsonline.com/contact/) · [Privacy](https://easycalculatorsonline.com/privacy/) · [Terms](https://easycalculatorsonline.com/terms/)
