Dot Product Calculator: Dot Product, Angle Between Vectors and Projection With Steps

Enter two vectors and get the dot product with each multiplication shown, both lengths, the angle between them, the projection of one onto the other and a drawing. A second tab finds the unknown k that makes two vectors perpendicular.

Dot Product Calculator

Pick a tab, type your numbers and press Calculate. Tap an example chip to see the working first.

What the Dot Product Tells You

The dot product multiplies matching components of two vectors and adds them: a · b = a₁b₁ + a₂b₂ + … It gives one number, not a vector. That number measures how much the two vectors point the same way.

ResultMeaningAngle
PositivePointing broadly the same wayAcute, below 90°
ZeroPerpendicular (orthogonal)Exactly 90°
NegativePointing broadly opposite waysObtuse, above 90°

Two Ways to Compute It

Algebraically, add the products of the components. Geometrically, a · b = |a||b|cos θ. Putting them together gives the formula for the angle between vectors.

Dot product, lengths and angleTry it in the calculator ↑

a = (3, −2, 5), b = (4, 1, 2)

  1. a · b = 3·4 + (−2)·1 + 5·2 = 12 − 2 + 10 = 20.
  2. |a| = √(9 + 4 + 25) = √38 ≈ 6.164.
  3. |b| = √(16 + 1 + 4) = √21 ≈ 4.583.
  4. cos θ = 20 ÷ (6.164 × 4.583) ≈ 0.708, so θ ≈ 44.9°.

Answer: a · b = 20, θ ≈ 44.9°

A perpendicular pairTry it in the calculator ↑

a = (2, 3), b = (−3, 2)

  1. 2·(−3) + 3·2 = −6 + 6 = 0.

Answer: a · b = 0, so a ⊥ b

Projection: How Much of a Lies Along b

The projection of a onto b is (a · b ÷ b · b) b. It is the shadow of a on the line through b, and it is the formula behind “work done by a force”: moving an object by d = (3, 4) m under a force F = (10, 5) N does F · d = 30 + 20 = 50 J of work, because only the component of the force along the motion counts.

Find k: Making Vectors Perpendicular

For what k is (k, 2, 3) ⊥ (4, −1, 2)?Try it in the calculator ↑

Set the dot product to zero

  1. 4k − 2 + 6 = 0.
  2. 4k = −4.

Answer: k = −1

When k appears in both vectors you get a quadratic. For (k, 3) and (k, −12): k² − 36 = 0, so k = 6 or k = −6. The calculator handles both cases.

Dot Products Beyond 3D

Nothing changes in more dimensions: you still add the products. Search engines and AI models rely on this. Two text embeddings with hundreds of components are compared by cosine similarity, which is exactly a · b ÷ (|a||b|). A value near 1 means very similar and near 0 means unrelated. For vectors with more than three components the calculator draws each product aᵢbᵢ as a bar, so you can see which components drive the result.

What We Think Is Overrated, Underrated and Wrong

Overrated: memorising |a||b|cos θ and the component formula as two separate facts. They are one idea written twice.
Underrated: the sign. Without computing any angle, a positive, zero or negative dot product already tells you acute, right or obtuse.
Wrong: “the dot product is a vector”. It is a single number (a scalar). The cross product is the one that returns a vector.

A Worked Example With Real Numbers

For a = (1, 2, 3) and b = (4, 5, 6): a·b = 4 + 10 + 18 = 32. The lengths are |a| = √14 = 3.742 and |b| = √77 = 8.775, so cos θ = 32 ÷ 32.83 = 0.9746 and θ ≈ 12.93°.

In physics, work is a dot product: a 10 N force at 30° to a 5 m displacement does 10 × 5 × cos 30° = 43.30 J.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: the component formula alone. a·b = |a||b| cos θ is what explains why the result tells you the angle.

Underrated: the zero test. Two non-zero vectors are perpendicular exactly when their dot product is 0.

Plain wrong: saying the dot product is a vector. It is a single number.

Dot Product Mistakes That Cost Marks

  • Multiplying vectors that have different numbers of components.
  • Forgetting minus signs on negative components.
  • Using degrees in a calculator set to radians when finding the angle.
  • Confusing a · b with the cross product a × b.
  • Dividing by |b| instead of |b|² in the projection formula.

Why Students Get Stuck on Dot Products, and What a Good Calculator Should Do

Searching for help with dot products usually starts late at night with one problem that will not work out. It gives a number, not a vector, and the angle formula is easy to misuse. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to use the dot product to find angles and test for perpendicular vectors, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the multiply-and-add shown
  • Wants the angle in degrees and radians
  • Wants the projection of one vector onto another

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Dot product of (1,2,3) and (4,-5,6)
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Dot Product: Questions People Ask

How do you calculate a dot product?

Multiply the matching components and add them up. For (1, 2, 3) · (4, 5, 6) it is 4 + 10 + 18 = 32.

How do you find the angle between two vectors?

cos θ = (a · b) ÷ (|a||b|), then take the inverse cosine.

What does a dot product of zero mean?

The vectors are perpendicular (orthogonal), as long as neither is the zero vector.

Is the dot product commutative?

Yes. a · b = b · a.

Can I use more than three dimensions?

Yes, up to eight components here. The method is identical.

What is the difference between dot and cross product?

The dot product returns a number and works in any dimension. The cross product returns a vector perpendicular to both and is defined in 3D.

How do I find the angle between two vectors?

θ = arccos[(a·b) ÷ (|a||b|)].

What does a dot product of zero mean?

The vectors are orthogonal (perpendicular).

How do I project one vector onto another?

proj of a on b = [(a·b) ÷ (b·b)] b.

What is the difference between the dot and cross product?

The dot product is a scalar measuring alignment. The cross product is a vector perpendicular to both, with length equal to the parallelogram area.

↑