Free online Vector Calculator. Perform vector addition, subtraction, dot product, cross product, and magnitude calculations. Supports 2D and 3D vectors.
Results
Calculated
Result
—
Add this calculator to your website
What vector operations are and when to use them
A vector represents a quantity with both magnitude and direction — velocity, force, displacement, or any directional quantity in physics, engineering, computer graphics, and navigation. This calculator performs the core operations you need when working with 2D or 3D vectors: addition and subtraction (combining or comparing directional quantities), the dot product (a scalar measuring how much two vectors point in the same direction), the cross product (a vector perpendicular to both inputs, used in 3D for torque, normals, and rotation), and magnitude (a vector's length).
Use it for physics coursework (combining forces or velocities), computer graphics and game development (surface normals, lighting calculations), robotics and navigation (relative positions and headings), or any problem where you need to combine, compare, or measure directional quantities. Enter only the i (x) and j (y) components for a 2D vector, or all three for a 3D vector — the calculator automatically switches to 3D mode if either z-component is nonzero.
The formulas
For vectors A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃):
Addition: A + B = (a₁+b₁, a₂+b₂, a₃+b₃)
Subtraction: A − B = (a₁−b₁, a₂−b₂, a₃−b₃)
Dot product: A · B = a₁b₁ + a₂b₂ + a₃b₃ (a single number, not a vector)
Cross product (3D): A × B = (a₂b₃−a₃b₂, a₃b₁−a₁b₃, a₁b₂−a₂b₁) — a vector perpendicular to both A and B
Magnitude: |A| = √(a₁² + a₂² + a₃²)
Angle between vectors: θ = cos⁻¹(A · B ÷ (|A| × |B|))
Worked example
Let Vector A = (3, 4) and Vector B = (1, 2) — both 2D, so z-components are left blank.
This matches the calculator's output for those inputs, including the 2D cross product's z-component: (3×2) − (4×1) = 2.
Common mistakes / how to interpret
Confusing dot and cross products. The dot product returns a single number (scalar); the cross product returns another vector. Mixing them up in a formula produces nonsensical units or dimensions.
Computing a 3D cross product from 2D vectors incorrectly. Two purely 2D vectors technically have a cross product that points entirely in the z-direction (out of the plane) — this calculator reports that single z-component rather than a full 3-component vector when both inputs are 2D.
Forgetting the dot product depends on the angle between vectors. A dot product of zero means the vectors are perpendicular (90°), a positive dot product means the angle is less than 90°, and a negative dot product means the angle is greater than 90° — the sign alone tells you useful information before you even compute the angle.
Mixing units between vectors. Adding or comparing vectors measured in different units (e.g., meters and feet) without converting first will silently produce a meaningless result.
Frequently Asked Questions
What's the difference between the dot product and the cross product?
The dot product (A · B) returns a scalar (a single number) representing how much two vectors point in the same direction — it's maximized when vectors are parallel and zero when perpendicular. The cross product (A × B) returns a new vector perpendicular to both inputs, with a magnitude related to the area of the parallelogram they form — it's only defined in 3D (or as a single z-component in 2D).
Why is the angle formula based on the dot product?
The dot product has an equivalent geometric definition: A · B = |A||B|cos(θ), where θ is the angle between the vectors. Rearranging for θ gives cos⁻¹(A · B ÷ (|A||B|)), which is exactly what this calculator uses to find the angle between any two vectors.
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 anti-parallel) — they point in the same or exactly opposite directions, so there's no unique perpendicular direction to define.
Can I use this calculator for physics problems with units like meters or Newtons?
Yes — enter just the numeric magnitude of each component and keep track of the units yourself, since the calculator works with plain numbers. Just make sure both vectors use the same unit system before adding, subtracting, or comparing them.
Vector Calculator - Add, Subtract, Dot Product, Cross Product is most useful when the inputs reflect the situation you are actually planning around, not a best-case estimate. Treat the result as a decision aid: it gives you a structured way to compare assumptions, spot outliers, and decide what to verify next. For Math work, the most important review lens is formula choice, units, rounding, weighting, and the exact meaning of each input.
Start with a baseline run using values you can defend. Then change one assumption at a time and watch which output moves the most. If one input dominates the result, spend your verification time there first. If several inputs have similar influence, use a conservative scenario and an optimistic scenario to create a practical range instead of relying on a single exact number.
Before acting on the result, verify the result with a manual calculation or a second method when the output affects grades, budgets, or engineering work. This is especially important when the calculator supports a purchase, project plan, performance target, or operational decision. The calculator can make the math consistent, but the quality of the conclusion still depends on current data, clear units, and assumptions that match your real constraints.
When the output looks surprising, slow down and inspect each input in order. A small change in one high-leverage field can move the final number more than several low-leverage fields combined. For Vector Calculator - Add, Subtract, Dot Product, Cross Product, that means you should first confirm the value with the greatest scale, then confirm the value with the greatest uncertainty, then rerun the calculator with conservative and optimistic assumptions. This sequence turns the calculator from a single answer into a practical decision range.
Review Checklist
Confirm every input uses the unit and time period requested by the calculator.
Run a low, expected, and high scenario so the answer has a useful range.
Check whether rounding or a missing decimal place changes the decision.
Update the calculation after each new value is known or whenever the formula structure changes.