Geometry Calculator
Area, volume and surface area of any shape, in π, litres and gallons.
Pick a shape and type its sizes, or drag the handles on the drawing, to get its area and perimeter or its volume and surface area, exactly in terms of π and in everyday units.
ExampleVolume, sphere
904.78cm³
Exactly 288π cm³. Also 0.9048 litres, 0.239 US gallons.
Type your own sizes, or drag a handle.
Drag a round handle to change that size.
- Surface area
- 452.39 cm²
- Diameter
- 12 cm
How this works: 3 sources,
How this works
Method
Each shape uses its textbook formula: πr² and 2πr for a circle, l × w × h for a box, πr²h for a cylinder, (4/3)πr³ for a sphere, a third of the base times the height for a cone or pyramid, and the face areas added up for surface area. The numbers you type are read as exact fractions, so answers are kept exact in terms of π and square roots (288π, 3√5) beside the decimals. Volumes are converted with the exact definitions 1 in = 2.54 cm and 1 US gallon = 231 in³; an ellipse’s perimeter uses Ramanujan’s approximation.
Sources
How it’s tested
25 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: 13 shapes drawn to scale with handles, exact answers in π, litres and gallons, and slope, distance, midpoint, arc and polygon pages.
Key facts
- A sphere fills exactly two thirds of the smallest cylinder that holds it, a result Archimedes was proud enough of to want on his tomb.
- A cone holds one third of the cylinder with the same base and height, and a pyramid one third of the box.
- A US gallon is defined as 231 cubic inches, which is exactly 3.785411784 litres.
All 10 geometry calculators
Area and volume · Points and lines · Arcs and polygons
Area and volume
Points and lines
Arcs and polygons
Common questions
Which shapes can it measure?
Flat shapes (rectangle, square, triangle, circle, trapezoid, parallelogram and ellipse) for area and perimeter, and solids (box, cube, cylinder, sphere, cone and square pyramid) for volume and surface area. The pages below add slopes and distances between points, arcs and sectors, and regular polygons.
How do the handles on the drawing work?
Each round handle is one measurement. Drag it and the number changes, the drawing stays to scale and the answer updates as you go. On a keyboard, tab to a handle and use the arrow keys; hold Shift for bigger steps.
Why is the answer shown with π?
Because it is exact. A sphere with a radius of 6 has a volume of exactly 288π; 904.78 is that number rounded. Teachers often ask for answers in terms of π, and it shows where the number comes from.
Can I get litres or gallons?
Yes. Every volume is also given in litres and US gallons, and every area in square feet or square metres, from the exact definitions: 1 inch is 2.54 cm and a US gallon is 231 cubic inches.