Line Through Two Points Calculator
Find the equation of a line passing through two given points.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Given two points (x1, y1) and (x2, y2), the slope of the line through them is m = (y2 − y1) ÷ (x2 − x1), and once you have the slope, the y-intercept follows from plugging either point into the slope-intercept form y = mx + b and solving for b. This is the same point-slope method taught in every algebra course for turning two coordinates into a full linear equation.
Students use this to write the equation of a line as a standard algebra exercise, while it also comes up constantly outside the classroom: fitting a straight-line trend between two data points, like two years of sales figures to estimate a growth rate, calculating a rate of change in physics or economics, or setting up a linear conversion formula between two known reference values.
This calculator takes the coordinates of two points and returns the slope and y-intercept of the line passing through them, along with its full equation.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)