Multiply two vectors to get their scalar product — and the angle between them. Works for 2D, 3D, and any n-dimensional vector, with every step shown.
3 components · ⟨1, 2, 3⟩
3 components · ⟨4, -5, 6⟩
The math works in any dimension — 2D, 3D, or n-D.
The dot product takes two vectors and returns one number. It captures how much the two vectors point in the same direction — which is why it shows up everywhere from physics work and lighting in graphics to similarity scores in machine learning. There are two ways to write it, and they always agree.
Three steps, no matter how many dimensions the vectors have.
Write the vectors so each component of a sits above the matching component of b. They must have the same length.
Multiply the first components together, the second together, and so on down the line.
Sum those products. The single number you get is the dot product.
The same procedure scales from flat 2D vectors to the higher dimensions used in data and machine learning.
A single multiplication that quietly powers physics engines, 3D rendering, and modern machine learning. Every entry of a matrix product is one of these sums, which is why the matrix calculator repeats the same row-by-column arithmetic across a whole grid.
A handful of clean algebraic rules make the dot product easy to work with.

The determinant of a matrix is a single number that tells you whether the matrix is invertible and how it scales area or volume. This guide shows the 2×2 and 3×3 formulas with worked examples and the rules that save time.

Learn the dot product formula for 2D, 3D, and n-dimensional vectors, what the sign means, how to find an angle, and where projections come from.

Learn what an inner product is, the axioms it must satisfy, and how dot products, weighted products, complex vectors, and functions fit the definition.