Calcoid

Vector Calculator

Add, subtract, scale, dot, cross, normalize, or measure the angle between 2D or 3D vectors. Shows magnitude, the formula, and rounded numeric output.

Vector operations

Formula

a + b = (ax + bx, ay + by, az + bz)

Result

(5, 7, 9)

Magnitude: 12.4499

Vector Operation Examples

VectorsOperationResult
(3, 4)Magnitude5
(1, 2), (3, 4)Dot product11
(1, 0, 0), (0, 1, 0)Cross product(0, 0, 1)
(1, 2), (3, 4)Add(4, 6)
(3, 4)Unit vector(0.6, 0.8)

Frequently Asked Questions about the Vector Calculator

What is the difference between dot product and cross product?
The dot product returns a scalar that measures alignment, with 0 for perpendicular nonzero vectors. This calculator supports the ordinary 3D cross product, which returns a vector perpendicular to both inputs and whose length equals the area of their parallelogram.
Why does the calculator return no result for a 2D cross product?
This calculator implements the ordinary vector cross product in 3D. For 2D vectors, the determinant ax * by - ay * bx gives a signed scalar area. You can also embed both vectors in 3D with z = 0, then read that determinant from the z component of the cross product.
How do I find the angle between two vectors?
The calculator uses the formula angle = arccos((a . b) / (|a| x |b|)), then converts radians to degrees. The result is always in the range 0-180 degrees. If either vector has zero magnitude, the angle is undefined and the calculator returns no result.
What is a unit vector and why is it useful?
A unit vector has magnitude 1 and points in the same direction as the original vector. The calculator divides each component by the vector's magnitude to produce it. Use unit vectors when only direction matters, for example surface normals in 3D graphics or force directions in physics. The zero vector has no direction, so the calculator returns no result for it.
Can two vectors be added if they have different dimensions?
No, addition requires both vectors to have the same number of components. If you have a 2D vector and want to work alongside a 3D one, switch the calculator to 3D mode and enter z = 0 for the 2D vector; components are then added pair by pair.

Related Calculators

More calculators in "Math"

See all 202 calculators in "Math"