Dot Product Calculator
Calculate the dot product (scalar product) of two vectors in 2D or 3D space.
This free online dot product calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
For 2D, set z to 0
For 2D, set z to 0
Results
Dot Product (A · B)
32
cos(θ)
0.974632
Angle θ (degrees)
12.9332°
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Dot Product Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Dot Product Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the Dot Product Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
- •Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
- •Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
- •Use it to explore the behavior of mathematical functions across a range of inputs.
Related Calculators
Cross Product Calculator
Calculate the cross product of two 3D vectors, producing a vector perpendicular to both inputs.
Vector Addition Calculator
Add two vectors component-wise in 2D or 3D space.
Complex Conjugate Calculator
Find the complex conjugate of a + bi, compute the product z·z̄, and find the modulus.
Condensing Logarithms Calculator
Condense multiple logarithmic terms into a single logarithm using the product, quotient, and power rules in reverse.
Consecutive Integers Calculator
Find consecutive integers, consecutive even integers, or consecutive odd integers given their sum, product, or count starting from a given value.
Cosine Similarity Calculator
Calculate the cosine similarity between two vectors to measure how closely they point in the same direction, independent of magnitude.
About Dot Product Calculator
The dot product (also called the scalar product or inner product) is a fundamental operation that takes two vectors and produces a single scalar value. It is computed by multiplying corresponding components and summing the results: A . B = x1*x2 + y1*y2 + z1*z2. The dot product reveals the angle between two vectors and is used to determine orthogonality (perpendicularity), project one vector onto another, and compute work done by a force. This calculator computes the dot product, the cosine of the angle between the vectors, and the angle itself in degrees. The dot product is essential in physics (work, energy), computer graphics (lighting, shading), machine learning (similarity measures), and geometry.
The Math Behind It
Formula Reference
Dot Product
A · B = x₁x₂ + y₁y₂ + z₁z₂
Variables: A = (x₁, y₁, z₁), B = (x₂, y₂, z₂)
Angle Between Vectors
cos(θ) = (A · B) / (|A| × |B|)
Variables: |A|, |B| = magnitudes of vectors A and B
Worked Examples
Example 1: 3D dot product
Find the dot product of A = (1, 2, 3) and B = (4, 5, 6)
A · B = 32, angle ≈ 12.93°
Common Mistakes & Tips
- !Confusing the dot product with the cross product (dot gives a scalar, cross gives a vector).
- !Adding the components instead of multiplying them.
- !Forgetting that the dot product is zero for perpendicular vectors, not parallel vectors.
- !Using the wrong formula for the angle (forgetting to divide by magnitudes).
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
When is the dot product zero?
When the vectors are perpendicular (orthogonal) to each other.
Can the dot product be negative?
Yes. A negative dot product means the angle between the vectors is greater than 90 degrees (obtuse).
What is the difference between dot product and cross product?
The dot product produces a scalar measuring alignment. The cross product produces a vector perpendicular to both inputs, measuring the area of the parallelogram they span.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Dot Product Calculator into your page.
Free to embed — includes a link back to MegaCalc.