Line Equation Calculator
Get y = mx + b from two 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, this calculator finds the slope (m = (y₂−y₁)/(x₂−x₁)) and then solves for the y-intercept to produce the full line equation in slope-intercept form, y = mx + b. It also flags the special cases of vertical lines (undefined slope) and horizontal lines (slope of zero).
It's used by students working through algebra and coordinate geometry homework, and by anyone who needs to fit a quick linear trend line through two data points by hand — for example estimating a rate of change between two measurements without pulling up spreadsheet software.
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)