Line of Intersection of Two Planes Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter two planes as a₁x + b₁y + c₁z = d₁ and a₂x + b₂y + c₂z = d₂ to get the line they share.
Result
Point on the line: x
Direction vector: x component
- Direction vector: y component
- Direction vector: z component
- Point on the line: y
- Point on the line: z
- Angle between the planes (degrees)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Plane 1: a₁ (coefficient of x): enter a number.
- Plane 1: b₁ (coefficient of y): enter a number.
- Plane 1: c₁ (coefficient of z): enter a number.
- Plane 1: d₁ (right-hand side): enter a number.
- Plane 2: a₂ (coefficient of x): enter a number.
- Plane 2: b₂ (coefficient of y): enter a number.
- Plane 2: c₂ (coefficient of z): enter a number.
- Plane 2: d₂ (right-hand side): enter a number.
- Read the result: Point on the line: x; the panel also shows Direction vector: x component, Direction vector: y component, Direction vector: z component, Point on the line: y, Point on the line: z and Angle between the planes (degrees).
How this calculator works
The line lies in both planes, so it is perpendicular to both normal vectors n₁ = (a₁, b₁, c₁) and n₂ = (a₂, b₂, c₂). Its direction is their cross product u = n₁ × n₂.
The point shown is the point of the line closest to the origin, p = αn₁ + βn₂, with α = (d₁|n₂|² − d₂ n₁·n₂) ÷ |u|² and β = (d₂|n₁|² − d₁ n₁·n₂) ÷ |u|². The line is then (x, y, z) = p + t × u.
The angle between the planes is the angle between their normals: cos θ = |n₁·n₂| ÷ (|n₁| |n₂|). If the normals are parallel, the planes are parallel or identical and there is no single line (the point shows a dash).
Worked example
| Plane 1: a₁ (coefficient of x) | 1 |
|---|---|
| Plane 1: b₁ (coefficient of y) | 1 |
| Plane 1: c₁ (coefficient of z) | 1 |
| Plane 1: d₁ (right-hand side) | 6 |
| Plane 2: a₂ (coefficient of x) | 1 |
| Plane 2: b₂ (coefficient of y) | -1 |
| Plane 2: c₂ (coefficient of z) | 0 |
| Plane 2: d₂ (right-hand side) | 0 |
| Direction vector: x component | 1 |
|---|---|
| Direction vector: y component | 1 |
| Direction vector: z component | -2 |
| Point on the line: x | 2 |
| Point on the line: y | 2 |
| Point on the line: z | 2 |
| Angle between the planes (degrees) | 90 |
Frequently asked questions
Where do x + y + z = 6 and x − y = 0 meet?
Along the line through (2, 2, 2) with direction (1, 1, −2): every point is (2 + t, 2 + t, 2 − 2t). The planes are perpendicular.
What if the two planes are parallel?
Their normals are parallel, the cross product is zero and there is no line of intersection.