Section Formula Calculator - Directed Line Segments
Find the point that divides a directed line segment in a given ratio with internal or external section formula calculations.
Enter two endpoints and a ratio m:n to locate the division point instantly on a directed line segment.
Section Formula Calculator - Directed Line Segments
Find the point that divides a directed line segment in a given ratio with internal or external section formula calculations.
About the section formula calculator
The section formula is a coordinate geometry tool for finding the point that divides a line segment in a given ratio. If you know the endpoints A(x₁, y₁) and B(x₂, y₂), along with a ratio m:n, you can calculate the exact coordinates of the point P without drawing the graph to scale. This is especially helpful in analytic geometry, engineering diagrams, computer graphics, surveying, and physics problems where precision matters.
For internal division, the point lies between A and B. The coordinates are weighted averages of the endpoints: P = ((m·x₂ + n·x₁)/(m+n), (m·y₂ + n·y₁)/(m+n)). The weights reflect how strongly each endpoint influences the answer. If m and n are equal, the point is the midpoint. If one ratio part is larger, the point sits closer to the opposite endpoint because the larger weight pulls the average farther in that direction.
For external division, the point lies on the extension of the line beyond one endpoint. The formula changes sign: P = ((m·x₂ - n·x₁)/(m-n), (m·y₂ - n·y₁)/(m-n)). External division is less common in early coursework, but it is important in projective geometry, vector analysis, and constructions where a point lies outside the segment itself. One key restriction is that m and n cannot be equal in the external case, because that would make the denominator zero.
This section formula calculator lets you switch between internal and external division with the same coordinate inputs. You enter x₁, y₁, x₂, y₂, and the ratio parts m and n, then the tool computes P(x, y) instantly. Because the calculator uses direct numeric formulas, it works for positive coordinates, negative coordinates, and decimal coordinates just as well as it does for neat textbook integers.
Students often confuse the order of the ratio or which point receives which coefficient. A helpful rule is to match m with point B and n with point A in the standard internal formula shown here. Rather than memorizing isolated coordinate tricks, think of the section formula as a weighted position formula. It tells you where a point must lie based on how strongly each endpoint contributes. Use the calculator to check homework, verify graphing work, or speed up any geometry problem that involves directed line segments and ratios.
Section formula examples
Here are a few common internal and external division cases.
| Input | Result | Explanation |
|---|---|---|
| A(1, 2), B(7, 8), m:n = 1:2, internal | P = (3, 4) | Internal division places the point between A and B. The formula gives ((1·7 + 2·1)/3, (1·8 + 2·2)/3) = (3, 4). |
| A(0, 0), B(10, 0), m:n = 3:2, internal | P = (6, 0) | The point lies three-fifths of the way from A toward B, so only the x-coordinate changes. |
| A(1, 1), B(7, 4), m:n = 2:1, external | P = (13, 7) | External division extends past B. Using the external formula gives ((2·7 - 1·1)/(2-1), (2·4 - 1·1)/(2-1)) = (13, 7). |
How to use the section formula calculator
- Choose whether the point divides the segment internally or externally.
- Enter the coordinates of point A and point B, then enter the ratio parts m and n.
- Click Calculate Point to compute the coordinates of P using the matching section formula.
- Check the displayed point and formula summary to confirm whether the point lies between the endpoints or on the line extension.
Section formula FAQ
What is the difference between internal and external division?
Internal division places the point between A and B, while external division places the point outside the segment on the same straight line. The formulas differ by the sign in the numerator and denominator.
When does the section formula give the midpoint?
When m = n in internal division, the point is the midpoint. The formula reduces to ((x₁ + x₂)/2, (y₁ + y₂)/2).
Why can’t m and n be equal for external division?
Because the denominator becomes m - n. If those values are equal, the denominator is zero and the external section formula is undefined.
Can I use negative or decimal coordinates?
Yes. The formulas work with any real coordinates and ratio values, including negatives and decimals, as long as the denominator is not zero.
How should I interpret the ratio m:n?
The ratio describes how the point divides the directed segment from A to B. In the standard formula used here, m weights point B and n weights point A.