AnsRioSmart tools. Clear answers.
Home / Math & statistics / Angle between two 2D vectors
Math & statistics

Angle between two 2D vectors

Angle between two 2D vectors: Angle = arccos[(A·B)/(|A||B|)], returned in degrees from 0 to 180.

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Calculate.

QUICK ANSWER

90

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Angle = arccos[(A·B)/(|A||B|)], returned in degrees from 0 to 180. Neither vector may be zero.

Input definitions

A x
Enter the value in the labeled unit.
A y
Enter the value in the labeled unit.
B x
Enter the value in the labeled unit.
B y
Enter the value in the labeled unit.

A worked example

A x
1
A y
0
B x
0
B y
1
90

Assumptions & limits

Uses the units and scope stated in the input labels. Results are rounded for display; verify the model is appropriate for your situation.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-10-18. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

Why is the angle of a zero vector undefined?

A zero vector has no direction. Dividing by its magnitude would be undefined, so enter two vectors with nonzero lengths.

How does Angle between two 2D vectors work?

Angle = arccos[(A·B)/(|A||B|)], returned in degrees from 0 to 180. Neither vector may be zero.

What should I check before using Angle between two 2D vectors?

Uses the units and scope stated in the input labels. Results are rounded for display; verify the model is appropriate for your situation.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work