Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Segment Ratio Calculator
Geometry Calculators

Segment Ratio Calculator

Published onSeptember 25, 2025 Updated onOctober 24, 2026 4:01 pm

A segment ratio tells you exactly how a line segment is divided: what share each part gets, where the dividing point sits on a coordinate plane, or how two lengths reduce to lowest terms. This calculator does all four jobs, splitting a total length by a ratio, finding the dividing point with the section formula (internal or external), simplifying two lengths, and even reversing the process to recover the ratio from three points.

Segment Ratio Calculator
Split lengths, divide segments by coordinates, simplify a ratio, or recover the ratio from three points.

P must lie on the straight line through A and B. A positive ratio means P sits between A and B (internal); a negative ratio means P is on the extension beyond an endpoint (external).

Quick Answer

A segment ratio of m:n splits a total length L into m/(m+n) x L and n/(m+n) x L. A 100-unit segment at 3:2 gives parts of 60 and 40. On coordinates, the point dividing A and B in ratio m:n comes from the section formula, P = ((m·x2 + n·x1)/(m+n), (m·y2 + n·y1)/(m+n)), with a minus-sign version for external division.

💡 Key takeaways

  • Four jobs, one page: split a length, find the dividing point, simplify a ratio, or recover the ratio from three points.
  • Internal vs external: internal division keeps the point between A and B; external division lands it beyond the segment and needs m ≠ n.
  • Decimals simplify exactly: the simplify mode scales both lengths by an exact power of 10 before taking the greatest common divisor, so 12.5: 7.5 reduces to 5: 3 instead of rounding first.
  • Reverse mode checks collinearity first: if P is not on the line through A and B, no ratio exists and the tool tells you why.
On this page
  • Quick Answer
  • How to use the segment ratio calculator
  • The four formulas, in one table
  • Worked example: a 100-unit segment divided 3:2
  • Internal vs external division, side by side
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use the segment ratio calculator

Start by choosing the job from the dropdown at the top of the calculator. Each mode shows only the inputs it needs, so you never have to guess which fields matter.

Split a total length by ratio m:n. Enter the full length and the two ratio parts. The calculator returns both pieces and shows the arithmetic, including a check that the two parts add back to the total. This is the mode for dividing land, cutting material, or apportioning anything by a fixed proportion.

Find the dividing point from coordinates. Enter both endpoints, the ratio, and whether the division is internal or external. The calculator applies the section formula and prints every substitution, so you can copy the working into homework or a drawing. Note that the midpoint of a segment is just this mode at a 1:1 internal ratio, a handy sanity check.

Simplify two lengths into a ratio. Enter two measured lengths in the same unit. The calculator divides both by their greatest common divisor and returns the reduced ratio plus its decimal form. It works best with whole-number lengths.

Find the ratio m:n from three points (A, P, B). Enter the coordinates of the endpoints and the point. The calculator first checks that the three points are collinear, then reverses the section formula to solve for the ratio. A positive answer means internal division; a negative one means P sits outside the segment. The distance check at the bottom (AP, PB, AB) lets you verify the result independently with a distance calculation.

The four formulas, in one table

Every mode in this calculator is a different arrangement of the same idea: a ratio compares two parts, and the parts always add back to the whole. Here is exactly what the calculator computes in each mode.

ModeFormulaAnswers the question
Split lengthPart A = m/(m+n) × L, Part B = n/(m+n) × LHow big is each piece of a length divided m:n?
Dividing point (internal)P = ((m·x2 + n·x1)/(m+n), (m·y2 + n·y1)/(m+n))Where is the point that divides AB in ratio m:n, between the endpoints?
Dividing point (external)P = ((m·x2 − n·x1)/(m−n), (m·y2 − n·y1)/(m−n)), m ≠ nWhere is the point on the line beyond the segment?
Simplify lengthsa:b → (a/g):(b/g), g = GCD(a, b)What is the lowest-terms ratio of two lengths?
Reverse (three points)m/n = (Px − Ax)/(Bx − Px), using the axis with the larger spreadGiven A, P and B, what ratio does P divide AB in?

Worked example: a 100-unit segment divided 3:2

Take a 100-unit segment and divide it in the ratio 3:2. The whole is 3 + 2 = 5 parts, so each part is 100 / 5 = 20 units. Part A is 3 × 20 = 60; Part B is 2 × 20 = 40. The check is instant: 60 + 40 = 100, and the calculator shows this check on every split.

100 units at 3:2

Part A
60
Part B
40

Type 100, 3 and 2 into the calculator above and you get 60 and 40, exactly as shown.

Coordinates make it concrete too. Split A(2, 4) and B(8, 10) in the ratio 2:3 internally: P = ((2·8 + 3·2)/5, (2·10 + 3·4)/5) = (22/5, 32/5) = (4.4, 6.4). Closer to A, as it should be, because the n = 3 side pulls the point toward B by less. Externally, A(1, 2) and B(4, 6) at 2:3 gives P = ((2·4 − 3·1)/(2−3), (2·6 − 3·2)/(2−3)) = (−5, −6), out beyond the segment on A's side.

Internal vs external division, side by side

The sign in the section formula is the whole story. Internal division adds the weighted endpoints; external division subtracts them, which is why m and n must differ externally (otherwise you divide by zero).

Internal division

  • Point P lies between A and B.
  • AP + PB = AB exactly.
  • The ratio m:n is always positive.
  • 1:1 is the midpoint of the segment.
  • No restriction on m vs n.

External division

  • Point P lies on the line beyond one endpoint.
  • |AP − PB| = AB instead.
  • Reverse mode reports a negative ratio.
  • m must differ from n (m − n ≠ 0).
  • At m = n the point is infinitely far away, so the tool refuses it.

What competing calculators miss

Most segment ratio tools on the web do exactly one of these four jobs. Bravecalculator and CalculatorUltra simplify or split a length but never touch coordinates. The directed-segment tool at shortcalc.com finds a dividing point but skips splitting, simplifying and the reverse problem entirely. GeeksforGeeks prints the section formula as code, with no working tool and no external division. The 3D section calculators at sites like allmath.com handle a third coordinate but nothing else.

This page keeps all four modes together and adds the two things rivals never handle honestly. First, external division is a first-class mode with its own formula and its own guardrail: the calculator blocks m = n externally instead of dividing by zero. Second, the reverse mode solves the problem students actually get stuck on, recovering the ratio from three measured points, and it checks collinearity before trusting the answer. The distance check printed under every reverse result (AP, PB, AB with AP/PB) gives you an independent verification no rival shows.

Frequently asked questions

Internal division puts the dividing point between the two endpoints, so the two pieces add up to the whole segment and the ratio is positive. External division puts the point on the line beyond one of the endpoints, which is why the formula uses minus signs and why the ratio comes out negative in the reverse mode.

The external formula divides by m minus n, so at m = n the denominator is zero and no finite point exists. Geometrically, the point that divides a segment externally in a 1:1 ratio would have to be infinitely far away, because it must stay equally far from both endpoints while lying outside them. The calculator shows an error message instead of a meaningless answer.

Yes. The simplify mode works with the greatest common divisor, which is defined for whole numbers, so it first scales both lengths by an exact power of 10 and then divides by the common divisor. That keeps the ratio exact: 7.5: 2.5 reduces to 3: 1, and 12.5: 7.5 reduces to 5: 3. Nothing is rounded before the division.

It reverses the section formula: m/n = (Px minus Ax) divided by (Bx minus Px), using the x-coordinates when the segment is wider than it is tall and the y-coordinates when it is near-vertical, because the larger spread keeps rounding error small. The decimal is then converted to the nearest small whole-number ratio. A positive result means P sits between A and B; a negative one means it lies outside the segment.

Then no ratio exists, and the calculator says so instead of inventing one. Before computing anything, the reverse mode checks collinearity with a cross-product test: if P is off the line, you get the message "P is not on the line through A and B, so no ratio exists" and no numbers are shown.

Yes, the formula extends directly: the z-coordinate follows the same pattern, z = (m times z2 plus n times z1) divided by (m plus n) for internal division. This calculator works in two dimensions only, but if you are doing 3D coordinate geometry you can apply the same weighted-average idea to each axis.

Exactly. Set m = n = 1 in the internal section formula and it reduces to the midpoint formula: P = ((x1 + x2)/2, (y1 + y2)/2). Try it in the dividing-point mode above with ratio 1:1 and internal division, or use the dedicated midpoint calculator for a faster one-step version.

Add This Calculator to Your Website

Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. Khan Academy. Dividing line segments. Accessed October 23, 2026.
  2. Brilliant. Section Formula. Accessed October 23, 2026.
  3. Math is Fun. Ratios. Accessed October 23, 2026.
  4. Wolfram MathWorld. Ratio. Accessed October 23, 2026.
  5. OpenStax, College Algebra 2e. The Rectangular Coordinate Systems and Graphs. Accessed October 23, 2026.
  6. Purplemath. Straight-Line Equations: The Midpoint Formula. Accessed October 23, 2026.

Related calculators

Geometry Calculators45 45 90 Triangle Calculator A 45-45-90 triangle is the isosceles right triangle: two equal legs, a right angle, and a hypotenuse that is always the leg times √2.Geometry CalculatorsPerimeter Formula Calculator – Calculate Perimeter of Any Shape InstantlyGive this calculator a shape and its dimensions and it returns the perimeter with the formula written out and your numbers substituted, so you can follow every step.Geometry CalculatorsParallel Or Perpendicular CalculatorAre two lines parallel, perpendicular, or neither?Geometry Calculators30 60 90 Calculator: Solve Any Triangle FastA 30-60-90 triangle locks its sides into the ratio 1: √3: 2, so a single known value fixes the whole triangle.Geometry CalculatorsSin Calculator: Free Trigonometry Tool OnlineA sin calculator should do more than one ratio.Geometry CalculatorsGeometric Formula CalculatorSix shapes account for most geometry homework and most job-site measurement questions: rectangle, circle, triangle, square, sphere and cylinder.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search