calculators

Volume Calculator

Pick a shape - cube, rectangular prism, sphere, cylinder, cone or square pyramid - enter its dimensions, and get the volume plus surface area live. The formula used is shown for each shape, units run mm/cm/m/in with cubic and square outputs, and right/regular solids only are modelled - oblique shapes, frustums and composites are named, not approximated.

Solid shape

Cube edge

e.g. 2, 5.5 or 10 cm

Every dimension uses this unit - volume shows in its cube (cm^3) and surface area in its square (cm^2). The numbers stay as typed; the unit applies to them.

A cube has six identical square faces, so every edge is the same length s: V = s^3 and SA = 6*s^2.

Volume and surface area

Result precision

Enter the edge length - volume and surface area solve live as you type.

How solids work here

  • Right, regular solids only - cube, rectangular prism, sphere, right circular cylinder and cone, and right square pyramid. Oblique cones and pyramids, frustums and composite shapes are out of scope - named, not approximated.
  • Solid volumes only - wall thickness, fill levels and hollow shells are not modelled; the answer is the volume of a solid of the stated shape.
  • One shared unit for every dimension - pick mm, cm, m or in; volume shows in its cube (like cm^3) and surface area in its square (like cm^2). The typed numbers are always read in the selected unit.
  • Zero and negative dimensions are rejected, never clamped; results that would overflow or underflow are flagged honestly instead of printing Infinity or NaN.
  • pi runs at full double precision internally; the display rounds to 6 or 12 significant digits and the rounding never feeds back into the math. Results are estimates for learning and checking work - not engineering, manufacturing or construction measurement.

Enter the edge length - volume and surface area solve live as you type.

Privacy settings

Checking…

We count anonymous tool use and coarse errors to improve ToolDeck. We do not send your files, pasted text, generated links, or results. Normal network delivery still exposes connection metadata to Cloudflare. Your choice is stored only in this browser's local storage — we do not create a visitor ID. Decline opts out; your browser's Global Privacy Control or Do Not Track signal overrides any choice.

Developer feedback