Distance Point-Line
The distance of a point from a line in space is the length of the perpendicular; the cross product formula yields it in one step.
Free · no credit card · in your study plan in 2 minutes
Formula
d(Q;g) = \frac{|(\vec{q} - \vec{p}) \times \vec{u}|}{|\vec{u}|}Variables & units – Distance Point-Line
| Symbol | Meaning | Unit |
|---|---|---|
| q⃗ | Position vector of the point Q | length units |
| p⃗ | Support vector of the line g | length units |
| u⃗ | Direction vector of the line g | dimensionless |
| d(Q;g) | Distance (length of the perpendicular from Q to g) | length units |
Derivation & background – Distance Point-Line
Geometric interpretation: |(q⃗−p⃗) × u⃗| is the area of the parallelogram spanned by q⃗−p⃗ and u⃗; divided by the base |u⃗| its height remains, which is exactly the distance. Alternatively the perpendicular-foot method F = p⃗ + t·u⃗ with t = (q⃗−p⃗)·u⃗/(u⃗·u⃗) additionally yields the foot point F; then d = |QF⃗|. Both routes lead to the same result.
Exam blueprint
Validity range
Holds for lines in parametric form in space (u⃗ ≠ 0⃗). In the plane one uses the 2D variant via the perpendicular or the HNF of the line; skew lines have their own formula.
Derivation steps
Parallelogram area divided by the base gives the height, i.e. the distance.
- 1q⃗ − p⃗ and u⃗ span a parallelogram with area |(q⃗ − p⃗) × u⃗|.
- 2Area = base times height: division by |u⃗| leaves the height, the distance from Q to g.
Rearrangements
Perpendicular foot parameter
F = p⃗ + t·u⃗ is the foot point; d = |QF⃗| as an alternative.
Distance in the plane (2D)
HNF of the line equation ax + by = c.
Skew lines
Generalization with both direction vectors u⃗ and v⃗.
Task variant
g passes through the origin with u⃗ = (1|2|2). What is the distance of Q(3|0|0)?
q⃗ − p⃗ = (3|0|0). Cross product with u⃗: (0|−6|6), magnitude √72 = 6√2. |u⃗| = 3. d = 6√2/3 = 2√2 ≈ 2.83 LU.
g: x⃗ = (1|1|0) + t·(1|0|1), Q(2|1|3): determine the foot point and the distance.
t = ((1|0|3)·(1|0|1))/2 = 4/2 = 2, so F(3|1|2). QF⃗ = (1|0|−1), d = √2 ≈ 1.41 LU. Check with cross product: |(1|0|3)×(1|0|1)| = |(0|2|0)| = 2, divided by |u⃗| = √2 gives √2 ✓.
Common mistakes
Using the position vector q⃗ instead of the difference q⃗ − p⃗.
The formula needs the connection vector from the support point to Q.
Confusing cross and dot product.
The numerator is the magnitude of a vector (cross product), not a scalar from the dot product.
Forgetting to divide by |u⃗|.
Without the division the parallelogram area remains instead of the height.
Exam context
- Distance tasks in space, applications with flight paths and cables, combined with foot point and reflection tasks.
These mistakes cost points in real exams. The set drills them until they stick.
Formula cluster
Distances in space
With HNF (point-plane) and the magnitude formula it forms the distance toolbox of vector geometry.
Worked example
g: x⃗ = (1|0|2) + t·(2|1|2) and Q(3|4|2): q⃗−p⃗ = (2|4|0), cross product (q⃗−p⃗)×u⃗ = (8|−4|−6) with magnitude √116 ≈ 10.77. |u⃗| = 3. Distance d = √116/3 ≈ 3.59 LU.
Applications
Distance tasks in final exams, shortest distance to flight paths and cables, tolerance checks in CAD systems, precursor for the distance of skew lines
Quanta exam set
Curated exam set for "Distance Point-Line":
Question (front)
Which formula describes Distance Point-Line?
Answer in your set
Question (front)
How do you rearrange d(Q;g) = |(q⃗−p⃗)×u⃗| / |u⃗| for Perpendicular foot parameter?
Answer in your set
Question (front)
Which common mistake happens with Distance Point-Line?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
These 10 cards are ready. One click and they sit in your deck, FSRS schedules the reviews until exam day.
Scientific sources
Common notations & search queries
Related formulas
More Mathematics formulas
Frequently asked questions about Distance Point-Line
How do you calculate the distance of a point from a line in space?+
Fastest with the cross product formula d = |(q⃗ − p⃗) × u⃗|/|u⃗|. Procedure: form the connection vector from the support point of the line to the point, compute the cross product with the direction vector, divide its magnitude by |u⃗|. Example: g: x⃗ = (1|0|2) + t·(2|1|2) and Q(3|4|2): q⃗ − p⃗ = (2|4|0), cross product (8|−4|−6), magnitude √(64 + 16 + 36) = √116 ≈ 10.77; divided by |u⃗| = 3 gives d ≈ 3.59 LU. The formula automatically measures the shortest, i.e. perpendicular distance. Important: use (q⃗ − p⃗), not the position vector q⃗ alone, and do not forget the final division.
How does the perpendicular foot point method work?+
You look for the point F on the line where the perpendicular from Q lands. Ansatz: F = p⃗ + t·u⃗, and the vector QF⃗ must be perpendicular to u⃗, i.e. QF⃗·u⃗ = 0. Solving yields t = (q⃗ − p⃗)·u⃗/(u⃗·u⃗). Example: g: x⃗ = (1|1|0) + t·(1|0|1) and Q(2|1|3): t = ((1|0|3)·(1|0|1))/2 = 4/2 = 2, so F(3|1|2) and d = |QF⃗| = |(1|0|−1)| = √2 ≈ 1.41 LU. The added value over the cross product formula: you obtain the foot point F itself and can continue working with it, e.g. construct the reflected point Q′ = Q + 2·QF⃗.
Which method should you use when: cross product or foot point?+
Ask yourself what the task really requires. If only the distance number is required, the cross product formula is the shortest route: one cross product, two magnitudes, one division, done. If instead you need the foot point itself, a reflected point, the contact point of a perpendicular or a justification via orthogonality, there is no way around the foot point method; it delivers F and the distance at once. In exams the combination is also strong: compute with the foot point and check with the cross product formula in one line (or vice versa). Both methods must give exactly the same value; deviations immediately reveal a calculation error.
How do you calculate the point-line distance in the plane (2D)?+
In the plane there is the Hesse normal form of the line: for g: ax + by = c and the point Q(q₁|q₂), d = |a·q₁ + b·q₂ − c|/√(a² + b²). Example: g: 3x + 4y = 10 and Q(5|5): d = |15 + 20 − 10|/√(9 + 16) = 25/5 = 5 LU. If the line is given as y = mx + t, first bring it into the form mx − y = −t. The cross product is not available in 2D (it needs three dimensions); alternatively the foot point method works with the normal slope −1/m. The 2D formula is the exact counterpart of the point-plane formula in space, just with two instead of three coordinates.
How does the distance of skew lines differ from this?+
Skew lines do not intersect and are not parallel; their distance is the length of the common perpendicular. The formula uses both direction vectors: d = |(q⃗ − p⃗)·(u⃗ × v⃗)|/|u⃗ × v⃗|, where p⃗ and q⃗ are the support vectors. The difference from the point-line formula: instead of the magnitude of a cross product, the numerator holds a scalar triple product, i.e. the projection of the connection vector onto the common normal direction u⃗ × v⃗. If the lines are parallel (u⃗ × v⃗ = 0⃗), this formula fails; then you pick a point of one line and compute point-line as usual. So first check the relative position, then the matching formula.
Retain Distance Point-Line for exams
Create a curated FSRS exam set for d(Q;g) = |(q⃗−p⃗)×u⃗| / |u⃗|: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Free · curated formula set · LaTeX · FSRS spaced repetition
How do you calculate with Distance Point-Line?
Here is how to work through a typical Distance Point-Line (d(Q;g) = |(q⃗−p⃗)×u⃗| / |u⃗|) task step by step:
- 1
Task
g passes through the origin with u⃗ = (1|2|2). What is the distance of Q(3|0|0)?
Solution path
q⃗ − p⃗ = (3|0|0). Cross product with u⃗: (0|−6|6), magnitude √72 = 6√2. |u⃗| = 3. d = 6√2/3 = 2√2 ≈ 2.83 LU.
- 2
Task
g: x⃗ = (1|1|0) + t·(1|0|1), Q(2|1|3): determine the foot point and the distance.
Solution path
t = ((1|0|3)·(1|0|1))/2 = 4/2 = 2, so F(3|1|2). QF⃗ = (1|0|−1), d = √2 ≈ 1.41 LU. Check with cross product: |(1|0|3)×(1|0|1)| = |(0|2|0)| = 2, divided by |u⃗| = √2 gives √2 ✓.