Skip to main content

Vector Addition Calculator

Add or subtract vectors a and b by matching components. Choose the operation, enter ax through bz, and read the result triple plus its Euclidean magnitude.

Rated 4.7 out of 5 based on 288 reviews

Results

How to add or subtract vectors

  1. Choose Add or Subtract in the operation control. Add forms a + b. Subtract forms a − b.
  2. Enter vector a as ax, ay, and az. Defaults are 1, 2, and 3.
  3. Enter vector b as bx, by, and bz. Defaults are 4, 5, and 6.
  4. Read result x, y, and z. Default add yields (5, 7, 9).
  5. Read the magnitude of that result vector when you need its length in the same step.

Vector addition and subtraction

Component-wise sum or difference of two Cartesian vectors

Add rule(ax + bx, ay + by, az + bz)
Subtract rule(ax − bx, ay − by, az − bz)
Default add(1, 2, 3) + (4, 5, 6) = (5, 7, 9)
Result magnitude√(rx² + ry² + rz²) for the chosen result
DimensionUp to three components; set unused z values to 0 for 2D
PrivacyArithmetic runs in this tab. CZNull does not receive the numbers.

What component-wise addition does

Vector addition lines up matching axes and sums them. Subtraction keeps a and subtracts each b component. Tip-to-tail geometry in the plane is the same algebra when you write the arrows as components. Defaults (1, 2, 3) and (4, 5, 6) add to (5, 7, 9).

How this page forms the result

For Add, each result axis is a + b on that axis. For Subtract, each result axis is a − b. All six components must be finite numbers. The page then reports √(rx² + ry² + rz²) for the result so you can see length without a second tool.

Order and commutativity

Addition is commutative: a + b equals b + a. Subtraction is not: a − b differs from b − a unless the vectors match. Keep a as the left operand when you choose Subtract.

Use cases

Combining force components, stacking displacements in physics labs, and checking graphics offsets. Polar form with magnitude and angle needs conversion to components before you use this form.

Limits

Component-wise only. No matrix transforms. No more than three dimensions. IEEE floating point applies. See the disclaimer.

Vector addition questions

What is (1, 2, 3) + (4, 5, 6)?
(5, 7, 9). That is the default Add example on this page.
What does Subtract compute?
Component-wise a − b, so result x = ax − bx and likewise for y and z.
Does the page also print the result length?
Yes. After the result components, it reports the Euclidean magnitude of that result vector.
Can I leave z blank for 2D vectors?
Use 0 for unused z components. The engine expects finite numbers on every field it reads.
Is a + b the same as b + a?
Yes for Add. For Subtract, swap the operands only if you intend b − a instead of a − b.
Does this calculator normalize the result?
No. It reports components and magnitude. Use the vector magnitude page on the result if you need a unit vector.