Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Angle Between Vectors Calculator

Angle Between Two Vectors works out Angle and Angle in the chosen unit from Vector a (components, comma separated), Vector b (components, comma separated) and aₓ. The default figures on this page give angle of 16.260205 deg; change any entry and the result, the working and the sources update together.

Angle
16.260205 deg
Angle Between Two Vectors
Angle
0.28379411 rad
Angle
18.066894 grad
Angle in the chosen unit
16.260205
Dot product a·b
24.00000000
|a|
5.00000000
|b|
5.00000000
cos θ (cosine similarity)
0.9600000000
|a × b|
7.00000000
Scalar projection of a onto b
4.80000000
Relationship
oblique
Dimensions
2
Worked out from Weisstein, Eric W. "Dot Product." MathWorld — a·b = |a||b| cos θ and 2 other sources.

Your figures

Updates as you type
For example "3, 4" in 2D or "1, 2, 3" in 3D.
Alternative entry: individual components of a.
Alternative entry: individual components of b.

How this is worked out

7 steps
  1. a·b = (3)(4) + (4)(3) = 24
  2. |a| = √(3² + 4²) = 5
  3. |b| = √(4² + 3²) = 5
  4. cos θ = (a·b) / (|a||b|) = 24 / (5 × 5) = 0.96
  5. θ = arccos(0.96) = 16.26020471° = 0.2837941092 rad
  6. a × b = (0, 0, -7), |a × b| = 7
  7. Scalar projection of a onto b = (a·b)/|b| = 4.8
Cross product a × btable
0, 0, -7
Vector projection of a onto btable
3.84, 2.88
Unit vector âtable
0.6, 0.8
Unit vector b̂table
0.8, 0.6

Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

3 sources

What the Angle Between Two Vectors calculates

Finds the angle between two vectors of any dimension from the dot product formula cos θ = (a·b)/(|a||b|), and returns the dot product, magnitudes, cosine similarity, cross product, projection and whether the vectors are perpendicular or parallel.

How to use this Angle Between Two Vectors

Enter Vector a (components, comma separated), Vector b (components, comma separated), aₓ and a_y. Angle updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Angle, Angle in the chosen unit and Dot product a·b.

The method follows Weisstein, Eric W. "Dot Product." MathWorld — a·b = |a||b| cos θ, Weisstein, Eric W. "Cross Product." MathWorld — |a × b| = |a||b| sin θ and Weisstein, Eric W. "Vector Projection." MathWorld.

Perpendicular unit vectors i and j example

With Vector a (components, comma separated): 1,0, Vector b (components, comma separated): 0,1, the calculator returns Angle: 90, Dot product a·b: 0, cos θ (cosine similarity): 0. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Angle, Angle in the chosen unit and Dot product a·b. The inputs you can vary are Vector a (components, comma separated), Vector b (components, comma separated), aₓ, a_y, a_z and bₓ.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

What is the formula for angle between?

On the figures this page opens with, the angle is 16.260205 deg. No single number fits everyone: it follows Vector a (components, comma separated), Vector b (components, comma separated) and aₓ, so enter your own above and the answer updates as you type.

What is the formula for calculating the angle between two unit vectors?

Finds the angle between two vectors of any dimension from the dot product formula cos θ = (a·b)/(|a||b|), and returns the dot product, magnitudes, cosine similarity, cross product. On this page it is computed from Vector a (components, comma separated), Vector b (components, comma separated) and aₓ and shown as Angle, Angle in the chosen unit and Dot product a·b.

How do I calculate the angle between two points?

Finds the angle between two vectors of any dimension from the dot product formula cos θ = (a·b)/(|a||b|), and returns the dot product, magnitudes, cosine similarity, cross product. Open “How this is worked out” beside the result to see each step for your own figures.

What is the formula for finding the angle?

It needs Vector a (components, comma separated), Vector b (components, comma separated), aₓ, a_y, a_z and bₓ. Nothing else is required, and the figures stay in your browser.

What information do I need for the Angle Between Two Vectors?

You need Vector a (components, comma separated), Vector b (components, comma separated), aₓ, a_y, a_z, bₓ, b_y and b_z. The page opens with default figures that give angle of 16.260205 deg, so you can see the scale before entering your own.

What does this Angle Between Two Vectors show?

It shows Angle, Angle in the chosen unit, Dot product a·b, |a|, |b|, cos θ (cosine similarity), Cross product a × b and |a × b|, with the working and any warnings for your entries.

Related calculators

View all related calculators9 more