Straight-line graph calculator: y = mx + c

Move two points to see the line through them, its gradient as rise over run, the y-intercept and the equation y = mx + c, plus the distance and midpoint.

Free for schools, teachers and blogs.
Put this tool on your website, blog or class page
Size:
Copied
  • Google Sites: Insert → Embed → Embed code, and paste.
  • WordPress: add a "Custom HTML" block and paste.
  • Blogger: in the post, switch to HTML view and paste.
  • Free to use as long as the link under it stays.

Learn straight line graphs properly

StudyAI writes clear notes on any topic you study, with practice quizzes, past-paper questions explained, and interactive models like this one in the notes.

Get free notes and a quiz on this
Free to start. No card needed.

Questions students ask

How do you find the gradient between two points?

m = (y₂ − y₁)/(x₂ − x₁): the change in y divided by the change in x.

What is the gradient of a perpendicular line?

The negative reciprocal, −1/m. The two gradients multiply to −1.

Free notes on straight line graphs

More mathematics tools

All interactive tools