Vector Calculator (Dot Product, Cross Product, Angle)
Calculate the magnitude, dot product, cross product, and angle between two 2D or 3D vectors.
- Magnitude of A
- 2.2361
- Magnitude of B
- 2.2361
- Dot product (A · B)
- 4
- Cross product (A × B)
- (0, 0, -3)
- Magnitude of cross product
- 3
- Angle between A and B
- 36.87°
How it works
Both vectors are treated as 3D — leave the z components at 0 to work with plain 2D vectors, since a 2D vector is just a 3D vector with no z component. Magnitude is |V| = √(x² + y² + z²), the direct extension of the Pythagorean theorem to three dimensions.
The dot product, A · B = x₁x₂ + y₁y₂ + z₁z₂, is a single number related to how aligned the two vectors are — it's used here (via A · B = |A||B|cos θ) to solve for the angle between them: θ = cos⁻¹((A · B) ÷ (|A||B|)).
The cross product, A × B = (y₁z₂ − z₁y₂, z₁x₂ − x₁z₂, x₁y₂ − y₁x₂), is a vector perpendicular to both A and B, with magnitude equal to the area of the parallelogram they span. When both inputs are 2D (z = 0), only its z component is nonzero — that single number is the standard '2D cross product', commonly used to test which way one vector turns relative to another.
FAQ
Why does the calculator reject the zero vector?
The angle formula divides by the product of the two magnitudes — if either vector is (0, 0, 0), its magnitude is 0, making that division undefined. Every other output (dot product, cross product) would still technically compute to 0, but there's no meaningful 'angle' between a vector and a point with no direction.
What does it mean if the cross product is the zero vector?
A cross product of (0, 0, 0) means the two vectors are parallel (or antiparallel) — there's no perpendicular direction to point in because they don't span a plane, only a line. You can check this directly: a 0° or 180° angle between A and B implies a zero cross product, and vice versa.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator