On This Page
- When to use this calculator
- Sphere packing formulas
- One sphere vs. many spheres
- Worked examples
- Frequently asked questions
When to Use This Calculator
Enter the sphere diameter and the clearance you need on each side. Clearance is the gap between the product and the box wall, it accounts for protective packaging material, movement during shipping, or working room around the item. For retail packaging, also leave room for inserts, labels, and product presentation. The calculator returns inner box size, outer box size including wall thickness, fill efficiency, and void space.
The fill efficiency figure matters for cost: high void volume means more dimensional weight charges from carriers and more filler material (foam, air pillows, molded pulp) to pay for. For multiple spheres, the quantity field calculates total shipment volume for the whole order.
Sphere Packing Formulas
- Sphere volume: V = (4/3)πr³ — use the Sphere Volume Calculator for exact sphere volume with working steps
- Inner box volume: V = inner side³
- Void volume: inner box volume − sphere volume
- Fill efficiency: sphere volume ÷ inner box volume × 100
- Outer box side: inner side + 2 × wall thickness
- Total shipment volume: inner box volume × quantity
The calculator uses diameter. If you only know the radius, double it: diameter = 2 × radius. Add clearance twice because the sphere needs space on both sides in every direction, clearance on the left and on the right, front and back, top and bottom. The outer box side is larger than the inner side by twice the wall thickness; use outer dimensions for carrier rate quotes and shelf footprint.
A sphere can never fill all corners of a cube. Even with zero clearance, a sphere touching all six faces, fill efficiency is only π/6 ≈ 52.4%. Every unit of clearance added reduces it further.
One Sphere vs. Many Spheres
One sphere in one box: use the inner side formula above. The calculator handles this directly.
Many equal spheres in one shared container: the simplest estimate is a regular grid. Divide each container dimension by the sphere diameter, round each count down, and multiply.
This grid method is easy to verify and works well for first-pass packaging estimates and most classroom sphere packing problems. Staggered (hexagonal close) packing fits roughly 10–15% more spheres in the same container but requires specific layer arrangements and is harder to calculate by hand.
Packing into a cylindrical container instead of a box? The cross-section is circular, so the grid formula above does not apply. See Sphere Packing in a Cylinder: Optimal Radius and Height for the radius ratio method.
Worked Examples
Example 1, Box size for one sphere with clearance
A glass ornament has a diameter of 10 cm and needs 1 cm of clearance on every side.
- Inner side = 10 + 2 × 1 = 12 cm
- Sphere volume = (4/3) × π × 5³ = 523.6 cm³
- Box volume = 12³ = 1,728 cm³
- Void volume = 1,728 − 523.6 = 1,204.4 cm³
- Fill efficiency = 523.6 ÷ 1,728 × 100 = 30.3%
Example 2, Cube box for 27 spheres (radius 2 cm)
27 equal spheres, each with radius 2 cm, arranged in a simple 3×3×3 grid.
- Diameter = 2 × 2 = 4 cm
- Required side = 3 × 4 = 12 cm
For the deeper math behind this case, including minimum surface area and rounding constraints, see How to Find the Optimal Box Dimensions to Pack 27 Spheres.
Example 3, Grid box with outside clearance and rounding
Spheres with radius 2 cm, 3×3×3 grid, 0.25 cm clearance on each outside face, measurements rounded to nearest 0.5 cm.
- Grid side without clearance = 3 × 4 = 12 cm
- Add outside clearance = 12 + 2 × 0.25 = 12.5 cm
- Rounded to 0.5 cm: 12.5 cm
Example 4, Does a 10 cm cube hold 27 spheres (radius 2 cm)?
- Diameter = 4 cm
- Spheres per row = floor(10 ÷ 4) = 2
- Grid capacity = 2 × 2 × 2 = 8 spheres
No. A 10 cm cube holds only 8 spheres in a simple grid. A 12 cm cube is needed for 27 spheres (3×3×3).
Example 5, Total shipment volume for 36 individual packages
36 spherical products, each in its own 12 cm cube box.
- Volume per package = 12³ = 1,728 cm³
- Total volume = 1,728 × 36 = 62,208 cm³
Once individual boxes are sized, the Pallet Calculator works out how many of those boxes fit per pallet layer and per full pallet (Ti-Hi) for shipping and warehouse planning.
Frequently Asked Questions
How do I calculate the box size for a sphere?
Inner box side = sphere diameter + 2 × clearance. Add clearance twice because the sphere needs space on both sides in every direction. The outer box side is inner side + 2 × wall thickness, use outer dimensions when quoting carrier rates.
Does fill efficiency affect shipping costs?
Yes. Most major carriers (UPS, FedEx, DHL) charge by dimensional weight for lightweight packages, calculated from outer box volume. A sphere with low fill efficiency means paying to ship a large box that is mostly air. Reducing clearance where the product allows, or choosing a tighter box format, can reduce shipping cost per unit meaningfully at scale.
How many spheres fit in a box?
Simple grid: divide each box dimension by sphere diameter, round each count down, multiply the three numbers. Staggered (hexagonal close) packing fits roughly 10–15% more but requires specific layer arrangements. Use the grid result as a reliable lower bound.
Why is fill efficiency always low for a sphere in a cube?
A sphere cannot reach the corners of a cube. Even with zero clearance, a sphere touching all six faces, fill efficiency is only π/6 ≈ 52.4% of the cube volume. Every unit of clearance added reduces it further.
What does void volume represent practically?
The space inside the box that is not the product. That space needs to be filled with foam, air pillows, crumpled paper, or molded pulp, all of which cost money and add weight. Knowing void volume before specifying filler material helps budget packaging cost per unit.
Should I use diameter or radius?
Diameter. If you only know the radius, double it: diameter = 2 × radius. Entering radius as diameter will produce a box sized for a sphere half the actual size.
References
- Sphere Packing, Wolfram MathWorld: packing efficiency, void fraction, and packing densities for simple cubic and close-packed arrangements.
- Sphere, Wolfram MathWorld: sphere volume formula (V = 4/3 πr³) and surface area derivations.