Gradient measures change
A positive gradient rises as x increases; a negative gradient falls. Its magnitude states the change in y for each one-unit increase in x, so it may carry a compound contextual unit.
Find the equation through two distinct points, including gradient, y-intercept and vertical-line classification with coordinate working.
Choose an example or type the known values, then calculate to see the answer and working.
A positive gradient rises as x increases; a negative gradient falls. Its magnitude states the change in y for each one-unit increase in x, so it may carry a compound contextual unit.
Swapping only the y values creates different points. Either point can be first, but the chosen subtraction direction must be consistent for both coordinates.
In y = mx + c, c is the y-value when x = 0. The y-intercept point is (0,c). It need not be one of the two entered points.
Two distinct points determine one straight line. For a non-vertical pair, this calculator finds the change in y, change in x, gradient and y-intercept, then reports the rule in y = mx + c form. When both x-coordinates match, it reports the vertical rule x = constant and explains why the gradient is undefined. Coordinate order still matters: each x value must remain paired with its own y value.
Use it when two different coordinate pairs on the same straight line are known. It does not test whether measured points are approximately linear or calculate a statistical line of best fit. A repeated point is insufficient because infinitely many lines pass through one location. Keep the same subtraction order in numerator and denominator for a non-vertical line.
Both coordinates increase, so a positive gradient is expected.
Estimate the sign, scale, range or likely form of the answer before calculating. A prediction makes an input error easier to notice.
Find change in y: 17 - 5 = 12.
Find change in x: 6 - 2 = 4, so m = 12 ÷ 4 = 3.
Use the first point to find c: 5 = 3(2) + c, giving c = -1.
The rule is y = 3x - 1. Substituting x = 6 returns y = 17.
| Mistake | Why it fails | Better check |
|---|---|---|
| Reversing only one subtraction | Using y₂ - y₁ over x₁ - x₂ changes the gradient sign. | Subtract coordinates in the same point order. |
| Reading rise without run | A vertical change alone does not define slope. | Divide change in y by the matching change in x. |
| Forcing a vertical line into y = mx + c | Zero change in x makes the gradient undefined. | Report the vertical equation x = x₁ instead. |
The result points to related practice, but the best next step depends on what the learner could explain without help.
No, if both numerator and denominator use the same order. Reversing both changes two signs and preserves their quotient.
Yes. A fractional gradient often expresses a meaningful rate and should remain exact unless the context requests a decimal.
No. It finds the exact line through two points. A best-fit line for many scattered observations requires statistical modelling.