Line Through a Point (3D) Calculator

Published on: August 30, 2026
Final Answer: Free | Full Steps: Pro

This Line Through a Point (3D) Calculator writes the equation of the line through a given point in a given direction, and shows the working line by line. The point fixes where the line sits and the direction vector fixes which way it runs, so together they pin it down completely. A parameter slides along the direction to reach every other point. Following the same pattern every time keeps position and direction from being confused.

x y z (x₀, y₀, z₀) v ⟨a, b, c⟩

Enter the point \((x_{0}, y_{0}, z_{0})\) and the direction \(\vec{d} = \langle a, b, c \rangle\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute into the vector equation.
  4. Write the parametric equations.
  5. Write the symmetric equations.

Formula: Vector Equation of a Line

This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.

\(\vec{r} = \vec{r}_{0} + t\vec{d}\)

Useful Tips to Remember

The point fixes where the line is and the direction fixes which way it runs. The parametric equations come straight from the components, \(x = x_{0} + at\) and so on. Any non-zero multiple of the direction gives the same line. A direction component of 0 means that coordinate stays fixed, and the zero vector cannot be a direction.

Required knowledge

Where Is the Equation of a Line from a Point and a Direction Used?

A point and a direction are the most natural way to describe motion in a straight line, so this equation appears throughout physics and computing. An object moving at constant velocity follows exactly this line, with t as time. Laser beams, light rays and sight lines are modelled this way in optics and graphics. Robots and CNC machines use it to move a tool along a set direction, and game engines use it to cast rays for shooting and picking objects.

  • Motion at constant velocity in physics
  • Light rays and laser beams in optics
  • Ray casting for aiming in games
  • Tool paths for CNC machines and robots
  • Lines of sight in surveying

Line Through a Point Practice Problems

Example 1 uses the point \((1, 2, 3)\) and the direction \(\langle 4, 5, 6 \rangle\), and Example 2 uses the origin and \(\langle 1, 0, 0 \rangle\), where two coordinates stay fixed. Write the vector, parametric and symmetric forms and compare. For two more free worked examples, check out the Line Through a Point (3D) Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(P_{0} = \left(1,\; 2,\; 3\right),\; \vec{d} = \left\langle 4,\; 5,\; 6 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute into the vector equation.
  4. Write the parametric equations.
  5. Write the symmetric equations.

Formula

Formula: Vector Equation of a Line

This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.

\(\vec{r} = \vec{r}_{0} + t\vec{d}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the line through \(P_{0} = \left(1,\; 2,\; 3\right)\) in the direction \(\vec{d} = \left\langle 4,\; 5,\; 6 \right\rangle\).

\(P_{0} = \left(1,\; 2,\; 3\right),\; \vec{d} = \left\langle 4,\; 5,\; 6 \right\rangle\)
x y z (1, 2, 3) v ⟨4, 5, 6⟩

Step 2

Step 2 - Write the formula.

In this problem: Every point on the line is reached by starting at the given point and moving some multiple t of the direction vector.

\(\vec{r} = \vec{r}_{0} + t\vec{d}\)

Step 3

Step 3 - Substitute into the vector equation.

In this problem: Replacing \(\vec{r}_{0}\) and \(\vec{d}\) in \(\vec{r} = \vec{r}_{0} + t\vec{d}\) gives \(\vec{r} = \left\langle 1,\; 2,\; 3 \right\rangle + t\left\langle 4,\; 5,\; 6 \right\rangle\).

\(\vec{r} = \left\langle 1,\; 2,\; 3 \right\rangle + t\left\langle 4,\; 5,\; 6 \right\rangle\)

Step 4

Step 4 - Write the parametric equations.

In this problem: Writing each component on its own gives \(x = 1 + 4t\), \(y = 2 + 5t\) and \(z = 3 + 6t\).

\(\begin{gathered} x = 1 + 4t \\ y = 2 + 5t \\ z = 3 + 6t \end{gathered}\)

Step 5

Step 5 - Write the symmetric equations.

In this problem: Solving each parametric equation for t and setting them equal gives \(\frac{x - 1}{4} = \frac{y - 2}{5} = \frac{z - 3}{6}\).

\(\frac{x - 1}{4} = \frac{y - 2}{5} = \frac{z - 3}{6}\)

Final Answer

\(\begin{gathered} x = 1 + 4t \\ y = 2 + 5t \\ z = 3 + 6t \end{gathered}\)
See Example 2 Hide Example 2

Problem

\(P_{0} = \left(0,\; 0,\; 0\right),\; \vec{d} = \left\langle 1,\; 0,\; 0 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute into the vector equation.
  4. Write the parametric equations.
  5. Write the symmetric equations.

Formula

Formula: Vector Equation of a Line

This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.

\(\vec{r} = \vec{r}_{0} + t\vec{d}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the line through \(P_{0} = \left(0,\; 0,\; 0\right)\) in the direction \(\vec{d} = \left\langle 1,\; 0,\; 0 \right\rangle\).

\(P_{0} = \left(0,\; 0,\; 0\right),\; \vec{d} = \left\langle 1,\; 0,\; 0 \right\rangle\)
x y z (0, 0, 0) v ⟨1, 0, 0⟩

Step 2

Step 2 - Write the formula.

In this problem: Every point on the line is reached by starting at the given point and moving some multiple t of the direction vector.

\(\vec{r} = \vec{r}_{0} + t\vec{d}\)

Step 3

Step 3 - Substitute into the vector equation.

In this problem: Replacing \(\vec{r}_{0}\) and \(\vec{d}\) in \(\vec{r} = \vec{r}_{0} + t\vec{d}\) gives \(\vec{r} = \left\langle 0,\; 0,\; 0 \right\rangle + t\left\langle 1,\; 0,\; 0 \right\rangle\).

\(\vec{r} = \left\langle 0,\; 0,\; 0 \right\rangle + t\left\langle 1,\; 0,\; 0 \right\rangle\)

Step 4

Step 4 - Write the parametric equations.

In this problem: Writing each component on its own gives \(x = t\), \(y = 0\) and \(z = 0\).

\(\begin{gathered} x = t \\ y = 0 \\ z = 0 \end{gathered}\)

Step 5

Step 5 - Write the symmetric equations.

In this problem: Only one coordinate changes along the line, so the symmetric form is just the fixed coordinates \(y = 0,\; z = 0\).

\(y = 0,\; z = 0\)

Final Answer

\(\begin{gathered} x = t \\ y = 0 \\ z = 0 \end{gathered}\)

Notes and Practice Mode

x y z (x₀, y₀, z₀) v ⟨a, b, c⟩

Example Problems

Click one to load it into the box and solve it.