Linear Equation / Slope

Find the equation of a line from slope + intercept or two points, with a graph

About this calculator

The Linear Equation Calculator finds the slope-intercept equation y = mx + b from either a slope and y-intercept or two coordinate points. It instantly shows the equation, slope, y-intercept, and a graph of the line. Useful for algebra, geometry, and data analysis.

How to use the Linear Equation / Slope calculator

  1. Enter the values for your problem into the input fields.
  2. Read the result — it updates instantly as you type.
  3. Check the formula and the visual explanation to follow how the answer was found.
  4. Copy the page URL to share the exact calculation.

Common examples

  • Slope m=2, y-intercept b=3 → y = 2x + 3
  • Points (0, 5) and (3, 11) → slope = 2, y = 2x + 5
  • Points (1, 4) and (4, 13) → slope = 3, y = 3x + 1
  • Slope m=−0.5, y-intercept b=10 → y = −0.5x + 10
  • Points (−2, 0) and (4, 6) → slope = 1, y = x + 2

Frequently asked questions

How does the Linear Equation / Slope calculator work?

Enter your values and the calculator applies the exact mathematical method for this problem, showing the result together with the formula it used. Everything is computed with high-precision arithmetic, so the answer you see is not limited by ordinary floating-point rounding.

When would I use the Linear Equation / Slope calculator?

It is useful for homework and exam preparation, for checking work done by hand, and whenever a step in a larger problem needs this calculation done quickly and reliably.

How accurate are the results?

Calculations run at 30 significant digits of precision internally. Displayed values are rounded for readability, but the underlying result is far more precise than a typical hand or pocket-calculator computation.

Can I share a specific calculation with someone else?

Yes. Every value you enter updates the URL, so copying the address bar and sharing the link reopens the exact same calculation for whoever clicks it.