Equation of a line passing through two points in 3d

This online calculator finds equation of a line in parametrical and symmetrical forms given coordinates of two points on the line

This page exists due to the efforts of the following people:

Timur

Timur

Created: 2019-06-07 06:42:44, Last updated: 2021-02-25 06:24:33
Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8253/. Also, please do not modify any references to the original work (if any) contained in this content.

You can use this calculator to solve the problems where you need to find the line equation that passes through the two points with given coordinates. Enter coordinates of the first and second points, and the calculator shows both parametric and symmetric line equations. As usual, you can find the theory and formulas below the calculator.

PLANETCALC, Equation of a line passing through two points in 3d

Equation of a line passing through two points in 3d

First point

Second point

Parametric equations
 
Symmetric equations
 

Finding equation of a line in 3d

A point and a directional vector determine a line in 3D. You can find the directional vector by subtracting the second point's coordinates from the first point's coordinates.

d=[x_1 - x_0, y_1 - y_0, z_1 - z_0]

From this, we can get the parametric equations of the line.

x=x_0 + (x_1-x_0)t \\\\ y=y_0+(y_1-y_0)t \\\\ z=z_0+(z_1 - z_0)t

If we solve each of the parametric equations for t and then set them equal, we will get symmetric equations of the line.

\frac{x-x_0}{x_1-x_0}=\frac{y-y_0}{y_1-y_0}=\frac{z-z_0}{z_1-z_0}

URL copied to clipboard
PLANETCALC, Equation of a line passing through two points in 3d

Comments