dash–calculator

04 Numbers and Counting

Area and Perimeter Calculator: How It Works

Readout 04-0586 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator computes the area and perimeter of common two-dimensional shapes—rectangle, square, triangle, circle, and more—based on the dimensions you enter. You input the required lengths (and angles where needed), and you get the area in square units and the perimeter in linear units, with results in both US customary and metric units where applicable.

Formula

The formulas depend on the shape you select. For each shape, the variables are defined as follows:

  • Rectangle (length a, width b): Area = a × b, Perimeter = 2 × (a + b)
  • Square (side a): Area = a², Perimeter = 4 × a
  • Triangle (base b, height h, sides a and c): Area = 0.5 × b × h, Perimeter = a + b + c
  • Circle (radius a): Area = π × a², Perimeter (circumference) = 2 × π × a
  • Parallelogram (base b, height h, side a): Area = b × h, Perimeter = 2 × (a + b)
  • Trapezoid (parallel sides a and b, height h): Area = 0.5 × (a + b) × h, Perimeter = a + b + (two non-parallel sides). The non-parallel sides are computed as √(h² + ((a−b)/2)²) for an isosceles trapezoid; for a general trapezoid, you would need the actual side lengths, but this calculator assumes the isosceles case for perimeter.

All lengths are in feet (ft) in the default, but you can enter any unit as long as you are consistent; the area will be in square units of that length, and the perimeter in linear units.

Worked Example

Using the default values: rectangle with length a = 10 ft and width b = 6 ft.

  1. Area = 10 × 6 = 60 ft²
  2. Perimeter = 2 × (10 + 6) = 2 × 16 = 32 ft

The calculator shows Area = 60.00 ft² and Perimeter = 32.00 ft, matching the manual calculation.

When to Use Area and Perimeter

Area measures the surface inside a shape—useful for flooring, tiling, painting, or land measurement. Perimeter measures the boundary length—useful for fencing, framing, or edging. You might need both when planning a garden: the perimeter tells you how much fence to buy, while the area tells you how much soil or grass seed to get. In construction, area is used for concrete volume (when multiplied by depth) and perimeter for baseboards or trim. In geometry homework, both are fundamental concepts that appear in standardized tests and real-world problem solving.

How to Choose the Right Shape

The calculator supports six common shapes. To pick the correct one:

  • Rectangle: four right angles, opposite sides equal. Enter length and width.
  • Square: all sides equal. Enter one side.
  • Triangle: any triangle. Enter base, height, and the other two sides (for perimeter).
  • Circle: a round shape. Enter radius.
  • Parallelogram: two pairs of parallel sides, but not necessarily right angles. Enter base, height, and the slanted side length.
  • Trapezoid: one pair of parallel sides. Enter the two parallel sides (a and b) and the height. For perimeter, the calculator assumes an isosceles trapezoid (non-parallel sides equal). If your trapezoid is not isosceles, you’ll need to enter the actual side lengths separately and compute perimeter manually.

If your shape is irregular (e.g., an L-shaped room), break it into rectangles and sum the areas. For a circle, ensure you enter the radius, not the diameter—a common mistake.

Common Mistakes and Unit Mix-Ups

The most frequent error is mixing units. If you enter length in feet and width in inches, the area will be wrong. Always convert all dimensions to the same unit before calculating. For example, convert inches to feet by dividing by 12, or convert feet to inches by multiplying by 12.

Another mistake is confusing diameter with radius for a circle. The radius is half the diameter. Using the diameter in the area formula gives a result four times too large.

For triangles, the height must be perpendicular to the base, not the slanted side. If you only know the three side lengths, use Heron’s formula: Area = √(s(s−a)(s−b)(s−c)), where s = (a+b+c)/2. That formula is not built into this calculator, but you can compute it manually.

Rounding too early can also cause errors. Keep at least three decimal places during intermediate steps, then round the final answer to two decimals as the calculator does.

Limitations of the Calculator

This calculator assumes simple, idealized shapes. It does not handle:

  • Irregular polygons (more than 6 sides) or curved shapes other than circles.
  • Composite shapes that need to be broken into parts.
  • Three-dimensional surface areas (like a cylinder or sphere).
  • Units conversion—you must input all dimensions in the same unit.

For real-world projects, always measure carefully and add a waste factor (typically 5–10%) when buying materials. For critical structural or safety applications, consult a professional engineer.

Comparisons: Area vs Perimeter

Area and perimeter are often confused, but they measure different things. Area is the two-dimensional space inside a shape, measured in square units (ft², m²). Perimeter is the one-dimensional distance around the shape, measured in linear units (ft, m). For example, a rectangle 10 ft by 6 ft has an area of 60 ft² and a perimeter of 32 ft. Doubling the length to 20 ft (keeping width 6 ft) gives area 120 ft² and perimeter 52 ft. Notice that area grows faster than perimeter when dimensions increase.

For a given perimeter, a circle encloses the maximum area. This is why round containers are often used for storage efficiency.

Frequently Asked Questions

How do I calculate area and perimeter of a rectangle?

For a rectangle with length L and width W, area = L × W, perimeter = 2 × (L + W). For example, a room 12 ft by 10 ft has area 120 ft² and perimeter 44 ft.

What is the difference between area and perimeter?

Area measures the surface inside a shape (square units), while perimeter measures the boundary length (linear units). For a square with side 4 m, area = 16 m², perimeter = 16 m—numbers are same but units differ.

Can I use this calculator for irregular shapes?

No, it only handles the six listed shapes. For irregular shapes, break them into rectangles, triangles, and circles, calculate each part, then sum the areas and perimeters (for perimeter, subtract shared edges).

What if I only know the sides of a triangle, not the height?

Use Heron’s formula: compute s = (a+b+c)/2, then area = √(s(s−a)(s−b)(s−c)). This calculator requires the height, so you may need to calculate it separately or use a different tool.

How do I convert between feet and meters for area?

1 foot = 0.3048 meters. So 1 square foot = 0.092903 square meters. To convert ft² to m², multiply by 0.092903. For perimeter, multiply feet by 0.3048 to get meters.

Why does the trapezoid perimeter calculation seem different?

The calculator assumes an isosceles trapezoid (non-parallel sides equal). For a general trapezoid, you need the actual lengths of the non-parallel sides. If yours isn’t isosceles, compute perimeter as a + b + side1 + side2 manually.

Related

Formula used
in shape | Shape | rectangle=1, square=2, triangle=3, circle=4, parallelogram=5, trapezoid=6
in a | Side a / base / radius | ft | 10 | 0 | 100000
in b | Side b / height / width | ft | 6 | 0 | 100000
in c | Side c (triangle only) | ft | 8 | 0 | 100000
in h | Height (triangle, parallelogram, trapezoid) | ft | 5 | 0 | 100000
out area | Area | ft² | (shape==1)*a*b + (shape==2)*a*a + (shape==3)*0.5*b*h + (shape==4)*pi*a*a + (shape==5)*b*h + (shape==6)*0.5*(a+b)*h | 2
out perim | Perimeter | ft | (shape==1)*2*(a+b) + (shape==2)*4*a + (shape==3)*(a+b+c) + (shape==4)*2*pi*a + (shape==5)*2*(a+b) + (shape==6)*(a+b+2*sqrt(h*h+((a-b)/2)*((a-b)/2))) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →