Coordinate Grid Calculator
Plot points on an interactive coordinate grid and calculate distance, midpoint, slope, area, and line equations between any points.
About
Errors in coordinate geometry propagate. A misread sign on one vertex coordinate shifts an entire polygon's computed area. Manual plotting on graph paper introduces parallax and rounding that compound across multi-step constructions. This calculator renders an interactive Cartesian plane where you place points by click or direct numeric entry, then computes d (Euclidean distance), M (midpoint), m (slope), and polygon area via the Shoelace formula with full decimal precision. All coordinates snap to the resolution you set. The tool assumes a flat Euclidean R2 plane with no curvature correction.
Computed line equations are returned in both slope-intercept (y = mx + b) and standard (Ax + By + C = 0) forms. Vertical lines are handled as x = k. Area calculations require at least 3 non-collinear points and use vertex order as entered. Pro tip: for convex polygons, enter vertices sequentially (clockwise or counter-clockwise) to avoid self-intersecting edge artifacts that halve the reported area.
Formulas
The primary distance metric between two points P1(x1, y1) and P2(x2, y2) on the Cartesian plane uses the Euclidean norm derived from the Pythagorean theorem:
The slope m of the line through those two points:
The area of a simple polygon with n vertices ordered sequentially is computed via the Shoelace (Gauss) formula:
Where d = Euclidean distance between two points. m = slope of the line (rise over run). A = signed area of the polygon. xi, yi = coordinates of the i-th vertex, with indices wrapping so that vertex n + 1 = vertex 1.
Reference Data
| Metric | Formula | Minimum Points | Notes |
|---|---|---|---|
| Euclidean Distance | โ(x2 โ x1)2 + (y2 โ y1)2 | 2 | Always โฅ 0 |
| Midpoint | (x1 + x22, y1 + y22) | 2 | Arithmetic mean of coordinates |
| Slope | y2 โ y1x2 โ x1 | 2 | Undefined if x1 = x2 |
| Line Equation (slope-intercept) | y = mx + b | 2 | Not applicable for vertical lines |
| Line Equation (standard) | Ax + By + C = 0 | 2 | Integer coefficients when possible |
| Polygon Area (Shoelace) | 12 |nโi=1(xiyi+1 โ xi+1yi)| | 3 | Vertices must be ordered |
| Perimeter | nโi=1 d(Pi, Pi+1) | 3 | Closed polygon assumed |
| Centroid | (1nnโi=1xi, 1nnโi=1yi) | 1 | Geometric center of point set |
| Angle Between Segments | arccos(A โ B|A| โ |B|) | 3 | Returns 0ยฐ - 180ยฐ |
| Manhattan Distance | |x2 โ x1| + |y2 โ y1| | 2 | L1 norm (taxicab metric) |
| Quadrant | Sign of (x, y) | 1 | I - IV, or on axis |
| Distance to Origin | โx2 + y2 | 1 | Radius in polar form |
| Polar Coordinates | (r, ฮธ) where r = โx2 + y2 | 1 | ฮธ in degrees and radians |