Coordinate Geometry Calculator


Find distance, midpoint, slope, internal or external section points, or a triangle’s centroid and area from Cartesian coordinates. Useful for analytic geometry and plotting.

Each field is labelled with its meaning. Use consistent units within one calculation. Results are rounded for display.

Choose a mode, enter values and calculate. Use decimal points; lists accept commas or spaces.

Two points and section ratio

Insira os valores:
Resultados:

Formula and method

Distance=√[(x2-x1)²+(y2-y1)²]. Midpoint=((x1+x2)/2,(y1+y2)/2). For AP:PB=m:n, internal point=(mB+nA)/(m+n), external=(mB-nA)/(m-n). Centroid=(A+B+C)/3; area=½|cross(B-A,C-A)|.

Worked example

A=(0,0) and B=(6,8) have distance 10, midpoint (3,4) and slope 8/6=4/3. For triangle (0,0),(6,0),(0,4), area is 12 and centroid (2,4/3).

Read the result

Point pairs are (x,y). Area is in squared coordinate units. The m:n ratio measures AP:PB, so increasing m moves the internal point toward B. Collinear triples have area zero.

Limits and edge cases

Coordinates have magnitude at most 10^9. Ratio terms must lie from 10^-9 to 10^9 and be positive. Equal ratio terms give no finite external point; a vertical or coincident line has no finite slope. These fields show explanatory text while other well-defined quantities remain available.

Frequently asked questions

Why is the external point missing for a 1:1 ratio?

Its formula divides by m-n. Equal terms place the external division at infinity, not at the midpoint.

Can points coincide?

Yes. Distance becomes zero and slope is undefined. A repeated vertex makes a degenerate triangle.