Polygon Area Calculator - Coordinates or Regular Polygon

    Have the corners of a lot, a room or a homework shape? Paste the x, y coordinates and get the exact area with every shoelace step, the perimeter and acres, or size a regular polygon from one side.

    Parameters

    Enter data for calculations

    Empty = from coordinates

    In order along the edge, up to 500 points

    Empty = feet

    Polygon area from corner coordinates or from one side

    Type the corners of the shape as x, y pairs, one per line, and you get the area, the perimeter and every step of the shoelace formula. An L-shaped house with corners (0, 0), (30, 0), (30, 20), (15, 20), (15, 40), (0, 40) in feet comes out at 900 sq ft (0.0207 acres, 83.6127 m²), perimeter 140 ft. The area is computed exactly, not in floating point, so survey coordinates with seven digits and two decimals keep every hundredth. For a regular polygon (a hexagon, an octagon) you can skip the coordinates and give only the number of sides and one side length.

    43,560
    square feet in one acre, the conversion printed under every result in feet
    500
    vertices at most, pasted straight from a spreadsheet or a survey list
    1/2
    the factor in front of the shoelace sum: the products add up to twice the area

    Five fields, two ways in

    1. What are you calculating? - "Area from vertex coordinates" for any polygon, regular or not; "Regular polygon" when all sides and all angles are equal. Left empty, the calculator uses coordinates.
    2. Vertices - one corner per line, x then y, separated by a comma, a space, a semicolon or a tab. Textbook style works too: (1, 6), (3, 1), (7, 2) on a single line. Go around the edge in order, clockwise or counterclockwise, and do not repeat the first point at the end (if you do, it is dropped).
    3. Number of sides - regular polygons only: 3 for an equilateral triangle, 6 for a hexagon, 8 for an octagon, up to 1,000.
    4. Side length - regular polygons only, one side, from 0.001 to 1,000,000.
    5. Unit - feet, inches, yards, miles, meters, centimeters, millimeters, kilometers, or no unit for a homework grid. Left empty, numbers are read as feet. Feet and yards also give acres; meters give square feet, acres and hectares.

    How the shoelace formula turns corners into area

    Write the corners in a column, x on the left and y on the right, and copy the first corner again at the bottom. For each pair of neighbors, multiply diagonally down to the right (xi times yi+1) and subtract the diagonal down to the left (xi+1 times yi). The criss-cross pattern of those diagonals is where the name comes from: it looks like the laces of a shoe. Add the results, take the absolute value and halve it. That is the shoelace formula, also called Gauss's area formula or the surveyor's formula.

    Why does it work? Each cross product is twice the signed area of the triangle formed by the origin and one edge. For a counterclockwise outline, edges on the far side of the shape (seen from the origin) add area and edges on the near side take it back, and what is left is exactly the region inside the boundary. Where the origin sits makes no difference, so the formula works with any coordinates, including negative ones and the large numbers of a state plane survey.

    The sign of the sum tells you the direction you walked. Counterclockwise (with x pointing right and y pointing up) gives a positive sum, clockwise gives a negative one, and the area is the same either way. The calculator prints the sign and the direction, so you can spot a list that was entered backwards. Survey data often lists northing before easting, which swaps x and y: the direction flips, the area does not.

    The one thing the formula cannot survive is a boundary that crosses itself. Take a bow tie: the two loops are traced in opposite directions, so one subtracts from the other, and a perfectly symmetric bow tie comes out as 0 (the calculator stops with an error). Otherwise the calculator tests every pair of edges in exact arithmetic and names the first pair that crosses, by line number. A boundary that passes twice through the same corner is checked too: if its two loops run in opposite directions, the result is flagged as "loops cancel".

    Regular polygons from 3 to 12 sides, side length 1

    Every value in this table scales with the side length a: the area with a², the radii and the apothem with a. A regular hexagon with 4 ft sides therefore has 16 times the area in the table: 41.5692 sq ft. The interior angle does not depend on the side at all.

    SidesNameArea (a = 1)Interior angleApothem rCircumradius R
    3Equilateral triangle0.43360°0.28870.5774
    4Square190°0.50.7071
    5Regular pentagon1.7205108°0.68820.8507
    6Regular hexagon2.5981120°0.8661
    7Regular heptagon3.6339128.5714°1.03831.1524
    8Regular octagon4.8284135°1.20711.3066
    9Regular nonagon6.1818140°1.37371.4619
    10Regular decagon7.6942144°1.53881.618
    11Regular hendecagon9.3656147.2727°1.70281.7747
    12Regular dodecagon11.1962150°1.8661.9319

    The formulas behind the table: area = n · a² ÷ (4 · tan(180° ÷ n)), apothem = a ÷ (2 · tan(180° ÷ n)), circumradius = a ÷ (2 · sin(180° ÷ n)), interior angle = 180° · (n - 2) ÷ n. The result also prints the check "perimeter × apothem ÷ 2", which must give the same area.

    Reading the Shape tile under the area

    Besides the area, the coordinates mode classifies the outline. The classification is computed from the same exact numbers as the area, so a corner that sits a hundredth of a foot off the line is still seen.

    The result saysWhat it meansCan you trust the area?
    convexEvery turn along the boundary goes the same way, like a rectangle or a regular hexagonYes
    concaveAt least one corner points inward, like an L-shaped house or a lot with a notchYes, the formula handles inward corners
    edges touchTwo edges share a point without crossing, for example two squares joined at a cornerUsually, if both parts are traced in the same direction
    edges crossThe boundary cuts through itself, like a bow tie or a figure eightNo, reorder the corners along the outline
    loops cancelThe boundary passes twice through one corner and its two loops run in opposite directionsNo, list both parts in the same direction
    error: area 0All points on one line, or two loops that cancel exactlyNo, check the order and the typing
    The calculator works on a flat plane. For a building lot or a field the curvature of the Earth does not matter, but latitude and longitude in degrees are not flat coordinates: convert them to a projected system (state plane, UTM) first, or the area comes out in meaningless "square degrees".

    Seven outlines and their areas

    The textbook pentagon
    (1, 6), (3, 1), (7, 2), (4, 4), (8, 5), no unit. Products -17, -1, 20, -12, 43, sum 33, area 16.5 square units. Concave, listed counterclockwise.
    One acre on paper
    A 264 by 165 ft rectangle: 43,560 sq ft, exactly 1 acre (4,046.8564 m²), perimeter 858 ft.
    A four-corner lot from a survey
    (5000.00, 5000.00), (5212.48, 5031.19), (5187.03, 5196.77), (4968.92, 5160.35) in feet: 36,041.048 sq ft = 0.8274 acres, perimeter 766.7455 ft.
    Triangle in one line
    (2, 1), (9, 3), (5, 8) in inches, typed on a single line: 21.5 sq in = 0.1493 sq ft, perimeter 21.299 in.
    Octagonal gazebo floor
    Regular octagon, side 5 ft: 120.7107 sq ft, apothem 6.0355 ft, interior angle 135°.
    Hexagonal patio paver
    Regular hexagon, side 4 ft: 41.5692 sq ft, perimeter 24 ft, circumradius 4 ft (a hexagon's side equals its radius).
    Metric plan
    A 40 by 25 m rectangle: 1,000 m² = 10,763.9104 sq ft = 0.2471 acres = 0.1 ha.

    Polygon area facts that surprise people

    Same sides, different area. A 30 by 20 ft rectangle has 600 sq ft. Push it sideways into a parallelogram with corners (0, 0), (30, 0), (42, 16), (12, 16): the sides are still 30, 20, 30 and 20 ft, the perimeter is still 100 ft, and the area drops to 480 sq ft. Side lengths alone never fix the area of a polygon with four or more sides, which is why a lot description lists corners or angles, not only lengths.
    An acre is not a fixed shape. 264 by 165 ft is one acre, and so is a square with sides of about 208.71 ft (that square gives 43,559.8641 sq ft, a hair under). The acre is defined by area alone: 43,560 sq ft.
    Many sides look like a circle. A regular polygon with 1,000 sides of length 1 has an area of 79,577.2097. A circle with the same 1,000 perimeter has 79,577.4715. Among all shapes with a given perimeter the circle encloses the most, and regular polygons close in on it as the sides multiply.
    Order matters more than direction. Listing the same rectangle clockwise, (0, 0), (0, 3), (4, 3), (4, 0), gives a sum of -24 and still 12 square units. Swapping two neighboring corners, on the other hand, turns the rectangle into a bow tie, and the result no longer means anything.

    Polygon area questions people ask

    How do I find the area of an irregular polygon?
    Get the coordinates of each corner, in order around the outline, and use the shoelace formula. If you only have a sketch with lengths, set one corner at (0, 0), lay one wall along the x axis and build the other corners from the measurements. For right-angled outlines (rooms, houses) that is just adding and subtracting lengths. Splitting the shape into rectangles and triangles gives the same answer, but takes longer and is easier to get wrong.
    Does it matter which corner I start with?
    No. Any starting corner and either direction give the same area; only the sign of the intermediate sum changes. What matters is that consecutive lines are neighbors along the boundary.
    Can I paste coordinates from Excel or a CAD export?
    Yes. Two columns copied from a spreadsheet arrive separated by tabs, which the calculator reads, and a first line without numbers (a header such as x, y) is skipped. A three-column list (point number, x, y) also works when the point numbers are whole numbers going up, such as 1, 2, 3 or 101, 102, 105. A list that looks like x, y, z gets an error asking you to delete the height column, because the area uses x and y only. Do not use thousands separators inside coordinates: type 5212.48, not 5,212.48, because a comma is read as the break between x and y.
    Why is the result negative in my textbook but positive here?
    Your book probably shows the signed sum before the absolute value. The calculator prints that signed sum too ("Sum of the products = -24") and then takes half of its absolute value. Area itself is never negative.
    How do I get the area in acres?
    Choose feet, yards, miles, meters or kilometers as the unit; the acres appear on the line under the main result. The conversion uses the exact definitions 1 ft = 0.3048 m and 1 acre = 43,560 sq ft = 4,046.8564224 m².
    What is the apothem of a regular polygon?
    The distance from the center to the middle of a side, which is also the radius of the inscribed circle. Area equals perimeter times apothem divided by 2. For a regular hexagon with 4 ft sides the apothem is 3.4641 ft, and 24 × 3.4641 ÷ 2 gives the same 41.5692 sq ft.

    Related tools

    Bisection Method Calculator

    Root of f(x) = 0 between two points, with every halving step and an error bound - See the calculator

    Area Calculator

    Squares, rectangles, triangles, circles, trapezoids and other standard shapes from their dimensions - See the calculator

    Perimeter Calculator

    The distance around common shapes, for fencing, trim or edging - See the calculator

    Coordinate Calculator

    Distance and midpoint between two points, useful for checking a single edge of your polygon - See the calculator

    Pythagorean Theorem Calculator

    The missing side of a right triangle, for turning a sketch with lengths into corner coordinates - See the calculator

    Triangle Angle Calculator

    Angles of a triangle from its sides - See the calculator

    Flooring Calculator

    Boxes of flooring and waste for a room once you know its square footage - See the calculator

    Fence Calculator

    Posts, rails and panels along a property line, the perimeter side of the same outline - See the calculator

    Similar calculators from this section