Precalculus Intermediate

Dot Product & Angle Between Vectors

Enter two 2D vectors u = ⟨a, b⟩ and v = ⟨c, d⟩ to compute the dot product, find the angle between them in degrees and radians, determine their relationship, and calculate the projection of u onto v — with an interactive diagram and full step-by-step work.

Live Calculator · Step-by-Step · Precalculus
Inputs
u · v = ac + bd  |  cos θ = (u·v) / (|u| |v|)
Vector u = ⟨a, b⟩
u =
a (x-component)
b (y-component)
Vector v = ⟨c, d⟩
v =
c (x-component)
d (y-component)
Load an example:
Results
Enter components for u = ⟨a, b⟩ and v = ⟨c, d⟩, then press Compute to find the dot product, angle, and projection.
Dot Product   u · v
|u| — Magnitude of u
|v| — Magnitude of v
cos θ
Angle θ (degrees)
Angle θ (radians)
Relationship
Scalar Projection   comp_v(u) = u·v / |v|
Vector Projection   proj_v(u)
Step-by-Step Solution
Vector Diagram
Vector u Vector v proj_v(u) Perpendicular component Arc = angle θ between vectors
Dot Product — Formula & Geometric Meaning

The dot product (scalar product) of two vectors combines their components into a single number:

Algebraicu · v = ac + bd
Geometricu · v = |u| |v| cos θ
Solve for θcos θ = (u·v) / (|u| |v|)
|u| =√(a² + b²)
|v| =√(c² + d²)

Orthogonality test: u · v = 0 means the vectors are perpendicular (cos 90° = 0).

Parallel test: |cos θ| = 1 means the vectors point in the same or opposite direction.

The dot product is positive when θ < 90°, zero when θ = 90°, and negative when θ > 90°. It captures how much the vectors "agree in direction."
Vector Projection — Decomposing u Along v

The projection of u onto v decomposes u into two perpendicular parts: one parallel to v and one perpendicular.

Unit vector v̂v / |v|
Scalar projcomp_v(u) = u·v / |v|
Vector projproj_v(u) = (u·v / |v|²) · v
Perp. partu − proj_v(u)
Checkproj + perp = u ✓

The scalar projection is the signed length of u's shadow onto v. Multiply by the unit vector of v to get the actual vector projection.

Try the example ⟨3,4⟩ · ⟨1,2⟩ to see the projection drawn as a dashed coral arrow on the diagram.

Need help with dot products and vectors?

Book a live session with a Naruhodo tutor — we'll work through dot products, vector projections, and all things Precalculus together.

Book a Session →