Line through Two Points
Calculate the coefficients of Ax + By + C = 0, including vertical lines.
Your numbers
A
Use consistent units. The result follows the assumptions you enter.
Scenario comparison
Up to three snapshots in this tab. Loading one replaces the current inputs.
Formula
A = y₁ − y₂; B = x₂ − x₁; C = x₁y₂ − x₂y₁; Ax + By + C = 0
Calculate the coefficients of Ax + By + C = 0, including vertical lines.
Worked example
- First x
- 0
- First y
- 0
- Second x
- 6
- Second y
- 8
- A
- -8
- B
- 6
- C
- 0
Scope and limitations
Use consistent units. The result follows the assumptions you enter.
Inputs are checked for missing values and allowed ranges. A result outside the finite numeric range is not displayed. Rounding affects display, while the calculation uses the model’s numeric precision.
Check your units and assumptions before relying on a result. Changing a label does not convert a currency or physical unit.
Formula version: 63cedd786c8e · Example checked: