Last updated:

Packaging calculator

Sphere Packing Calculator

When a round product ships in a square box, most of the space is air, a sphere inside a tight cube fills only about 52% of the box. Knowing how much clearance to add, what box size results, and how much of it is void space is what sphere packing math handles. Enter sphere diameter and clearance per side below.

Product fit

Enter sphere and clearance

Formula: Inner box side = sphere diameter + 2 × clearance

Packing layout preview

1 sphere arranged as 1 × 1 × 1.
Shared grid size: 12 × 12 × 12 cm Top layer shown.

On This Page

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 packing box sizing diagram showing sphere diameter (d), clearance (c) on each side, inner box side = d + 2c, and outer box side including wall thickness
Cross-section diagram showing a sphere inside an inner box inside an outer box, with diameter, clearance, and wall thickness labeled and the inner box sizing formula
Inner box side = diameter + 2 × clearance

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.

Spheres (grid) = floor(length ÷ diameter) × floor(width ÷ diameter) × floor(height ÷ diameter)

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.

  1. Inner side = 10 + 2 × 1 = 12 cm
  2. Sphere volume = (4/3) × π × 5³ = 523.6 cm³
  3. Box volume = 12³ = 1,728 cm³
  4. Void volume = 1,728 − 523.6 = 1,204.4 cm³
  5. 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.

  1. Diameter = 2 × 2 = 4 cm
  2. 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.

  1. Grid side without clearance = 3 × 4 = 12 cm
  2. Add outside clearance = 12 + 2 × 0.25 = 12.5 cm
  3. Rounded to 0.5 cm: 12.5 cm

Example 4, Does a 10 cm cube hold 27 spheres (radius 2 cm)?

  1. Diameter = 4 cm
  2. Spheres per row = floor(10 ÷ 4) = 2
  3. 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.

  1. Volume per package = 12³ = 1,728 cm³
  2. 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

Method

Author, Review, and Formula Method

Written by Calculators Labs Editorial Team
Reviewed by Calculators Labs
Last updated

The Sphere Packing Calculator uses Box side = sphere diameter + 2 × clearance. The calculator reads Sphere diameter, Clearance, applies the formula, and shows the result with practical rounding so the answer is easy to check.

For calculators with units, measurements are kept in one unit system before the final result is displayed. The steps are written to help students, teachers, and everyday users see how the answer was produced.