Volume and Surface Area Calculator

Select an object








What is the Volume and Surface Area Calculator?

The Volume and Surface Area Calculator is an easy-to-use online tool that helps you compute two of the most important properties of 3D shapes: their volume (the amount of space they occupy) and their surface area (the total area covering the outer surface of the shape). It’s designed for everyday users, students, teachers, engineers, architects, and anyone who works with measurements or geometry.

Instead of memorizing complex mathematical formulas for each individual shape, this calculator allows you to select a shape from a visual list, input the required dimensions (like radius, height, or side length), and instantly get the accurate results. It's perfect for quick calculations, educational use, or even for checking your own work.

The tool supports a wide variety of geometric shapes, including common ones like cubes, cylinders, cones, and spheres, as well as more advanced shapes such as toruses, frustums, and spherical zones. Each shape has its own set of required measurements, and the calculator only asks for the specific values needed for that shape — nothing more, nothing less.

Once you've selected a shape and entered the values, the calculator will display the results in real-time, including:

  • Volume (V) – How much space the object occupies
  • Surface Area (A) – The total outer area of the shape
  • Total Surface Area (AT) – Includes both lateral and base areas (when applicable)
  • Diagonal (D) – For shapes like cubes and parallelepipeds
  • Slant Height (s) – For cones and pyramids
  • Center of Gravity (G) – For balancing-related applications

To make things even easier, the calculator shows a helpful image of the selected shape along with labeled parts, so you know exactly which measurements to enter. You can even toggle between alternative methods — for example, entering either the side length or slant height, depending on what data you have available.

Whether you're doing homework, designing a container, planning a construction project, or just satisfying your curiosity, the Volume and Surface Area Calculator is here to save you time, reduce error, and make geometry simple and accessible for everyone.

How to Use the Calculator

Using the Volume and Surface Area Calculator is quick and easy. Just follow these three simple steps:

Step 1: Select a geometric shape

Start by choosing the 3D shape you want to work with. You’ll find a list of shapes such as Cone, Cylinder, Sphere, Cube, and many others. Simply click the radio button next to your desired shape, and an image will appear to help you visualize it.

Step 2: Enter the required values

Once you've selected a shape, a set of input fields will appear. These fields will ask for specific measurements like radius, height, diameter, or side length — depending on the shape. Make sure to enter numbers only. Some shapes give you options, like choosing between radius or circumference, so you can use whichever measurement you have available.

Step 3: Click “Calculate” to see the results

After entering all the necessary values, click the “Calculate” button. The calculator will instantly display the results, including volume, surface area, and other relevant information like slant height or center of gravity when applicable.

Available Shapes

The calculator supports a wide range of 3D shapes. Each one comes with its own image and specific input fields based on its geometry. Below is the list of all available shapes you can choose from:

  • Barrel – A curved container shape, like a drum
  • Cone – A pointed shape with a circular base
  • Frustum Cone – A cone with the top cut off
  • Cube – A box with six equal square faces
  • Cylinder – A shape with circular bases and straight sides
  • Hollow Cylinder – A cylinder with an empty inner core (like a pipe)
  • Sectioned Cylinder – A cylinder split into two segments of different heights
  • Parallelepiped – A box-shaped figure with opposite faces parallel
  • Hexagonal Prism – A prism with hexagon bases
  • Pyramid – A base with triangular sides meeting at a point
  • Frustum Pyramid – A pyramid with its top sliced off
  • Sphere – A perfect round ball shape
  • Spherical Cap – A portion of a sphere sliced by a plane
  • Spherical Sector – A pie-shaped part of a sphere
  • Spherical Zone – A band-like section of a sphere
  • Torus – A donut-shaped object (a ring-like shape)

Each shape includes the exact fields needed for accurate volume and surface area calculation. Simply select one to begin!

Input Guide for Each Shape

Each shape in the calculator requires specific values to compute its volume and surface area. Below is a guide to help you understand which measurements you’ll need to provide and what they represent. In some cases, you’ll have options — like entering either radius or circumference — depending on the data you have.

Common Terms Explained:

  • r – Radius (distance from center to edge of a circle)
  • h – Height (vertical distance from base to top)
  • a, b, c – Side lengths (used in prisms, cubes, and boxes)
  • D, d – Diameter (full width of a circle or cylinder)
  • s – Slant height (used in cones and pyramids)
  • B – Base area (area of the bottom surface)
  • p – Perimeter of the base (used for surface area calculations)
  • S – Surface area of the top or bottom (used in frustums)
  • c – Chord or curved diameter (used in spherical caps and zones)

Examples of Required and Optional Fields:

  • Cone:
    Required: Radius (r) and Height (h)
    Optional: Slant height (s) can be calculated automatically if not provided.
  • Frustum Cone:
    Required: Top radius (r), Bottom radius (R), and Height (h)
    Surface area needs slant height, which is auto-calculated.
  • Hexagonal Prism:
    Required: Height (h) and either Side length (a) or Slant (s)
    Only one of the two (a or s) is needed — not both.
  • Spherical Cap:
    Required: Height (h) and either Radius (r) or Chord length (c)
    The calculator automatically uses the value you provide and disables the other.
  • Parallelepiped:
    Required: Side lengths a, b, c (length, width, height)
  • Torus:
    Required: Major radius (R) and Minor radius (r)

Always enter values using consistent units (e.g., cm, m, in), and make sure to input numbers only. If a value is missing or invalid, the calculator may not show a result.

Understanding the Results

After entering your values and clicking "Calculate," the calculator will show several results depending on the shape you selected. Here's what each result means:

  • Volume (V)
    This represents the amount of space inside the object. It’s typically measured in cubic units (e.g., cm³, m³, in³).
  • Surface Area (A)
    This is the total area covering the outer surface of the shape, excluding the base or top if applicable. It’s measured in square units (e.g., cm², m²).
  • Total Area (AT)
    This is the complete surface area, including all sides, bases, and curved surfaces. It's especially useful for calculating the material needed to cover an object.
  • Diagonal (D)
    For box-like shapes (like a cube or parallelepiped), this is the longest internal straight line from one corner to the opposite corner.
  • Center of Gravity (G)
    This shows the height or position at which the shape would balance perfectly. It's useful in construction and physics applications.
  • Slant Height (s)
    For shapes like cones and pyramids, this is the diagonal distance from the base edge to the top (not the vertical height).
  • Diameter of Spherical Cap (c)
    This is the width across the base of a spherical cap, measured straight through the circular cut surface.
  • Radius from Surface (r)
    This is the radius of the full sphere from which a cap, sector, or zone is cut. It helps reconstruct the original shape.
  • Height from Sphere Segment (h)
    In spherical shapes, this represents the vertical depth or thickness of a cap, zone, or sector — measured from the flat surface to the top curve.

All results are shown with up to three decimal places for accuracy. You can use them for construction planning, volume estimation, material calculations, and much more.

Images for Better Understanding

To make the calculator easier to use, a helpful image appears every time you select a shape. These visuals are designed to clearly show the shape and its parts — such as height, radius, base, slant height, and other key measurements — so you know exactly what values to enter.

For example:

  • When you choose a cone, an image appears showing the height, radius, and slant height labeled clearly.
  • For a sphere, the image highlights the radius and center point.
  • With more complex shapes like a frustum cone or torus, the images help you visualize the top and bottom radii, curved surfaces, and more.

These diagrams serve as quick references, especially if you're unfamiliar with geometric terms. They help prevent errors by showing exactly where each dimension should be measured.

As soon as you select a different shape, the corresponding image updates automatically — giving you a visual guide to match the input fields shown.

Tips & Warnings

To ensure accurate results and a smooth experience, keep the following tips and warnings in mind when using the calculator:

  • Always enter numeric values:
    The input fields accept numbers only. Avoid typing letters, symbols, or empty spaces — otherwise, the calculator may not work correctly or may give you no result at all.
  • Use consistent units:
    Whether you choose centimeters, meters, inches, or any other unit, make sure you use the same unit for all dimensions in a single calculation.
  • Some shapes offer multiple input methods:
    For example, the Hexagonal Prism lets you enter either the side length (a) or the slant (s). Choose just one — don’t fill in both, or the results may be incorrect.
  • Double-check your inputs:
    Small errors in entering dimensions can lead to large differences in the result. Take a moment to review your numbers before clicking "Calculate."
  • If no result appears:
    Make sure you have filled in all the required fields for the selected shape. If even one required value is missing or invalid, the calculator will not display a result.
  • Images are your guide:
    Refer to the shape diagram that appears after you make a selection. It shows which measurement goes where, helping you avoid confusion.

By following these tips, you’ll get more accurate results and avoid common mistakes.

FAQ

Why is my result blank?

If no result appears after clicking "Calculate," make sure you’ve entered all the required values for the selected shape. Double-check that the inputs are valid numbers and that you haven’t left any fields empty. Some shapes also offer alternative inputs — use only one method, not both.

Can I use decimal numbers?

Yes, you can! The calculator accepts both whole numbers and decimals. Just use a dot (.) for the decimal point, for example: 7.5 or 12.3.

What unit of measurement should I use?

You can use any unit you prefer (e.g., centimeters, meters, inches), but it’s important to use the same unit for all inputs in a single calculation. The results will be in cubic units for volume and square units for surface area, based on the unit you use.

Do I need to install anything to use this calculator?

No installation is needed. The calculator runs directly in your web browser — just open the page and start using it.

What if I make a mistake?

If you enter a wrong value, you can simply change it or clear the input field. You can also select a different shape and start over — the calculator will automatically reset the form for the new shape.

Is this tool mobile-friendly?

Yes! The calculator is designed to work on all devices — phones, tablets, and computers. The layout adjusts automatically for smaller screens.

What if I don’t know all the values?

Some shapes allow alternative inputs. For example, in spherical caps or hexagonal prisms, you can use either radius or chord/side/slant. If you’re unsure which one to use, refer to the image shown for that shape.

References

  • Thomas' Calculus – George B. Thomas, Maurice D. Weir, Joel Hass – 2014 – Pearson
  • Geometry: Euclid and Beyond – Robin Hartshorne – 2000 – Springer
  • Mathematics Handbook – Lennart Råde, Bertil Westergren – 2004 – Springer
  • CRC Standard Mathematical Tables and Formulae – Daniel Zwillinger – 2018 – CRC Press
  • Basic Mathematics – Serge Lang – 1988 – Springer

MATH CALCULATORS

Calculate the area of a Sphere

Although it is entirely composed of a single curved surface, it is possible to calculate the area of the sphere.

A = 4 . π . r² where r = measure of the radius

From its curved surface, we can see a certain resemblance between this formula and that allowing to calculate the area of a disc. Thus, only one measurement is essential to allow the use of this formula, namely the measurement of the radius.

Calculate the volume of the Sphere

The volume of a Sphere corresponds to the space inside the sphere which delimits it. To find its volume, just apply this formula:

V = 4 . π .r3 with r = measure of the radius

Once again, only the radius measurement is necessary to complete the process.

Calculate the volume of the Spherical cap

The volume delimited by a spherical cap of height h and the sphere of radius r is:

V = π .r2 (r - h/3)

Calculate the volume of the Spherical sector

The volume V of a spherical sector corresponding to a spherical cap of height h in a ball of radius r is given by the relationship:

V = (2 . π .r2 .h)/3

Calculate the area of a Spherical Zone

The area of a spherical zone or of a spherical cap is given by the following formula:

A = 2π .r .h

in which :

r is the radius of the sphere;

h is the distance between the two parallel planes.

Calculate the volume of the Spherical Zone

The volume V of a spherical Zone corresponding to a spherical cap of height h in a ball of radius r is given by the relationship:

V = π h / 6 (3R2 + 3r2 + h2)

in which :

h: height of the zone

a: large radius

b: small radius

Barrel volume formula

Johannes KEPLER (German mathematician and astronomer, 1571-1630) established the following formula to calculate an approximate value V of the volume of a barrel:

Barrel Volume =(πh/12) x (2D2 + d2)

h: height

D: middle radius

d: top & bottom radius

Calculate the area of the Torus

The area A of a torus of radius R generated by a disk of radius r is given by:

A = 4π2 . R . r

in which :

R: large radius

r: small radius

Calculate the volume of the Torus

The volume V of a torus of radius R generated by a disk of radius r is given by:

V = 2π2 . r2 . R

in which :

R: large radius

r: small radius