Section Formula: Internal and External Division With Examples

#Section Formula
TL;DR
The section formula gives the coordinates of the point that divides a segment from A to B in a ratio m : n, either between A and B or beyond them. Six worked examples cover both cases.
Ruchi Shah·reviewed byMadhukar VLast updated on December 2, 202614 min read

Key Points

  • Internal division puts the point P between A and B; external division puts it on line AB, beyond one end.
  • The weight m goes with the far endpoint B, so a bigger m pulls P closer to B.
  • Internal and external division differ only in one sign: plus with m + n, or minus with m − n.
  • The ratio 1 : 1 gives the midpoint, and 2 : 1 along a median gives the centroid of a triangle.

How Do You Find a Point That Splits a Fence Post Line in a Fixed Ratio?

A surveyor marking a point two-thirds along a boundary needs no tape, just one formula. Given the two endpoints and the ratio, the dividing point is fixed.

  • A valve must sit one-third of the way along a straight pipe from a pump at (0, 0) to a tank at (12, 9).
  • One-third of the run is 4 and one-third of the rise is 3, so the valve goes at (4, 3).
  • "One-third of the way" means the two pieces are in the ratio 1 : 2. The section formula packages this for any ratio and any two points.
internal division puts the point between A and B, external division puts it beyond B, both with AP to PB equal to 2 to 1
Two grid panels for A(1, 2) and B(4, 6) with ratio 2 : 1. Left, internal: P(3, 14/3) between A and B, with AP = 3.33 and PB = 1.67. Right, external: P(7, 10) beyond B, with AP = 10 and PB = 5.

What Is the Section Formula?

The section formula gives the point P that divides the segment from A(x1,y1)A(x_1, y_1) to B(x2,y2)B(x_2, y_2) so that AP:PB=m:nAP : PB = m : n. It rests on a coordinate geometry fact: a ratio along a segment becomes the same ratio of coordinate differences.

Symbol Meaning
x1,y1x_1, y_1 Coordinates of the first endpoint A
x2,y2x_2, y_2 Coordinates of the second endpoint B
m:nm : n The ratio AP:PBAP : PB
P(x,y)P(x, y) The dividing point being found
  • Read the ratio from A towards B and keep that order: m:nm : n is not n:mn : m.
  • mm describes the piece next to A, yet it multiplies B's coordinates. The next sections show why.

What Is the Internal Section Formula?

For internal division, P lies between A and B:

P(x,y)=(mx2+nx1m+n, my2+ny1m+n)P(x, y) = \left( \frac{m x_2 + n x_1}{m + n},\ \frac{m y_2 + n y_1}{m + n} \right)
  • The plus signs and the m+nm + n denominator are the mark of internal division.
  • Each coordinate is a weighted average of the endpoints. Both weights are positive, so P always lands between them.
  • Why does mm multiply x2x_2? Because mm measures AP, the stretch towards B, so it pulls P towards B's coordinate. The bigger mm is, the closer P sits to B.

The internal division page has more practice on the grid.

What Is the External Section Formula?

For external division, P lies on the line through A and B but outside the segment:

P(x,y)=(mx2−nx1m−n, my2−ny1m−n)P(x, y) = \left( \frac{m x_2 - n x_1}{m - n},\ \frac{m y_2 - n y_1}{m - n} \right)
  • The only change is the sign: subtraction replaces addition, and the denominator becomes m−nm - n.
  • Think of it as internal division in the ratio m:(−n)m : (-n); the piece PB now points backwards.
  • If m>nm > n, P lies beyond B. If m<nm < n, P lies beyond A.
  • If m=nm = n, the denominator is 0: no point outside a segment is equally far from both ends.
an external ratio with the larger part first lands beyond B, and with the smaller part first lands beyond A
The line through A(1, 2) and B(4, 6) on a grid. The orange external point for 2 : 1 is (7, 10), beyond B; the purple external point for 1 : 3 is (−1/2, 0), beyond A.

The external division page covers the sign rule in full.

How Is the Midpoint a Special Case?

Set m=n=1m = n = 1 in the internal formula and it becomes the midpoint formula:

P=(x1+x22, y1+y22)P = \left( \frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2} \right)
  • The midpoint is not a separate rule; it is the section formula at its most balanced ratio. For A(−3, 5) and B(7, −1) it is (2, 2).
  • The centroid of a triangle divides each median (vertex to opposite midpoint) in the ratio 2 : 1.
  • Apply the formula to vertex A(x1,y1)A(x_1, y_1) and the midpoint of the opposite side, and the centroid comes out as (x1+x2+x33,y1+y2+y33)\left(\frac{x_1 + x_2 + x_3}{3}, \frac{y_1 + y_2 + y_3}{3}\right), the average of the vertices.
the centroid G(4, 4) divides every median in the ratio 2 to 1
Triangle A(1, 1), B(7, 3), C(4, 8) with its three medians in orange, green and purple meeting at G(4, 4), the 2 : 1 point of each.

How Is the Section Formula Derived?

Two independent pictures give the same formula.

Way 1: similar triangles

Draw the right triangle from A across and up to P, and the one from P to B. Both slanted sides lie on one line, so the triangles are similar, and their runs are in the ratio m:nm : n.

  1. x−x1x2−x=mn\frac{x - x_1}{x_2 - x} = \frac{m}{n}.
  2. Cross-multiply: n(x−x1)=m(x2−x)n(x - x_1) = m(x_2 - x).
  3. Collect the x terms: nx+mx=mx2+nx1nx + mx = m x_2 + n x_1.
  4. Divide: x=mx2+nx1m+nx = \frac{m x_2 + n x_1}{m + n}. The rises give y the same way.
the two similar triangles have runs and rises in the ratio 2 to 1, which gives the section formula
A(1, 2), P(3, 14/3) and B(4, 6) on one line, with a green right triangle of run 2 and rise 8/3 from A to P and an orange one of run 1 and rise 4/3 from P to B.

Run the same argument with P beyond B and the near-side sign flips, giving the m−nm - n denominator.

Way 2: the balance point

Put a weight nn at A and a weight mm at B on a light beam. It balances where n×AP=m×PBn \times AP = m \times PB, which is exactly AP:PB=m:nAP : PB = m : n.

  • The balance point is the weighted average P=nA+mBm+nP = \frac{nA + mB}{m + n}: the section formula.
  • It explains the pairing: a beam balances nearer its heavier end, and the weight mm sits at B.
  • Archimedes worked out this balance rule in On Plane Equilibriums, in the third century BCE.
a beam with weights 1 and 2 balances at the point dividing it in the ratio 2 to 1
A blue beam with a weight of 1 at A and a weight of 2 at B, resting on a purple pivot P. Arrows show AP = 16/3 and PB = 8/3, so the pivot sits twice as far from the light end.

In the coordinate lab the purple dot M marks the 1 : 1 point. Try the "Opposite quadrants" preset, A(−4, 3) and B(2, −3): the run is 6 and the rise is −6.

  • The 2 : 1 point is two-thirds of the way: (−4+4, 3−4)=(0,−1)(-4 + 4,\ 3 - 4) = (0, -1).
  • The 1 : 2 point is one-third of the way: (−2,1)(-2, 1). Both sit either side of M at (−1,0)(-1, 0).

Try It Yourself

Use the coordinate lab to see Section Formula at work: drag, change the numbers and watch what happens.

Examples of Section Formula

The examples cover internal, external, finding a ratio and splitting into three.

Example 1

Find the point dividing A(1, 2) and B(4, 6) internally in the ratio 2 : 1.

  1. Here m=2m = 2 and n=1n = 1.
  2. x=2(4)+1(1)3=3x = \frac{2(4) + 1(1)}{3} = 3.
  3. y=2(6)+1(2)3=143y = \frac{2(6) + 1(2)}{3} = \frac{14}{3}.
  4. Check: AB=5AB = 5, AP=103AP = \frac{10}{3} and PB=53PB = \frac{5}{3}, in the ratio 2 : 1.

Final answer: (3,143)\left(3, \frac{14}{3}\right).

Example 2

P divides A(2, 3) and B(6, 7) internally in the ratio 3 : 1. A student writes x=3(2)+1(6)4x = \frac{3(2) + 1(6)}{4}. Is that right?

  1. The student paired the first ratio number with the first point. That gives (3,4)(3, 4), which sits near A.
  2. But 3 : 1 says AP is three times PB, so P must sit near B. The weights are on the wrong ends.
  3. Correct: x=3(6)+1(2)4=5x = \frac{3(6) + 1(2)}{4} = 5 and y=3(7)+1(3)4=6y = \frac{3(7) + 1(3)}{4} = 6.

Final answer: (5,6)(5, 6), three parts from A and one from B.

pairing m with B gives (5, 6) near B, while swapping the weights wrongly gives (3, 4) near A
The segment from A(2, 3) to B(6, 7) with a green tick at (5, 6), three parts from A and one from B, and an orange cross at (3, 4), labelled weights swapped.

Example 3

Find the point dividing A(1, 2) and B(4, 6) externally in the ratio 2 : 1.

  1. x=2(4)−1(1)2−1=7x = \frac{2(4) - 1(1)}{2 - 1} = 7.
  2. y=2(6)−1(2)2−1=10y = \frac{2(6) - 1(2)}{2 - 1} = 10.
  3. Check: AP=62+82=10AP = \sqrt{6^2 + 8^2} = 10 and PB=32+42=5PB = \sqrt{3^2 + 4^2} = 5, in the ratio 2 : 1.

Final answer: (7,10)(7, 10), beyond B.

Example 4

Find the point dividing A(1, 2) and B(4, 6) externally in the ratio 1 : 3.

  1. x=1(4)−3(1)1−3=−12x = \frac{1(4) - 3(1)}{1 - 3} = -\frac{1}{2}.
  2. y=1(6)−3(2)1−3=0y = \frac{1(6) - 3(2)}{1 - 3} = 0.
  3. The first part is smaller, so P lands beyond A: AP=2.5AP = 2.5 and PB=7.5PB = 7.5.

Final answer: (−12,0)\left(-\frac{1}{2}, 0\right).

Example 5

In what ratio does the x-axis divide the segment from A(2, −3) to B(5, 6), and where does it cross?

  1. Let the ratio be k:1k : 1. Points on the x-axis have y=0y = 0, so 6k−3k+1=0\frac{6k - 3}{k + 1} = 0.
  2. 6k−3=06k - 3 = 0, so k=12k = \frac{1}{2}: the ratio 12:1\frac{1}{2} : 1, which is 1 : 2.
  3. x=1(5)+2(2)3=3x = \frac{1(5) + 2(2)}{3} = 3, so the crossing is (3,0)(3, 0).
  4. Check: AP=10AP = \sqrt{10} and PB=210PB = 2\sqrt{10}.

Final answer: 1 : 2, at (3,0)(3, 0).

the x-axis divides the segment in the ratio 1 to 2 at the point (3, 0)
The segment from A(2, −3) to B(5, 6) crossing the x-axis at P(3, 0), with AP marked √10 in green and PB marked 2√10 in orange.

Example 6

Find the two points that trisect the segment from A(−3, 6) to B(6, −3).

  1. The trisection points divide AB in the ratios 1 : 2 and 2 : 1.
  2. 1 : 2 gives (6−63,−3+123)=(0,3)\left(\frac{6 - 6}{3}, \frac{-3 + 12}{3}\right) = (0, 3).
  3. 2 : 1 gives (12−33,−6+63)=(3,0)\left(\frac{12 - 3}{3}, \frac{-6 + 6}{3}\right) = (3, 0).

Final answer: (0,3)(0, 3) and (3,0)(3, 0).

Why Does the Section Formula Matter?

"Two engineers, one boundary, no agreement on the split." Dividing a segment in a set ratio is a routine need, and doing it by eye invites disagreement.

  • Surveying and construction. Markers at fixed fractions along a boundary or pipe come straight from the formula, like the valve at (4, 3).
  • Animation. In-between frames are section points: a quarter of the way is 1 : 3, halfway 1 : 1, three-quarters 3 : 1.
  • Balance and centres of mass. Engineers find the balance point of loads on a beam, or of a triangular plate, with this weighted average.
  • The centroid. The same formula that splits a fence line finds a triangle's balance point, the 2 : 1 point of every median.
the in-between frames of an animation divide the path in the ratios 1 to 3, 1 to 1 and 3 to 1
A ball moving from S to E drawn as five circles: solid at S and E, dashed in between at t = 1/4, 1/2 and 3/4, labelled with the ratios 1 : 3, 1 : 1 and 3 : 1.

What Are the Most Common Mistakes With the Section Formula?

Four errors account for most wrong answers.

Mistake 1: Pairing the ratio weights with the wrong endpoints

Where it slips in: Setting up either formula from AP:PB=m:nAP : PB = m : n.

Don't do this: Multiply mm by A's coordinates.

The correct way: mm goes with B. Picture the balance: the bigger weight sits at the end P is closer to. A student who pairs "first number with first point" lands on the wrong side every time.

Mistake 2: Using the internal formula for external division

Where it slips in: A problem says "externally", or the point lies beyond an endpoint.

Don't do this: Keep the plus signs and the m+nm + n denominator.

The correct way: Switch to subtraction and m−nm - n, then check the side: beyond B when m>nm > n, beyond A when m<nm < n.

Mistake 3: Reversing the ratio order

Where it slips in: Reading m:nm : n off a diagram.

Don't do this: Write n:mn : m because you measured from B towards A.

The correct way: Fix one direction, A towards B, and keep it. Flipping 2 : 1 to 1 : 2 lands on a different point.

Mistake 4: Leaving a ratio as a single number

Where it slips in: Solving for kk in "k:1k : 1" problems, as in Example 5.

Don't do this: Stop at k=12k = \frac{1}{2}.

The correct way: Write 12:1\frac{1}{2} : 1 and clear it to 1 : 2. A negative kk is a signal too: the point is external.

Conclusion

  • The section formula finds the point dividing segment AB in the ratio m:nm : n.
  • Internal division uses plus signs and m+nm + n; external division uses minus signs and m−nm - n.
  • mm pairs with the far endpoint B, as both similar triangles and the balance point show.
  • 1:11 : 1 gives the midpoint, and 2:12 : 1 along a median gives the centroid.

A Practical Next Step

Practise these, then check each with distances:

  1. Divide (−2, 1) and (8, 6) internally in the ratio 3 : 2.
  2. Divide (2, 1) and (5, 4) externally in the ratio 2 : 1.
  3. In what ratio does the y-axis divide the segment from (−4, 2) to (2, 5)?

Answer to Question 1: (4, 4). Answer to Question 2: (8, 7). Answer to Question 3: 2 : 1, at (0, 4). If Question 3 came out upside down, go back to Mistake 1.

To practise with a teacher, explore Bhanzu's geometry tutor sessions, or book a free demo class to watch a Bhanzu trainer derive both formulas from one diagram.

Read More

Research Behind This Article

  1. OpenStax, College Algebra 2e, Section 2.1: The Rectangular Coordinate Systems and Graphs (the midpoint formula). openstax.org
  2. OpenStax, University Physics Volume 1, Section 9.6: Center of Mass (the balance point as a weighted average of positions). openstax.org
  3. J. J. O'Connor and E. F. Robertson, Archimedes of Syracuse, MacTutor History of Mathematics, University of St Andrews (On Plane Equilibriums). mathshistory.st-andrews.ac.uk
  4. Euclid, Elements, Book VI, Proposition 10 (cutting a straight line in a given ratio), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the section formula in coordinate geometry?
It gives the point dividing the segment from (x1,y1)(x_1, y_1) to (x2,y2)(x_2, y_2) in the ratio m:nm : n. Internally it is (mx2+nx1m+n,my2+ny1m+n)\left(\frac{m x_2 + n x_1}{m + n}, \frac{m y_2 + n y_1}{m + n}\right); externally the plus signs become minus signs.
What is the difference between the distance formula and the section formula?
The distance formula returns a length between two points; the section formula returns the coordinates of a point between (or beyond) them.
Can the ratio in external division be 1 : 1?
No. The denominator m−nm - n would be 0.
How do I know whether a division is internal or external?
If the point lies between the endpoints, it is internal. If solving for k:1k : 1 gives a negative kk, the point is outside, so the division is external.
Does the section formula work in three dimensions?
Yes. Add a third coordinate: z=mz2+nz1m+nz = \frac{m z_2 + n z_1}{m + n} for internal division.
✍️ Written By
Ruchi Shah
Ruchi Shah
Subject Matter Expert
Ruchi Shah is a mathematics educator and curriculum designer with over 12 years of experience. She joined Bhanzu in 2022 as a full-time Mathematics Trainer, teaching live classes and working with students and parents. She has since moved into curriculum design where she builds curricula, academic planners and learning pathways for different grade levels.
LinkedIn
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →