Ratios of Directed Line Segments Calculator

Ratios of Directed Line Segments Calculator

Find a point that divides a directed segment in a given ratio, calculate AP:PB from coordinates, or generate every equal partition point on a segment.

Directed segment ratios in coordinate geometry

A directed line segment keeps track of direction from point A to point B. If point P divides AB, the ratio AP:PB can be internal, external, or endpoint-based depending on where P lies.

Use this calculator to find the coordinates of a point P from a ratio m:n, enter A, B, and P to find the directed ratio, or split AB into equal parts. The result includes the graph, section formula, parameter value, distances, and step-by-step work.

A ratios of directed line segments calculator divides a line segment into a specified ratio. It finds the coordinates of a point between or beyond two endpoints using the section formula. For points A(x1, y1) and B(x2, y2), the calculator applies m:n ratios to determine the exact coordinates.

For internal division, P lies between A and B. For external division, P lies on the same line but outside the segment, so one directed part of the ratio is negative when interpreted with direction.

Choose whether to solve for one point, one ratio, or all equal partitions.

Used when finding P from m:n.

Controls rounded output.

x1 for endpoint A.

y1 for endpoint A.

x2 for endpoint B.

y2 for endpoint B.

The AP part of AP:PB = m:n.

The PB part of AP:PB = m:n.

Internal formula

P = (nA + mB) / (m + n)

External formula

P = (mB - nA) / (m - n)

Parameter form

P = A + t(B - A)

How to use the ratios of directed line segments calculator

  1. Choose the calculation type: Find point P from a ratio, find the directed ratio from an existing point P, or generate all equal partition points.
  2. Enter endpoints A and B: Type the x- and y-coordinates for the directed segment from A to B.
  3. Enter the ratio, point, or section count: For point mode, enter m:n and choose internal or external division. For ratio mode, enter the coordinates of P. For equal sections, choose how many same-length pieces AB should be split into.
  4. Calculate: The result shows P, AP:PB, parameter t, distances, position type, or a full table of generated partition coordinates.
  5. Check the graph: A, B, and each calculated point are plotted so you can see whether a point is inside, outside, or evenly spaced on the segment.

Equal partition mode for midpoint, trisection, and n-section problems

Many coordinate geometry problems ask for more than one point. Instead of calculating each ratio separately, equal partition mode lists every interior point that splits AB into k same-length sections. This is useful for midpoint checks, trisection points, quarter points, map interpolation, and graphing worksheet problems.

2 sections

The calculator returns one point, the midpoint. Its parameter is t = 1/2 and its directed ratio is 1:1.

3 sections

The calculator returns two trisection points. Their ratios are AP1:P1B = 1:2 and AP2:P2B = 2:1.

k sections

For point Pi, the formula is Pi = A + (i / k)(B - A), and the directed ratio is i:(k - i).

Directed line segment formulas

If P divides directed segment AB in the ratio AP:PB = m:n, the coordinates of P are a weighted average of A and B for internal division. For external division, the point lies outside the segment and the denominator changes to m - n.

Internal: P = ((n x1 + m x2) / (m + n), (n y1 + m y2) / (m + n))

External: P = ((m x2 - n x1) / (m - n), (m y2 - n y1) / (m - n))

Parameter: P = A + t(B - A)

The parameter t is useful because it tells where P sits relative to the directed segment. If 0 < t < 1, P is between A and B. If t < 0 or t > 1, P is outside the segment.

Section formula reference: Brilliant Math and Science Wiki - Section Formula.

Internal vs external division

Swipe to view the table
Type Where P lies Parameter t Formula denominator
Internal division Between A and B 0 < t < 1 m + n
External division beyond B Past endpoint B t > 1 m - n, when m > n
External division before A Before endpoint A t < 0 Signed ratio from point position
Endpoint P equals A or B t = 0 or t = 1 One part of the ratio is zero

Worked example

Suppose A = (0, 0), B = (8, 6), and P divides AB internally in the ratio AP:PB = 3:1. Since m = 3 and n = 1, P is three fourths of the way from A to B.

Step 1

Find the parameter

For internal division, t = m / (m + n) = 3 / (3 + 1) = 0.75.

Step 2

Move from A toward B

B - A = (8, 6), so P = A + 0.75(B - A) = (0, 0) + (6, 4.5).

Step 3

Write the point

The dividing point is P = (6, 4.5).

Step 4

Check the ratio

AP is 0.75 of AB and PB is 0.25 of AB, so AP:PB = 0.75:0.25 = 3:1.

What to check before copying the answer

Directed ratios are sensitive to order, sign, and collinearity. These checks catch most mistakes in geometry and algebra homework.

Endpoint order

A to B is a direction. Swapping endpoints changes the parameter and may change the signed ratio.

Collinearity

When finding a ratio from P, the point must lie on the same line as A and B within the chosen tolerance.

External ratio

External division with equal parts has no finite point because m - n equals zero.

How to translate ratio wording into AP:PB

Geometry problems often describe the same directed segment idea in different words. Before entering numbers, identify whether the problem gives AP:PB directly, gives a fraction of the way from A to B, or describes an external point.

Swipe to view the table
Problem wording What it means Enter as Calculator mode
P divides AB in the ratio 3:2 AP is 3 parts and PB is 2 parts. m = 3, n = 2 Find point P, internal
P is two fifths of the way from A to B t = 2/5, so AP:PB = 2:3. m = 2, n = 3 Find point P, internal
P is three times as far from A as from B AP = 3PB. m = 3, n = 1 Find point P, internal
P divides AB externally in the ratio 4:1 P lies outside segment AB, beyond B for this endpoint order. m = 4, n = 1 Find point P, external

Directed-segment standard reference: Illustrative Mathematics - HSG-GPE.B.6.

Collinearity checks when finding a ratio from P

If A, P, and B are not on one straight line, AP:PB is not a true directed segment ratio. The calculator still reports a projected ratio so you can diagnose the input, but the warning tells you when P is too far from line AB.

Cross-product test

The signed area test uses (P - A) x (B - A). If the value is near zero, the three points are collinear.

Distance from line

The calculator converts the cross-product value into an actual distance from line AB and compares it with your tolerance.

Projection parameter

When P is slightly off the line because of rounded coordinates, t projects P onto AB to estimate the intended directed ratio.

Tolerance choice

Use a small tolerance for exact homework coordinates and a larger one for measured or rounded graph readings.

Special cases and fast checks

These shortcuts help you spot impossible inputs, recognize common ratios, and check whether the calculated point is in the expected location before submitting an answer.

Swipe to view the table
Case Ratio or parameter Where P is Quick check
Midpoint AP:PB = 1:1, t = 0.5 Exactly halfway between A and B Average the x-coordinates and y-coordinates.
Endpoint A t = 0 P equals A AP length is zero.
Endpoint B t = 1 P equals B PB length is zero.
Vertical segment Same x-coordinate for A and B P has the same x-coordinate Only the y-coordinate changes along the segment.
External equal parts m = n No finite external point The denominator m - n is zero.

Directed partition examples: MathBitsNotebook - Directed Line Segments, Partitions and Ratios.

Frequently Asked Questions

What is a ratio of directed line segments in coordinate geometry?

A ratio of directed line segments compares two parts of a line segment while keeping track of direction in the coordinate plane. For points A, P, and B on the same line, AP:PB describes how point P partitions the directed line segment from endpoint A to endpoint B. The ratio can be read from distance, coordinate change, or the parameter along the vector from A to B.

How does the calculator find a point that partitions a line segment?

The calculator uses the section formula. For internal division AP:PB = m:n, the point is P = (nA + mB) / (m + n), applied separately to the x-coordinate and y-coordinate. This means the point is closer to endpoint B when m is larger, because AP takes up a larger proportion of the total interval from A to B.

What is external division of a directed line segment?

External division means point P lies on the same line as A and B but outside the line segment itself. On the graph, P appears beyond one endpoint rather than between the endpoints. The external section formula uses m - n in the denominator, so equal external parts do not produce a finite dividing point.

How can I tell whether point P is between the endpoints?

Use the parameter t in P = A + t(B - A). If 0 < t < 1, point P is between A and B on the directed line segment. If t = 0 or t = 1, P is an endpoint; if t is less than 0 or greater than 1, P is outside the segment. The midpoint is the special case t = 0.5, which gives the ratio 1:1.

Why does endpoint order matter for a directed line segment?

A directed line segment has an assigned direction, so AB and BA are not treated the same way. Reversing the endpoints changes the vector B - A, the coordinate interval, and the parameter t used by the calculator. The same physical point on the plane can therefore have a different signed ratio when the endpoint order changes.

Can this calculator check if point P is not on the graph of the line?

Yes. In ratio-from-point mode, the calculator measures the perpendicular distance from point P to line AB and compares that distance with the tolerance you entered. If P is too far from the graph of the line, it warns you before reporting the projected directed ratio. This helps separate a true line segment partition from a coordinate input or graph-reading mistake.

Disclaimer: This ratios of directed line segments calculator is for general educational and informational use only. It provides numerical coordinate geometry results based on user-entered values and rounded display output. It may not match every classroom notation, proof format, sign convention, textbook requirement, or assignment style. Always verify the endpoint order, ratio convention, rounding, and final answer format with your teacher, textbook, or course materials.

Last updated: May 20, 2026