50% off Plus--d--h--m

Slope Calculator

Type two points, an equation such as 2x + 3y = 6, or a point and a slope. You get the slope as an exact fraction and a decimal with the working, the line in all three forms, its intercepts and angle, the distance and midpoint, and a graph.

  • No account needed
  • Free, no limits
  • Nothing is uploaded

How it works

  1. 01

    Type what you have

    Two points, a line's equation in any form, or one point and the slope.

  2. 02

    See the slope

    Rise over run, simplified to a fraction, with a decimal and what it means for the line.

  3. 03

    Use the line

    Slope-intercept, point-slope and standard form, intercepts, angle, parallel and perpendicular slopes, and a graph.

Rise over run

Slope, from two points to the graph

The slope of a line says how much y changes for each step in x: m = (y₂ − y₁) ÷ (x₂ − x₁), rise over run. Through (1, 2) and (3, 8) the rise is 8 − 2 = 6 and the run is 3 − 1 = 2, so m = 6 ÷ 2 = 3: the line climbs 3 for every 1 to the right. A negative slope falls from left to right, a slope of 0 is a horizontal line, and when the run is 0 the slope is undefined because nothing can be divided by zero: the line is vertical, such as x = 4.

With the slope, the line can be written three ways. Slope-intercept form y = mx + b shows the slope and where the line crosses the y-axis: put a point in to find b, 2 = 3 × 1 + b, so b = −1 and y = 3x − 1. Point-slope form y − y₁ = m(x − x₁) uses a point directly: y − 2 = 3(x − 1). Standard form Ax + By = C uses whole numbers with no common factor: 3x − y = 1. All three describe the same line.

Parallel lines have equal slopes. Perpendicular slopes are negative reciprocals, so they multiply to −1: a line perpendicular to slope 2/3 has slope −3/2. The angle of inclination is tan⁻¹(m), measured from the positive x-axis. The distance between the two points is √((x₂ − x₁)² + (y₂ − y₁)²), which the calculator simplifies, as in √45 = 3√5, and the midpoint is the average of the x values and of the y values. Common mistakes are subtracting the points in different orders on top and bottom, and swapping rise and run.

Fractions and decimals are kept exact, so a slope of −2/3 is shown as −2/3 with ≈ −0.6667 beside it rather than a rounded decimal. Two identical points don't define a line, and the calculator says so. The equation box reads forms such as y = −1/2x + 4, y − 3 = 2(x − 1) and 0,5x + y = 2 with a decimal comma. The graph is a sketch to check your work, not a scaled plot for homework. Everything runs in your browser.

FAQ

Questions, answered

Maths revision that sticks

PocketNote turns your algebra notes into flashcards and practice questions you can study anywhere.