Skip to content
LoveToCalc

Definition — what does that mean?

Vector equation of a line

A line in space is written with a point and a direction vector. Every value of t gives one point of the line.

In Swedish: Linjens ekvation på vektorform

Vector equation of a line

The relation

(x, y, z)=(x₀, y₀, z₀)+t(a, b, c)

A line in space is a point and a direction: start at (x₀, y₀, z₀) and add t times the direction vector. Every value of t gives one point of the line.

Solve for
Solved for r

r=(x₀+ta, y₀+tb, z₀+tc)

r=(5, 0, 11)

r equals the vector ((1 plus (2 times 2)), (2 plus (2 times (−1))), (3 plus (2 times 4))), equals the vector ((1 plus 4), (2 plus (−2)), (3 plus 8)), equals the vector (5, 0, 11)

Working3 steps

Practice questions

You are given

  • r=(-6, -7, 6)
  • r₀=(0, -3, 4)
  • v=(3, 2, -1)

The formula

r₀ = (x₀, y₀, z₀) is a point on the line and v = (a, b, c) a direction vector, which may not be the zero vector. Written coordinate by coordinate these are the line’s parametric equations: x = x₀ + ta, y = y₀ + tb and z = z₀ + tc.

With r₀ = (1, 2, 3), v = (2, −1, 4) and t = 2:

(1, 2, 3) + 2(2, −1, 4) = (1 + 4, 2 − 2, 3 + 8) = (5, 0, 11)

The line through two points

Through A = (5, 1, 3) and B = (6, 5, 1) goes the line with A as its point and B − A as its direction:

v = (6 − 5, 5 − 1, 1 − 3) = (1, 4, −2), so r = (5, 1, 3) + t(1, 4, −2)

t = 0 gives A and t = 1 gives B. Values between 0 and 1 give the points of the segment between them, and negative values points on the far side of A.

Is the point on the line?

Solve each coordinate for t. The point is on the line if all three give the same t.

For (8, 13, −3) and the line above:

The same t, so the point is on the line. For (8, 13, −1) the third equation gives t = 2 instead, and the point is not on the line.

The card works t out as t = ((x − x₀)a + (y − y₀)b + (z − z₀)c)/(a² + b² + c²). For the point on the line above that is (3 · 1 + 12 · 4 + (−6) · (−2))/(1 + 16 + 4) = 63/21 = 3. The form gives the same t as the coordinates when the point is on the line, and it also works when a coordinate of the direction is 0. When the point is off the line, the card says so instead of giving a t.

In the plane

The same form works in the plane with two coordinates: (x, y) = (x₀, y₀) + t(a, b). When a is not 0 the line has slope b/a, and it can be written as the equation of a straight line, y = mx + c. In space a single equation of that kind describes a plane rather than a line, which is where the vector form is used.

Common mistakes

Common questions

When are two lines parallel? When their direction vectors are parallel, that is when one is a number times the other; see scalar multiplication of a vector.

How is a plane written the same way? With two directions and two parameters; see the parametric equation of a plane.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
xx₀+ta1+2·25
yy₀+tb2+2·(−1)0
zz₀+tc3+2·411
x₀x−ta5−2·21
y₀y−tb0−2·(−1)2
z₀z−tc11−2·43
t(x−x₀)a+(y−y₀)b+(z−z₀)ca²+b²+c²(5−1)·2+(0−2)·(−1)+(11−3)·42²+(−1)²+4²2
ax−x₀t5−122
by−y₀t0−22−1
cz−z₀t11−324

Last reviewed October 8, 2026 ·How pages are reviewed

GeometryAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.