b2KIT

Area & Perimeter Calculator

Calculate area and perimeter for rectangles, circles, triangles, and other shapes with visual diagrams.

Tested tool guide Tested browser tools Checked August 16, 2026

What Area & Perimeter Calculator does, with a checked example

This calculator finds area and perimeter for rectangles, circles, and triangles from the dimensions you type in, then draws a simple diagram scaled to those numbers so the shape looks the way it should before you trust the result. Pick a shape, enter its required measurements - length and width for a rectangle, radius for a circle, and for a triangle either base and height (area only) or three side lengths (for perimeter) - and it runs the matching formula automatically. The most common mix-up is with triangles: perimeter needs all three side lengths, but area only needs base and height, so entering just the two 'area' fields and expecting a correct perimeter back will not work.

Worked example

A concrete input and expected output from the current implementation.

Input

Rectangle, length = 12, width = 5

Expected output

Area = 60 square units, Perimeter = 34 units

Area is length times width (12 x 5 = 60); perimeter is twice the sum of the two sides (2 x (12 + 5) = 34).

How the result is produced

1

Shape-specific formulas

Each shape uses its own closed-form formula rather than a generic estimate: rectangles use A = l*w and P = 2(l+w); circles use A = pi*r^2 and circumference = 2*pi*r; triangles use A = 0.5*base*height for area, but perimeter requires all three side lengths rather than base and height alone.

2

Scaled diagram output

After computing the numbers, the tool draws an outline of the shape proportioned to the values entered, with dimensions labeled on the sides. A rectangle that is much longer than it is wide will actually render elongated, which makes it easier to spot a transposed length and width or a diameter value typed into the radius field.

Good uses

  • Estimating flooring, paint, or turf (area) and baseboard or fencing (perimeter) for a rectangular room or yard before ordering materials
  • Sizing a circular garden bed or pool, using area for mulch or water volume and circumference for edging or fencing length
  • Checking a geometry homework answer for triangle area or perimeter without redoing the arithmetic by hand

Limits and checks

  • Triangle perimeter needs three side lengths, a separate input from the base-and-height fields used for triangle area; base and height alone cannot produce a perimeter, so switch to the three-side entry mode when that's what you need
  • There is no unit conversion - the output is in whatever unit you typed in, so mixing feet and inches in the same shape's inputs will produce a silently wrong number
  • Only the listed shape types are supported; an irregular or composite outline (an L-shaped room, a curved border) has to be split into separate rectangle, circle, or triangle pieces and totaled by hand

Common questions

Does it matter if I enter a circle's radius or its diameter?

Yes. The area and circumference formulas both expect radius (A = pi*r^2, C = 2*pi*r). If the field is labeled radius and you type a diameter instead, the area comes out about four times too large and the circumference about twice too large, so check the field label before entering the number.

Can I work backward from a known area to find the perimeter?

No. The tool only goes forward from a shape's dimensions to area and perimeter; it does not invert the formulas. If you already have an area figure and need the perimeter, you need the shape's actual side lengths or radius, not just the area number.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools