Dot Product

The dot product is a scalar value that measures how much two vectors align; use it to find angles between vectors or project one vector onto another.

uv=uvcosθ\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta

Solve a problem with Dot Product

Type the problem. The solver will use Dot Product where Dot Product is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Dot Product takes
u\mathbf{u}
v\mathbf{v}
θ\theta
Dot Product
SymbolMeaning
u\mathbf{u}A vector (an arrow in space or a plane) with magnitude and direction; treating it as a scalar or forgetting its directional nature will invalidate the dot product calculation.
v\mathbf{v}A second vector with magnitude and direction; it must have the same number of dimensions as u\mathbf{u} for the dot product to be defined.
θ\thetaThe angle between the two vectors, measured in degrees or radians; θ\theta is always between 0° and 180°180° (or 00 and π\pi radians), so cosθ\cos\theta uniquely determines whether the vectors point mostly the same way (cosθ>0\cos\theta > 0) or mostly opposite (cosθ<0\cos\theta < 0).

When to use it

Reach for the dot product when you need to find the angle between two vectors or determine how aligned they are.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Find the dot product using components

Problem

Find uv\mathbf{u} \cdot \mathbf{v} where u=(2,3)\mathbf{u} = (2, 3) and v=(4,1)\mathbf{v} = (4, 1).
  1. uv=(2)(4)+(3)(1)\mathbf{u} \cdot \mathbf{v} = (2)(4) + (3)(1)

    Use the component formula for dot product: multiply each pair of matching components, then add them all together.

  2. =8+3= 8 + 3

    Calculate each product: 2×4=82 \times 4 = 8 and 3×1=33 \times 1 = 3.

  3. =11= 11

    Add the results to get the final scalar.

Answer: 1111

The dot product using components is the fastest method when you have vector coordinates; it gives you the scalar result directly without needing to find angles or magnitudes separately.

2. Find the dot product with negatives and fractions

Problem

Find uv\mathbf{u} \cdot \mathbf{v} where u=(3,2)\mathbf{u} = (-3, 2) and v=(4,12)\mathbf{v} = (4, -\tfrac{1}{2}).
  1. uv=(3)(4)+(2)(12)\mathbf{u} \cdot \mathbf{v} = (-3)(4) + (2)\left(-\tfrac{1}{2}\right)

    Align the components and multiply each pair; track the signs carefully throughout.

  2. =12+(1)= -12 + (-1)

    Evaluate each product: (3)×4=12(-3) \times 4 = -12 and 2×(12)=12 \times (-\tfrac{1}{2}) = -1.

  3. =13= -13

    Add the negative terms: 121=13-12 - 1 = -13.

Answer: 13-13

The negative dot product tells you these vectors point more away from each other than toward each other—if you picture both as arrows from the origin, they form an obtuse angle. This is crucial: negative dot product means cosθ<0\cos\theta < 0, so θ>90°\theta > 90°.

3. Find the angle between two game performances in basketball

Problem

A player's performance across two games is u=(3,4)\mathbf{u} = (3, 4) (representing points and assists in scaled units) in Game 1 and v=(5,0)\mathbf{v} = (5, 0) in Game 2. Find the angle θ\theta between these performance vectors using the dot product formula.
  1. uv=(3)(5)+(4)(0)=15+0=15\mathbf{u} \cdot \mathbf{v} = (3)(5) + (4)(0) = 15 + 0 = 15

    Start by computing the dot product using the component formula.

  2. u=32+42=9+16=25=5|\mathbf{u}| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5

    Calculate the magnitude of u\mathbf{u} using the distance formula.

  3. v=52+02=25=5|\mathbf{v}| = \sqrt{5^2 + 0^2} = \sqrt{25} = 5

    Calculate the magnitude of v\mathbf{v}.

  4. cosθ=uvuv=1555=1525=35\cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}||\mathbf{v}|} = \frac{15}{5 \cdot 5} = \frac{15}{25} = \frac{3}{5}

    Rearrange the original formula to solve for cosθ\cos\theta: divide the dot product by the product of the magnitudes.

  5. θ=arccos(35)53.13°\theta = \arccos\left(\frac{3}{5}\right) \approx 53.13°

    Use the inverse cosine function to find the angle; arccos(0.6)53.13°\arccos(0.6) \approx 53.13°.

Answer: θ53.13° or arccos(35)\theta \approx 53.13° \text{ or } \arccos\left(\frac{3}{5}\right)

The angle of about 53° shows these performances are similar in direction but still distinct. This demonstrates the dot product's real power: converting abstract vector relationships into a concrete angle you can interpret and compare across different contexts.

Common mistakes

Where Dot Product usually goes wrong
Answer came out wrong
Writing uv=(u1v1,u2v2)\mathbf{u} \cdot \mathbf{v} = (u_1 v_1, u_2 v_2) and stopping there as if this is the dot product.
Remember that the dot product is a sum: uv=u1v1+u2v2+\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + \ldots—you must add all the products together to get one number.
Assuming that if uv=0\mathbf{u} \cdot \mathbf{v} = 0, the vectors are parallel or pointing the same direction.
Memorize this correspondence: zero dot product means perpendicular vectors (90°90° angle), not parallel (0°) or opposite (180°180°).
Using the angle formula uvcosθ|\mathbf{u}||\mathbf{v}|\cos\theta with θ\theta given in degrees without converting to radians.
Either convert degrees to radians using θradians=θdegrees×π180\theta_{\text{radians}} = \theta_{\text{degrees}} \times \frac{\pi}{180}, or set your calculator to radian mode before computing.
The mistakeWhy it is wrongThe fix
Writing uv=(u1v1,u2v2)\mathbf{u} \cdot \mathbf{v} = (u_1 v_1, u_2 v_2) and stopping there as if this is the dot product.The dot product produces a single scalar (one number), not a vector; component-wise multiplication without summing gives the wrong type of result entirely.Remember that the dot product is a sum: uv=u1v1+u2v2+\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + \ldots—you must add all the products together to get one number.
Assuming that if uv=0\mathbf{u} \cdot \mathbf{v} = 0, the vectors are parallel or pointing the same direction.If uv=0\mathbf{u} \cdot \mathbf{v} = 0, then cosθ=0\cos\theta = 0, which means θ=90°\theta = 90°; the vectors are perpendicular (at right angles), not aligned or parallel.Memorize this correspondence: zero dot product means perpendicular vectors (90°90° angle), not parallel (0°) or opposite (180°180°).
Using the angle formula uvcosθ|\mathbf{u}||\mathbf{v}|\cos\theta with θ\theta given in degrees without converting to radians.The cosine function in this formula assumes θ\theta is in radians; if you substitute degrees directly, your calculator will compute the wrong cosine value.Either convert degrees to radians using θradians=θdegrees×π180\theta_{\text{radians}} = \theta_{\text{degrees}} \times \frac{\pi}{180}, or set your calculator to radian mode before computing.

Tips and when to use something else

  • If you only have the vectors' components, use uv=u1v1+u2v2+\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + \ldots to avoid the extra work of finding magnitudes and angles.
  • A positive dot product means the vectors point mostly the same way; a negative dot product means they point mostly opposite; zero means they are perpendicular.
  • For finding angles between vectors, use cosθ=uvuv\cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}||\mathbf{v}|}, but reach for the Cross Product instead if you need to find a direction perpendicular to both vectors in 3D space.
  • The dot product is commutative: uv=vu\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}, so the order of the vectors does not matter.

Frequently asked questions

What is the difference between dot product and cross product?
The dot product of two vectors gives you a scalar (one number) that measures how aligned they are. The cross product (only defined for 3D vectors) gives you a new vector perpendicular to both and measures their rotational relationship. Use dot product to find angles and projections; use cross product to find perpendicular directions.
Why does cosine appear in the dot product formula?
Cosine naturally encodes the 'alignment' between two directions. When θ=0°\theta = 0°, cosθ=1\cos\theta = 1 (vectors point the same way); when θ=90°\theta = 90°, cosθ=0\cos\theta = 0 (perpendicular); when θ=180°\theta = 180°, cosθ=1\cos\theta = -1 (opposite directions). This relationship between angle and alignment is built into the geometry of vectors.
Can the dot product be negative?
Yes, and it carries clear geometric meaning: a negative dot product means the angle between the vectors is greater than 90° (or π/2\pi/2 radians), so they point more away from each other than toward each other. A negative result is not an error—it gives you important information about how the vectors are oriented relative to each other.
Which formula should I use—the component formula or magnitudes and angle?
If you have components, use u1v1+u2v2+u_1 v_1 + u_2 v_2 + \ldots because it is faster and more direct. If you are given magnitudes and the angle between the vectors, use uvcosθ|\mathbf{u}||\mathbf{v}|\cos\theta. Both methods produce the same answer; choose based on what information you already have.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18