This capacity calculator works out how much a box, tank or container holds. Enter the internal dimensions to calculate capacity in litres, gallons and cubic metres — a free calculator for capacity in litres, from boxes to cylinders.
Capacity Calculator
Capacity in litres for boxes and cylinders alike — measured inside, converted to gallons and cubic metres automatically.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Capacity Result
Calculated locally in your browser
—
Name
—
Container shape
—
Length
—
Width / cylinder diameter
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Capacity is calculated from internal volume: for a box, multiply length by width by height; for a cylinder, multiply pi by the radius squared by the height. A box measuring sixty by forty by thirty centimetres holds seventy two thousand cubic centimetres, and dividing by one thousand gives a capacity of seventy two litres exactly.
- Rectangular capacity = length × width × height; cylindrical capacity = π × (diameter/2)² × height; litres = cm³ ÷ 1,000
- Rectangular and cylindrical containers with flat bottoms only, filled to the brim; it does not model sloped sides, domed ends, displacement by contents, or safe fill levels.
Capacity quick reference
Reference values for this calculator.
| Container | Dimensions | Capacity |
|---|---|---|
| Standard aquarium | 60 × 30 × 30 cm | 54 L |
| Household bucket (cylinder) | Ø 30 cm × 30 cm | ≈ 21.2 L |
| Storage box | 40 × 30 × 25 cm | 30 L |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement: one tool handles the two shapes that cover most real containers (tanks, tubs, aquariums, planters) and reports litres with gallons and cubic metres in the details, using internal dimensions as the copy stresses.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Storage box capacity
Rectangular, 60 × 40 × 30 cm
| Calculation | Steps |
|---|---|
| Volume = length × width × height = 60 × 40 × 30 = 72,000 cm³; Capacity in litres = 72,000 cm³ ÷ 1,000 = 72 L. | 72 litres capacity — Internal dimensions give usable capacity; external dimensions overstate it by the wall thickness. |
Result
Example 2
Round water tank
Cylinder, diameter 50 cm, height 80 cm
| Calculation | Steps |
|---|---|
| Radius = diameter ÷ 2 = 50 ÷ 2 = 25 cm; Volume = π × r² × height = π × 625 × 80 = 157,079.6 cm³; Capacity in litres = 157,080 cm³ ÷ 1,000 = 157.08 L. | 157.08 litres capacity — Internal dimensions give usable capacity; external dimensions overstate it by the wall thickness. |
Result
Example 3
Small organiser box
Rectangular, 25.5 × 18 × 12 cm
| Calculation | Steps |
|---|---|
| Volume = length × width × height = 25.5 × 18 × 12 = 5,508 cm³; Capacity in litres = 5,508 cm³ ÷ 1,000 = 5.508 L. | 5.51 litres capacity — Internal dimensions give usable capacity; external dimensions overstate it by the wall thickness. |
Result
How to use this calculator
Step 1
Enter the container shape in the first field.
Step 2
Enter the length.
Step 3
Enter the width / cylinder diameter.
Step 4
Enter the height / depth.
Step 5
Press Calculate to run the formula: Rectangular capacity = length × width × height; cylindrical capacity = π × (diameter/2)² × height; litres = cm³ ÷ 1,000.
Step 6
Read the headline result, then check the detail metrics and the numbered steps to see exactly how it was derived.
Step 7
Adjust any input and recalculate to compare scenarios — the steps update with the new figures.
Frequently asked questions
How is the Capacity Calculator calculated?
The formula is: Rectangular capacity = length × width × height; cylindrical capacity = π × (diameter/2)² × height; litres = cm³ ÷ 1,000. The calculator substitutes your inputs step by step and shows every substitution in its steps, so the result can be reproduced by hand.
What does the Capacity Calculator result mean?
A capacity calculator works out how much a container holds — its volume expressed in practical units (litres, gallons, cubic metres) rather than raw cubic centimetres — for rectangular and cylindrical containers.
When should I use the Capacity Calculator?
Use it for aquariums, water tanks and barrels, storage boxes, planters, fuel containers and packaging — anywhere 'will it fit / how much does it hold' is the real question.
What are the limits of this Capacity Calculator?
Rectangular and cylindrical containers with flat bottoms only, filled to the brim; it does not model sloped sides, domed ends, displacement by contents, or safe fill levels.
What inputs does the Capacity Calculator need?
It needs: Container shape, Length, Width / cylinder diameter, Height / depth. Defaults are pre-filled with the worked example, so you can run it immediately and then replace the values with your own.
Is the Capacity Calculator free and private?
Yes. It runs entirely in your browser with no sign-up and no data sent to a server, and you can save the result as a PDF or PNG or share it from the result card.
About this calculator
A capacity calculator works out how much a container holds — its volume expressed in practical units (litres, gallons, cubic metres) rather than raw cubic centimetres — for rectangular and cylindrical containers.
Capacity is volume with a practical unit. The geometry is simple — length × width × height for a box, πr²h for a cylinder — but the measurement discipline matters more: always use internal dimensions, because wall thickness on a small container can eat 10% or more of the headline size.
Litres connect directly to cubic centimetres (1 litre = 1,000 cm³ exactly), which is why centimetre measurements are the natural input. The details also give US gallons (litres ÷ 3.78541) and cubic metres for bulk applications.
Real usable capacity is usually a little less than brim-full volume: aquariums are filled below the rim, fuel tanks need expansion space, and contents displace liquid. Treat the result as the container's maximum, then leave your own working margin.
Use it for aquariums, water tanks and barrels, storage boxes, planters, fuel containers and packaging — anywhere 'will it fit / how much does it hold' is the real question.
How to calculate it yourself
Step 1
Start from the defining formula: Rectangular capacity = length × width × height; cylindrical capacity = π × (diameter/2)² × height; litres = cm³ ÷ 1,000.
Step 2
Gather the inputs the formula needs: Container shape, Length, Width / cylinder diameter, Height / depth.
Step 3
Substitute your values into the formula exactly as written, keeping units consistent with the input labels.
Step 4
Work through the arithmetic in the order the calculator's steps show — the worked examples on this page demonstrate the full sequence with real numbers.
Step 5
Interpret the headline result together with its detail metrics and the verdict, and sanity-check it against the reference table on this page.
Real-life examples
Aquarium stocking check
A fish keeper measures a tank's inside at 80 × 35 × 40 cm to know its true water volume before dosing treatment.
Volume = length × width × height = 80 × 35 × 40 = 112,000 cm³; Capacity in litres = 112,000 cm³ ÷ 1,000 = 112 L.
112 litres capacity — Internal dimensions give usable capacity; external dimensions overstate it by the wall thickness.
Rain barrel sizing
A gardener checks a cylindrical barrel of 58 cm diameter and 88 cm height to see how much roof run-off it can store.
Radius = diameter ÷ 2 = 58 ÷ 2 = 29 cm; Volume = π × r² × height = π × 841 × 88 = 232,503 cm³; Capacity in litres = 232,503 cm³ ÷ 1,000 = 232.503 L.
232.5 litres capacity — Internal dimensions give usable capacity; external dimensions overstate it by the wall thickness.
Ideas & use cases
- Compare two product listings honestly: sellers quote external size; run both with estimated internal dimensions to compare real capacity.
- Work out dosing: medication and fertiliser are dosed per litre, so measure once and dose accurately every time.
- Check a delivery: if a supplier quotes cubic metres, compare against the details figure for your tank in m³.
Limitations & sources
- Rectangular and cylindrical containers with flat bottoms only, filled to the brim; it does not model sloped sides, domed ends, displacement by contents, or safe fill levels.
Sources: Standard volume formulas for cuboids and cylinders; litre = 1,000 cm³ exactly (SI); US gallon = 3.78541 litres
