Section Formula

Find a point that divides a line segment in a specific ratio, or use known division ratios to find missing endpoint coordinates.

P=(mx2+nx1m+n,;my2+ny1m+n)P = \left(\frac{mx_2 + nx_1}{m+n}, ; \frac{my_2 + ny_1}{m+n}\right)

Solve a problem with Section Formula

Type the problem. The solver will use Section Formula where Section Formula is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Section Formula takes
mm
nn
x1x_1
y1y_1
x2x_2
y2y_2
Section Formula
SymbolMeaning
mmThe first part of the dividing ratio m:nm:n — if you accidentally swap this with nn, the resulting point will be on the opposite side of the segment.
nnThe second part of the dividing ratio m:nm:n — if you treat this as a distance or position rather than a ratio component, your formula will produce nonsense.
x1x_1The x-coordinate (horizontal position) of the first endpoint of the segment; can be any real number, positive or negative.
y1y_1The y-coordinate (vertical position) of the first endpoint of the segment; can be any real number, positive or negative.
x2x_2The x-coordinate (horizontal position) of the second endpoint of the segment; can be any real number, positive or negative.
y2y_2The y-coordinate (vertical position) of the second endpoint of the segment; can be any real number, positive or negative.

When to use it

Use this when you need to locate a point that sits between two known points at a specific fractional distance.

Level

Usually taught in: Geometry

Worked examples

1. Dividing a segment with a simple integer ratio

Problem

A line segment connects A(2, 4) and B(8, 10). Find the point P that divides this segment in the ratio 1:2.
  1. Px=18+221+2P_x = \frac{1 \cdot 8 + 2 \cdot 2}{1+2}

    Substitute into the Section Formula with m=1m = 1, n=2n = 2, (x1,y1)=(2,4)(x_1, y_1) = (2, 4), (x2,y2)=(8,10)(x_2, y_2) = (8, 10).

  2. Px=8+43P_x = \frac{8 + 4}{3}

    Evaluate the products: 18=81 \cdot 8 = 8 and 22=42 \cdot 2 = 4, then add them.

  3. Px=123=4P_x = \frac{12}{3} = 4

    Simplify the fraction.

  4. Py=110+241+2=10+83=183=6P_y = \frac{1 \cdot 10 + 2 \cdot 4}{1+2} = \frac{10 + 8}{3} = \frac{18}{3} = 6

    Apply the same process to the y-coordinate: 110=101 \cdot 10 = 10, 24=82 \cdot 4 = 8, sum to 18, divide by 3.

Answer: P=(4,6)P = (4, 6)

This straightforward example uses small positive integers. The resulting point P(4, 6) should be closer to A(2, 4) since the ratio 1:2 means P is one-third of the way from A toward B. We can verify: moving from (2, 4) to (8, 10) is a distance of 6 units in each direction, so one-third of the way is (2 + 2, 4 + 2) = (4, 6), which checks out.

2. Dividing with negative coordinates and a larger ratio

Problem

Find point P that divides the line segment from A(-6, 3) to B(9, -3) in the ratio 2:1.
  1. Px=2(9)+1(6)2+1P_x = \frac{2(9) + 1(-6)}{2+1}

    Apply the Section Formula with m=2m = 2, n=1n = 1, (x1,y1)=(6,3)(x_1, y_1) = (-6, 3), (x2,y2)=(9,3)(x_2, y_2) = (9, -3).

  2. Px=18+(6)3P_x = \frac{18 + (-6)}{3}

    Evaluate the products: 29=182 \cdot 9 = 18 and 1(6)=61 \cdot (-6) = -6.

  3. Px=123=4P_x = \frac{12}{3} = 4

    Simplify: 186=1218 - 6 = 12, then divide by 3.

  4. Py=2(3)+1(3)2+1=6+33=33=1P_y = \frac{2(-3) + 1(3)}{2+1} = \frac{-6 + 3}{3} = \frac{-3}{3} = -1

    For y: 2(3)=62 \cdot (-3) = -6, 13=31 \cdot 3 = 3, sum to 3-3, divide by 3 to get 1-1.

Answer: P=(4,1)P = (4, -1)

Negative coordinates require careful arithmetic in the numerator. The ratio 2:1 means P sits two-thirds of the way from A toward B. Notice that we're adding 18 and -6 to get 12, not -12 — a common sign error. The final point (4, -1) is indeed closer to B(9, -3) than to A(-6, 3), confirming our ratio is correct.

3. Finding a real-world position on a basketball court

Problem

During a basketball game, a player's position moves along a straight path from (12, 8) to (88, 42) on the court. A camera captures the player at a point that divides this path in a 3:2 ratio. Find the coordinates where the camera focuses.
  1. Px=3(88)+2(12)3+2P_x = \frac{3(88) + 2(12)}{3+2}

    Apply the Section Formula with m=3m = 3, n=2n = 2, starting position (x1,y1)=(12,8)(x_1, y_1) = (12, 8), ending position (x2,y2)=(88,42)(x_2, y_2) = (88, 42).

  2. Px=264+245P_x = \frac{264 + 24}{5}

    Evaluate the products: 388=2643 \cdot 88 = 264 and 212=242 \cdot 12 = 24.

  3. Px=2885=57.6P_x = \frac{288}{5} = 57.6

    Add the numerator and divide by 5.

  4. Py=3(42)+2(8)3+2=126+165=1425=28.4P_y = \frac{3(42) + 2(8)}{3+2} = \frac{126 + 16}{5} = \frac{142}{5} = 28.4

    For y: 342=1263 \cdot 42 = 126, 28=162 \cdot 8 = 16, sum to 142, divide by 5 to get 28.4.

Answer: P=(2885,1425) or (57.6,28.4)P = \left(\frac{288}{5}, \frac{142}{5}\right) \text{ or } (57.6, 28.4)

Real-world scenarios often yield decimal or fractional answers. The 3:2 ratio means the player is three-fifths of the way along the path when captured. Traveling from (12, 8) to (88, 42), the player reaches this point after covering 60% of the horizontal and vertical distances, which matches our calculated position on the court.

Common mistakes

Where Section Formula usually goes wrong
Answer came out wrong
Writing mx1+nx2m+n\frac{mx_1 + nx_2}{m+n} instead of mx2+nx1m+n\frac{mx_2 + nx_1}{m+n} for the x-coordinate.
Remember: mm multiplies (x2,y2)(x_2, y_2) (the second endpoint) and nn multiplies (x1,y1)(x_1, y_1) (the first endpoint).
Calculating the numerator mx2+nx1mx_2 + nx_1 but forgetting to divide by m+nm + n, giving the answer as mx2+nx1mx_2 + nx_1 instead.
Always divide BOTH numerator AND denominator by m+nm+n — this normalizes the weighted sum into a single point coordinate.
Reversing the ratio: given 'P divides AB in ratio 2:1', using m=1m = 1 and n=2n = 2 instead of m=2m = 2 and n=1n = 1.
Write out explicitly 'PP divides ABAB in ratio m:nm:n with m=2,n=1m = 2, n = 1' before substituting, and double-check which endpoint gets which weight.
The mistakeWhy it is wrongThe fix
Writing mx1+nx2m+n\frac{mx_1 + nx_2}{m+n} instead of mx2+nx1m+n\frac{mx_2 + nx_1}{m+n} for the x-coordinate.It is tempting to match the first mm with the first point and first nn with the second, but the formula pairs mm with the SECOND point's coordinates.Remember: mm multiplies (x2,y2)(x_2, y_2) (the second endpoint) and nn multiplies (x1,y1)(x_1, y_1) (the first endpoint).
Calculating the numerator mx2+nx1mx_2 + nx_1 but forgetting to divide by m+nm + n, giving the answer as mx2+nx1mx_2 + nx_1 instead.After adding the weighted coordinates, it is easy to forget the final step of dividing by the total ratio.Always divide BOTH numerator AND denominator by m+nm+n — this normalizes the weighted sum into a single point coordinate.
Reversing the ratio: given 'P divides AB in ratio 2:1', using m=1m = 1 and n=2n = 2 instead of m=2m = 2 and n=1n = 1.Reading the problem quickly, it is easy to flip the order of the ratio or forget which point corresponds to which part.Write out explicitly 'PP divides ABAB in ratio m:nm:n with m=2,n=1m = 2, n = 1' before substituting, and double-check which endpoint gets which weight.

Tips and when to use something else

  • The Section Formula is a weighted average: each endpoint contributes to P's position in proportion to its ratio weight.
  • If the ratio is 1:1, you get the Midpoint Formula — the special case where the point sits exactly halfway between the two endpoints.
  • Use this formula when you know both endpoints and the dividing ratio; or use inverse reasoning if you know three of the four endpoint coordinates and the ratio, and solve for the missing coordinate.
  • Do not confuse this with the Midpoint Formula (which finds the 1:1 point), the Distance Formula (which measures how far apart points are), or the Slope Formula (which finds the steepness of a line).

Frequently asked questions

What does the ratio m:nm:n actually mean in the Section Formula?
If P divides a segment in ratio m:nm:n, then P is mm parts away from the first endpoint and nn parts away from the second, out of a total of m+nm+n parts. So a ratio of 2:1 means P sits two-thirds of the way from the first point to the second, since 22+1=23\frac{2}{2+1} = \frac{2}{3}.
Can the ratio be something other than whole numbers?
Yes, mm and nn can be any positive real numbers: fractions, decimals, or even surds. The formula works exactly the same way. For example, a ratio of 12:32\frac{1}{2}:\frac{3}{2} is perfectly valid and divides the segment in those proportions.
What if I need to find a point that divides a segment externally (outside the segment)?
External division uses a similar formula but with one of the ratio values made negative, such as m:nm:-n. The Section Formula still applies, but the resulting point P will lie on the line but outside the segment between the two endpoints. This requires careful attention to the sign and the interpretation of the ratio.
How do I decide which point should be (x1,y1)(x_1, y_1) and which should be (x2,y2)(x_2, y_2)?
You can assign them either way, but you must be consistent: if you call one point (x1,y1)(x_1, y_1), then nn determines how far P is from that point. Swapping the endpoints swaps the meaning of the ratio, so choose one assignment at the start and stick with it. The problem statement often makes this clear by saying 'from A to B' or 'starting at A'.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18