Home · Math · Ratios & Proportions · Ratios of Directed Line Segments Calculator

Ratios of Directed Line Segments Calculator

The section formula finds the point that divides a segment internally in the ratio m : n, weighting each endpoint by the opposite part.

Your figures

Example result — edit the figures to make it yours

4

Division point x

Division point y2.4000

What this calculator does

The section formula finds the point that divides a segment internally in the ratio m : n, weighting each endpoint by the opposite part. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

P = ((n·x₁ + m·x₂) ÷ (m + n), (n·y₁ + m·y₂) ÷ (m + n))

The section formula finds the point that divides a segment internally in the ratio m : n, weighting each endpoint by the opposite part.

Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice.

Worked example

With the example inputs this page opens with (first endpoint x₁ 0, second endpoint x₂ 10, first endpoint y₁ 0, second endpoint y₂ 6), the result is 4.0000 — division point x. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying first endpoint x₁
First endpoint x₁Division point x
04.0000
14.6000
25.2000
57.0000
1010.0000

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Ratios of Directed Line Segments Calculator work?

The section formula finds the point that divides a segment internally in the ratio m : n, weighting each endpoint by the opposite part. First endpoint x₁ · Second endpoint x₂ · First endpoint y₁ · Second endpoint y₂ · Ratio part toward second endpoint · Ratio part toward first endpoint → Division point x. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Ratios of Directed Line Segments Calculator need?

First endpoint x₁ · Second endpoint x₂ · First endpoint y₁ · Second endpoint y₂ · Ratio part toward second endpoint · Ratio part toward first endpoint → Division point x. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Ratios of Directed Line Segments Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.