Home › Calculators › Polygon Area from Coordinates

Polygon Area from Coordinates

Paste the corner points of any polygon, one x, y pair per line, and get its area with the shoelace formula. The calculator also gives the perimeter, centroid and vertex order, shows a full shoelace table and plots the shape so you can spot a mistyped point.

Last updated:

One point per line, such as 3, 7 or (3, 7). Go around the edge clockwise or counterclockwise; don't repeat the first point.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Polygon Area from Coordinates

  1. Enter the vertices in order around the shape, one x, y pair per line. Don't repeat the first point at the end.
  2. Pick a unit if your coordinates are in meters, feet or another length unit.
  3. Read the area at the top, with the perimeter, centroid and shape type below.
  4. Check the plot: if edges cross, a point is out of order.
  5. Follow the shoelace table and steps, then copy the results or download the table as CSV.

How the shoelace formula works

Write the vertices P₁ to Pₙ in order around the polygon and imagine returning to P₁ at the end. For each edge from Pᵢ to Pᵢ₊₁, compute the cross product xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ. Half the sum of these cross products is the signed area: positive when the points run counterclockwise, negative when they run clockwise. The absolute value is the area.

Each cross product is twice the signed area of the triangle formed by the origin and one edge. Triangles on the far side of the shape are added and those on the near side are subtracted, so everything outside the polygon cancels and only the enclosed region remains.

Worked example

Take the quadrilateral with vertices (1, 1), (5, 2), (4, 6) and (0, 4).

Edgexᵢ·yᵢ₊₁xᵢ₊₁·yᵢDifference
(1, 1) → (5, 2)1 × 2 = 25 × 1 = 5−3
(5, 2) → (4, 6)5 × 6 = 304 × 2 = 822
(4, 6) → (0, 4)4 × 4 = 160 × 6 = 016
(0, 4) → (1, 1)0 × 1 = 01 × 4 = 4−4
Sum481731

Area = ½ × |31| = 15.5 square units. The sum is positive, so the points were listed counterclockwise.

Related formulas

QuantityFormula
Area (shoelace)A = ½ |Σ (xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|
Triangle areaA = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|
Side lengthd = √((xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²)
CentroidCx = Σ(xᵢ + xᵢ₊₁)cᵢ ÷ 6A, Cy = Σ(yᵢ + yᵢ₊₁)cᵢ ÷ 6A, with cᵢ = xᵢyᵢ₊₁ − xᵢ₊₁yᵢ
Pick's theorem (lattice points only)A = I + B ÷ 2 − 1, where I = interior points and B = boundary points

Tips for accurate results

  • Survey sketches and floor plans work well: set one corner as (0, 0) and measure the other corners from it in the same unit.
  • For a shape with a hole, find the outer area and the hole area separately and subtract.
  • Very large coordinates, such as state-plane survey values, are fine, but moving the origin near the shape reduces rounding.

Frequently asked questions

What is the shoelace formula?

It is a way to find the area of a polygon from the coordinates of its vertices. List the points in order, add up xᵢ·yᵢ₊₁ for every vertex, subtract the sum of xᵢ₊₁·yᵢ, and take half the absolute value: A = ½ |Σ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|. The criss-cross pattern of the products looks like lacing a shoe, which gives the formula its name.

Does the order of the points matter?

Yes. The points must follow the boundary of the shape, either clockwise or counterclockwise. The direction only changes the sign of the signed area, which the calculator reports, but jumping across the shape out of order makes the edges cross and gives a wrong area.

Do I need to repeat the first point at the end?

No. The formula wraps around from the last vertex back to the first automatically. If you do repeat the first point, the calculator notices and drops the duplicate.

Why is my area wrong when the polygon crosses itself?

For a self-intersecting shape such as a star drawn with five crossing lines, the shoelace formula gives a net area where some regions cancel out or count twice. Reorder the points so they trace the outer boundary to get the true enclosed area.

How do I find the area of a triangle from coordinates?

Use the same formula with three points: A = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. For (0, 0), (4, 0) and (0, 3) the area is ½ × |0 + 12 + 0| = 6.

How is the centroid of a polygon calculated?

The centroid uses the signed area A and the same cross products cᵢ = xᵢyᵢ₊₁ − xᵢ₊₁yᵢ: Cx = Σ(xᵢ + xᵢ₊₁)cᵢ ÷ 6A and Cy = Σ(yᵢ + yᵢ₊₁)cᵢ ÷ 6A. It is the balance point of a flat plate with that shape, not the average of the vertices.

Can I use GPS latitude and longitude?

Not directly. Latitude and longitude are angles, so the shoelace formula would return square degrees. Convert the points to a flat grid in meters or feet first, or use a map-based land area tool for GPS points.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Regular Polygon CalculatorArea, perimeter, apothem, radius and angles of a regular polygon from any one measurement.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.KML ViewerOpen KML and KMZ files on an interactive map: placemarks, paths, polygons, folders, export.Shapefile ViewerView zipped shapefiles on a map with the attribute table, then export to GeoJSON or CSV.UTM to Lat LongConvert UTM zone, easting and northing (WGS84) to latitude/longitude in decimal and DMS, or a CSV batch.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Pythagorean Theorem CalculatorSolve for the hypotenuse or a missing leg of a right triangle, with a diagram and steps.Volume CalculatorVolume of a cube, box, cylinder, sphere, cone, pyramid or capsule, in liters and gallons too.Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Ellipse CalculatorArea, perimeter (Ramanujan), eccentricity, foci and equation of an ellipse from its axes.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Perimeter CalculatorPerimeter of a square, rectangle, triangle, circle, trapezoid, polygon or sector, with a diagram.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.Slope Intercept Form CalculatorGet y = mx + b from two points, a point and slope, or standard form, with steps and a graph.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.
See all 46 Geometry & Trigonometry Calculators →