2D Shape Master Calculator
Complete 2D geometry calculator for all common shapes — rectangles, squares, circles, triangles, ellipses, parallelograms, rhombuses, trapezoids, and regular polygons. Calculate area, perimeter, angles, and more.
About this calculator
Ten common flat shapes, one calculator: switch the shape dropdown and this tool swaps in the matching geometry — Heron's formula for a triangle given three sides, the law of cosines for its interior angles, Ramanujan's approximation for an ellipse's perimeter, or the apothem-times-perimeter method for a regular polygon. Behind the single "Area" and "Perimeter" headline numbers sits a full set of shape-specific extras: a circle also reports sector area and arc length if you dial in a sector angle less than 360°, a triangle reports its inradius and circumradius alongside a classification (equilateral, isosceles, or scalene, further tagged acute, right, or obtuse), and a regular polygon reports its central and interior angles. Every result is also converted across common area units — square feet, square meters, square inches, acres, and hectares — so a single set of inputs answers questions in whichever unit system your project actually uses.
The tradeoff of consolidating this many shapes into one tool is that only the fields relevant to your current selection matter; the rest sit inactive in the input list until you switch shapes. Two limitations worth knowing: the parallelogram and trapezoid calculations assume a symmetric (isosceles-style) shape when deriving diagonals or leg lengths from base and height alone, since those dimensions don't uniquely determine an asymmetric quadrilateral, and the triangle-by-sides mode silently returns a zero area for any three lengths that fail the triangle inequality rather than throwing an error.
Step 1 of 2
How to Use This Calculator
- Select the 2D shape type from the dropdown — options include rectangle, circle, triangle, ellipse, parallelogram, trapezoid, and regular polygon.
- Enter the required dimensions for the chosen shape; only the relevant input fields will be active.
- Area and perimeter (or circumference) are computed using standard geometric formulas for each shape.
- Additional properties — such as diagonals, angles, inradius, or circumradius — are shown where applicable.
- The pie chart breaks down shape properties proportionally for quick visual reference.
- All dimensions must be positive; for triangles the three sides must satisfy the triangle inequality.
How the result changes with Length
| Length | Area |
|---|---|
| 5 | 40 |
| 7.5 | 60 |
| 15 | 120 |
| 25 | 200 |
What each input means
- Shape
- The geometric shape to calculate.
- Unit System
- Measurement system (imperial or metric).
- Length
- Length of the rectangle
- Width
- Width of the rectangle
- Side Length
- Side length of the square
- Radius
- Distance from center to edge.
- Diameter
- Distance across the full shape.
- Side a
- Length of side A.
- Side b
- Length of side B.
- Side c
- Length of side C.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersShape = 0, Unit System = 0, Length = 10, Width = 8 = 28 input(s) provided
- Calculate AreaArea80 = 80
- Calculate PerimeterPerimeter36 = 36
- Calculate ShapeShapeRectangle = Rectangle
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does the circle option let me enter area or circumference instead of radius?
Not everyone starts from the same known measurement — a circle cut from a template might come with its area already labeled, or a pipe might be specified by circumference. The Circle Input Type selector lets you supply whichever value you actually have, and the calculator solves back to a radius internally before computing everything else from that single common value.
How is the diagonal calculated for a parallelogram when I only give it base, height, and side?
It first recovers the interior angle from height and side using an inverse sine, then applies the law of cosines twice — once adding the cosine term for one diagonal, once subtracting it for the other. This is exact for a standard parallelogram, but because height alone can correspond to two different angles (acute or its obtuse supplement), an unusually shaped parallelogram could in principle solve to the wrong one of the two.
What does the triangle classification (like 'Isosceles Right') actually tell me?
It combines two independent facts about the same triangle: how many sides are equal length (equilateral, isosceles, or scalene) and what its largest angle looks like (acute, right, or obtuse). A quilter or carpenter cutting triangular pieces can use this to sanity-check that entered measurements actually describe the shape they intended, since a typo in one side length often flips the classification unexpectedly.
Why did I get a zero area and an 'invalid triangle' message?
Three side lengths only form a real triangle when each side is shorter than the sum of the other two — the triangle inequality. If your three numbers fail that test (for example, sides of 2, 3, and 10), no flat triangle can physically close, so the calculator reports zero area and flags the combination as invalid rather than returning a misleading result.
Does switching the unit system convert my already-entered numbers?
No — the Imperial/Metric toggle relabels which unit your typed-in numbers represent (feet versus meters) rather than converting the values themselves, since the dimension fields are shared across both. The output section separately reports area in multiple units (square feet, square meters, square inches, acres, hectares) so you can read off whichever unit you need without re-entering anything.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
3D Shape Master Calculator
Complete 3D geometry calculator for all common shapes — cubes, boxes, spheres, cylinders, cones, pyramids, prisms, ellipsoids, torus, and capsules. Calculate volume, surface area, and more.
Geometry & MeasurementPythagorean Theorem Calculator
Find the missing side of a right triangle using the Pythagorean theorem. Calculate area, perimeter, and angles.
Geometry & MeasurementEllipse Calculator
Calculate ellipse area, perimeter, and eccentricity from semi-major and semi-minor axes.
Surveying & GISArea from Coordinates Calculator
Calculate polygon area from coordinate pairs using the shoelace (Gauss) formula. Supports 4-6 vertices with perimeter and centroid output.
Construction & Building TradesSquare Footage Calculator
Calculate the square footage of a rectangular area. Convert between square feet, yards, and meters. Estimate total cost based on price per square foot.
More in Math & Statistics.