Coordinate Geometry Formulas for Aptitude: Distance, Slope, Midpoint, and Line Equations

A sign-safe route through coordinate geometry: classify the points, choose the shortest valid formula, solve step by step, and verify the result with a quick check.

KnowledgeGate Team

Exam prep & CS education

Updated 28 Nov 20265 min read
Coordinate Geometry Formulas for Aptitude: Distance, Slope, Midpoint, and Line Equations

A coordinate-geometry question looks like a formula-recall task, but one sign error can spoil an otherwise simple answer. A vertical line can also make a familiar slope formula invalid. This guide gives a compact route for distance, midpoint, section, slope, and line equations, followed by aptitude-style examples and trap checks.

Read the coordinate pair before choosing a formula

The Cartesian plane uses an ordered pair (x, y): x measures horizontal position and y measures vertical position from the origin (0,0). The signs identify the four quadrants. Between two points, horizontal change is Δx = x₂ − x₁ and vertical change is Δy = y₂ − y₁.

Distance uses squared changes, midpoint averages corresponding coordinates, and slope is rise over run. Use a sign-safe routine: write x₂ − x₁ and y₂ − y₁ in the same point order, keep brackets around negative values, and simplify only after substitution. Reversing both points leaves distance and slope unchanged. Reversing only one difference changes the slope sign.

Take A(−2, 3), B(4, 3), and C(4, −1). A and B have the same y, so AB is horizontal. B and C have the same x, so BC is vertical. Classify this shape before calculating anything.

Distance and midpoint: one segment, two answers

For P(x₁,y₁) and Q(x₂,y₂),

PQ = √[(x₂−x₁)² + (y₂−y₁)²]

and the midpoint is

M = ((x₁+x₂)/2, (y₁+y₂)/2).

If the y values are equal, distance is |x₂−x₁|. If the x values are equal, it is |y₂−y₁|. These shortcuts come after recognising the general formula.

For P(−3, 4) and Q(5, −2),

  • Δx = 5 − (−3) = 8 and Δy = −2 − 4 = −6.

  • PQ = √(8² + (−6)²) = √(64+36) = √100 = 10.

  • M = ((−3+5)/2, (4−2)/2) = (1,1).

Check the midpoint: MP = √[(1+3)² + (1−4)²] = √(16+9) = 5, and MQ = √[(5−1)² + (−2−1)²] = √25 = 5. It is equidistant from both endpoints.

For internal division in ratio 2:1, the point R is

R = ((2·5 + 1·(−3))/3, (2·(−2) + 1·4)/3) = (7/3,0).

The weight beside each endpoint belongs to the opposite endpoint's ratio part. Check that R lies between the endpoint coordinates: its x is between −3 and 5, and its y is between −2 and 4.

Coordinate grid showing points P, Q, midpoint M, and section point R with the distance triangle.

Slope: classify the line before using point-slope form

For two points, slope is m = (y₂−y₁)/(x₂−x₁). A positive slope rises left to right, a negative slope falls, a horizontal line y=c has slope 0, and a vertical line x=c has undefined slope. A vertical line cannot be written as y=mx+c.

Through A(−2,5) and B(4,−1),

m = (−1−5)/(4−(−2)) = −6/6 = −1.

Using A in point-slope form gives y−5 = −1(x+2), so y−5 = −x−2, hence y = −x+3. At x=−2, this gives y=5; at x=4, it gives y=−1, so both points pass the check.

For 3x−2y+7=0, rearrange to y = (3/2)x + 7/2, so its slope is 3/2. A parallel line has slope 3/2. A non-vertical perpendicular line has slope −2/3, because the product is −1. This product rule applies only when both slopes are defined.

Line equations: move between the four forms

Use point-slope form y−y₁=m(x−x₁) when one point and the slope are known. Use slope-intercept form y=mx+c when the intercept is useful. For distinct x-coordinates, two-point form is

y−y₁ = ((y₂−y₁)/(x₂−x₁))(x−x₁).

With A(−2,5) and B(4,−1), it gives y−5 = ((−1−5)/(4−(−2)))(x+2) = −(x+2), hence y=−x+3. Standard form is Ax+By+C=0, often preferred for substitution and intercept checks. Move this line to standard form:

x+y−3=0.

At A, −2+5−3=0; at B, 4−1−3=0. Multiplying an equation by any non-zero constant preserves its solution set.

For the vertical line through (4,−2) and (4,6), both x values are 4, so write x=4. Its slope is undefined, and trying to assign a finite m divides by zero.

For 2x+3y−12=0, set y=0 to get the x-intercept (6,0). Set x=0 to get the y-intercept (0,4). Substitute each point back into the equation as a two-point check, not as decoration.

How aptitude questions combine formulas and constraints

Suppose a point on the x-axis is equidistant from A(2,3) and B(6,−1). Let it be X(t,0). Compare squared distances to avoid square roots:

(t−2)²+9 = (t−6)²+1

t²−4t+13 = t²−12t+37

8t = 24, so t=3 and X=(3,0). The squared distance to A is (3−2)²+9=10; to B it is (3−6)²+1=10.

A second pattern uses O(0,0), U(6,0), and V(0,8). The axes are perpendicular, OU=6, OV=8, and UV=√(6²+8²)=10. The triangle area is ½·6·8=24 square units. This is a coordinate calculation, not a separate mensuration fact to memorise.

Collinearity means equal slopes when the slopes are defined, or a zero determinant. Equal distances mean compare squared distances. “Lies on the line” means substitute into its equation. For wider aptitude routes, browse the KnowledgeGate exams hub.

Traps, checks, and an exam-ready solving routine

Dropping brackets around −2 changes subtraction into addition. Fix it by writing 4−(−2). Writing (x₁+x₂,y₁+y₂) without dividing by 2 gives a doubled midpoint. Calling a vertical slope zero confuses undefined with horizontal. Using −1/m when m=0 misses that the perpendicular is vertical. Finally, an equation that fails even one given point is wrong, whatever its form.

Use this five-step routine:

  1. Classify the geometry as horizontal, vertical, or general.

  2. Write ordered differences with brackets.

  3. Choose the shortest valid formula.

  4. Substitute and simplify carefully.

  5. Verify with a coordinate, sign, or endpoint check.

For a 30-second mental check, distance must be non-negative and a midpoint must lie inside the segment. Practice prompts: distance from (1,−2) to (1,5) is 7; midpoint of (−4,6) and (2,0) is (−1,3); slope through (0,4) and (2,0) is −2. For more solved coordinate methods, read Coordinate Geometry Formulas with Solved Examples, then bridge to Mensuration and Geometry for Competitive Exams.

The short version and next step

  • Distance = square root of squared changes.

  • Midpoint = averages of corresponding coordinates.

  • Slope = rise over run.

  • Vertical line = undefined slope.

  • Point-slope builds a line from one point and m.

  • Substitution is the final proof.

Five-minute drill: for R(−5,2) and S(7,−7), calculate RS and the midpoint. Expected results are RS=15 and (1,−5/2). Write the line through (1,4) with slope 3: it is y=3x+1, and (2,7) satisfies it. For structured practice, use the Aptitude Course for Placement and apply the same classify, substitute, verify routine.