Two distinct points with different x-coordinates.
Equation Of A Line Calculator
Enter your values below to get the result first, then scroll for the full explanation and guidance.
Equation of the line
Equation of the line: y = 2x + 1 (Line through two points)
Gradient is change in y divided by change in x; substituting either point gives the y-intercept.
Straight-line result
Gradient is change in y divided by change in x; substituting either point gives the y-intercept.
Result snapshot
A quick visual read of the values behind this result.
Recommended next checks
- →A vertical line has no finite gradient and is outside this calculator's scope.
- Gradient
- 2
- Y-intercept
- 1
- Equation
- y = 2x + 1
Try different values to compare results.
Find the equation, gradient, and y-intercept of the non-vertical line through two points.
Equation of the line
Equation of the line: y = 2x + 1 (Line through two points)
Gradient is change in y divided by change in x; substituting either point gives the y-intercept.
Straight-line result
Gradient is change in y divided by change in x; substituting either point gives the y-intercept.
Result snapshot
A quick visual read of the values behind this result.
Recommended next checks
- →A vertical line has no finite gradient and is outside this calculator's scope.
- Gradient
- 2
- Y-intercept
- 1
- Equation
- y = 2x + 1
Try different values to compare results.
Table of Contents
Table of Contents
About Equation Of A Line Calculator
Equation Of A Line Calculator helps you work through the main numbers for this topic quickly with a simple input flow and an instant result.
Use the calculator result as a practical starting point, then review the explanation and assumptions on the page if you want more context.
Calculation method
m = (y2-y1)/(x2-x1), then intercept = y1-mx1.
Formula explained
Calculation flow
This calculator is structured for fast UK-focused estimates with clear inputs, repeatable logic, and instant results.
Formula
Input values -> calculation engine -> instant result
How the result is built
Example
Example verified by the calculator's linear algebra reference cases.
Assumptions
- Two distinct points with different x-coordinates.
Source basis
- UK-focused calculator flow
- Structured input validation
- Instant result breakdowns
FAQ
Common questions
Trust and notes
Assumptions and important notes
This calculator is designed to give a fast estimate using the method shown on the page. Results are most useful when your inputs are accurate and the tool matches your situation.
Use the result as guidance rather than a final diagnosis or professional decision. If the result could affect health, legal, financial, or compliance decisions, verify it with a qualified source where appropriate.
- Two distinct points with different x-coordinates.
Method
UK calculator guidance
Last reviewed
April 17, 2026