NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Distance, Section Formula and Area of a Triangle | NIMCET

Learn the distance formula, section formula for internal and external division, midpoint, area of a triangle from coordinates and the collinearity test, with NIMCET examples.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: For points P(x1,y1)P(x_1, y_1) and Q(x2,y2)Q(x_2, y_2), the distance is PQ=(x2−x1)2+(y2−y1)2PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}. The point dividing PQ internally in the ratio m:nm : n is (mx2+nx1m+n,my2+ny1m+n)\left(\frac{mx_2 + nx_1}{m + n}, \frac{my_2 + ny_1}{m + n}\right). The area of a triangle with vertices (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2), (x3,y3)(x_3, y_3) is 12∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣\frac{1}{2}\lvert x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\rvert, and the points are collinear when this area is 0.

The coordinate plane

A point is written (x,y)(x, y): x is the abscissa and y is the ordinate.

QuadrantSign of xSign of y
I++
II−+
III−−
IV+−

Distance formula

PQ=(x2−x1)2+(y2−y1)2PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

The distance of (x,y)(x, y) from the origin is x2+y2\sqrt{x^2 + y^2}.

Using distances to classify a triangle or quadrilateral:

ShapeDistance check
Equilateral triangleAll three sides equal
Isosceles triangleTwo sides equal
Right triangleSides satisfy Pythagoras
SquareFour equal sides and equal diagonals
RhombusFour equal sides, diagonals unequal
RectangleOpposite sides equal and equal diagonals

Section formula

DivisionPoint dividing PQ in ratio m : n
Internal(mx2+nx1m+n,my2+ny1m+n)\left(\frac{mx_2 + nx_1}{m + n}, \frac{my_2 + ny_1}{m + n}\right)
External(mx2−nx1m−n,my2−ny1m−n)\left(\frac{mx_2 - nx_1}{m - n}, \frac{my_2 - ny_1}{m - n}\right)
Midpoint(x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)

Ratio in which an axis divides PQ:

  • The x-axis divides PQ in the ratio −y1:y2-y_1 : y_2.
  • The y-axis divides PQ in the ratio −x1:x2-x_1 : x_2.

A positive ratio means internal division; a negative ratio means external.

Area of a triangle

Δ=12∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣\Delta = \frac{1}{2}\left\lvert x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\right\rvert

For a quadrilateral, split it into two triangles along a diagonal, or use the "shoelace" pattern with the vertices taken in order.

Collinearity: three points are collinear if and only if the area expression equals 0.

Worked examples

Example 1: distance

Find the distance between (2,−3)(2, -3) and (−4,5)(-4, 5).

(−6)2+82=100=10\sqrt{(-6)^2 + 8^2} = \sqrt{100} = 10

Example 2: internal division

Find the point dividing the join of A(1,2)A(1, 2) and B(7,8)B(7, 8) internally in the ratio 1:21 : 2.

(1⋅7+2⋅13,1⋅8+2⋅23)=(3,4)\left(\frac{1 \cdot 7 + 2 \cdot 1}{3}, \frac{1 \cdot 8 + 2 \cdot 2}{3}\right) = (3, 4)

Example 3: ratio from the axis

In what ratio does the x-axis divide the join of (2,−3)(2, -3) and (5,6)(5, 6)?

The ratio is −y1:y2=3:6=1:2-y_1 : y_2 = 3 : 6 = 1 : 2, internally. The point is (5+43,0)=(3,0)\left(\frac{5 + 4}{3}, 0\right) = (3, 0).

Example 4: area and collinearity

Find k if (1,2)(1, 2), (3,k)(3, k) and (5,6)(5, 6) are collinear.

Step 1: Set the area expression to 0: 1(k−6)+3(6−2)+5(2−k)=01(k - 6) + 3(6 - 2) + 5(2 - k) = 0.

Step 2: k−6+12+10−5k=0k - 6 + 12 + 10 - 5k = 0, so −4k+16=0-4k + 16 = 0 and k=4k = 4.

Check: (3,4)(3, 4) is the midpoint of (1,2)(1, 2) and (5,6)(5, 6) ✓.

Summary table

FormulaExpression
Distance(x2−x1)2+(y2−y1)2\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Internal divisionmx2+nx1m+n\frac{mx_2 + nx_1}{m + n} (same for y)
External divisionmx2−nx1m−n\frac{mx_2 - nx_1}{m - n} (same for y)
Area of triangle12∣x1(y2−y3)+…∣\frac{1}{2}\lvert x_1(y_2 - y_3) + \ldots\rvert
CollinearArea =0= 0

Exam tips

  • In the section formula, m multiplies the second point's coordinates.
  • For "ratio in which a line divides a segment", assume k:1k : 1, substitute, and solve for k.
  • Area questions often hide a collinearity condition; set the area to 0.
  • Always take the absolute value for area.

Next, study centroid, incentre, orthocentre and circumcentre, or see the NIMCET Coordinate Geometry and Vectors chapter.

Common mistakes

  • Swapping m and n in the section formula.
  • Forgetting the absolute value in the area formula and reporting a negative area.
  • Using the internal formula when the point lies outside the segment.
  • Concluding a quadrilateral is a square from equal sides alone; check the diagonals too.

Frequently Asked Questions

What is the distance formula?

The distance between (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²).

What is the section formula?

The point dividing the join of (x₁, y₁) and (x₂, y₂) internally in ratio m : n is ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)).

How do you check whether three points are collinear?

Find the area of the triangle they form. If the area is zero, the points are collinear.

In what ratio does the x-axis divide a line segment?

It divides the join of (x₁, y₁) and (x₂, y₂) in the ratio −y₁ : y₂.

How do you find the area of a triangle from its vertices?

Use ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|.

Concept Check

MEDIUM

Find the orthogonal trajectories of the family of parabolas y2=4axy^2 = 4ax.

Suggested for you