Pair matching components
The component formula is u·v=uₓvₓ+uᵧvᵧ+u_zv_z. Pair x with x, y with y, and z with z, multiply each pair, then add the three signed products. A negative component can make one term subtract from the total. The calculation is symmetric in the inputs, so u·v=v·u even though the cross product reverses sign when its inputs are swapped.
Enter the six fields in the displayed order: uₓ, uᵧ, u_z, vₓ, vᵧ, v_z. Use finite values in a common Cartesian frame. If the vectors represent physical quantities, their coordinate components need compatible units and basis conventions. The scalar carries the product of the input units; for example, a force dotted with a displacement has work units, while two lengths produce squared-length units.
Read the sign with the magnitudes in mind
For two nonzero vectors, u·v=|u||v|cosθ. A positive result corresponds to an included angle below 90°, zero to a right angle, and a negative result to an angle above 90°. The sign describes orientation, but the magnitude of the dot product also changes if either vector is scaled. Doubling u doubles the dot product without changing the angle, so the scalar alone is not an angle measure.
The calculator’s details use those sign categories only when both inputs are nonzero. If one vector is zero, the dot product is still zero, but the angle is undefined because a zero vector has no direction. This is why “dot product equals zero” implies perpendicularity only after confirming both vectors are nonzero. For comparison tasks where vector lengths differ, normalize through the cosine formula or use the dedicated angle tool.
Worked examples
Example 1 · positive scalar product
Inputs: u=(1,2,3), v=(4,−1,2).
Calculation: u·v=1·4+2·(−1)+3·2=4−2+6=8.
Dot product=8.00000; with nonzero inputs, the angle is acute.
Example 2 · perpendicular nonzero vectors
Inputs: u=(2,−1,0), v=(1,2,3).
Calculation: u·v=2·1+(−1)·2+0·3=2−2=0.
Dot product=0.00000; both vectors are nonzero, so they are perpendicular.
Follow the arithmetic in a worked calculation
Calculate each paired product before rounding, then add the signed terms. For two nonzero vectors, a positive result means their included angle is acute. With force and displacement in compatible units, the same operation represents work; the calculator does not validate that physical interpretation.
If signed products cancel to zero and both vectors are nonzero, the vectors are perpendicular. If one input is the zero vector, the dot product is also zero but no angle is defined. Keep that distinction when interpreting a zero output.
Use the dot product to find an angle carefully
For nonzero vectors, rearrange the relationship as cosθ=(u·v)/(|u||v|), then take arccos. A calculator may clamp a floating-point cosine to [−1,1] before applying arccos because round-off can produce a value such as 1.0000000001 for mathematically identical directions. Do not use the raw dot product as cosθ unless both vectors are unit length.
The result also describes a scalar projection: the component of u along a unit direction v̂ is u·v̂. If v is not normalized, divide by its magnitude to get the signed scalar component. The vector projection additionally restores the direction, producing a vector parallel to v. This separation clarifies why the dot product is useful in work, alignment tests, and projections but is not itself a projected vector.
Keep units and coordinate conventions consistent
A numerical dot product can be computed even when the inputs are poorly chosen, so check the data before interpreting it. Components must refer to matching axes in one coordinate system. A vector expressed in a rotated frame cannot be dotted with another vector’s coordinates from a different frame until one is transformed. Mixing centimeters and meters across vectors also changes the scalar and can make physical interpretation meaningless.
When the vectors are dimensionless feature coordinates, the dot product can still be a useful similarity component, but its scale depends on the lengths of the vectors. A cosine similarity divides by both magnitudes to isolate angular alignment. Do not describe this calculator as calculating cosine similarity or a normalized correlation: it returns the raw component sum, rounded to five decimals.
Verify the result with independent checks
Recompute the three paired products on paper or in a spreadsheet and sum them before rounding. Swapping the input vectors should leave the scalar unchanged. If either vector is multiplied by a constant c, the dot product should multiply by c; a negative c reverses its sign. These simple invariants catch field-order errors and clarify the effect of scaling.
For a perpendicularity check, use two nonzero vectors and confirm the dot product is zero within the precision of the source values. For an angle check, independently compute both magnitudes and divide the dot product by their product before taking arccos. The calculator is a direct numerical aid, not a substitute for choosing a meaningful frame, unit convention, or physical model.