Find Slope of Line Passing Through (2,3) and (5,9)

easy CBSE JEE-MAIN NCERT Class 11 3 min read

Question

Find the slope of the line passing through the points (2, 3) and (5, 9).


Solution — Step by Step

Label the points clearly: (x1,y1)=(2,3)(x_1, y_1) = (2, 3) and (x2,y2)=(5,9)(x_2, y_2) = (5, 9).

Labelling before substituting is a small habit that prevents sign errors — students who skip this step almost always flip a value somewhere.

The slope formula is:

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Substituting our values:

m=9352=63=2m = \frac{9 - 3}{5 - 2} = \frac{6}{3} = 2

The slope m=2m = 2 means the line rises 2 units vertically for every 1 unit it moves horizontally. Since m>0m > 0, the line slopes upward from left to right.

Answer: m=2m = 2


Why This Works

The slope formula measures rate of change — how fast yy changes relative to xx as we move along the line. The numerator (y2y1)(y_2 - y_1) is the vertical change (rise), and the denominator (x2x1)(x_2 - x_1) is the horizontal change (run). Together, rise over run gives us the steepness and direction of the line.

What makes this formula powerful is that it gives the same result regardless of which two points on the line you pick. Any two points on a straight line will always yield the same slope — that’s precisely what makes it a straight line. Try picking a third point on this line (say (8,15)(8, 15)) and compute the slope with (2,3)(2, 3) — you’ll get m=2m = 2 again.

This concept is foundational for everything that follows in straight lines: equation of a line, angle between two lines, condition for parallel and perpendicular lines. Nail the slope calculation first, and the rest follows naturally.


Alternative Method — Using the Angle Approach

If you’re given the angle θ\theta that the line makes with the positive xx-axis, you can find slope using m=tanθm = \tan\theta. This is more useful when the geometric picture is given rather than coordinates.

For verification here: we found m=2m = 2, so θ=tan1(2)63.4°\theta = \tan^{-1}(2) \approx 63.4°. The line cuts the xx-axis at a steep angle — consistent with a slope of 2. You won’t need this for this specific question, but in JEE problems, they often give θ\theta directly and expect you to connect it to the slope.

When the line passes through the origin, θ\theta and mm together define the line completely — no intercept needed. This shortcut saves 30 seconds in time-bound JEE Main questions.


Common Mistake

Subtracting in the wrong order. A very common error is writing m=y1y2x2x1m = \frac{y_1 - y_2}{x_2 - x_1} — mixing up which point comes first in numerator vs denominator. This gives m=3952=63=2m = \frac{3-9}{5-2} = \frac{-6}{3} = -2, which is completely wrong in sign.

The rule: whatever order you subtract in the numerator, use the same order in the denominator. If you start with y2y1y_2 - y_1 on top, you must write x2x1x_2 - x_1 on the bottom. Either order works — just be consistent.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next