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.
- Area
- 40
- Perimeter
- 26
- Diagonal
- 9.4339811
Formula: Area = w·h · Perimeter = 2(w + h) · Diagonal = √(w² + h²)
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
- Choose a shape from the Shape menu. The input boxes change to match it.
- Enter the dimensions. A small labelled diagram shows which length each box refers to.
- Read the results — area, perimeter or circumference, and any extra properties — which update as you type.
- Check the Formula line under the results to see exactly how the values were calculated.
- 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?
Why does the triangle calculator reject my three sides?
Is the ellipse perimeter exact?
What is the apothem of a regular polygon?
Are my measurements sent anywhere?
Related tools
Circle Calculator
Calculate circle area, circumference, and more.
Triangle Calculator
Solve triangles from sides and angles.
Graph Plotter
Plot equations on an interactive graph.
Equation Solver
Solve linear and quadratic equations.
Aspect Ratio Calculator
Calculate aspect ratios for images and video.
Matrix Calculator
Add, multiply, and invert matrices.