ToolJutsu
All tools
Math & Education Tools

Geometric Shape Calculator

Calculate area and perimeter for common shapes.

Lengths are unitless — results use whatever unit you enter (cm, m, in…). Area is in those units squared.

wh
Rectangle results
Area
40
Perimeter
26
Diagonal
9.4339811

Formula: Area = w·h · Perimeter = 2(w + h) · Diagonal = √(w² + h²)

Processed on your device. We never see your files.

How to use Geometric Shape Calculator

What this tool does

The geometric shape calculator computes the area, the perimeter or circumference, and other useful properties of common two-dimensional shapes. Pick a shape — square, rectangle, triangle, circle, trapezoid, parallelogram, ellipse or regular polygon — type in its dimensions, and the results appear instantly alongside a small labelled diagram and the formula used. It loads with a sample rectangle so the layout, the diagram and the result list are all visible at once.

Every shape shows more than just area and perimeter. A square reports its diagonal, a triangle its semi-perimeter, a circle its diameter, a regular polygon its apothem and interior angle. The formula for each shape is printed with the results, so the tool doubles as a quick reference, not just a calculator.

When you would use it

Students use it to check geometry homework and to see the formulas applied to real numbers — the diagram and the printed formula together make it clear which dimension is which. Teachers use it to generate worked examples or to settle a “how did you get that” question on the spot.

Outside the classroom, area and perimeter calculations are constantly useful. Work out how much paint covers a wall, how much turf fills a garden bed, how much edging a flower border needs, or how much fabric a circular tablecloth takes. Anyone planning a project where a shape’s size matters — flooring, fencing, packaging, craft — can get the number here in seconds without remembering the formula.

How to use it

  1. Choose a shape from the Shape menu. The input boxes change to match it.
  2. Enter the dimensions. A small labelled diagram shows which length each box refers to.
  3. Read the results — area, perimeter or circumference, and any extra properties — which update as you type.
  4. Check the Formula line under the results to see exactly how the values were calculated.
  5. Use Copy results to copy the dimensions and computed values as text.

How it works

Each shape uses its standard geometry formula. The square, rectangle and circle are direct: side squared, length times width, π times radius squared. The triangle uses Heron’s formula, which finds the area from the three side lengths alone via the semi-perimeter, and the tool first checks the triangle inequality so it never tries to take the square root of a negative number. The regular polygon computes its apothem from the side length and side count, then uses the half-perimeter-times-apothem rule. The ellipse area is exact, while its perimeter uses Ramanujan’s accurate approximation, clearly marked as such.

For circle-specific work the circle calculator goes into more depth, and the triangle calculator covers angles and other triangle methods. To plot a shape’s defining equation on a grid, see the graph plotter.

Privacy

The shape calculator runs entirely in your browser. The dimensions you enter are processed locally in JavaScript and the results are computed on your device — there is no upload, no logging and no storage between visits. Refreshing the page restores the sample shape. Because no server is involved, the calculator continues to work offline once the page has loaded.

Frequently asked questions

What units do the results use?
The tool is unit-agnostic. Whatever unit you enter the dimensions in — centimetres, metres, inches, feet — the perimeter and other lengths come back in that same unit, and the area comes back in that unit squared. If you enter a rectangle's sides in metres, the area is in square metres. The tool does not convert between units, so just keep every dimension for a single shape in the same unit and read the results accordingly.
Why does the triangle calculator reject my three sides?
Three lengths can only form a triangle if each side is shorter than the sum of the other two — this is the triangle inequality. If you enter sides like 2, 3 and 10, the two shorter sides cannot reach across to close the shape, so no triangle exists and the area would be an imaginary number. The tool checks this rule and shows a message instead of a meaningless result. Adjust the side lengths so the inequality holds and it will compute the area with Heron's formula.
Is the ellipse perimeter exact?
No — and it cannot be. The exact perimeter of an ellipse has no simple closed formula; it requires an infinite series or an elliptic integral. The tool uses Ramanujan's well-known approximation, which is accurate to a tiny fraction of a percent for ordinary ellipses and is labelled as approximate in the results. The area of an ellipse, by contrast, is exact: it is simply π times the two semi-axes multiplied together.
What is the apothem of a regular polygon?
The apothem is the distance from the centre of a regular polygon straight to the midpoint of one of its sides — in other words, the radius of the inscribed circle. It is the key to the area: a regular polygon's area equals half its perimeter times its apothem. The tool computes the apothem from the side length and the number of sides, then uses it for the area, and shows it alongside the result so the calculation is transparent.
Are my measurements sent anywhere?
No. Every dimension you enter and every area, perimeter and property the tool computes stays in your browser. The geometry runs in JavaScript on your device, nothing is uploaded to a server, and nothing is stored between visits. Refreshing the page restores the sample shape. The calculator works offline once the page has loaded, which confirms no server is involved.

Related tools