Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Vectors






Where Algebra Meets Geometry

A vector captures two pieces of information in a single mathematical object: how far and which way. This dual nature — part algebraic, part geometric — makes vectors the natural language for describing anything that requires both a size and an orientation. In R2\mathbb{R}^2 and R3\mathbb{R}^3, vectors are arrows that can be drawn, measured, and rotated. In Rn\mathbb{R}^n, they generalize beyond visual intuition into ordered lists of numbers that still obey the same algebraic rules. This section develops vectors from the ground up: what they are, how they behave, and the operations that give them structure.

For step-by-step results on your own numbers, use the vector calculators on CalculateMatrix.



What Is a Vector

One way to describe a displacement: draw an arrow, whose length is how far and whose direction is which way.
At its core, a vector is a mathematical object defined by two attributes: a magnitude (a non-negative number representing size) and a direction (an orientation in space). A scalar, by contrast, is fully specified by a single number — temperature, mass, or area require no directional component. A vector demands both.
Geometrically, a vector appears as a directed line segment: an arrow drawn from an initial point to a terminal point. The arrow's length encodes the magnitude, and the way it points encodes the direction. Two arrows that share the same length and orientation represent the same vector, regardless of where in space they are positioned. This is the concept of a free vector — identity is determined entirely by magnitude and direction, never by location.
The arrow for v = (3, 2): three across, two upO32v: 3 across, 2 uplength and direction fixed by the arrowa vector drawn as an arrow
Another way: list how far it goes along each axis.
"Three across, two up" is just the pair of numbers (3,2)(3, 2) — no drawing needed. In three dimensions the list has three numbers; in general it has nn.
Arrows drawn in different places all turn into the same pair of numbers, (3, 2).
arrow fromtoacrossupas numbers
(0, 0)(3, 2)32(3, 2)
(4, 1)(7, 3)32(3, 2)
(−2, 5)(1, 7)32(3, 2)
They had to agree: the numbers are exactly the arrow's movement along each axis, and nothing else.
Subtracting the tail from the tip gives the across and up amounts, so every arrow produces a list of numbers; walking those amounts from any starting point draws the arrow back. Where the arrow starts never enters — which is why the three arrows above are one vector.
The definition
A vector in Rn\mathbb{R}^n is an ordered list of nn real numbers, its components; drawn in the plane or in space, it is an arrow with a length and a direction.
Algebraically, a vector in Rn\mathbb{R}^n is an ordered nn-tuple of real numbers:
Vector Component Form
v=(v1,v2,…,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n)
Learn more about this formula: Vector Component Form →
So v=(3,2)\mathbf{v} = (3, 2) is the arrow "three across, two up", wherever it is drawn.
A vector is one object with two faces: a size-and-direction arrow and a list of components.
Fact: A photo is a single vector
A 12-megapixel colour photo stores three brightness values per pixel, for red, green and blue, so the whole picture is one vector in R36,000,000\mathbb{R}^{36{,}000{,}000}. Dimming it to half brightness is scalar multiplication by 12\frac{1}{2}.
Each entry viv_i is called a component. In R2\mathbb{R}^2, a vector has two components and can be plotted on a coordinate plane. In R3\mathbb{R}^3, three components place it in three-dimensional space. For n>3n > 3, direct visualization is no longer possible, but the algebraic framework continues to function identically. The components of a vector encode both its magnitude and its direction numerically, linking the geometric and algebraic viewpoints into a single coherent object.
Which description to use: arrows to see, numbers to compute — and only numbers beyond three dimensions.
In the plane and in space, arrows show at a glance what addition or scaling does. Past three dimensions no arrow can be drawn, but the list of components works exactly the same way. The notation section shows the ways of writing both.
The rest of the page covers notation, types of vectors, their properties, the basic operations, magnitude, the dot and cross products, and linear combinations.

Notation and Representation

Notation

Notation and Representation

A bold letter or an arrow for the whole vector, a row or a column for its entries, and named unit vectors to build it from. All are catalogued among the linear algebra symbols.
The component form and Rn\mathbb{R}^n are set out at vector operation notation; i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k} in products at cross product notation.
v\mathbf{v}
vector v
Boldface lowercase is the printed standard. One bold letter stands for the whole list of components, so one vector equation says as much as nn number equations.
CasesIn R3\mathbb{R}^3, a+b=c\mathbf{a} + \mathbf{b} = \mathbf{c} packs together a1+b1=c1a_1 + b_1 = c_1, a2+b2=c2a_2 + b_2 = c_2 and a3+b3=c3a_3 + b_3 = c_3.
Also writtenv⃗\vec{v} — the arrow is the handwritten form.
AB⃗\vec{AB}
vector A B
The vector from the point AA to the point BB: the notation records both the direction and the endpoints.
(v1,…,vn)(v_1, \ldots, v_n) · (v1⋮vn)\begin{pmatrix} v_1 \\ \vdots \\ v_n \end{pmatrix}
row form; column form
The same components listed horizontally or stacked vertically.
Do not confuseInterchangeable everywhere. With matrices the shape matters: matrix multiplication needs a column vector on the right.
i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k} · e1,…,en\mathbf{e}_1, \ldots, \mathbf{e}_n
the standard basis vectors
Vectors with a 11 in one position and 00 elsewhere: i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k} in R3\mathbb{R}^3, e1,…,en\mathbf{e}_1, \ldots, \mathbf{e}_n in general.
CasesAny vector decomposes along them: v=v1e1+v2e2+⋯+vnen\mathbf{v} = v_1\mathbf{e}_1 + v_2\mathbf{e}_2 + \cdots + v_n\mathbf{e}_n — a linear combination with the components as weights.
DownloadPNG2×PDF
Notation · Cheat sheet
Vector Notation at a Glance
The marks from the notation cards across the vector pages: how each is read and what it means. Every group links to the full card on its page.
VectorsThis page
v,  v→\mathbf{v}, \; \overset{\to}{v}
vector v
Bold in print, an arrow by hand: either marks a vector, not a number.
AB⟶\overset{\longrightarrow}{AB}
vector A B
The vector from point AA to point BB.
i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k}
the standard basis
Unit vectors along the axes; also e1,…,en\mathbf{e}_1, \ldots, \mathbf{e}_n.
Basic operations
(v1,…,vn)(v_1, \ldots, v_n)
v with components v one to v n
The subscript names a slot: v2v_2 is the second component, a number.
Rn\mathbb{R}^n
R n, real n-space
All vectors with nn real components.
Magnitude
∥v∥\|\mathbf{v}\|
the norm of v
Length; two bars for a vector, one for a number.
∥v∥1,  ∥v∥∞\|\mathbf{v}\|_1, \; \|\mathbf{v}\|_\infty
one-norm, infinity-norm
The subscript picks the norm; ∥v∥2\|\mathbf{v}\|_2 is the usual length.
u^\hat{\mathbf{u}}
u hat
A unit vector: ∥u^∥=1\|\hat{\mathbf{u}}\| = 1.
Dot product
a⋅b\mathbf{a} \cdot \mathbf{b}
a dot b
A number from two vectors; ab\mathbf{a}\mathbf{b} with no dot means nothing.
aTb\mathbf{a}^{T}\mathbf{b}
a transpose b
The same number in matrix form: row times column.
Cross product
a×b\mathbf{a} \times \mathbf{b}
a cross b
A vector from two vectors, in R3\mathbb{R}^3 only.
a⋅(b×c)\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c})
a dot, b cross c
The scalar triple product: a signed volume.
Vector properties
a∥b\mathbf{a} \parallel \mathbf{b}
a is parallel to b
One is a scalar multiple of the other: a=cb\mathbf{a} = c\mathbf{b}.
a⊥b\mathbf{a} \perp \mathbf{b}
a is orthogonal to b
Their dot product is 00.
0\mathbf{0}
the zero vector
Parallel and orthogonal to every vector.
Same marks, different job
∣x∣|x| vs ∥v∥\|\mathbf{v}\|One pair of bars for a number, two for the length of a vector.
⋅\cdot and ×\timesBetween numbers, plain multiplication; between vectors, the dot and cross products.
v2v_2 vs v2\mathbf{v}_2Plain: the second component of v\mathbf{v}; bold: the second vector in a list.
Vector Notation at a Glance·/linear-algebra/vectorsLearn Math Class
Notation and Representation
v,u,w\mathbf{v},\quad \mathbf{u},\quad \mathbf{w}

Fact: Twenty equations became four
Maxwell's 1865 theory of electromagnetism was written out component by component, 20 equations in all. In 1884 Heaviside rewrote it in vector notation, where one equation stands for three, and grouped it into the four Maxwell's equations known today.

Notation and Representation
v=(v1,v2,…,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n)

Notation and Representation
v=(v1v2⋮vn)\mathbf{v} = \begin{pmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{pmatrix}

Notation and Representation
i=(1,0,0),j=(0,1,0),k=(0,0,1)\mathbf{i} = (1, 0, 0), \quad \mathbf{j} = (0, 1, 0), \quad \mathbf{k} = (0, 0, 1)

Types of Vectors

Not all vectors play the same role. Several categories appear repeatedly throughout linear algebra, and recognizing them early simplifies everything that follows.

The Zero Vector


The zero vector 0\mathbf{0} has every component equal to zero. Its magnitude is 00, and it has no defined direction. Despite this, the zero vector is indispensable: it serves as the additive identity under vector addition, meaning v+0=v\mathbf{v} + \mathbf{0} = \mathbf{v} for every vector v\mathbf{v}.

Unit Vectors


A unit vector has magnitude exactly 11. It encodes pure direction with no scaling. The standard basis vectors are all unit vectors, but any nonzero vector can be converted into a unit vector through normalization — a process covered in detail on the magnitude page. Unit vectors are essential for isolating directional information from length.

Position Vectors


A position vector has its tail fixed at the origin and its head at a specific point in space. The vector p=(3,5)\mathbf{p} = (3, 5) as a position vector points from the origin to the point (3,5)(3, 5). This convention establishes a one-to-one correspondence between points and vectors: every point in Rn\mathbb{R}^n corresponds to exactly one position vector, and every position vector identifies exactly one point.

Free Vectors


A free vector is defined solely by its magnitude and direction, with no attachment to a particular location. Translating a free vector to a different starting point does not change the vector. Two arrows in different parts of the plane that share the same length and orientation represent the same free vector. Most of the algebra in this section treats vectors as free — their behavior under operations depends only on their components, not on where they happen to be drawn.

Equal Vectors


Two vectors are equal when all their corresponding components match: a=b\mathbf{a} = \mathbf{b} if and only if ai=bia_i = b_i for every ii. Geometrically, equal vectors have the same magnitude and the same direction. Position plays no part — a vector drawn at one corner of a diagram is identical to a vector drawn at another corner, provided the components agree.
A vector is fixed by its components, not by where it is drawnO323232(2, 3): same length,other direction, not vv = (3, 2)v = (3, 2)v = (3, 2)the copy with its tail at the origin O is the position vector of the point (3, 2)same components, same vector, wherever it is drawn
One vector, three places

The three blue arrows start at different points, yet each runs 3 across and 2 up — the dashed legs show it — so all three are the single vector v = (3, 2). The one whose tail sits at the origin is the position vector of the point (3, 2). The red arrow is exactly as long as v, but it runs 2 across and 3 up: a different direction, so a different vector.

Moving an arrow never changes the vector it represents; changing a component always does.
DownloadPNG2×PDF
Layout
TypeDefining conditionMagnitudeKey feature
Zero vector 0every component equals 00additive identity (v + 0 = v); no defined direction
Unit vector‖v‖ = 11encodes pure direction; obtained from any nonzero vector by normalization
Position vectortail anchored at the origin, head at a specific pointvariesone-to-one correspondence between points in ℝⁿ and position vectors
Free vectoridentity determined by magnitude and direction alonevarieslocation-independent — the same vector can be drawn anywhere in space
Types of VectorsLearn Math Class
DownloadPNG2×PDF
Before you read
Five kinds of vector
Vectors are classified by what is special about them: their size, where they start, or how they compare.
Types of vectors5 kinds
Zero0\mathbf{0}
Componentsall 00
Roleno direction; additive identity
Unit∥u^∥=1\|\hat{\mathbf{u}}\| = 1
Rolepure direction
Found bynormalizing
Position
Tailat the origin
Roleone-to-one with points
Free
Defined bymagnitude and direction only
Roleunchanged by translation
Equal
Whencomponents match
Positionirrelevant
Takeaway
Position rarely matters
A free vector is fixed by magnitude and direction alone; two vectors are equal when their components match, wherever they are drawn.
Types of vectors·/linear-algebra/vectorsLearn Math Class

Vector Properties

Every vector carries intrinsic attributes — magnitude, direction, and dimensionality — that exist independently of any operation. Magnitude measures how large a vector is, direction specifies where it points, and dimensionality records how many components it contains. These are not consequences of addition or multiplication; they belong to the vector itself.

Beyond what individual vectors possess, vectors also relate to one another through structural relationships. Two vectors are equal when their components match exactly. They are parallel when one is a scalar multiple of the other, meaning they share the same or opposite direction. They are orthogonal when their dot product equals zero, indicating that they meet at a right angle in the geometric interpretation.

The properties page collects both the intrinsic and relational attributes in a single reference, with each property developed fully on the page where it naturally belongs.

Basic Vector Operations

Three operations form the algebraic backbone of everything in this section: addition, subtraction, and scalar multiplication. Each operates component by component, each produces a vector in the same Rn\mathbb{R}^n, and each has a geometric interpretation that reinforces the algebra.

Vector addition combines two vectors into a third by summing their corresponding components. Geometrically, this is the tip-to-tail construction — place the tail of the second vector at the head of the first, and the sum runs from the starting tail to the ending head. The parallelogram method provides an equivalent picture: the sum is the diagonal of the parallelogram formed by the two vectors.

Subtraction reverses the process: a−b\mathbf{a} - \mathbf{b} adds a\mathbf{a} to the negation of b\mathbf{b}, producing the vector that points from the tip of b\mathbf{b} to the tip of a\mathbf{a}.

Scalar multiplication scales a vector by a real number. Multiplying by a positive scalar stretches or compresses the vector without changing its direction; multiplying by a negative scalar also reverses it. These three operations satisfy a collection of algebraic rules — commutativity, associativity, distributivity — that make structured computation possible.
u1×4u1,1u1,2u1,3u1,4+v1×4v1,1v1,2v1,3v1,4=w1×4u1+v1u2+v2u3+v3u4+v4
Addition finished, component by component

Addition, subtraction and scaling all share this shape: the operation is applied to each slot on its own and the slots never talk to each other. That is why addition and subtraction need two vectors of the same length, why scaling acts on a single vector, and why all three return a vector of that same length. See the same run for subtraction on the vector addition visualizer.

The products that follow break this pattern deliberately — both of them mix components together rather than keeping them apart.

Magnitude and the Norm

The magnitude of a vector quantifies its length as a single non-negative number. In R2\mathbb{R}^2, this is the hypotenuse of the right triangle formed by the components. In R3\mathbb{R}^3, the same idea extends through a second application of the Pythagorean theorem. The general formula for any Rn\mathbb{R}^n is:

Magnitude and the Norm
∥v∥=v12+v22+⋯+vn2\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}

Pitfall: Adding the lengths
Taking ∥a+b∥\|\mathbf{a} + \mathbf{b}\| to be ∥a∥+∥b∥\|\mathbf{a}\| + \|\mathbf{b}\| gives 3+4=73 + 4 = 7 for a=(3,0)\mathbf{a} = (3, 0) and b=(0,4)\mathbf{b} = (0, 4). But a+b=(3,4)\mathbf{a} + \mathbf{b} = (3, 4), whose length is 9+16=5\sqrt{9 + 16} = 5.

This quantity is called the Euclidean norm, and it satisfies three fundamental properties: it is never negative, it scales predictably under scalar multiplication (∥cv∥=∣c∣∥v∥\|c\mathbf{v}\| = |c|\|\mathbf{v}\|), and it obeys the triangle inequality (∥a+b∥≤∥a∥+∥b∥\|\mathbf{a} + \mathbf{b}\| \leq \|\mathbf{a}\| + \|\mathbf{b}\|).

The norm also provides a natural notion of distance: the distance between two vectors a\mathbf{a} and b\mathbf{b} is ∥a−b∥\|\mathbf{a} - \mathbf{b}\|. Closely tied to magnitude is the concept of a unit vector — a vector whose norm equals 11. Any nonzero vector can be rescaled to unit length through normalization, a process that extracts pure direction by dividing out the magnitude.

The Dot Product

The dot product is the first operation in this section that does not return a vector. It takes two vectors and produces a scalar, computed by multiplying corresponding components and summing the results:

The Dot Product
a⋅b=a1b1+a2b2+⋯+anbn\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + \cdots + a_nb_n

Pitfall: Keeping the products as a vector
Stopping after the multiplications turns (1,2,3)⋅(4,−5,6)(1, 2, 3) \cdot (4, -5, 6) into the vector (4,−10,18)(4, -10, 18). The products must be added: 4−10+18=124 - 10 + 18 = 12, a single number.

This algebraic formula has a geometric equivalent: a⋅b=∥a∥∥b∥cos⁡θ\mathbf{a} \cdot \mathbf{b} = \|\mathbf{a}\|\|\mathbf{b}\|\cos\theta, where θ\theta is the angle between the two vectors. The geometric form reveals what the dot product actually measures — how much two vectors align directionally. When the dot product is positive, the vectors point roughly the same way. When it is negative, they point roughly in opposite directions. When it equals zero, the vectors are orthogonal: perpendicular in the geometric sense.

This connection to angles makes the dot product the gateway to projection: decomposing one vector into a component along another and a component perpendicular to it.

The dot product turns the angle between two vectors into plain arithmetic on their components.

The Cross Product

Where the dot product takes two vectors and returns a scalar, the cross product takes two vectors and returns a new vector. This returned vector is perpendicular to both inputs, giving the cross product a geometric role that the dot product cannot fill: it finds directions orthogonal to a given plane.

The cross product is defined exclusively in R3\mathbb{R}^3. For vectors a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\mathbf{b} = (b_1, b_2, b_3):

Cross Product (Component Form)
a×b=(a2b3−a3b2, a3b1−a1b3, a1b2−a2b1)\mathbf{a} \times \mathbf{b} = (a_2b_3 - a_3b_2,\ a_3b_1 - a_1b_3,\ a_1b_2 - a_2b_1)
Learn more about this formula: Cross Product (Component Form) →


Pitfall: Flipping the sign of the middle component
Writing the middle entry as a1b3−a3b1a_1b_3 - a_3b_1 turns (1,2,3)×(4,5,6)(1, 2, 3) \times (4, 5, 6) into (−3,−6,−3)(-3, -6, -3), which is not perpendicular to (1,2,3)(1, 2, 3). The middle entry is a3b1−a1b3=12−6=6a_3b_1 - a_1b_3 = 12 - 6 = 6, so the product is (−3,6,−3)(-3, 6, -3).

The magnitude ∥a×b∥=∥a∥∥b∥sin⁡θ\|\mathbf{a} \times \mathbf{b}\| = \|\mathbf{a}\|\|\mathbf{b}\|\sin\theta equals the area of the parallelogram that the two vectors span. The direction is determined by the right-hand rule, which introduces the concept of orientation — a handedness to three-dimensional space that has no analogue in the dot product. Unlike most operations encountered so far, the cross product is anti-commutative: swapping the order of the inputs reverses the direction of the result.

Linear Combinations

Every operation covered so far — addition, subtraction, scalar multiplication — is a special case of a single unifying idea: the linear combination. Given vectors v1,v2,…,vk\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k and scalars c1,c2,…,ckc_1, c_2, \ldots, c_k, the expression

Linear Combination
c1v1+c2v2+⋯+ckvkc_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k
Learn more about this formula: Linear Combination →


is a linear combination of those vectors. Adding two vectors is the special case where k=2k = 2 and both scalars equal 11. Scalar multiplication is the case k=1k = 1.
Each card fixes the number of vectors kk, and the scalars where needed, and shows which earlier operation the combination becomes.
DownloadPNG2×PDF
General
c1v1+c2v2+⋯+ckvkc_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k
Setk=2, c1=c2=1k = 2,\ c_1 = c_2 = 1
v1+v2\mathbf{v}_1 + \mathbf{v}_2
Vector addition
Adding two vectors is the special case where k=2k = 2 and both scalars equal 11.
Setk=1k = 1
c1v1c_1\mathbf{v}_1
Scalar multiplication
Scalar multiplication is the case k=1k = 1.
Earlier operations as linear combinationsLearn Math Class
Addition and scalar multiplication are both linear combinations; only kk and the scalars are fixed in advance.
The set of all possible linear combinations of a given collection of vectors is called the span of that collection. The span of a single nonzero vector is a line through the origin. The span of two non-parallel vectors is a plane. The span of three non-coplanar vectors in R3\mathbb{R}^3 fills the entire space. Asking whether a particular vector lies in the span of a given set turns out to be equivalent to asking whether a certain system of equations has a solution — a connection that links vectors directly to the machinery of matrices and row reduction.

Linear combinations also set the stage for two concepts developed in the vector spaces section: linear independence, which identifies when no vector in a set is redundant, and basis, which captures the minimal spanning set needed to reach every point in a space.

Every vector built by scaling and adding lies in the span, and testing membership means solving a linear system.

Summary: All Vector Operations at a Glance

This summary lists the seven vector operations of the page, one per row. Each row names the operation, gives its formula and says what it takes in and what it returns, with a line under the name on its geometric meaning and a link to the section that explains it.

Addition, subtraction and scalar multiplication work component by component and return a vector of the same size. The magnitude turns one vector into a length, the dot product turns two vectors into a single number, and the cross product, defined only in three dimensions, returns a vector perpendicular to both. The linear combination closes the list as the idea behind all of them.
DownloadPNG2×PDF
OperationFormulaTakes and gives
Vector additionDrawn tip to tail, the sum is the diagonal of the parallelogram the two arrows make, as basic vector operations shows.v+w=(v1+w1,…,vn+wn)\mathbf{v} + \mathbf{w} = (v_1 + w_1, \ldots, v_n + w_n)two vectors in Rn\mathbb{R}^n, giving a vector in Rn\mathbb{R}^n
Vector subtractionThe difference runs from the tip of w\mathbf{w} to the tip of v\mathbf{v}, as the part on subtraction in basic vector operations explains.v−w=v+(−w)\mathbf{v} - \mathbf{w} = \mathbf{v} + (-\mathbf{w})two vectors in Rn\mathbb{R}^n, giving a vector in Rn\mathbb{R}^n
Scalar multiplicationStretches or compresses the arrow and reverses its direction when c<0c < 0, from basic vector operations.cv=(cv1,…,cvn)c\mathbf{v} = (cv_1, \ldots, cv_n)a scalar cc and a vector, giving a vector in Rn\mathbb{R}^n
Magnitude (norm)The length of the arrow, which is its distance from the origin; see magnitude and the norm.∥v∥=v12+v22+⋯+vn2\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}one vector in Rn\mathbb{R}^n, giving a non-negative scalar
Dot productMeasures how closely two directions agree, and equals 0 exactly when the vectors are orthogonal, as the dot product shows.v⋅w=∑viwi=∥v∥∥w∥cos⁡θ\displaystyle \mathbf{v} \cdot \mathbf{w} = \sum v_i w_i = \|\mathbf{v}\|\|\mathbf{w}\| \cos\thetatwo vectors in Rn\mathbb{R}^n, giving a scalar
Cross productPerpendicular to both inputs, with a length equal to the area of their parallelogram; see the cross product.v×w=(v2w3−v3w2, v3w1−v1w3, v1w2−v2w1)\mathbf{v} \times \mathbf{w} = (v_2w_3 - v_3w_2,\ v_3w_1 - v_1w_3,\ v_1w_2 - v_2w_1)two vectors in R3\mathbb{R}^3 only, giving a vector in R3\mathbb{R}^3
Linear combinationThe idea that unifies the other operations; the set of all such combinations is the span, as linear combinations explains.c1v1+c2v2+⋯+ckvkc_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_kkk vectors and kk scalars, giving a vector
Vector operations·All linear algebra formulasLearn Math Class
Before using an operation, check what it returns. Sums, differences, scalar multiples and cross products are vectors, while the magnitude and the dot product are plain numbers, and mixing the two up is behind many wrong answers with vectors.

Common Pitfalls

Three slips come up again and again when these operations are first met. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Adding the lengths
The length of a sum is found by adding the lengths of the two vectors, as if magnitudes combined the way the vectors do.
Start
For a=(3,0)\mathbf{a} = (3, 0) and b=(0,4)\mathbf{b} = (0, 4),
Wrong turn
Error here
∥a+b∥=∥a∥+∥b∥=3+4=7\|\mathbf{a} + \mathbf{b}\| = \|\mathbf{a}\| + \|\mathbf{b}\| = 3 + 4 = 7
Right path
Add the vectors first, then take the length.
a+b=(3,4),\mathbf{a} + \mathbf{b} = (3, 4),

∥a+b∥=9+16=5\|\mathbf{a} + \mathbf{b}\| = \sqrt{9 + 16} = 5
The triangle inequality only promises 5≤75 \leq 7. The two sides are equal only when one vector is a non-negative multiple of the other.
Why it happensFor numbers of the same sign, ∣x+y∣=∣x∣+∣y∣|x + y| = |x| + |y|, and the same habit is carried over to vectors that point in different directions.
How to checkDraw the two vectors tip-to-tail. Here they form the legs of a 33–44–55 right triangle, and the sum is the hypotenuse, shorter than the two legs together.
2Keeping the products as a vector
The dot product is computed by multiplying corresponding components, and the work stops there, leaving a vector instead of a number.
Wrong turn
Error here
(1,2,3)⋅(4,−5,6)=(4,−10,18)(1, 2, 3) \cdot (4, -5, 6) = (4, -10, 18)
Right path
The products are added.
(1,2,3)⋅(4,−5,6)(1, 2, 3) \cdot (4, -5, 6)

=4−10+18=12= 4 - 10 + 18 = 12
Why it happensAddition, subtraction and scalar multiplication all work slot by slot and return a vector, so the first step of the dot product looks like one more operation of the same kind.
How to checkThe dot product is always a single number. Dotting a vector with itself must give its squared length: (1,2,3)⋅(1,2,3)=1+4+9=14=∥(1,2,3)∥2(1, 2, 3) \cdot (1, 2, 3) = 1 + 4 + 9 = 14 = \|(1, 2, 3)\|^2.
3Flipping the sign of the middle component
The middle component of the cross product is written as a1b3−a3b1a_1b_3 - a_3b_1 instead of a3b1−a1b3a_3b_1 - a_1b_3. In the determinant layout with i\mathbf{i}, j\mathbf{j}, k\mathbf{k}, this is the minus sign in front of the j\mathbf{j} term being dropped.
Start
For a=(1,2,3)\mathbf{a} = (1, 2, 3) and b=(4,5,6)\mathbf{b} = (4, 5, 6),
Wrong turn
Error here
Component by component,
first: 2⋅6−3⋅5=−3\text{first: } 2 \cdot 6 - 3 \cdot 5 = -3

middle: 1⋅6−3⋅4=−6\text{middle: } 1 \cdot 6 - 3 \cdot 4 = -6

last: 1⋅5−2⋅4=−3\text{last: } 1 \cdot 5 - 2 \cdot 4 = -3

a×b=(−3,−6,−3)\mathbf{a} \times \mathbf{b} = (-3, -6, -3)
Right path
Component by component,
first: 2⋅6−3⋅5=−3\text{first: } 2 \cdot 6 - 3 \cdot 5 = -3

middle: 3⋅4−1⋅6=6\text{middle: } 3 \cdot 4 - 1 \cdot 6 = 6

last: 1⋅5−2⋅4=−3\text{last: } 1 \cdot 5 - 2 \cdot 4 = -3

a×b=(−3,6,−3)\mathbf{a} \times \mathbf{b} = (-3, 6, -3)
Why it happensThe first and third components open with the smaller index on a\mathbf{a}, a2b3a_2b_3 and a1b2a_1b_2, and the middle one is written the same way, opening with a1b3a_1b_3. The components actually follow the cyclic order 1→2→3→11 \to 2 \to 3 \to 1, which puts a3b1a_3b_1 first in the middle.
How to checkThe result must be perpendicular to both inputs. (−3,6,−3)⋅(1,2,3)=−3+12−9=0(-3, 6, -3) \cdot (1, 2, 3) = -3 + 12 - 9 = 0 and (−3,6,−3)⋅(4,5,6)=−12+30−18=0(-3, 6, -3) \cdot (4, 5, 6) = -12 + 30 - 18 = 0. The wrong answer gives (−3,−6,−3)⋅(1,2,3)=−24(-3, -6, -3) \cdot (1, 2, 3) = -24, not 00.
Common pitfalls with vectors·/linear-algebra/vectorsLearn Math Class
Each slip combines vectors with the wrong rule. Lengths do not add, a dot product is a single number, and the middle component of a×b\mathbf{a} \times \mathbf{b} is a3b1−a1b3a_3b_1 - a_1b_3. Drawing the vectors tip-to-tail, dotting a vector with itself, or checking that a cross product is perpendicular to both inputs catches each slip.

Skills You Should Learn

Each skill opens its step-by-step method page.
Vector methods

Vectors FAQ

Can a vector have millions of components?

+
Yes. A vector in Rn\mathbb{R}^n is an ordered list of nn real numbers, and nothing limits nn. A 12-megapixel colour photo stores a red, a green and a blue value for every pixel, so the whole picture is one vector in R36,000,000\mathbb{R}^{36{,}000{,}000}. No arrow can be drawn past three dimensions, but the algebra works exactly the same: dimming the photo to half brightness is multiplying that vector by 12\frac{1}{2}.Read more →

Why is a whole vector written as one bold letter?

+
Because one symbol then stands for the whole list of components, so one vector equation says as much as nn equations between numbers. In R3\mathbb{R}^3, a+b=c\mathbf{a} + \mathbf{b} = \mathbf{c} packs together a1+b1=c1a_1 + b_1 = c_1, a2+b2=c2a_2 + b_2 = c_2 and a3+b3=c3a_3 + b_3 = c_3. The saving is large: Maxwell's theory of electromagnetism filled 20 equations written component by component, and Heaviside's vector notation regrouped it into the four Maxwell's equations known today. By hand, an arrow v⃗\vec{v} replaces the bold.Read more →

Does it matter whether a vector is written as a row or a column?

+
Not for the vector itself: (v1,…,vn)(v_1, \ldots, v_n) and the same entries stacked vertically are the same vector, and the two forms are interchangeable in sums, scaling, lengths and products. The shape starts to matter once matrices enter. In a matrix-vector product AvA\mathbf{v} the vector must be a column standing to the right of the matrix, and the dot product in matrix form, aTb\mathbf{a}^{T}\mathbf{b}, is a row times a column.Read more →

What do vector addition, subtraction and scalar multiplication have in common?

+
All three work component by component: the operation is applied to each slot on its own, and the slots never interact. That is why adding or subtracting needs two vectors of the same length, and why all three return a vector in the same Rn\mathbb{R}^n. All three are also special cases of a linear combination c1v1+⋯+ckvkc_1\mathbf{v}_1 + \cdots + c_k\mathbf{v}_k. The dot and cross products break this pattern on purpose: both mix the components together.Read more →

Which vector operations give a number instead of a vector?

+
Two of them: the magnitude ∥v∥\|\mathbf{v}\|, which is never negative, and the dot product a⋅b\mathbf{a} \cdot \mathbf{b}, which can be positive, negative or zero. Addition, subtraction, scalar multiplication and linear combinations return a vector, and so does the cross product, though it exists only in R3\mathbb{R}^3. A common slip is stopping the dot product after the multiplications: (1,2,3)⋅(4,−5,6)(1, 2, 3) \cdot (4, -5, 6) is 4−10+18=124 - 10 + 18 = 12, not the vector (4,−10,18)(4, -10, 18).Read more →

How can you check a cross product answer?

+
Dot the result with both inputs: each dot product must be 00, because a×b\mathbf{a} \times \mathbf{b} is perpendicular to both a\mathbf{a} and b\mathbf{b}. For (1,2,3)×(4,5,6)=(−3,6,−3)(1, 2, 3) \times (4, 5, 6) = (-3, 6, -3) the checks give −3+12−9=0-3 + 12 - 9 = 0 and −12+30−18=0-12 + 30 - 18 = 0. The usual error is in the middle component, which is a3b1−a1b3a_3b_1 - a_1b_3; writing a1b3−a3b1a_1b_3 - a_3b_1 gives (−3,−6,−3)(-3, -6, -3), whose dot product with (1,2,3)(1, 2, 3) is −24-24.Read more →