Slope Calculator

Calculate slope, line equations, distance, midpoint, and angle from two points or one point and slope

Check Slope Calculator

Try:

Slope Formulas Reference

Slope: m = (y₂ - y₁) / (x₂ - x₁)
Slope-Intercept: y = mx + b
Point-Slope: y - y₁ = m(x - x₁)
Standard Form: Ax + By = C
Distance: d = √((x₂-x₁)² + (y₂-y₁)²)
Midpoint: ((x₁+x₂)/2, (y₁+y₂)/2)
Angle: θ = arctan(m)
Perpendicular: m₂ = -1/m₁

About Slope

  • • Positive slope: line rises from left to right
  • • Negative slope: line falls from left to right
  • • Zero slope: horizontal line
  • • Undefined slope: vertical line (Δx = 0)
  • • Parallel lines have equal slopes
  • • Perpendicular lines have slopes that are negative reciprocals (m₁ × m₂ = -1)
  • • Slope equals the tangent of the angle the line makes with the x-axis

About This Tool

Calculator Task Context

Use this calculator to find the slope of a line from two points, a graph, or linear equation inputs.

Formula And Method Used

The calculator uses m = (y2 - y1) / (x2 - x1), then reports the slope direction and related line information.

Worked Example

  1. For points (2,3) and (6,11), slope = (11-3)/(6-2).
  2. That gives 8/4 = 2, so y rises 2 units for each 1 unit of x.

Common Mistakes And Limits

  • A vertical line has undefined slope because x2 - x1 = 0.
  • A horizontal line has slope 0 because y2 - y1 = 0.
  • Keep point order consistent; reversing both points gives the same slope.

Related Calculators

Slope Calculator: Find Slope, Line Equations, Distance, and Midpoint with Coordinate Graph Visualization

Our slope calculator provides two comprehensive modes for analyzing linear relationships in the Cartesian coordinate plane: a two-point mode that computes the slope, y-intercept, x-intercept, line equation in three standard forms, distance between the points, midpoint, and angle of incline from any two coordinate pairs, and a point-plus-slope mode that derives the complete line equation and all intercepts from a single known point and a given slope value, both with an interactive SVG coordinate graph that plots the line, marks the points with labeled coordinates, and displays a rise-over-run triangle that visually demonstrates how the slope measures the steepness and direction of the line. The slope of a line, universally denoted by the letter m in mathematics, is defined as the ratio of the vertical change (rise) to the horizontal change (run) between any two distinct points on the line, expressed by the formula m equals the quantity y-sub-2 minus y-sub-1 divided by the quantity x-sub-2 minus x-sub-1. For computing the straight-line distance between two points that our calculator also provides, our Distance Calculator offers 2D and 3D distance computation with midpoint calculation and coordinate visualization.

Three Forms of Linear Equations: Slope-Intercept, Point-Slope, and Standard Form

Our calculator presents every line equation in three equivalent algebraic forms, each offering distinct advantages for different mathematical tasks and applications: the slope-intercept form y equals mx plus b, where m is the slope and b is the y-intercept; the point-slope form y minus y-sub-1 equals m times the quantity x minus x-sub-1; and the standard form Ax plus By equals C, where A, B, and C are integers with A greater than or equal to zero. The y-intercept b is computed from the slope and any known point using the rearrangement b equals y minus mx. The x-intercept, computed as negative b divided by m when the slope is nonzero, represents the point where the line crosses the x-axis. Our calculator also computes the angle of incline theta using the inverse tangent function theta equals arctan(m). For solving right triangle problems that arise from the rise-run-hypotenuse triangle formed by slope calculations, our Pythagorean Theorem Calculator provides hypotenuse and leg calculations with Pythagorean triple generation and step-by-step solutions.

Distance, Midpoint, and the Geometry of Line Segments in the Coordinate Plane

When two points are specified, our calculator computes not only the slope and line equation but also the distance between the points and their midpoint, two fundamental measurements in coordinate geometry that complement the slope calculation and together provide a complete geometric description of the line segment connecting the two points. The distance formula d equals the square root of the quantity x-sub-2 minus x-sub-1 squared plus y-sub-2 minus y-sub-1 squared is a direct application of the Pythagorean theorem. The midpoint formula gives the coordinates of the point exactly halfway between two given points as the average of their x-coordinates and the average of their y-coordinates. For comprehensive triangle analysis using the side lengths and angles that slope and distance calculations provide, our Triangle Calculator provides six solve modes with area, perimeter, medians, inradius, circumradius, and proportional SVG visualization.

Parallel and Perpendicular Lines: Slope Relationships in Geometry

Two of the most important relationships in coordinate geometry involve the slopes of parallel and perpendicular lines. Parallel lines never intersect and in the coordinate plane two non-vertical lines are parallel if and only if they have exactly the same slope. Perpendicular lines intersect at a right angle of 90 degrees, and their slopes satisfy the negative reciprocal relationship: if one line has slope m-sub-1 then a line perpendicular to it has slope m-sub-2 equals negative one divided by m-sub-1, or equivalently m-sub-1 times m-sub-2 equals negative one. For computing the areas of geometric shapes formed by intersecting lines in the coordinate plane, our Area Calculator provides area computation for triangles, rectangles, parallelograms, trapezoids, and other shapes with step-by-step solutions.

Applications of Slope in Science, Engineering, and Everyday Life

The concept of slope extends far beyond abstract mathematics into virtually every quantitative discipline and many everyday situations where rates of change, gradients, or inclines must be measured, compared, or controlled. In physics, slope is the fundamental concept underlying kinematics: the slope of a position-versus-time graph gives the velocity, the slope of a velocity-versus-time graph gives the acceleration. In civil engineering and construction, slope appears as grade or gradient, typically expressed as a percentage. In economics and business, the slope of a supply curve shows how quantity supplied changes with price. In data science and statistics, the slope of a linear regression line quantifies the relationship between two variables. For computing the right triangle relationships that connect slope to angle and distance through trigonometric functions, our Right Triangle Calculator provides comprehensive right triangle solving with trigonometric ratios and step-by-step solutions.