Area and Perimeter Calculator for Common Shapes

Updated November 11, 2026 · buildcalc.io editorial team

Area and perimeter calculator

1. Shape and unit
2. Dimensions
Perimeter
–
Area
–

Know the area? Find the sides

Choose a shape, enter its dimensions in feet, inches, yards, metres, centimetres or millimetres, and read the perimeter and area. The box at the bottom works backwards from a known area to the sides of a rectangle or square.

Formulas used

Standard Euclidean plane geometry (and NIST unit-conversion conventions in SP 811) fixes the boundary and surface equations for every shape below. Perimeter is the total linear distance around the outer boundary of a figure, and area is the two-dimensional surface enclosed within it.

rectangle: P = 2 (ℓ + w), A = ℓ × w triangle: P = a + b + c, A = √(s (s − a)(s − b)(s − c)), s = (a + b + c) ÷ 2 trapezoid: P = a + b + c + d, A = ½ (a + b) × h circle: C = π d, A = π d² ÷ 4 regular polygon: P = n × side L-shape: P = 2 (L + W), A = L × W − cut-out ℓ × w

For any general polygon, perimeter is the sum of the individual side lengths; for an equilateral (regular) polygon of n equal sides of length a, that simplifies to n × a. For a triangle with known side lengths a, b and c, let s = (a + b + c) ÷ 2 denote the semi-perimeter; substituting s into Heron’s formula gives the exact area without needing a measured perpendicular height, and the calculator automatically rejects three lengths that violate the triangle inequality (where the longest side equals or exceeds the sum of the other two). For a regular n-sided polygon, decomposing the shape into n congruent isosceles triangles around its centre gives area = n a² ÷ (4 tan(π ÷ n)); for a regular hexagon (n = 6, tan 30° = 1 ÷ √3) that simplifies directly to (3 √3 ÷ 2) a². Unit conversions between feet, inches, yards and metric lengths use the exact NIST SP 811 definition 1 ft = 0.3048 m, while decomposing irregular building floor plans into rectangles and triangles follows the same geometric approach used in ANSI Z765.

Worked example 1: a rectangle

A room is 12 ft by 8 ft:

  • perimeter = 2 × (12 + 8) = 40 ft
  • area = 12 × 8 = 96 sq ft

The perimeter tells you how much baseboard or fence line you need. The area tells you about flooring or paint. For the area of whole rooms, including subtracting alcoves, use the square footage calculator.

Worked example 2: a circle

A circular patio is 10 ft across:

  • circumference = π × 10 = 31.42 ft
  • area = π × 5² = 78.54 sq ft

Worked example 3: a triangle

Sides of 3, 4 and 5 ft: perimeter = 12 ft, s = 6, area = √(6 × 3 × 2 × 1) = 6 sq ft. A 13-14-15 ft triangle has a perimeter of 42 ft and an area of √(21 × 8 × 7 × 6) = 84 sq ft.

Worked example 4: a hexagon

A regular hexagon with 5 ft sides has perimeter 6 × 5 = 30 ft and an area of 1.5 × 25 × 1.732 = 64.95 sq ft.

Worked example 5: an L-shaped room

An overall 20 ft by 15 ft footprint has a 5 ft by 4 ft corner missing:

  • perimeter = 2 × (20 + 15) = 70 ft, the same as the full rectangle
  • area = 20 × 15 − 5 × 4 = 280 sq ft

Worked example 6: from area to sides

A rectangle has an area of 96 sq ft and one side of 8 ft. The other side is 96 ÷ 8 = 12 ft, and the perimeter is 40 ft. A square with an area of 144 sq ft has sides of 12 ft and a perimeter of 48 ft. Many different rectangles share one area, so a perimeter cannot come from the area alone.

Choosing a shape for an odd outline

Most real plans are not a single shape. Split an irregular outline into rectangles, triangles and circle pieces, find each area, and add them. For the perimeter, trace only the outer boundary: the line where two parts touch is inside the shape and does not count. For a room with a bay window, sum the straight runs and add the bay’s three sides. If the outline is a rectangle with a notch removed, use the L-shape option, because the perimeter stays that of the bounding rectangle when the notch is at a corner.

A baseboard example

The 12 ft by 8 ft room in example 1 has a 40 ft perimeter. Two doorways 3 ft wide and 2.5 ft wide interrupt the baseboard, so the run is 40 − 3 − 2.5 = 34.5 ft. Because trim comes in fixed lengths and every joint wastes some, buy more than the bare figure. Corners, scarf joints and mistakes all use up stock.

Common mistakes

  • Mixing units. Enter every dimension in the same unit. A room of 12 ft by 96 in is not 12 × 96.
  • Mistaking diameter for radius. The circle field is the diameter. If you have the radius, double it.
  • Using the slant instead of the height. Trapezoid area needs the perpendicular height between the parallel sides, not the slanted side.
  • Forgetting that area is squared. Doubling every side doubles the perimeter but quadruples the area.

Using the numbers

  • Edge materials. Baseboard, trim, edging and fencing run along the perimeter. Subtract door openings from the total by hand, and add extra for cuts and joins.
  • Surface materials. Flooring, tile and paint follow the area. For tile, the tile calculator adds layout waste, and the insulation calculator converts area to bags or batts.
  • Units. Area is in square units, so a switch from feet to inches multiplies the area by 144, not 12.

The materials hub lists every estimator on the site.

PartnerJobsite Tool & Fastener Spec Strip
Supplier links may earn a commission at zero extra cost to you · Disclosure
48" Magnesium Bull Float with Tilt Bracket & Handles

Brings paste to surface and flattens screed ridges cleanly

16" × 3-1/8" Cast Magnesium Hand Concrete Float

Beveled ends prevent gouging on slabs, steps & pads

Cordless Backpack / Handheld Concrete Pencil Vibrator

Consolidates footings & piers to eliminate honeycomb voids

PartnerHiring Out This Area and Perimeter Job?
Free quote matching · Zero PII stored on buildcalc.io · Disclosure

Enter your ZIP or postal code to compare bids from vetted local concrete flatwork & foundation crews matched to your calculated scope.

Frequently asked questions

How do you calculate perimeter?

Add up the lengths of all the outer sides. In plane geometry, the perimeter of any polygon equals the sum of its side lengths. For a rectangle that is 2 × length + 2 × width, so a 12 ft by 8 ft room has a perimeter of 40 ft.

What is the perimeter of a circle?

It is called the circumference: C = π × diameter, or 2π × radius. A 10 ft diameter circle has a circumference of 31.42 ft.

Can you find the perimeter from the area?

Only if you also know the shape and one dimension. For a rectangle, divide the area by the known side to get the other side, then perimeter = 2 × (length + width). A square of area 144 has sides of 12 and a perimeter of 48.

Does cutting a corner out of a rectangle change its perimeter?

No. An L-shape made by removing a rectangular corner has the same perimeter as the full rectangle around it, though the area shrinks by the cut-out.

Sources

  1. SP 811: Guide for the Use of the International System of Units (SI) — Exact Length and Area Unit Relationships, National Institute of Standards and Technology (NIST), accessed November 2026.
  2. NIST Digital Library of Mathematical Functions (DLMF): Elementary Analytic Geometry and Trigonometric Relations, National Institute of Standards and Technology (NIST), accessed November 2026.
  3. ANSI Z765: Square Footage — Method for Calculating (building footprint and room area measurement conventions), Home Innovation Research Labs, accessed November 2026.