Skip to main content

Solid Geometry Calculator

One tool for the seven solids school and workshop geometry actually uses — sphere, cylinder, cone, cube, cuboid, square pyramid and triangular prism — each asking only for its own measurements and returning volume and total surface area. One tool per job: the job is “volume and area of a standard solid”, so it lives on one page with a shape selector rather than seven near-identical pages.

The arithmetic is honest about its two kinds of answer. Solids without curves — cube, cuboid, pyramid, prism with whole slant heights — compute exactly. Anything involving π, or a square root that does not come out whole, is printed at ten decimals and labeled an approximation in the steps. All measurements share one unit, chosen by you; volume comes out in that unit cubed, area in it squared.

Solid

Volume (cm³)

113.0973355292

Involves π, so this is π at full double precision shown at 10 decimals — an approximation, as any π figure is.

Surface area (cm²)

113.0973355292

Involves π or a square root — shown at 10 decimals and labeled approximate in the steps.

Diameter (centimetres)

6

How it is worked out

  1. V = (4/3)πr³ = (4/3)π × 3³ and A = 4πr² with r = 3 — π makes both answers approximations, printed at 10 decimals.

Embed this calculator on your website →

The formula

sphere V = (4/3)πr³, A = 4πr² · cone V = (1/3)πr²h · prism V = (base area) × length

  • The third rule — a cone is exactly a third of its cylinder, and a pyramid a third of its prism: the ⅓ in both formulas is the same geometric fact.
  • Slant height — cones and pyramids need it for surface area: for a cone it is √(r² + h²); when that root is whole (r 3, h 4 → 5), the area can still be exact.
  • The prism’s triangle — the triangular prism takes a triangle base and height, and its third side is the hypotenuse of that right triangle — stated here because a scalene cross-section would need its own side.

Worked example: a sphere of radius 3 has volume and area both equal to 113.0973355292 — 36π twice over, a coincidence of r = 3 that makes a tidy check.

How it works

Surface area is the wrapping question; volume is the filling question. Paint, sheet metal and packaging live off areas; tanks, moulds and freight live off volumes. The two scale differently — double a solid and its area quadruples while its volume grows eight-fold — which is why elephants need thick legs, ice cubes melt from the outside, and this page always reports both: a number without its twin invites the classic factor-of-scale blunder.

One unit, no conversions. The tool deliberately takes every measurement in a single unit rather than mixing — most real-world solid-geometry errors are unit slips (a radius in centimetres meeting a height in inches) wearing an arithmetic costume. Convert first with the unit converter if your measurements arrive mixed; here, one unit in, cubic and square units of the same out.

Examples

  • A cube of side 4 — volume 64, area 96, both exact.
  • A cone, r 3, h 4 — slant height exactly 5; volume 37.6991118431 (12π), area 75.3982236862 (24π).
  • A square pyramid, base 6, height 4 — volume 48 and area 96, both exact: its slant height is a whole 5.

Frequently asked questions

Why is the cone's volume a third of the cylinder's?

Fill a cone with sand and pour it into the cylinder of the same base and height: exactly three conefuls fill it. The mathematics behind the demonstration is Cavalieri's principle — at every height the cone's cross-section is the cylinder's scaled by the same factor, and integrating that scaling gives exactly 1/3. The same third appears in the pyramid's formula for the same reason.

What is slant height, and why does area need it?

The slant height is the distance from the apex down the sloping face to the base edge — the height of the triangular face itself. Unfold a cone and its side is a sector whose radius is the slant height; a pyramid's faces are triangles with the slant as their height. Volume uses the vertical height; surface area uses the slant. Confusing the two is the most common error in this corner of geometry, which is why the tool computes and displays the slant explicitly.

Why do some answers print exactly and others as long decimals?

Curved solids bring π into their formulas, and π has no exact decimal — so sphere, cylinder and cone figures are approximations at ten decimals, labeled as such. Straight-edged solids with friendly dimensions stay in exact rational arithmetic: a cuboid 2 × 3 × 4 has volume exactly 24. When a slant height involves an unrootable square root (√13, say), that figure is labeled approximate too — the page always tells you which kind of answer you are holding.

Which triangular prism does this tool assume?

One whose triangular cross-section is the right triangle described by the base and triangle height you enter, with the hypotenuse as its third side — the standard textbook prism. Volume (½ × base × height × length) holds for any triangular cross-section, but the surface area needs all three sides; if your triangle is not right-angled, enter its sides into the triangle calculator first, or treat this page's area as the right-triangle case it states.