Calculator
Slope Calculator with Steps
Enter two points and get the slope, midpoint, and distance, then the line itself in point-slope, slope-intercept, and standard form — plus the parallel and perpendicular slopes.
Solve a coordinate geometry problem now
First solution freeHow to use it
Give the two points as ordered pairs, keeping the signs attached. If you have one point and a slope instead, say so and the working starts from point-slope form. Ask for the perpendicular or parallel line through a given point in the same question, since it reuses the slope you already computed. Coordinate proofs involving midpoints and distances are handled by the geometry solver.
The method behind it
Slope is the constant ratio of vertical change to horizontal change along a line. Because the ratio is constant, any two points on the line produce the same value, which is what makes the formula well defined.
The sign tells you the direction and the size tells you the steepness. A slope of zero is a horizontal line, since the rise is zero. A vertical line has zero run, and division by zero is undefined — that is a genuinely different situation from a slope of zero, not a larger version of it.
Once you have the slope and any one point, the line is determined. Point-slope form is the honest statement of that fact, and it is the form to write first because it needs no rearrangement.
Expanding gives slope-intercept form , which is what you want for graphing. Clearing fractions and moving the variables to one side gives standard form , which is what you want for systems and for lines that happen to be vertical.
The same two points also give the midpoint, by averaging each coordinate, and the distance, by applying Pythagoras to the horizontal and vertical gaps.
Two lines are parallel when their slopes are equal and perpendicular when the product of their slopes is −1, which is the same as saying one slope is the negative reciprocal of the other. The negative and the reciprocal are two separate operations and both are required.
This ratio is also the first appearance of an idea that runs through the rest of mathematics: it is the average rate of change of a linear function, and the derivative that calculus builds is exactly this quantity for curves that do not stay straight. Where two lines meet is a system of equations, and rate-of-change problems phrased as stories are usually a translation exercise before they are an arithmetic one.
Worked examples
Worked example
- 1
Turn the times into coordinates by measuring hours from the first reading. Volume is the dependent variable, so it goes second.
- 2
Apply the slope formula. Keeping the subtraction in the same order in both the numerator and the denominator is what gets the sign right.
- 3
Read the units off the axes: litres in the rise, hours in the run. The tank loses 60 litres every hour, and the negative sign is the loss.
- 4
The vertical intercept is the volume at time zero, which was given, so slope-intercept form can be written immediately.
- 5
Empty means zero volume. Solve for t and check the units: 480 litres divided by 60 litres per hour leaves hours, as it must.
Answer
Worked example
- 1
Standard form hides the slope, so rearrange into slope-intercept form first.
- 2
The given slope is −2/5. Take the negative reciprocal: flip the fraction and change the sign.
- 3
Use point-slope form with the new slope and the given point. Subtracting a negative y-coordinate makes it an addition.
- 4
Expand and simplify to slope-intercept form.
- 5
Multiply by 2 for standard form, and verify: the slopes multiply to −1, and the point satisfies the equation.
Answer
Everything from two points
One pair of coordinates answers five separate exam questions. Work through them in this order and each result feeds the next, which is faster than treating them as unrelated formulas.
From the points (−3, 7) and (5, −1)
0 of 7 stepsCommon mistakes
Subtracting in inconsistent directions
produces the slope with the wrong sign. Both differences must run from the same point to the same point. Writing the two coordinates one above the other and subtracting column by column makes the direction impossible to lose.
Treating a vertical line as having slope zero
A horizontal line has slope 0 and equation . A vertical line has undefined slope and equation , and it has no slope-intercept form at all. The two cases are opposites, not variations.
Half-completing the negative reciprocal
The perpendicular slope to is . Flipping without changing the sign gives , and negating without flipping gives . Multiply your answer by the original slope; it must come to exactly −1.
Practice
Answers are checked here — nothing is sent anywhere.
- 1
- 2
- 3