Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Vector Addition&Subtraction


Symbolic visualization of A ± B = C, cell by cell.

Operation
Vector length (shared by u and v)?u and v must have the same length. Each entry of u is paired with the entry at the same position in v; the result w has that same length.
u, vlength4
u1×4
u1,1
u1,2
u1,3
u1,4
+
v1×4
v1,1
v1,2
v1,3
v1,4
=
w1×4
?
?
?
?
Step 1 / 6

Step explanations

1Vector addition
u and v both have length 4. To compute w = u + v, pair up each entry of u with its counterpart in v and add them.












Key Terms

Vector addition — combining two vectors of the same length into a third vector by adding paired components: wi=ui+viw_i = u_i + v_i.

Vector subtraction — combining two vectors of the same length by subtracting paired components: wi=uiviw_i = u_i - v_i.

Component-wise operation — an operation applied independently to each component; the result at position ii depends only on the inputs at position ii.

Same-length requirement — both operand vectors must have the same number of components. A vector in R2\mathbb{R}^2 cannot be added to a vector in R3\mathbb{R}^3.

Result length — the output vector ww inherits the length of the operands. If uu and vv live in Rn\mathbb{R}^n, then ww lives in Rn\mathbb{R}^n.

Conformability — the condition under which an operation is defined. For vector addition and subtraction, conformability means matching length.
Learn More

Getting Started with the Visualizer

Choose an operation and a length, then watch the result vector build up one component at a time.

• Use the Operation segmented control to switch between u + v and u − v
• Set the shared length of uu and vv with the Dimensions stepper — the number of components ranges from 1 to 5
• Click play on the scene player to step through each component of ww, or use the speed selector to slow down or speed up the animation

The hover ? icon next to the dimensions label explains why uu and vv must have the same length. Because the operation is component-wise, no other configuration is needed — the visualizer fully determines the symbolic flow from the operation and length alone.
Learn More

Reading the Scene Player

Each scene focuses on a single component of ww and shows three pieces of information at once.

Highlighted components — the active component of uu is colored as primary, the matching component of vv as secondary, and the destination component of ww as accent
Curved arrows — two arrows flow from uiu_i and viv_i into wiw_i, making the data flow explicit
Formula caption — the title shows the component-level equation, for example w3=u3+v3w_3 = u_3 + v_3
Step log — a running record of completed steps appears below the vectors, so you can scroll back through what has been filled in

By the final scene, every component of ww holds its symbolic sum or difference and the vectors visualize the complete operation.
Learn More

Switching Between Addition and Subtraction

The operation toggle changes both the symbol in the equation and the contents of each component of ww.

• Selecting u + v displays wi=ui+viw_i = u_i + v_i in every filled component
• Selecting u − v displays wi=uiviw_i = u_i - v_i in every filled component
• The intro and outro scene captions update to use the words "addition" or "subtraction" accordingly
• The per-component scene titles also update their operator

Toggling the operation rebuilds the full sequence of scenes, so you can compare how vector addition and vector subtraction differ purely in operator while sharing the exact same component-wise structure.
Learn More

Choosing Vector Length

The dimension stepper controls the length shared by all three vectors. Because uu, vv, and ww are linked, changing the length updates all of them at once.

• Start with a small length like 22 or 33 to see the per-component flow clearly — these correspond to vectors in the plane and in 3D space
• Increase to 44 or 55 to see how the same rule scales to higher-dimensional vectors — the number of scenes grows linearly with the length
• Symbolic component contents in ww shrink automatically when the vector is longer, so ui+viu_i + v_i stays readable even at length 55
• Both row and column orientations follow the same rule, since vector addition is defined component-wise regardless of layout

There is no separate control for ww because its length is forced by the operation.
Learn More

What Vector Addition Is

Vector addition pairs up corresponding components of two vectors and sums them. If uu and vv are both vectors in Rn\mathbb{R}^n, then u+vu + v is also in Rn\mathbb{R}^n, and its ii-th component is

wi=ui+viw_i = u_i + v_i


This makes vector addition a component-wise operation: each component of the result depends only on the matching components in uu and vv, not on anything else in either vector.

Geometrically, vector addition corresponds to placing the tail of vv at the head of uu — the sum u+vu + v runs from the tail of uu to the head of vv (the "tip-to-tail" or parallelogram rule). Vector subtraction works identically with subtraction replacing addition.

For a comprehensive treatment of vectors and their operations, see vector operations theory.
Learn More

Key Formulas

The full definition of vector addition for vectors u,vRnu, v \in \mathbb{R}^n:

u+v=w,wi=ui+vi for all 1inu + v = w, \quad w_i = u_i + v_i \text{ for all } 1 \leq i \leq n


Vector subtraction:

uv=w,wi=uiviu - v = w, \quad w_i = u_i - v_i


Vector addition satisfies the same algebraic properties as ordinary addition:

Commutativity: u+v=v+uu + v = v + u
Associativity: (u+v)+w=u+(v+w)(u + v) + w = u + (v + w)
Identity: u+0=uu + 0 = u, where 00 is the zero vector of the same length
Inverse: u+(u)=0u + (-u) = 0

These four properties are part of what makes Rn\mathbb{R}^n a vector space. Subtraction is neither commutative nor associative, just like with scalars.
Learn More

Why the Same-Length Rule Matters

Vector addition is only defined when both operands have the same number of components. This rule is not arbitrary — it follows directly from the component-wise definition.

If uR2u \in \mathbb{R}^2 and vR3v \in \mathbb{R}^3, then v3v_3 exists while u3u_3 does not. There is no component in uu to pair with v3v_3, so the sum at that position is undefined. The same problem arises for any mismatch in length.

This reflects a deeper geometric truth: vectors of different lengths live in different spaces and cannot be combined directly. A 2D vector and a 3D vector do not share a common ambient space, so their sum has no geometric meaning either.

For comparison with operations between vectors and matrices, see matrix-vector multiplication.
Learn More

Common Mistakes

Even though vector addition is among the simplest vector operations, a few mistakes appear regularly.

Trying to add vectors of different lengths — a vector in R2\mathbb{R}^2 cannot be added to a vector in R3\mathbb{R}^3 even if you "pad with zeros" informally
Confusing vector addition with the dot product — vector addition returns a vector; the dot product returns a scalar
Mixing row and column orientations carelessly — although the component-wise rule is the same, in matrix-vector contexts a row vector and a column vector are not interchangeable
Forgetting that subtraction is not commutativeuvvuu - v \neq v - u in general; in fact uv=(vu)u - v = -(v - u)
Treating the zero vector as a scalar — adding the scalar 00 to a vector is meaningless; you must add the zero vector of matching length
Learn More

Worked Example

Take uu and vv as vectors in R3\mathbb{R}^3:

u=(123),v=(789)u = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \quad v = \begin{pmatrix} 7 \\ 8 \\ 9 \end{pmatrix}


Then w=u+vw = u + v is computed component by component:

w=(1+72+83+9)=(81012)w = \begin{pmatrix} 1+7 \\ 2+8 \\ 3+9 \end{pmatrix} = \begin{pmatrix} 8 \\ 10 \\ 12 \end{pmatrix}


For d=uvd = u - v:

d=(172839)=(666)d = \begin{pmatrix} 1-7 \\ 2-8 \\ 3-9 \end{pmatrix} = \begin{pmatrix} -6 \\ -6 \\ -6 \end{pmatrix}


Geometrically, u+vu + v is the diagonal of the parallelogram spanned by uu and vv, while uvu - v points from the head of vv to the head of uu. The visualizer above mirrors this process symbolically — set the length to 33 and step through to see each pairing in turn.
Learn More

Related Concepts

Vector operations — the broader family that includes addition, subtraction, scalar multiplication, dot product, and cross product.

Scalar multiplication of vectors — multiplying every component of a vector by a number; like addition, it is component-wise and preserves length.

Dot product — a bilinear operation that takes two vectors of the same length and returns a scalar, not a vector.

Cross product — a special operation defined only for vectors in R3\mathbb{R}^3 that returns a vector perpendicular to both inputs.

Linear combination — sums of the form au+bva u + b v that generalize vector addition by combining it with scalar multiplication.

Zero vector — the additive identity, with every component equal to zero.

Vector space — the abstract structure built on vector addition and scalar multiplication; Rn\mathbb{R}^n is the prototypical example.
Learn More