Slope of a line

Gives the slope of a straight line as the ratio of the vertical change to the horizontal change between two points on it. It is used to measure how steep a line is and in which direction it rises or falls.

m = \frac{\Delta y}{\Delta x} = \frac{y_2-y_1}{x_2-x_1}

What the symbols mean

slope (gradient) of the line
vertical change between two points
horizontal change between two points
coordinates of the two points on the line, with x_2 \neq x_1

About this formula

  • FieldMathematics
  • TopicAnalytic geometry
  • LevelHigh school
  • Also calledgradient of a line, slope formula, rise over run, gradient formula, slope between two points, change in y over change in x
  • SourceWikidata Q275447

Write it in Obsidian

MathLive is a free visual math editor for Obsidian. Run Find a formula, type “slope of a line”, and it goes into your note as editable LaTeX. You can also scan formulas from screenshots, PDFs and handwriting.

Related formulas