2D AND 3D GEOMETRY

Geometry Calculator

Calculate area, perimeter, volume, and surface area for familiar shapes. Choose a figure, enter only the measurements its formula needs, and see the working with correctly powered units.

CALCULATOR

Choose a shape

Area, perimeter, and diagonal from length and width.

Press Enter to calculate

Length results use cm; area uses cm²; volume uses cm³.

RESULT

Rectangle measurements

Area60 cm²
Perimeter34 cm
Diagonal13 cm
l = 12 cm · w = 5 cm
FORMULA USED
A=lw,P=2(l+w),d=l2+w2A=lw,\quad P=2(l+w),\quad d=\sqrt{l^2+w^2}
Step-by-step calculation
  1. Area: A = lw = 12 × 5 = 60 cm².
  2. Perimeter: P = 2(l + w) = 2(12 + 5) = 34 cm.
  3. Diagonal: d = √(l² + w²) = √(12² + 5²) ≈ 13 cm.

What this geometry calculator can find

This free geometry calculator brings common area, perimeter, volume, and surface-area calculations together in one place. It works with plane figures such as circles and polygons and three-dimensional solids such as cylinders and prisms. Select a shape to see only the measurements needed for that calculation; optional dimensions are clearly marked.

Area and perimeter

Area measures the two-dimensional region enclosed by a shape. It is reported in square units, such as cm². Perimeter measures the total boundary length; a circle’s perimeter is called its circumference. These are different quantities, so area uses squared units while perimeter uses ordinary length units.

Volume and surface area

Volume measures the space inside a solid and uses cubic units, such as m³. Surface area is the combined area of the solid’s outside faces and uses square units. For curved solids, curved area and total surface area can differ because total area includes any flat bases.

Common 2D geometry formulas

For a flat shape, choose the formula that matches the information you know. The calculator labels each result in the selected unit and shows which measurements were substituted.

ShapeAreaPerimeter or boundary
SquareA = s²P = 4s
RectangleA = lwP = 2(l + w)
TriangleA = bh/2 or √[s(s−a)(s−b)(s−c)]P = a + b + c
CircleA = πr²C = 2πr
SemicircleA = πr²/2P = πr + 2r
ParallelogramA = bhP = 2(a + b)
RhombusA = d₁d₂/2P = 4s
TrapezoidA = (a + b)h/2P = a + b + c + d
KiteA = d₁d₂/2P = 2(a + b)
Regular n-gonA = ns²/[4 tan(π/n)]P = ns

Common 3D geometry formulas

For solids, use perpendicular heights in volume formulas. Slant height is a different measurement and is used for a cone’s or pyramid’s lateral surface area.

SolidVolumeSurface area
CubeV = s³S = 6s²
CuboidV = lwhS = 2(lw + lh + wh)
SphereV = 4πr³/3S = 4πr²
HemisphereV = 2πr³/3S = 3πr² including the base
CylinderV = πr²hS = 2πr(h + r)
ConeV = πr²h/3S = πr(r + ℓ), ℓ = √(r² + h²)
Square pyramidV = s²h/3S = s² + 2sℓ
Triangular prismV = AᵦLS = PᵦL + 2Aᵦ
Regular polygonal prismV = AᵦhS = Pᵦh + 2Aᵦ

How to use the geometry calculator

  1. Choose whether to work with a 2D shape or a 3D solid from the Shape menu.
  2. Select the measurement method when more than one valid method is available. For example, a triangle’s area can use base and perpendicular height or all three sides with Heron’s formula.
  3. Choose one length unit and enter each measurement in that same unit. Enter positive values; polygon side counts must be whole numbers.
  4. Select Calculate. The answer appears beside the inputs on desktop and directly below them on smaller screens.
  5. Review the formula and substitutions, then copy the measurements if you need them for homework or a design check.

Worked geometry examples

Rectangle: area, perimeter, and diagonal

For length 12 cm and width 5 cm, area is 12 × 5 = 60 cm², perimeter is 2(12 + 5) = 34 cm, and diagonal is √(12² + 5²) = 13 cm.

Triangle: area from three sides

For sides 5, 6, and 7 cm, the semiperimeter is 9 cm. Heron’s formula gives √[9 × 4 × 3 × 2] = 6√6 ≈ 14.697 cm²; the perimeter is 18 cm.

Circle: circumference and area

A circle with radius 5 cm has area 25π ≈ 78.540 cm² and circumference 10π ≈ 31.416 cm.

Cylinder: volume and outside area

For radius 3 cm and height 8 cm, volume is 72π ≈ 226.195 cm³. Total surface area is 66π ≈ 207.345 cm², including both circular ends.

Cone: derive slant height first

With radius 3 cm and perpendicular height 4 cm, slant height is √(3² + 4²) = 5 cm. Volume is 12π ≈ 37.699 cm³; total surface area is 24π ≈ 75.398 cm².

Geometry calculator questions

What is a geometry calculator?

It is a tool that applies geometric formulas to dimensions you provide. This page calculates measures for common 2D figures and 3D solids, with units and working shown.

How do I calculate the area of a shape?

Choose the shape and use the matching dimensions. For example, rectangle area is length times width; a triangle’s area is half its base times its perpendicular height; and circle area is π times radius squared.

What is the difference between area and perimeter?

Area is the amount of flat surface enclosed by a shape. Perimeter is the distance around its boundary. Area uses square units; perimeter uses linear units.

How do I calculate the volume of a 3D shape?

Select a solid and enter its dimensions. The calculator applies its volume formula, such as V = πr²h for a cylinder or V = lwh for a cuboid, and reports cubic units.

What is the difference between surface area and volume?

Surface area measures the outside of a solid and uses square units. Volume measures the space inside it and uses cubic units.

Can I use different units?

Yes. Choose millimeters, centimeters, meters, kilometers, inches, feet, or yards. Enter all dimensions in the selected unit; the result labels use that unit, its square, or its cube as appropriate.

Is this geometry calculator free?

Yes. You can calculate without creating an account.

Can students use it for homework?

Yes. Use the steps to understand how a formula is substituted and evaluated, and check that your input measurements match the problem statement.

When can a triangle’s perimeter be calculated?

The perimeter needs all three side lengths. If you enter only a base and height, the triangle’s area is determined, but its other side lengths and perimeter are not.

Related geometry calculators

Open a focused calculator for a particular measurement or shape: