Sigma Calculator — 543+ Free Calculator Tools
The Slope Calculator above finds the slope of the line through any two points, and from that slope it derives the full equation of the line and its y-intercept. It is the fastest way to check coordinate-geometry homework or to get a line equation for a graph you are drawing. Follow these steps.
A practical tip: always glance at the sign of the slope before trusting it. If your second point is up and to the right of the first, the slope must be positive; if it is down and to the right, negative. When the sign surprises you, recheck which coordinate went into which field — swapped x and y values are the most common input error.
Once the calculator gives you the equation, put it to work: test a third point you expect to lie on the line. For y = 2x − 1, the point (10, 19) should satisfy it — and 2(10) − 1 = 19 confirms it does. If you are graphing by hand, the intercept and one more point are all you need: plot (0, −1), move right 1 and up 2 to (1, 1), and draw the straight line through them. Every other point the calculator could produce, from (100, 199) to (−50, −101), will fall on that same line, because a line is fully determined by its slope and one point.
The slope of a line — also called its gradient — measures steepness as the ratio of vertical change to horizontal change. If you walk along the line from left to right, the rise is how far you climb (positive) or descend (negative), and the run is how far you travel horizontally. A slope of 2 means two units of rise for every one unit of run; a slope of −1/2 means the line falls half a unit per unit of run.
Coordinate geometry was developed in the 1630s by Descartes and Fermat, who realized that pairing algebra with the plane turns geometric questions into arithmetic. The slope is the central character of that story: the rate of change of a linear function, the secant line’s average rate between two points, and — in calculus — the limit that defines the tangent line and the derivative. Every “per” statement in science hides a slope: kilometers per hour, dollars per share, degrees per meter of altitude.
The vocabulary around lines is compact but worth mastering:
Slopes are everywhere outside textbooks. Roofers describe pitch as rise over a 12-inch run (a 6/12 pitch has slope 0.5); highway engineers post 7% grades (slope 0.07); economists read marginal cost as the slope of the cost curve; and pilots convert climb gradients into feet per nautical mile. The calculator above handles the arithmetic so you can focus on what the number means.
A concrete economic example shows why slopes matter beyond geometry. Suppose a factory’s weekly cost is $5,000 plus $12 per unit produced: cost = 12x + 5000, a line with slope 12. That slope is the marginal cost — each additional unit adds $12. If the selling price is $20 per unit, revenue = 20x has slope 20, and the break-even point solves 20x = 12x + 5000, giving 8x = 5000 and x = 625 units. In physics, the slope of a position-time graph is velocity: a car traveling from (0, 0) to (3 hours, 240 km) has slope 240/3 = 80 km/h. Whenever a textbook says “rate of change,” reach for the slope formula.
The slope formula is one of the shortest in mathematics: m = (y₂ − y₁) / (x₂ − x₁). The numerator is the rise (change in y), the denominator is the run (change in x). The order of subtraction does not matter as long as it is consistent — (y₁ − y₂)/(x₁ − x₂) gives the same answer — but mixing the orders is the classic error, covered in Common Mistakes below.
Worked example 1 — positive slope. Find the slope through (1, 2) and (4, 8). Rise: 8 − 2 = 6. Run: 4 − 1 = 3. Slope: 6/3 = 2. The line climbs two units for every unit of run — steep, but not vertical.
Worked example 2 — negative slope with negatives. Find the slope through (−3, 5) and (2, −5). Rise: −5 − 5 = −10. Run: 2 − (−3) = 5. Slope: −10/5 = −2. The double negative in the run (2 − (−3) = 5) is where hand calculations most often go wrong; the calculator handles it silently, but on paper, write the parentheses explicitly.
Interpreting the result: a positive slope rises left to right, a negative slope falls, a zero slope is flat, and an undefined slope is vertical. The magnitude tells the steepness — |m| = 3 is steeper than |m| = 1/3 regardless of sign. One more landmark: a slope of 1 (or −1) makes a 45° angle with the horizontal, because rise equals run.
Worked example 3 — fractional slope. Find the slope through (2, 1) and (6, 4). Rise: 4 − 1 = 3. Run: 6 − 2 = 4. Slope: 3/4 = 0.75. Not every slope is a whole number — this line climbs three units for every four it runs, a gentle incline of about 37°. As a fraction, 3/4 is exact; as a decimal, 0.75. The calculator above reports slopes as decimals, so 3/4 appears as 0.75, and repeating results like 1/3 appear rounded. For exact fraction work, keep the rise-over-run fraction alongside the decimal.
A landscaper is grading a path and measures two points on the planned surface: (2, 3) and (5, 9), where x is meters along the path and y is elevation in meters. What is the grade, and what is the elevation equation?
First the slope: rise = 9 − 3 = 6, run = 5 − 2 = 3, so m = 6/3 = 2. The path climbs 2 meters for every meter of horizontal distance — a 200% grade, far too steep for a walkway (accessibility standards cap ramps near 8%), so the landscaper knows immediately the design must change.
Next the equation, via point-slope form with point (2, 3): y − 3 = 2(x − 2). Expanding: y − 3 = 2x − 4, so y = 2x − 1. The y-intercept is −1 — the line would cross the y-axis one meter below the datum. As a check, plug in x = 5: y = 2(5) − 1 = 9, which matches the second measured point exactly. The x-intercept (set y = 0) is x = 1/2: the line crosses ground level half a meter along. Enter (2, 3) and (5, 9) in the calculator above and confirm slope 2, equation y = 2x − 1, intercept −1.
Expressed as a percentage grade, slope 2 is a 200% grade — the angle whose tangent is 2 is about 63.4°, since arctan(2) ≈ 63.43°. For comparison, the steepest streets in the world top out near 35% (about 19°), and wheelchair ramps are capped at 8.33% (4.8°). The landscaper’s 200% path is therefore not a walkway at all — it is closer to a staircase. Converting slope to percent grade (m × 100) or to degrees (arctan m) turns the abstract number into a physical feeling, which is why the calculator’s slope output is only the beginning of the analysis.
Two lines are parallel exactly when their slopes are equal. Consider the line through (0, 1) and (4, 9): rise = 9 − 1 = 8, run = 4 − 0 = 4, so m = 8/4 = 2. Its equation: y − 1 = 2(x − 0), or y = 2x + 1. Compare with the line from Practical Example 1, y = 2x − 1. Both have slope 2 but different intercepts (+1 vs. −1), so they are parallel — they climb at the same rate and never intersect, one passing through (0, 1) and the other through (0, −1).
This test is how designers verify parallel elements: roof rafters, railway tracks, and the lane markings on a road all rely on equal slopes in the underlying coordinate model. The companion test is perpendicularity: two lines are perpendicular when their slopes multiply to −1. A line perpendicular to y = 2x − 1 through (2, 3) has slope −1/2, giving y − 3 = −1/2(x − 2), or y = −1/2x + 4. Check: 2 × (−1/2) = −1, confirming the right angle. Try both pairs in the calculator — (0, 1) with (4, 9) for the parallel case — and watch the slopes match.
The five mistakes below account for most lost points on slope problems. They are all arithmetic or bookkeeping slips rather than conceptual gaps — which means a short checklist eliminates them entirely.
Extend your coordinate-geometry work with these Sigma Calculator tools:
This page provides a free Slope Calculator that computes the slope m = (y₂ − y₁)/(x₂ − x₁) for two points, plus the line equation (slope-intercept form y = mx + b) and the y-intercept b = y₁ − m·x₁. Verified reference values: (2,3)–(5,9) → m = 2, y = 2x − 1, b = −1; (2,3)–(6,11) → m = 2, y = 2x − 1; (1,2)–(4,8) → m = 2; (−3,5)–(2,−5) → m = −2; (0,1)–(4,9) → m = 2 (parallel to y = 2x − 1); vertical lines have undefined slope; horizontal lines have slope 0. Parallel lines share equal slopes; perpendicular lines satisfy m₁·m₂ = −1. All calculations run locally in the visitor’s browser with no signup.
Sources: R. Descartes, “La Géométrie” (1637); standard coordinate-geometry and precalculus texts. Content reviewed for accuracy in October 2026.
Find the slope, line equation and y-intercept from two points.
Enter the x and y coordinates of two points. The calculator finds the slope, builds the full line equation in y = mx + b form, and reports the y-intercept. Vertical lines are detected and reported as x = constant.
Formula: m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − m·x₁. Example: (2,3) and (6,11) → m = 8 ÷ 4 = 2, equation y = 2x − 1, y-intercept −1.
Divide the rise by the run: (y₂ − y₁) ÷ (x₂ − x₁). For (2,3) and (6,11): (11−3) ÷ (6−2) = 2.
y = 2x − 1. Find the slope (2), then solve b = y − mx with either point: 3 − 2×2 = −1.
How steep the line is and its direction: positive slopes rise left to right, negative slopes fall, zero is horizontal, and undefined means vertical.
Undefined — the run (x₂ − x₁) is zero, and division by zero has no value. The calculator reports vertical lines as x = constant.
Compute the slope m first, then b = y₁ − m·x₁ using either point. The line crosses the y-axis at (0, b).
m = (9−3)/(5−2) = 6/3 = 2. The line rises 2 units for every unit of run, and its equation is y = 2x − 1.
Compare their slopes: parallel lines have exactly equal slopes. The line through (0,1) and (4,9) has slope (9−1)/(4−0) = 2, the same as y = 2x − 1, so the two lines are parallel and never meet.
Zero. A horizontal line like y = 3 has no vertical change (rise = 0), so (3−3)/(7−2) = 0/5 = 0. Flat lines have slope 0; only vertical lines have undefined slope.
Also try our Scientific Calculator.