How do I find the angle between 2 vectors?

First, we need to recall 2 basic definitions of vector operations:

The dot product is defined on vectors u=[u1, u2,...un] and v=[v1, v2,..., vn] as u . v = u1v1+u2v2+...+unvn
The length (norm) of a vector v=[v1, v2,..., vn] is the nonnegative scalar defined as ||v||=√(v . v)=√(v12+v22+...+vn2)

Note that u & v must be the same size to compute the dot product.

Now the formula for the angle, θ, between 2 vectors is as follows:

             cos(θ)=(u . v)/(||u|| ||v||)

Notice that u & v can be any size so long as they are both the same size. That is, this formula can be used to find the angle between vectors in 2 dimensions and also to find the angle between vectors in 100 dimensions, however hard that is to imagine.

A handy rearrangement of that formula to isolate θ is:

θ=cos-1( (u . v)/(||u|| ||v||) )


Christopher H. A Level Maths tutor, A Level Further Mathematics  tuto...

2 years ago

Answered by Christopher, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£20 /hr

Sam H.

Degree: Physics (Masters) - Bristol University

Subjects offered:Maths, Physics+ 1 more


“Top Maths and Physics tutor from the renowned university of Bristol, ready to help you improve your grades!”

£20 /hr

Sam T.

Degree: Mathematical Physics (Bachelors) - Edinburgh University

Subjects offered:Maths, Physics+ 1 more


“I’m studying Physics with units in Maths and Chemistry. I really enjoy helping other people find a love for those subjects even if they think they're the worst.”

£20 /hr

Zoe N.

Degree: Computer Science (Masters) - St. Andrews University

Subjects offered:Maths, English+ 1 more


“About me: I'm a first year computer science student at the University of St. Andrews. I have been a private tutor previously for two years but I have been helping my younger brother with the subjects he struggles with for many more ye...”

MyTutor guarantee

About the author

Christopher H.

Currently unavailable: no new students

Degree: Mathematics (Bachelors) - Edinburgh University

Subjects offered:Maths, Physics+ 1 more

Further Mathematics

“Hi, I'm currently studying Maths at Edinburgh University and looking to tutor A-level Maths and Physics.”

You may also like...

Other A Level Maths questions

Differentiate y^3 + 3y^2 + 5

What is trigonometry? How do I remember sine, cosine and tangent?

How do I differentiate y = ln(sin(3x))?

For rectangles of area 100 m^2 what is the perimeter of the rectangle with the smallest perimeter?

View A Level Maths tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss