Skip to content
    Algebra

    Dot Product of Two Vectors Explained Simply

    Every time you add up a shopping bill, quantity times price for each item, you are doing a dot product. The same simple sum tells you whether two arrows point the same way or meet at a right angle. This guide shows you how to calculate it and what the answer means.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • a · b = a₁b₁ + a₂b₂ + a₃b₃: multiply matching parts and add.
    • The answer is a single number, not a vector.
    • Positive means roughly the same direction, 0 means perpendicular, negative means roughly opposite.
    • cos θ = (a · b) ÷ (|a| × |b|) gives the angle between two vectors.
    In this guide
    1. 01What is the dot product?
    2. 02Why does the dot product matter?
    3. 03The formula
    4. 04How to calculate the dot product step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is the dot product?

    A vector is a list of numbers that describes a direction and a size, like (1, 2, 3). The dot product of two vectors multiplies their matching parts and adds the results. It is also called the scalar product, because the answer is a plain number (a scalar).

    Why does the dot product matter?

    The dot product measures how much two vectors agree in direction. That single idea powers a lot: finding angles, checking for right angles, working out physical work, and comparing how similar two lists of numbers are.

    Quantities (2, 3, 1) and prices (4, 5, 10): the dot product is 2 × 4 + 3 × 5 + 1 × 10 = 33. That is simply your total bill.

    The formula

    a · b = a₁b₁ + a₂b₂ + a₃b₃
    SymbolWhat it meansExample
    a = (a₁, a₂, a₃)The first vector(2, 3, 1)
    b = (b₁, b₂, b₃)The second vector(4, 5, 10)
    a₁b₁First components multiplied2 × 4 = 8
    a · bThe dot product (a number)33

    There is also a geometric form: a · b = |a| × |b| × cos θ, where θ is the angle between the vectors. For 2D vectors, set a₃ and b₃ to 0.

    How to calculate the dot product step by step

    1. 1Multiply the first components. a₁ × b₁.
    2. 2Multiply the second components. a₂ × b₂.
    3. 3Multiply the third components. a₃ × b₃.
    4. 4Add the three products. The total is a · b.

    Now enter your own two vectors in the calculator below.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Linear Algebra
    University

    Dot Product of Vectors

    Calculate the dot product of two 3D vectors

    a · b = a₁b₁ + a₂b₂ + a₃b₃

    a1 = 2Active Variable
    Dynamic Formula Model
    0.120
    120
    120
    120
    120
    120

    💡 Example

    Reference
    Inputs:a1=1, a2=2, a3=3, b1=4, b2=5, b3=6
    Result:32
    Open the full Dot Product of Vectors calculator

    Common mistakes to avoid

    • Multiplying the wrong components. Always pair first with first, second with second, third with third.
    • Sign errors with negatives. (−2) × 3 = −6.
    • Thinking 0 means an error. A dot product of 0 means the vectors are perpendicular.

    Tips and tricks

    Dot productAngle between vectors
    PositiveLess than 90°
    ZeroExactly 90°
    NegativeMore than 90°
    • Perpendicular test: (1, 2, 0) · (2, −1, 0) = 2 − 2 = 0, so they meet at a right angle.
    • Lengths come from the vector magnitude calculator. A vector dotted with itself gives its length squared.

    Where you'll use it in real life

    • Physics: work done is force · distance.
    • Shopping and business: a bill is quantities · prices.
    • 3D games: lighting depends on the dot product of the light direction and the surface direction.
    • Machine learning: measuring how similar two lists of numbers are.

    Quick summary

    The dot product multiplies matching components of two vectors and adds them, giving one number. Its sign tells you the rough direction, and with the lengths it gives the exact angle. Use the calculator above to find any dot product with every step shown.

    Worked example

    At a stall you buy 2 notebooks, 3 pens and 1 bag. They cost $4, $5 and $10 each. The quantity vector is (2, 3, 1) and the price vector is (4, 5, 10), so their dot product is your total bill.

    1. 01a · b = a₁b₁ + a₂b₂ + a₃b₃
    2. 02= (2)(4) + (3)(5) + (1)(10)
    3. 03= 8 + 15 + 10
    4. 04a · b = 33

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What does a dot product of 0 mean?

    The two vectors are perpendicular, meaning they meet at a right angle (90°), as long as neither vector is zero.

    What is the difference between dot product and cross product?

    The dot product gives a single number that measures how aligned two vectors are. The cross product gives a new vector at right angles to both.

    How do I find the angle between two vectors?

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

    #Linear Algebra#University#Dot Product of Vectors
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX