Math & StatisticsFormula-based · Runs in your browser

Volume Calculator

Calculate volume and related surface measurements for eleven common three-dimensional shapes.

Preparing saved example…

Inputs

Enter the values you know. Optional fields may be left empty.

Local save controls below
Required
Required

Result

Updates as valid inputs change.

Calculated locally
Volume
Surface area
Base or cross-sectional area
Solid

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Shape formulas include V=4πr³/3, πr²h, lwh, πr²(h+4r/3), πh(r²+rR+R²)/3, and 4πabc/3.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Calculate volume and related surface measurements for eleven common three-dimensional shapes. Inputs are calculated locally in the browser, and valid values are retained in the page URL for bookmarking.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

25
  • ?shape= Solid

    Choice · Required · Default: sphere · Accepted values: sphere, cone, cube, cylinder, box, capsule, spherical-cap, frustum, ellipsoid, square-pyramid, tube

  • ?sphereRadius= Sphere radius

    Number · Required · Default: 5 · Used when shape = sphere

  • ?coneRadius= Cone base radius

    Number · Required · Default: 3 · Used when shape = cone

  • ?coneHeight= Cone height

    Number · Required · Default: 8 · Used when shape = cone

  • ?cubeEdge= Cube edge length

    Number · Required · Default: 4 · Used when shape = cube

  • ?cylinderRadius= Cylinder radius

    Number · Required · Default: 3 · Used when shape = cylinder

  • ?cylinderHeight= Cylinder height

    Number · Required · Default: 8 · Used when shape = cylinder

  • ?boxLength= Tank length

    Number · Required · Default: 10 · Used when shape = box

  • ?boxWidth= Tank width

    Number · Required · Default: 6 · Used when shape = box

  • ?boxHeight= Tank height

    Number · Required · Default: 4 · Used when shape = box

  • ?capsuleRadius= Capsule radius

    Number · Required · Default: 2 · Used when shape = capsule

  • ?capsuleHeight= Cylinder-section height

    Number · Required · Default: 6 · Used when shape = capsule

  • ?capBallRadius= Ball radius

    Number · Required · Default: 5 · Used when shape = spherical-cap

  • ?capHeight= Cap height

    Number · Required · Default: 2 · Used when shape = spherical-cap

  • ?frustumTopRadius= Top radius

    Number · Required · Default: 2 · Used when shape = frustum

  • ?frustumBottomRadius= Bottom radius

    Number · Required · Default: 4 · Used when shape = frustum

  • ?frustumHeight= Frustum height

    Number · Required · Default: 6 · Used when shape = frustum

  • ?ellipsoidA= Ellipsoid axis a

    Number · Required · Default: 3 · Used when shape = ellipsoid

  • ?ellipsoidB= Ellipsoid axis b

    Number · Required · Default: 4 · Used when shape = ellipsoid

  • ?ellipsoidC= Ellipsoid axis c

    Number · Required · Default: 5 · Used when shape = ellipsoid

  • ?pyramidBaseEdge= Square-pyramid base edge

    Number · Required · Default: 6 · Used when shape = square-pyramid

  • ?pyramidHeight= Square-pyramid height

    Number · Required · Default: 8 · Used when shape = square-pyramid

  • ?tubeOuterDiameter= Tube outer diameter

    Number · Required · Default: 10 · Used when shape = tube

  • ?tubeInnerDiameter= Tube inner diameter

    Number · Required · Default: 8 · Used when shape = tube

  • ?tubeLength= Tube length

    Number · Required · Default: 12 · Used when shape = tube

Outputs

4
  • volume Volume

    Number · Primary output

  • surfaceArea Surface area

    Number

  • baseArea Base or cross-sectional area

    Number

  • shapeName Solid

    Text

Formula notes

Shape formulas include V=4πr³/3, πr²h, lwh, πr²(h+4r/3), πh(r²+rR+R²)/3, and 4πabc/3.

Input guidance

Use consistent units for every length or measurement in the same calculation. Results are educational mathematical estimates and should be checked before high-stakes use.

Sources
Limitations
  • Results depend on the selected method and input assumptions. Displayed decimals may be rounded; retain appropriate precision for later calculations.