Coordinate Geometry for Aptitude: Formulas and Solved Examples
Coordinate geometry places points on a grid so that lengths, slopes and areas can be found with simple arithmetic instead of drawing. Aptitude tests ask a small, predictable set of questions: the distance between two points, a midpoint or dividing point, the slope or equation of a line, intercepts and the area of a triangle. Learn the six formulas below and practise them until each takes under a minute.
Asked in: GAT, HAT, NTS, ISSB, SSC CGL, IBPS PO, CAT
Distance between two points
The distance between (x1, y1) and (x2, y2) is Pythagoras on the grid: the horizontal gap and the vertical gap are the two legs of a right triangle. The distance of a point (x, y) from the origin is √(x² + y²).
Use the distance formula to test shapes: three equal sides give an equilateral triangle, two equal sides an isosceles one, and if the squares of two sides add up to the square of the third, the triangle is right-angled.
- d = √[(x2 − x1)² + (y2 − y1)²]
- Distance from origin = √(x² + y²)
Midpoint and section formula
The midpoint is the average of the x-coordinates and the average of the y-coordinates. If one endpoint and the midpoint are known, the other endpoint is 2 × midpoint − known endpoint.
A point dividing the segment from A(x1, y1) to B(x2, y2) internally in the ratio m : n is a weighted average, with m attached to B and n attached to A. The centroid of a triangle, where the medians meet, is simply the average of the three vertices.
- Midpoint = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2)
- Internal division m : n = ((m x2 + n x1) ÷ (m + n), (m y2 + n y1) ÷ (m + n))
- Centroid = ((x1 + x2 + x3) ÷ 3, (y1 + y2 + y3) ÷ 3)
Slope of a line
Slope measures steepness: rise over run. A positive slope rises to the right, a negative slope falls, a horizontal line has slope 0 and a vertical line has no defined slope.
For a line written as ax + by + c = 0, the slope is −a ÷ b. Parallel lines have equal slopes; perpendicular lines have slopes whose product is −1. Three points are collinear when the slope between the first pair equals the slope between the second pair.
- m = (y2 − y1) ÷ (x2 − x1)
- Line ax + by + c = 0 has slope −a ÷ b
- Parallel: m1 = m2; perpendicular: m1 × m2 = −1
Equation of a line and intercepts
If you know one point and the slope, use point-slope form and rearrange. Slope-intercept form y = mx + c shows the slope and the y-intercept directly.
The x-intercept is where the line meets the x-axis (put y = 0) and the y-intercept is where it meets the y-axis (put x = 0). A line with intercepts a and b can be written x/a + y/b = 1, and the triangle it forms with the axes has area ½ |a × b|.
- Point-slope: y − y1 = m(x − x1)
- Slope-intercept: y = mx + c
- Intercept form: x/a + y/b = 1
- Area with the axes = ½ |a b|
Area of a triangle from its vertices
For vertices (x1, y1), (x2, y2), (x3, y3), use the determinant formula below and take the absolute value. If the area comes out as zero, the three points are collinear, which is a second way to test collinearity.
When two vertices share an x-coordinate or a y-coordinate, skip the formula: that side is a ready-made base and the height is the straight gap to the third vertex.
- Area = ½ |x1(y2 − y3) + x2(y3 − y1) + x3(y1 − y2)|
- Area = 0 ⇔ the points are collinear
Distance from a point to a line
The shortest distance from a point (x1, y1) to the line ax + by + c = 0 is measured along the perpendicular. Substitute the point into the left side, take the absolute value and divide by √(a² + b²).
The distance between two parallel lines ax + by + c1 = 0 and ax + by + c2 = 0 is |c1 − c2| ÷ √(a² + b²).
- Point to line = |a x1 + b y1 + c| ÷ √(a² + b²)
- Between parallel lines = |c1 − c2| ÷ √(a² + b²)
Solved examples
- Show that the points A(1, 1), B(4, 5) and C(8, 2) form a right-angled isosceles triangle.
- AB² = 3² + 4² = 25, BC² = 4² + (−3)² = 25, AC² = 7² + 1² = 50.
- AB = BC, so the triangle is isosceles.
- AB² + BC² = 25 + 25 = 50 = AC², so the right angle is at B.
Answer: Right-angled at B with AB = BC = 5 - The midpoint of AB is (6, −1). If A is (2, 5), find B.
- B = 2 × midpoint − A.
- x = 2 × 6 − 2 = 10; y = 2 × (−1) − 5 = −7.
Answer: B = (10, −7) - Find the point that divides the segment from A(−2, 1) to B(10, 13) internally in the ratio 1 : 3.
- m = 1 goes with B and n = 3 goes with A.
- x = (1 × 10 + 3 × (−2)) ÷ 4 = 4 ÷ 4 = 1.
- y = (1 × 13 + 3 × 1) ÷ 4 = 16 ÷ 4 = 4.
Answer: (1, 4) - Find the equation of the line through (2, 3) and (5, 9).
- Slope = (9 − 3) ÷ (5 − 2) = 6 ÷ 3 = 2.
- y − 3 = 2(x − 2), so y = 2x − 1.
- Check with (5, 9): 2 × 5 − 1 = 9.
Answer: y = 2x − 1, or 2x − y − 1 = 0 - Find the area of the triangle with vertices (2, 1), (6, 4) and (−1, 5).
- Area = ½ |2(4 − 5) + 6(5 − 1) + (−1)(1 − 4)|.
- = ½ |−2 + 24 + 3| = ½ × 25.
- = 12.5.
Answer: 12.5 square units - Find the perpendicular distance of the point (−2, 5) from the line 3x + 4y − 4 = 0.
- Substitute the point: 3(−2) + 4(5) − 4 = −6 + 20 − 4 = 10.
- √(3² + 4²) = 5.
- Distance = |10| ÷ 5 = 2.
Answer: 2 units
Exam shortcuts
- Spot 3-4-5, 5-12-13 and 8-15-17 triples in coordinate differences to get distances without a square root.
- In the section formula, cross-multiply: the ratio part m goes with the far endpoint B.
- For ax + by + c = 0, slope is −a/b, x-intercept is −c/a and y-intercept is −c/b.
- If two vertices share a coordinate, use ½ × base × height instead of the full area formula.
- To test collinearity, compare two slopes or check that the triangle area is zero.
- Check an equation of a line by substituting the given points before choosing an option.
Common mistakes
- Adding coordinate differences instead of squaring them in the distance formula.
- Attaching the ratio to the wrong endpoints in the section formula, which gives the point for the reversed ratio.
- Forgetting the ½ or the absolute value in the area formula.
- Writing the perpendicular slope as the reciprocal without changing its sign.
- Reading the slope of ax + by + c = 0 as a/b instead of −a/b.
Practice MCQs
- What is the distance between the points (2, 3) and (8, 11)?
A) 14 units
B) 100 units
C) 10 units
D) 8 units
Answer: C) 10 units — Distance = √[(8 − 2)² + (11 − 3)²] = √(36 + 64) = √100 = 10. 14 adds the differences 6 and 8 instead of using Pythagoras, and 100 forgets the square root. - What is the midpoint of the segment joining (−4, 6) and (10, −2)?
A) (3, 2)
B) (7, −4)
C) (6, 4)
D) (3, −2)
Answer: A) (3, 2) — Midpoint = ((−4 + 10) ÷ 2, (6 + (−2)) ÷ 2) = (3, 2). (7, −4) halves the differences instead of the sums, and (6, 4) adds the coordinates without halving. - What is the slope of the line passing through (1, −2) and (4, 7)?
A) 1/3
B) −3
C) 5/3
D) 3
Answer: D) 3 — Slope = (7 − (−2)) ÷ (4 − 1) = 9 ÷ 3 = 3. 1/3 puts the x-change on top, −3 mishandles the minus sign, and 5/3 adds the y-values instead of subtracting them. - The line 3x + 4y = 24 meets the x-axis at A and the y-axis at B. What is the area of triangle OAB, where O is the origin?
A) 48 sq units
B) 24 sq units
C) 12 sq units
D) 14 sq units
Answer: B) 24 sq units — Put y = 0 to get A = (8, 0) and x = 0 to get B = (0, 6). The triangle is right-angled at O, so area = ½ × 8 × 6 = 24. 48 forgets the half, and 14 is just the sum of the intercepts. - What is the slope of the line 2x − 5y + 10 = 0?
A) −2/5
B) 2/5
C) 5/2
D) 2
Answer: B) 2/5 — Rewrite as 5y = 2x + 10, so y = (2/5)x + 2 and the slope is 2/5. Using −a ÷ b gives −2 ÷ −5 = 2/5 as well. −2/5 drops the sign of the y-coefficient, and 5/2 inverts the fraction. - Find the point that divides the segment from P(2, 1) to Q(12, 6) internally in the ratio 2 : 3.
A) (8, 4)
B) (7, 3.5)
C) (4, 2)
D) (6, 3)
Answer: D) (6, 3) — With m : n = 2 : 3, x = (2 × 12 + 3 × 2) ÷ 5 = 6 and y = (2 × 6 + 3 × 1) ÷ 5 = 3, giving (6, 3). (8, 4) attaches the ratio to the wrong endpoints, which is the 3 : 2 point, and (7, 3.5) is the midpoint. - What is the slope of any line perpendicular to 3x − 4y = 7?
A) −4/3
B) 3/4
C) 4/3
D) −3/4
Answer: A) −4/3 — The given line has slope 3/4. Perpendicular slopes multiply to −1, so the required slope is −4/3. 3/4 is the slope of a parallel line, and 4/3 takes the reciprocal but forgets to change the sign. - Which is the equation of the line through (2, 5) with slope 3?
A) y = 3x + 11
B) y = 3x − 11
C) y = 3x − 1
D) y = 3x + 5
Answer: C) y = 3x − 1 — Point-slope form: y − 5 = 3(x − 2), so y = 3x − 6 + 5 = 3x − 1. Check: at x = 2, y = 5. y = 3x + 11 uses x + 2 instead of x − 2, and y = 3x + 5 simply copies the y-coordinate as the intercept. - For what value of k are the points (1, 3), (3, 7) and (k, 13) collinear?
A) 5
B) 6
C) 7
D) 4
Answer: B) 6 — The slope from (1, 3) to (3, 7) is 4 ÷ 2 = 2. For the third point, (13 − 3) ÷ (k − 1) = 2, so k − 1 = 5 and k = 6. Stopping at k − 1 = 5 gives 5, and 7 or 4 do not keep the slope at 2. - What is the centroid of the triangle with vertices (1, 2), (5, 8) and (9, −1)?
A) (5, 4.5)
B) (15, 9)
C) (5, 3)
D) (7.5, 4.5)
Answer: C) (5, 3) — Centroid = ((1 + 5 + 9) ÷ 3, (2 + 8 − 1) ÷ 3) = (15 ÷ 3, 9 ÷ 3) = (5, 3). (15, 9) forgets to divide by 3, and (7.5, 4.5) divides by 2 as if finding a midpoint. - Find the area of the triangle with vertices (1, 2), (4, 6) and (7, 1).
A) 27 sq units
B) 13.5 sq units
C) 9.5 sq units
D) 14.5 sq units
Answer: B) 13.5 sq units — Area = ½ |1(6 − 1) + 4(1 − 2) + 7(2 − 6)| = ½ |5 − 4 − 28| = ½ × 27 = 13.5. 27 forgets the factor of ½, while 9.5 and 14.5 come from flipping the sign of one term inside the bracket. - Which point on the x-axis is equidistant from (−1, 4) and (5, 2)?
A) (2, 0)
B) (1, 0)
C) (0, −3)
D) (3, 0)
Answer: B) (1, 0) — Let the point be (x, 0). Then (x + 1)² + 16 = (x − 5)² + 4, which gives 2x + 17 = −10x + 29, so x = 1. (0, −3) is the equidistant point on the y-axis, not the x-axis, and (2, 0) uses the x-coordinate of the midpoint, which works only if the segment is horizontal. - In what ratio does the x-axis divide the segment joining (3, −6) and (8, 4)?
A) 2 : 3
B) 3 : 1
C) 1 : 2
D) 3 : 2
Answer: D) 3 : 2 — Let the ratio be k : 1. On the x-axis y = 0, so (4k − 6) ÷ (k + 1) = 0, giving k = 3/2, i.e. 3 : 2. The point is (6, 0). The y-coordinate must rise 6 units to reach 0 and then 4 more units, so the parts are 6 : 4. 2 : 3 reverses the ratio, and 3 : 1 and 1 : 2 do not put the dividing point on y = 0. - The area of the triangle with vertices (2, 3), (5, 7) and (k, 3) is 12 square units. If k is greater than 2, find k.
A) 14
B) 6
C) 8
D) 5
Answer: C) 8 — Two vertices share y = 3, so the base is |k − 2| along that line and the height is 7 − 3 = 4. ½ × (k − 2) × 4 = 12 gives k − 2 = 6, so k = 8. 6 is the base length, not k, and 14 forgets the ½. - What is the perpendicular distance of the point (2, −1) from the line 5x − 12y + 4 = 0?
A) 2 units
B) 26 units
C) 2/13 units
D) 26/17 units
Answer: A) 2 units — Distance = |5(2) − 12(−1) + 4| ÷ √(5² + 12²) = |10 + 12 + 4| ÷ 13 = 26 ÷ 13 = 2. 26 forgets to divide by √(a² + b²), 26/17 divides by 5 + 12 instead of 13, and 2/13 comes from treating −12 × −1 as −12.
Questions
How much coordinate geometry is needed for aptitude tests?
Usually only the basics: distance, midpoint, section formula, slope, equation of a line, intercepts and triangle area. Circles and conics are rare outside CAT and engineering tests.
What is the quickest way to find the slope from an equation?
For ax + by + c = 0 the slope is −a ÷ b. For y = mx + c the slope is m directly.
How do I know whether three points lie on one line?
Find the slope between the first two and between the last two; if they are equal the points are collinear. Equivalently, the triangle formula gives zero area.
Which exams include coordinate geometry?
It appears in GAT, NTS, SSC CGL and CAT, and occasionally in HAT, ISSB and IBPS PO, usually as one or two direct formula questions.