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

George B.

Degree: Physics with Industrial experience (Masters) - Bristol University

Subjects offered: Maths, Physics


“Myself: I'm a Physics student at the University of Bristol. My passion is Physics and Maths. I think any theory can be made interesting and exciting. My tutorials will shows my informative and passionate nature.  I have numerous expe...”

£20 /hr

Andrew D.

Degree: Mathematics (Masters) - Warwick University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“About me Hi, I'm Andrew. I'm currently going into my second year studying maths at the University of Warwick. I find maths incredibly fascinating, as my passion stems from the idea thatmaths is everywhere and is fundamental to underst...”

£22 /hr

Jonathan P.

Degree: Physics (Masters) - Durham University

Subjects offered: Maths, Physics


“About Me: I am a Physics student at Durham University. My passion is physics, and by association maths, I will aim to instil asimilar passion in students during my tutorials. I am a highly patient and approachable individual.  I have...”

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

When using the addition rule in probability, why must we subtract the "intersection" to find the "union" with the Addition Rule?

Solve 4cos(2x )+ 2sin(2x) = 1 given -90° < x < 90°. Write 4cos(2x )+ 2sin(2x) in the form Rcos(2x - a), where R and a are constants.

Solve the equation; 4 cos^2 (x) + 7 sin (x) – 7 = 0, giving all answers between 0° and 360°.

The variable x=t^2 and the variable y=2t. What is dy/dx in terms of t?

View A Level Maths tutors


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