Section formula

Two points, a straight segment joining them, and a ratio — that's all it takes to pinpoint any dividing point without ever sketching the line. The section formula turns "find the point that splits PQPQ in ratio m1:m2m_1:m_2" from a drawing problem into a two-line calculation, and its special case — the midpoint formula — is one of the most-used tools in coordinate geometry, showing up whenever a diagonal, a median, or a bisected segment needs its middle point. This article builds the formula from similar triangles, works it forward (find the dividing point) and backward (find a missing endpoint from a known midpoint), and flags the ratio-order mistake that costs the most marks.

The core insight

A point dividing PQPQ in ratio m1:m2m_1:m_2 has coordinates (m1x2+m2x1m1+m2,m1y2+m2y1m1+m2)\left(\dfrac{m_1x_2+m_2x_1}{m_1+m_2},\dfrac{m_1y_2+m_2y_1}{m_1+m_2}\right), and setting m1=m2m_1=m_2 collapses this to the midpoint formula.

The core idea

Let P(x1,y1)P(x_1,y_1) and Q(x2,y2)Q(x_2,y_2) be two fixed points, and let R(x,y)R(x,y) lie on segment PQPQ, dividing it internally so that PR:RQ=m1:m2PR:RQ = m_1:m_2, measured starting from PP and moving toward QQ. The section formula gives RR's coordinates directly, without drawing anything:

R(x,y)=(m1x2+m2x1m1+m2, m1y2+m2y1m1+m2)R(x,y) = \left(\frac{m_1x_2+m_2x_1}{m_1+m_2},\ \frac{m_1y_2+m_2y_1}{m_1+m_2}\right)

where: (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) are the given endpoints, m1:m2m_1:m_2 is the ratio in which RR divides PQPQ (from PP toward QQ), and (x,y)(x,y) are the coordinates of RR.

Why xx and yy split apart cleanly. Drop perpendiculars from PP, RR, QQ down to the xx-axis. Because all three perpendiculars are parallel, the two small triangles formed (one on each side of RR) are similar by the AA criterion — matching angles come from the parallel drops and the shared line PQPQ. That similarity is what lets the ratio m1:m2m_1:m_2 act on the xx-coordinates and the yy-coordinates completely independently: you can compute xx first and yy second in either order, and an arithmetic slip in one never touches the other.

Figure
A segment from point P to point Q with point R marked closer to Q, dashed perpendiculars dropping from P R and Q to a horizontal axis showing the similar triangles that split the ratio between x and y coordinates
Similar triangles behind the section formula x-axis P(x1,y1) Q(x2,y2) R(x,y) divides PQ in m1:m2 x1 x x2 m1 m2

Midpoint as a special case. When RR is exactly halfway, PR:RQ=1:1PR:RQ = 1:1, so m1=m2m_1=m_2. Substituting m1=m2=1m_1=m_2=1 collapses the section formula to

Midpoint=(x1+x22, y1+y22)\text{Midpoint} = \left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right)

the plain average of the two xx-coordinates and the two yy-coordinates. It is worth memorising separately, since it appears constantly — finding the midpoint of a diagonal, or using the fact that a parallelogram's diagonals bisect each other to locate a missing vertex. A quick sanity check before trusting any answer: if m1m_1 is much larger than m2m_2, RR should sit close to QQ (the far point); if m1m_1 is much smaller than m2m_2, RR should sit close to PP. Running this mentally after computing R(x,y)R(x,y) catches a swapped ratio before it costs marks. This formula also quietly extends any "find a point" question into a small toolkit. A ratio can be handed to you directly (m1:m2m_1:m_2 stated outright), or disguised as a fraction of the whole segment (e.g. "RR is 29\tfrac{2}{9} of the way from PP to QQ", which converts to a ratio before you touch the formula), or reversed into "given the dividing point and one endpoint, find the other endpoint" — the same equations, just solved for a different unknown. Recognising which of these three shapes a question takes is often the real skill being tested, not the substitution itself.

Derivation ASection formula from similar triangles

The goal is to show that the ratio m1:m2m_1:m_2 in which R divides segment PQ applies separately and identically to the x-coordinates and the y-coordinates of P, Q and R, which is exactly the claim the section formula packages into one pair of fractions.

Step 1. Set up the picture. Let P(x1,y1)P(x_1,y_1), Q(x2,y2)Q(x_2,y_2) and R(x,y)R(x,y) lie on one straight line with RR between PP and QQ, dividing it so PR:RQ=m1:m2PR:RQ = m_1:m_2. Drop perpendiculars from PP, RR and QQ onto the xx-axis, landing at x1x_1, xx and x2x_2 respectively. These three perpendiculars are mutually parallel (all vertical).

Step 2. Identify the similar triangles. Because PR:RQ=m1:m2PR:RQ = m_1:m_2 along the line, and the perpendiculars are parallel, the small right triangle sitting under segment PRPR is similar to the small right triangle sitting under segment RQRQ, by the AA criterion — the perpendiculars give matching right angles, and the line PQPQ gives matching angles at PP and QQ's side of the construction.

Step 3. Read off the horizontal ratio. Similar triangles mean corresponding sides are in the same ratio, so the horizontal leg under PRPR (length x−x1x-x_1) compares to the horizontal leg under RQRQ (length x2−xx_2-x) exactly as m1m_1 compares to m2m_2: (x−x1):(x2−x)=m1:m2(x-x_1):(x_2-x) = m_1:m_2. Cross-multiplying, m2(x−x1)=m1(x2−x)m_2(x-x_1) = m_1(x_2-x), so m2x−m2x1=m1x2−m1xm_2x - m_2x_1 = m_1x_2 - m_1x, giving x(m1+m2)=m1x2+m2x1x(m_1+m_2) = m_1x_2+m_2x_1, hence x=m1x2+m2x1m1+m2x = \dfrac{m_1x_2+m_2x_1}{m_1+m_2}.

Step 4. Repeat for yy. The identical similar-triangle argument, now dropping perpendiculars onto the yy-axis instead, gives y=m1y2+m2y1m1+m2y = \dfrac{m_1y_2+m_2y_1}{m_1+m_2} by the same algebra with yy in place of xx. Combining Steps 3 and 4 gives the full section formula, and setting m1=m2m_1=m_2 immediately reduces it to the midpoint formula. Verified: substituting m1=m2=1m_1=m_2=1 into x=(m1x2+m2x1)/(m1+m2)x=(m_1x_2+m_2x_1)/(m_1+m_2) gives x=(x1+x2)/2x=(x_1+x_2)/2, matching the midpoint formula exactly.

Worked example

Find the coordinates of the point which divides the line segment joining A(4,−1)A(4,-1) and B(−2,8)B(-2,8) internally in the ratio 2:12:1, and check the answer using the midpoint idea.

Step 1. Identify the values: (x1,y1)=(4,−1)(x_1,y_1)=(4,-1), (x2,y2)=(−2,8)(x_2,y_2)=(-2,8), m1=2m_1=2, m2=1m_2=1.

Step 2. Apply the section formula for xx: x=m1x2+m2x1m1+m2=2(−2)+1(4)2+1=−4+43=0x = \dfrac{m_1x_2+m_2x_1}{m_1+m_2} = \dfrac{2(-2)+1(4)}{2+1} = \dfrac{-4+4}{3} = 0.

Step 3. Apply the section formula for yy: y=m1y2+m2y1m1+m2=2(8)+1(−1)2+1=16−13=5y = \dfrac{m_1y_2+m_2y_1}{m_1+m_2} = \dfrac{2(8)+1(-1)}{2+1} = \dfrac{16-1}{3} = 5. So the required point is (0,5)(0,5).

Step 4. Sanity-check with the reverse question: if C(1,−2)C(1,-2) has midpoint M(3,4)M(3,4) with an unknown second point D(x,y)D(x,y), the midpoint formula gives 3=1+x23=\dfrac{1+x}{2} so x=5x=5, and 4=−2+y24=\dfrac{-2+y}{2} so y=10y=10; hence D=(5,10)D=(5,10). Checking, the midpoint of C(1,−2)C(1,-2) and D(5,10)D(5,10) is (1+52,−2+102)=(3,4)\left(\dfrac{1+5}{2},\dfrac{-2+10}{2}\right)=(3,4), which matches MM. Both results confirm the same formula working forward, (0,5)(0,5), and backward, D=(5,10)D=(5,10).

Competitive stretch

A point RR divides the segment joining P(−3,10)P(-3, 10) and Q(6,−8)Q(6, -8) such that PR=29PQPR = \frac{2}{9}PQ. Find RR.

Step 1. Convert the fractional statement into a ratio. If PR=29PQPR = \frac{2}{9}PQ, then RQ=PQ−PR=79PQRQ = PQ - PR = \frac{7}{9}PQ, so PR:RQ=29:79=2:7PR:RQ = \frac{2}{9}:\frac{7}{9} = 2:7. This means m1=2m_1=2, m2=7m_2=7.

Step 2. Apply the section formula for xx: x=2(6)+7(−3)2+7=12−219=−99=−1x = \dfrac{2(6)+7(-3)}{2+7} = \dfrac{12-21}{9} = \dfrac{-9}{9} = -1.

Step 3. Apply the section formula for yy: y=2(−8)+7(10)2+7=−16+709=549=6y = \dfrac{2(-8)+7(10)}{2+7} = \dfrac{-16+70}{9} = \dfrac{54}{9} = 6. So R=(−1,6)R = (-1, 6). The extra step here is entirely in reading "PR=29PQPR = \frac{2}{9}PQ" correctly into a ratio m1:m2m_1:m_2 before ever touching the formula — the formula itself works exactly as before.

Common traps

  • Mixing up the order of the ratio. For ratio m1:m2m_1:m_2, m1m_1 multiplies x2x_2 (the second point) and m2m_2 multiplies x1x_1 (the first point). Swapping them gives a different, wrong point.
  • Forgetting which point is PP and which is QQ. The ratio m1:m2m_1:m_2 means PR:RQPR:RQ starting from the first named point; relabelling the two given points changes the answer.
  • Treating the midpoint formula as a separate rule. It is just the section formula with m1=m2=1m_1=m_2=1 — no need to memorise it independently, though it is worth knowing by heart for speed.
  • Sign errors with negative coordinates. Track signs carefully inside the numerator before dividing by m1+m2m_1+m_2; a dropped negative sign is the single most common slip.

Ask the tutor: If you're unsure which point should be m1m_1 and which should be m2m_2, or want another ratio worked through step by step, ask the AI tutor.

Why does m1 multiply x2 and not x1 — isn't that backwards?

It feels backwards at first, but it comes straight out of the similar-triangles derivation: the leg near PP has length proportional to m1m_1 and sits on the far side of the fraction from x1x_1. A quick way to remember it without re-deriving: the point closer to QQ should end up with xx closer to x2x_2, which happens when m1m_1 (the part nearer QQ's side of the ratio) is large — and m1m_1 large makes m1x2m_1x_2 dominate the numerator. Trust the formula over intuition on this one.

Do I need to remember the midpoint formula separately from the section formula?

No — but it helps to know it instantly since it appears so often. It is exactly the section formula with m1=m2=1m_1=m_2=1, so if you ever forget the midpoint formula mid-exam, just plug m1=m2=1m_1=m_2=1 into the section formula and simplify; you'll get (x1+x22,y1+y22)\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right) in one line.

How do I know if a question wants the section formula or the distance formula?

Look at what's being asked for. If the question wants a length — how far apart two points are, or the perimeter of a figure — that's the distance formula. If it wants the coordinates of a point that splits a segment in some ratio, or a midpoint, or an unknown endpoint given a midpoint, that's the section formula (or its midpoint special case). Distance answers "how far"; section formula answers "where exactly."

Before this

Where this leads