Section formula

Drag two points on a grid and see the distance formula, the point that divides the segment in any ratio m : n, and the midpoint, worked with your numbers. Add a third point for the centroid and the area of the triangle.

Keep it one tap away for everyday use.

Bookmark Section formula?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Drag A, B
  2. Distance
  3. Section
  4. Practise
Nothing is uploadedWorks offline once open

Drag the points

Drag A and B (and C when the triangle is on). Points snap to whole numbers.

m
n

The formulas with your numbers

Try this

  • Set m : n to 1 : 1. P lands exactly on the midpoint M.
  • Put A and B on a horizontal line. The distance formula becomes just the difference of the x values.
  • Turn on the triangle. Drag C until the area is 0: the three points are now on one straight line.
  • Find the point that divides AB in the ratio 3 : 1, then check AP and PB with the distance formula.

Check yourself

Fresh questions every time. Give points as x, y. Nothing is saved.

What it does

Coordinate geometry turns shapes into numbers. This page puts two points A and B on a grid and works out, with your own coordinates:

  • the distance AB = √[(x₂ − x₁)² + (y₂ − y₁)²], which is just Pythagoras’ theorem on the grid;
  • the point P that divides AB in the ratio m : n (the section formula), inside AB or, if you tick the box, outside it;
  • the midpoint M, the special case m : n = 1 : 1;
  • where the x axis cuts AB, as a ratio;
  • with a third point C, the centroid G of triangle ABC and the triangle’s area.

It follows the Class 10 chapter coordinate geometry (distance formula and section formula). The area of a triangle and external division are useful extras for older syllabuses and Class 11.

The distance formula comes from pythagoras proof playground. Lines on the same grid are in the linear pairs, and you can build your own constructions in interactive geometry construction.

How to use it

  1. Drag A and B on the grid. They snap to whole-number points from −10 to 10.
  2. Set the ratio m : n with the sliders or boxes. The green point P moves along AB; the orange point M is the midpoint.
  3. Tick Divide externally to put P on the line AB beyond B (or A).
  4. Tick Add a third point C for the triangle, its medians (dashed), the red centroid G and the area.
  5. Every formula in the second card is filled in with your numbers.

A worked example

The page starts with A(−6, −4), B(6, 5) and m : n = 2 : 1.

  • Distance: √[12² + 9²] = √225 = 15.
  • Section point: x = (2 × 6 + 1 × (−6)) / 3 = 2 and y = (2 × 5 + 1 × (−4)) / 3 = 2, so P = (2, 2). Check: AP = 10 and PB = 5, a ratio of 2.
  • Midpoint: (0/2, 1/2) = (0, 0.5).
  • The x axis cuts AB in the ratio 4 : 5 from A, since A is 4 below the axis and B is 5 above it.

With C(5, −6): the centroid is (5/3, −5/3) ≈ (1.667, −1.667) and the area is ½|−6(11) + 6(−2) + 5(−9)| = 61.5.

Tips

  • The section formula puts m next to B’s coordinates and n next to A’s: the point is pulled towards the end with the bigger share.
  • If the area of three points is 0, they lie on one line (they are collinear).

Check yourself

Four fresh questions each time: a distance, a midpoint, a section point and a centroid. Type points as x, y (for example 2, −3), press Check, and open the worked answer if you need it. Nothing is saved.

FAQ

Can I use points beyond 10? The picture shows −10 to 10 so it stays readable on a phone; the questions use the same range.

Is this from the NCERT book? It covers the same topics with fibub’s own examples. fibub is not part of NCERT.

Where the numbers come from

  • Standard coordinate geometry: the distance formula (from Pythagoras' theorem), the section formula, the midpoint and centroid formulas and the area of a triangle from its vertices. Written for fibub.
  • Checked on hand-worked examples and on 300 random point sets (P lies on AB with AP : PB = m : n, the centroid is 2 : 1 along each median, the area equals the shoelace sum).

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Section formula

  1. Add #1160 Distance and section formula Details on GitHub

Every change to fibub

Related tools

Interactive geometry construction #T381 Build ruler-and-compass constructions: points, segments, lines, circles, midpoints, perpendiculars, parallels, bisectors and intersections, with distances, angles and areas that update live when you drag a point. Download SVG, PNG or CSV. Runs in your browser. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples. Linear pairs #L74 Type two equations and see their lines cross, run parallel or lie on top of each other. The ratio test says how many solutions there are, and the substitution and elimination methods are worked step by step with exact fractions. Pick's theorem #L137 Tap dots on a grid to make any polygon. The page colours the dots inside and on the edges, works out I + B/2 − 1 and checks it against the area from the corners. Drag corners to explore. Coordinate treasure hunt #L153 Four quick games on the coordinate plane: tap a point from its coordinates, read the coordinates of a point, hunt buried treasure using distance clues, and sink three hidden ships. Learn the quadrants, the signs of x and y, and the distance formula as you play. Field area #L164 Drag the corners of a plot of land on a 10 m grid. The plot is cut into triangles, each one's area is worked out from its three sides with Heron's formula, and the total is given in m², hectares and acres, with the perimeter. At Class 11 level the shoelace formula checks it. Mid-point theorem #L169 Drag the corners of any triangle on a centimetre grid: the segment joining the mid-points of two sides stays parallel to the third side and exactly half its length. See the converse, the proof step by step, and Varignon's parallelogram inside any quadrilateral. Ends with fresh practice questions. Line solutions #L170 Set a, b and c in ax + by = c and watch its line move. Whole-number solutions show as dots; tap any grid point or type one to test it, with the sum worked out. A table of solutions, where the line crosses the axes, and lines parallel to the axes. Ends with fresh practice questions. Triangle from coordinates #L190 Drag three points on a grid or type their coordinates. See whether they are collinear, the three side lengths by the distance formula, the area, and whether the triangle is scalene, isosceles or equilateral and right, acute or obtuse, with every step shown. Linear word problems #L192 Pick a story (ages, tickets, a boat in a stream, a rectangle or banknotes) with fresh numbers, then reveal step by step how to name the unknowns, write the two equations, solve them by elimination or substitution and check the answer, with both lines drawn crossing at it. Line forms converter #L236 Drag two points and see the slope and every form of the line's equation update together: two-point, point-slope, slope-intercept, intercept, general and normal form. Add a second line and a point for the angle between lines and the perpendicular distance, drawn. 3D point plotter #L237 Turn a set of x, y and z axes round with your finger, place two points and see the dashed box that shows each coordinate. The octant of each point and the 3D distance formula are worked with your numbers, and the section formula puts a third point between them.