Geometric Shapes Calculator — Volume & Surface Area
Select a 3D shape, enter its dimensions, and instantly get volume, total surface area, and shape-specific properties such as lateral area, slant height, or space diagonal. All calculations run in your browser with up to six decimal places of precision.
- Base Area
- 78.539816
How it works
Volume and surface area formulas for common 3D shapes
Every 3D shape has two fundamental measurements: volume — the amount of space it encloses — and surface area — the total area of all its faces. A sphere of radius r has volume (4/3)πr³ and surface area 4πr². A cylinder with base radius r and height h has volume πr²h, lateral area 2πrh, and total surface area 2πr² + 2πrh. A cone adds a slant height s = √(r² + h²): its volume is (1/3)πr²h and total surface area is πr² + πrs.
For polyhedra, a cube with side s gives volume s³, surface area 6s², and space diagonal s√3. A rectangular prism (cuboid) with dimensions l × w × h has volume lwh, surface area 2(lw + lh + wh), and space diagonal √(l² + w² + h²). A triangular prism with an isosceles triangular cross-section — base b, triangle height h△, and prism length l — has volume (1/2)bh△l and total surface area equal to the lateral rectangle area plus two triangular faces.
This calculator evaluates all these formulas with JavaScript’s 64-bit floating-point arithmetic, carrying full IEEE 754 precision and rounding displayed values to six decimal places. Keep all inputs in the same unit; the calculator is unit-agnostic — millimeters, centimeters, inches, or meters all work identically.
Real-world applications in packaging, architecture, and engineering
Packaging designers compute the volume of a box (rectangular prism) to determine how much product fits inside, and the surface area to estimate how much cardboard or film is needed. A cereal box 30 cm tall, 20 cm wide, and 8 cm deep holds 30 × 20 × 8 = 4800 cm³ and needs 2(30×20 + 30×8 + 20×8) = 2(600 + 240 + 160) = 2000 cm² of material.
Civil engineers use sphere and cylinder formulas when sizing water storage tanks, silos, and pressure vessels. A cylindrical tank 2 m in radius and 5 m tall holds π × 4 × 5 ≈ 62.83 m³ — about 62,830 liters. The surface area determines the amount of insulation or corrosion-resistant coating required.
In architecture, cone and triangular prism shapes appear in spires, dormer roofs, and decorative fins. Knowing the lateral surface area of a conical spire tells a roofer exactly how much copper or slate sheet to order. A cone with base radius 1.2 m and height 3 m has slant height √(1.44 + 9) ≈ 3.232 m and lateral area π × 1.2 × 3.232 ≈ 12.18 m².
How scaling dimensions affects volume and surface area
Scaling all three dimensions of a solid by a factor k multiplies its volume by k³ and its surface area by k². This cube-square law has profound practical consequences. Double the side of a cube (k = 2) and its volume grows by a factor of 8, while its surface area only quadruples. This is why large shipping containers are far more space-efficient per unit of material than small ones.
For a sphere, if you double the radius the volume increases eightfold from (4/3)πr³ to (4/3)π(2r)³ = 8 × (4/3)πr³. Surface area quadruples from 4πr² to 4π(2r)² = 16πr². The surface-to-volume ratio, 3/r for a sphere, halves — which is why large animals have proportionally less surface area relative to their body volume, affecting heat dissipation and metabolism.
When only one dimension is scaled, the effect is linear for that component. Doubling a cylinder’s height doubles its volume but increases total surface area by less than double (because the two circular caps are unchanged). This asymmetry matters when optimizing can designs: for a fixed volume, the most material-efficient cylinder has height equal to its diameter.
Frequently asked questions
›What is the difference between volume and surface area?
Volume measures the three-dimensional space a solid encloses, expressed in cubic units (cm³, m³, in³). Surface area measures the total area of all the outer faces, expressed in square units (cm², m², in²). Think of volume as how much water a container holds and surface area as how much paint you need to coat the outside.
›How is the slant height of a cone different from its height?
The height h of a cone is the perpendicular distance from the apex straight down to the center of the base. The slant height s is the distance along the sloped surface from the apex to the edge of the base. They are related by the Pythagorean theorem: s = √(r² + h²), where r is the base radius.
›Why does the triangular prism calculator assume an isosceles triangle?
For a general triangular cross-section you need all three side lengths to compute perimeter exactly. This calculator asks for base and height only, so it assumes an isosceles triangle — two equal legs each of length √((b/2)² + h²). For equilateral triangles with side b, the height is b√3/2, which gives the correct result when you enter that value.
›What units should I use?
Any consistent unit works — millimeters, centimeters, meters, inches, or feet. The calculator is unit-agnostic, so if you enter a radius in centimeters, the volume is in cubic centimeters and the surface area is in square centimeters. Do not mix units within a single calculation.
›How do I find the volume of a sphere with diameter instead of radius?
Divide the diameter by 2 to get the radius, then enter that value. For example, a sphere with diameter 10 cm has radius 5 cm, giving volume (4/3)π × 5³ ≈ 523.599 cm³.
›What is the space diagonal of a rectangular prism?
The space diagonal is the longest straight line inside the prism, connecting two opposite corners through the interior. Its length is √(l² + w² + h²). For a cube with side s, this simplifies to s√3. It is sometimes called the main diagonal or body diagonal.
›How does doubling the radius affect a sphere’s volume?
Doubling the radius multiplies the volume by 2³ = 8. This follows from the formula V = (4/3)πr³: replace r with 2r and you get (4/3)π(2r)³ = 8 × (4/3)πr³. Surface area quadruples (factor of 2² = 4) because it depends on r².
›Is any data sent to a server?
No. All calculations run entirely in your browser using JavaScript. No inputs or results are transmitted to any server.
Related tools
Last updated: