Find the point that divides a segment in a given ratio m:n
Reviewed by [email protected], Geometry Calculator Developer & Online Math Educator Last updated May 12, 2026
The section formula tells you the coordinates of a point that divides a line segment AB in a specific ratio m:n. Internal division places the point between A and B; external division places it outside the segment on the extension of AB. The midpoint formula is just the special case m = n = 1.
| Name | Formula | Notes |
|---|---|---|
| Internal Division (2D) | P = ((m·x₂ + n·x₁) / (m + n), (m·y₂ + n·y₁) / (m + n)) |
P divides A(x₁, y₁) → B(x₂, y₂) internally in ratio m:n. P lies between A and B. |
| External Division (2D) | P = ((m·x₂ − n·x₁) / (m − n), (m·y₂ − n·y₁) / (m − n)) |
P lies on extension of AB beyond B (or beyond A if m < n). m ≠ n. |
| Midpoint Formula | M = ((x₁ + x₂)/2, (y₁ + y₂)/2) |
Special case m = n = 1 of the internal section formula. |
| Centroid of Triangle | G = ((x₁+x₂+x₃)/3, (y₁+y₂+y₃)/3) |
The centroid divides each median in 2:1 ratio. Average of the three vertices. |
| Section Formula (3D) | P = ((mx₂+nx₁)/(m+n), (my₂+ny₁)/(m+n), (mz₂+nz₁)/(m+n)) |
Same logic in three dimensions — add the z-coordinate. |
| Ratio from Coordinates | k = AP / PB = (x − x₁) / (x₂ − x) |
Inverse: given the dividing point, find the ratio. Same formula works for y. |
Plug in your numbers and get instant step-by-step results.