Algebra & Arithmetic · Formula v1.0

Dot Product Calculator

Calculate the dot product, the angle and the cross product magnitude of two 3D vectors.

LAST REVIEWEDSeptember 24, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Dot product32
Angle between vectors (degrees)12.9
Cross product magnitude7.3
Sensitivity check

What if vector a: x changes?

-10% input31.6
0% input32
+10% input32.4

Answer first

What this calculator tells you

Calculate the dot product, the angle and the cross product magnitude of two 3D vectors. Find the angle between two directions or test whether two vectors are perpendicular. Formula: A·B = x₁x₂ + y₁y₂ + z₁z₂; angle = arccos(A·B ÷ (|A| |B|)); |A × B| = |A| |B| sin θ. At the worked-example inputs, the dot product is 32. Holding every other input steady, moving vector a: x from -1 to 3 moves the result from 24 to 40.

FreeNo sign-upInputs stay in-browserCSV exportReviewed September 24, 2026

Transparent method

The formula

A·B = x₁x₂ + y₁y₂ + z₁z₂; angle = arccos(A·B ÷ (|A| |B|)); |A × B| = |A| |B| sin θAt the worked-example inputs the dot product is 32. It rises with vector a: z, vector b: z, vector a: y, vector a: x, vector b: y and vector b: x.

Find the angle between two directions or test whether two vectors are perpendicular.

Worked example

Dot product32
Angle between vectors (degrees)12.9
Cross product magnitude7.3

Example inputs

Vector A: x1
Vector A: y2
Vector A: z3
Vector B: x4
Vector B: y5
Vector B: z6

How to interpret the result

The dot product multiplies matching parts of two vectors and adds them up, and the result says how much they point the same way. Vectors (1, 2, 3) and (4, 5, 6) give 32, and dividing by their lengths gives an angle of about 12.9 degrees. A dot product of zero means the vectors are perpendicular. The cross product magnitude, 7.35 here, measures the area of the parallelogram they span.

At the worked-example inputs the dot product is 32. It rises with vector a: z, vector b: z, vector a: y, vector a: x, vector b: y and vector b: x.

Interpretation boundary

These are exact mathematical formulas; results are limited only by floating-point precision, not by real-world estimation. Confirm the convention (rounding rule, sign, base) your assignment or application expects.

Before you rely on it

What to check

Enter the vectors in matching order: x, y and z from the same coordinate system for both. A mismatch changes the angle and the dot product.

The common error

Where people go wrong with dot product calculator

Reading a large dot product as a large angle. It is the other way around: for vectors of the same length, the more they line up, the larger the value and the smaller the angle between them.

Sensitivity evidence

How vector a: x changes the dot product

Holding every other input at the worked-example value, moving vector a: x from -1 to 3 moves the dot product from 24 to 40: a spread of 16, or 50% of the worked-example result.

Dot Product Calculator: dot product and angle between vectors (degrees) and cross product magnitude across a range of vector a: x, every other input held at the worked-example value.
Vector A: xDot productAngle between vectors (degrees)Cross product magnitude
-1244322.4
02827.714.7
1worked example3212.97.3
2365.73.6
34013.69.7

Every input, tested

Which input moves the dot product most

Of the 6 inputs, vector a: z moves the dot product most (12 across the range tested) and vector b: x moves it least (2).

Dot Product Calculator: dot product with each input moved on its own, every other input held at the worked-example value.
InputTested fromToDot product at each endSwing
Vector A: z2426 to 3812 (38%)
Vector B: z4826 to 3812 (38%)
Vector A: y1327 to 3710 (31%)
Vector A: x0228 to 368 (25%)
Vector B: y4630 to 344 (13%)
Vector B: x3531 to 332 (6.3%)

Two variables at once

Dot product by vector a: x and vector a: y

Across the grid the dot product runs from 14 to 50. Moving vector a: x from -1 to 3 shifts it by 16 at the middle column, and moving vector a: y from 0 to 4 shifts it by 20 at the middle row, so vector a: y is the bigger lever here.

Dot Product Calculator: dot product at each combination of vector a: x (rows) and vector a: y (columns).
Vector A: x \ Vector A: y024
-1142434
0182838
1223242
2263646
3304050

The highlighted cell is the worked example: 32.

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the dot product calculator.
InputValue usedWhat it means
Vector A: x1Enter the vector a: x used in this calculation.
Vector A: y2Enter the vector a: y used in this calculation.
Vector A: z3Enter the vector a: z used in this calculation.
Vector B: x4Enter the vector b: x used in this calculation.
Vector B: y5Enter the vector b: y used in this calculation.
Vector B: z6Enter the vector b: z used in this calculation.
Dot product32
Angle between vectors (degrees)12.9
Cross product magnitude7.3

Inputs, definitions and assumptions

Vector A: x

Enter the vector a: x used in this calculation. The prefilled worked-example value is 1.

Vector A: y

Enter the vector a: y used in this calculation. The prefilled worked-example value is 2.

Vector A: z

Enter the vector a: z used in this calculation. The prefilled worked-example value is 3.

Vector B: x

Enter the vector b: x used in this calculation. The prefilled worked-example value is 4.

Vector B: y

Enter the vector b: y used in this calculation. The prefilled worked-example value is 5.

Vector B: z

Enter the vector b: z used in this calculation. The prefilled worked-example value is 6.

How to use this calculator

  1. 1Verify the inputs. Gather vector a: x, vector a: y, vector a: z, vector b: x, vector b: y and vector b: z from your own documents; the prefilled values are examples.
  2. 2Save a baseline. The worked example puts the dot product at 32. Store your own version of it as Scenario A.
  3. 3Test one change. Start with vector a: z, the input with the biggest effect here: moving vector a: z from 2 to 4 takes the dot product from 26 to 38, a swing of 38% of the worked-example figure.
  4. 4Check the extremes. At half the example vector a: z (1.5) the dot product is 23; at double (6) it is 50.

People also ask

Frequently asked questions

How do you calculate dot product?

A·B = x₁x₂ + y₁y₂ + z₁z₂; angle = arccos(A·B ÷ (|A| |B|)); |A × B| = |A| |B| sin θ. At the worked-example inputs the dot product is 32.

What does the dot product result mean?

Find the angle between two directions or test whether two vectors are perpendicular. At the worked-example inputs the dot product is 32. It rises with vector a: z, vector b: z, vector a: y, vector a: x, vector b: y and vector b: x.

How much does vector a: x change the dot product?

Holding every other input at the worked-example value, moving vector a: x from -1 to 3 moves the dot product from 24 to 40, a spread of 16.

What are the limits of this dot product calculator?

These are exact mathematical formulas; results are limited only by floating-point precision, not by real-world estimation. Confirm the convention (rounding rule, sign, base) your assignment or application expects. The tables on this page test vector a: x only from -1 to 3; a value outside that range is not tabulated here.

Which input moves the dot product most in the dot product calculator?

Ranked by how far each moves the dot product across the range tested: vector a: z (12, 38%), vector b: z (12, 38%), vector a: y (10, 31%) and vector a: x (8, 25%).

If I double vector a: z in the dot product calculator, does the dot product double?

Doubling it from 3 to 6 takes the dot product from 32 to 50, which is 1.56 times the worked-example figure. So it grows, but by less than double. Halving it to 1.5 gives 23.

How much does vector a: y matter in the dot product calculator?

The worked example uses 2. Holding every other input at its worked-example value, moving vector a: y from 1 to 3 takes the dot product from 27 to 37, a swing of 31% of the worked-example figure.

How much does vector a: z matter in the dot product calculator?

The worked example uses 3. With the other inputs left at the worked example, moving vector a: z from 2 to 4 takes the dot product from 26 to 38, a swing of 38% of the worked-example figure.

How much does vector b: x matter in the dot product calculator?

The worked example uses 4. Holding every other input at its worked-example value, moving vector b: x from 3 to 5 takes the dot product from 31 to 33, a swing of 6.3% of the worked-example figure.

How much does vector b: y matter in the dot product calculator?

The worked example uses 5. With the other inputs left at the worked example, moving vector b: y from 4 to 6 takes the dot product from 30 to 34, a swing of 13% of the worked-example figure.

How much does vector b: z matter in the dot product calculator?

The worked example uses 6. Holding every other input at its worked-example value, moving vector b: z from 4 to 8 takes the dot product from 26 to 38, a swing of 38% of the worked-example figure.

Which inputs change the angle between vectors (degrees) in the dot product calculator?

At the worked-example inputs it is 12.9. Vector a: x takes it from 27.7 to 5.7, vector a: y takes it from 21.9 to 14.7, vector a: z takes it from 9 to 19.1 and vector b: x takes it from 8 to 18.

Which inputs change the cross product magnitude in the dot product calculator?

At the worked-example inputs it is 7.3. Vector a: x takes it from 14.7 to 3.6, vector a: y takes it from 10.9 to 9.7, vector a: z takes it from 4.1 to 13.2 and vector b: x takes it from 4.4 to 10.7.

What's the difference between a root and an exponent?

An exponent raises a value to a power (2³ = 8). A root reverses that operation, asking what value raised to a power gives the result (the cube root of 8 is 2). A root is the same as raising to a fractional exponent: the cube root of x equals x^(1/3).

All algebra & arithmetic questions answered

Sources and evidence

Free Calculators Online is independent and is not affiliated with or endorsed by the source organizations. Educational estimates only.

Background reading

Guides that use this calculator

Definitions

Terms used on this page

Determinant : glossary term
A single number computed from a square matrix that determines whether it can be inverted. A zero determinant means the matrix has no inverse.
Factorial : glossary term
The product of a whole number and every positive whole number below it, written n!. Used to count arrangements and combinations; 0! is defined as 1.
Radian : glossary term
A unit of angle based on the radius of a circle: one full turn equals 2π radians. Trigonometric functions in most programming languages expect radians, not degrees.
Discriminant : glossary term
The b²−4ac term inside the quadratic formula, calculated before taking the square root. Its sign alone tells you what kind of solution to expect. Positive means two distinct real roots. Zero means one repeated real root. Negative means no real roots at all, only a complex pair, and those fall outside what a real-number calculator can display.