EVERYDAY CLARITY
Line Equation Calculator
What is the equation of the line passing through two points? Enter the values below to calculate the result.
Your result
A
B
C
Result for the values shown.
Calculations run in your browser.
What to enter
| Input | Meaning and units |
|---|---|
| First x coordinate (length) | Enter first x coordinate in length; use the same basis as the other measurements. |
| First y coordinate (length) | Enter first y coordinate in length; use the same basis as the other measurements. |
| Second x coordinate (length) | Enter second x coordinate in length; use the same basis as the other measurements. |
| Second y coordinate (length) | Enter second y coordinate in length; use the same basis as the other measurements. |
Understanding your result
Read A, B, C in the units and model stated on this page. The formula A=y1-y2 · B=x2-x1 · C=x1*y2-x2*y1 defines the relationship; measurement accuracy and model applicability are separate from numerical precision.
Common mistakes
- Mixing input units or changing the physical meaning of a variable without changing the model.
Check your calculation
- Use the worked example as a known reference case, then change one input at a time and check the direction and units of the response.
Calculation checks, sources and review limits
What is the equation of the line passing through two points?
What is the equation of the line passing through two points? Enter the values below to calculate the result.
Common uses
- What is the equation of the line passing through two points
How it works
A=y1-y2; B=x2-x1; C=x1*y2-x2*y1
Worked example
Enter First x coordinate: 0 length; First y coordinate: 0 length; Second x coordinate: 3 length; Second y coordinate: 4 length. Results: A: -4 ; B: 3 ; C: 0 .