Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Storage Capacity Calculator (Cubic Feet, How Many Books and Bins Fit)

Choose the type of calculation and enter the inside dimensions of the storage or the book thickness. Measure the inside dimensions. For book thickness and box size, you can pick a typical value and then change the number.

Shelf boards (optional)
Boxes or bins to put in (optional)
The counts only check whether the sizes fit. In real life, drawer handles, door thickness, leaning books and a little space to take things out all take room, so leave some extra. The shelf height assumes the shelf boards are evenly spaced.
Result and figure
Enter the inside dimensions of the storage space (or the shelf width and book thickness) on the left and press "Calculate". The result and a figure of the storage appear here.

What you can do on this page

  • Just enter the inside width, depth and height of a cabinet, closet or shelf (in inches or feet) to get its volume in cubic feet (ft³) and cubic inches (in³)
  • Enter the number and thickness of the shelf boards to get the number of shelves, the clear height of each shelf with the boards evenly spaced, and the effective volume left for contents
  • Enter the outside size of a storage tote, bin or file box (or pick a common size) to find how many fit, as "number across × number deep × number high × number of shelves". If turning the box 90° or laying it down fits more, that orientation is used
  • From the inside width of a bookcase shelf and the book thickness (typical values for paperbacks, hardcovers and magazines are available), find the books per shelf, the total number of books and the width left over
  • You can also work backward from "I want 150 hardcovers on 4 shelves" to the shelf width needed, or find how many garments fit on a closet rod of a given length
The book thicknesses and box sizes offered are only typical examples. Measuring your own books and bins gives more accurate results. To find the volume of any box "length × width × height" with unit conversions, use the "Rectangular Prism Volume Calculator". For the area and volume of the room itself, use the "Room Wall, Ceiling and Floor Area Calculator".

What is this calculation used for?

Checking that your books will fit before buying a bookcase

Bookcase listings often give only the outside size, such as "36 in wide × 72 in high", so you have to work out how many books fit yourself. If the inside width is 34 in and there are 5 shelves, paperbacks averaging 1.25 in thick fit \(\lfloor 34 \div 1.25 \rfloor = 27\) per shelf, or 135 in all.
Count your books first, and you can tell before buying whether one 36 in bookcase is enough or you need two. Using the average thickness of your own books makes the count more accurate.

How many storage totes fit in the closet of your new home

Measure the inside width, depth and height of the closet when you view a new place, and you can check with the formula how many of your storage totes will fit. On a closet floor 60 in wide × 24 in deep × 30 in high, totes 24 × 16 × 12 in fit 3 across × 1 deep × 2 high = 6 when turned 90° flat.
The mistake of moving the totes in and finding the closet is not deep enough shows up in this formula as 0 boxes in the depth direction, so you notice it in advance.

Comparing a tote's labeled capacity with your own storage

Storage totes are often labeled by capacity, such as "18 gallons", while freezers and storage units are sized in cubic feet. Turn the inside size of your shelf into cubic feet, and you can compare on the same scale: an 18-gallon tote holds about 2.4 ft³ (1 ft³ ≈ 7.48 gal), so first see how many cubic feet the whole shelf offers.
Capacity only compares volume, though. Whether a tote really fits must be checked on each of the three sides. The "how many boxes fit" formula (rounding down each of the three divisions) is the calculation for that.

Planning the shelf boards when you build a bookcase or cabinet (DIY)

When you cut boards to build shelves, the height of each shelf is set by "(inside height − number of boards × thickness) ÷ number of shelves". Two 3/4 in boards in a 36 in high cabinet give shelves of 11.5 in each, so a large art book 12 in tall will not stand up on them.
Decide the number of boards to match the height of what you want to store first, and you avoid finding out after cutting that the shelves are too low.

How many clothes fit on a closet rod

When organizing a closet or planning storage in a new home, estimate the number of garments from the rod length. A 58 in rod holds 38 light shirts (about 1.5 in each) or 23 heavy coats (about 2.5 in each).
If that is not enough for your clothes, you can weigh options with numbers, such as adding a second rod below or moving the heavy coats to another closet.

Getting a sense of how many books you have when moving, donating or selling them

When you pack books into boxes or take them to a used bookstore, knowing "how many feet of shelf 300 paperbacks take up" helps you estimate the number of boxes or the room in your car. 300 paperbacks 1 in thick make a row 300 in = 25 ft long, and a book box 16 in long holds one row of about 16 books.
The working-back formula (number of books × thickness) is also useful like this, to turn a number of books into a length.

Formulas and figures

Volume of the storage (ft³)
Figure
Standard notation (the usual math form)
\(V\) \(=\) \(W\) \(\times\) \(D\) \(\times\) \(H\) \(\div\) \(1728\)
In words (symbols replaced with words)
⑤ \(V\): volume (ft³) \(=\) ① \(W\): inside width (in) \(\times\) ② \(D\): inside depth (in) \(\times\) ③ \(H\): inside height (in) \(\div\) ④ cubic inches in 1 ft³, \(1728\)
The formula in words
① Multiply the \(W\): inside width ,
② the \(D\): inside depth and
③ the \(H\): inside height to get the volume in cubic inches (in³). Divide it by
④ cubic inches in 1 ft³, \(1728\) and you get the
⑤ \(V\): volume (ft³)
Quick example
The volume of a cabinet 30 in wide, 12 in deep and 36 in high inside is
\(V\): volume \(=\) width (30 in) \(\times\) depth (12 in) \(\times\) height (36 in) \(\div\) 1728
\(30 \times 12 \times 36 = 12960\)
\(12960 \div 1728 = 7.5\)
Key idea
The space inside a cabinet is a rectangular box, so its volume is width × depth × height. Multiplying three sides in inches gives cubic inches (in³). One cubic foot is 12 in × 12 in × 12 in = 1,728 in³, so dividing by 1728 gives cubic feet (ft³). A cubic foot is about the size of a small moving box, and it holds about 7.5 US gallons. Always measure the inside dimensions. A size in a furniture catalog such as "32 × 13 × 38 in" is usually the outside size, including the thickness of the panels, so entering it as is gives a volume larger than the space inside. If a size is given in feet, switch the unit to "ft" and enter it as is.
Number of shelves and clear height with shelf boards
Figure
Standard notation (the usual math form)
\(k\) \(=\) \(n\) \(+\) \(1\)
\(h\) \(=\) \(\dfrac{H - n \times t}{k}\)
In words (symbols replaced with words)
② \(k\): number of shelves \(=\) ① \(n\): number of shelf boards \(+\) \(1\)
④ \(h\): clear height of each shelf \(=\) ③ \(\dfrac{\text{inside height } H - \text{number of boards } n \times \text{board thickness } t}{\text{number of shelves } k}\)
The formula in words
① Add 1 to the \(n\): number of shelf boards to get the
② \(k\): number of shelves (2 boards make 3 shelves)
③ Take the inside height \(H\), subtract the thickness \(t\) of the \(n\) boards to get the height left for contents, and divide it equally by the number of shelves \(k\): \(\dfrac{H - n \times t}{k}\) . This is the
④ \(h\): clear height of each shelf
Quick example
Put two 3/4 in (0.75 in) shelf boards in a cabinet 36 in high inside (3 shelves), and the clear height of each shelf is
\(h\): clear height of each shelf \(=\) (36 − 2 × 0.75) ÷ 3 shelves
\(36 - 2 \times 0.75 = 34.5\)
\(34.5 \div 3 = 11.5\)
Key idea
Shelf boards use up height by their thickness, so first subtract the total board thickness from the height, then divide what is left by the number of shelves. With \(n\) boards you get \(n + 1\) shelves (the boards are the dividers). In the example the height left for contents is 34.5 in, so the effective volume is \(30 \times 12 \times 34.5 \div 1728 \approx 7.19\) ft³. This page assumes the shelf boards are evenly spaced. If you want shelves of different heights (a taller bottom shelf and shorter upper shelves, for example), instead of dividing by the number of shelves, share out the heights so that they add up to no more than \(H - n \times t\).
How many boxes or bins fit
Figure
Standard notation (the usual math form)
\(N\) \(=\) \(\left\lfloor \dfrac{W}{w} \right\rfloor\) \(\times\) \(\left\lfloor \dfrac{D}{d} \right\rfloor\) \(\times\) \(\left\lfloor \dfrac{h}{b} \right\rfloor\) \(\times\) \(k\)
In words (symbols replaced with words)
⑤ \(N\): number of boxes \(=\) ① \(\left\lfloor \dfrac{\text{inside width } W}{\text{box width } w} \right\rfloor\) \(\times\) ② \(\left\lfloor \dfrac{\text{inside depth } D}{\text{box depth } d} \right\rfloor\) \(\times\) ③ \(\left\lfloor \dfrac{\text{clear shelf height } h}{\text{box height } b} \right\rfloor\) \(\times\) ④ \(k\): number of shelves
The formula in words
① Multiply the number across (inside width \(W\) ÷ box width \(w\), rounded down to a whole number) ,
② the number deep (inside depth \(D\) ÷ box depth \(d\), rounded down) and
③ the number stacked (clear shelf height \(h\) ÷ box height \(b\), rounded down) to get the number per shelf. Multiply that by the
④ \(k\): number of shelves to get the
⑤ \(N\): number of boxes
Quick example
Put large storage totes (W 24 × D 16 × H 12 in) on a closet floor (inside 60 in wide × 24 in deep × 30 in high, no shelf boards = 1 shelf). As entered (line 1 below) 4 fit, and turned 90° flat (line 2) 6 fit, so the answer is the larger number, 6
\(N\): number of boxes \(=\) ⌊60 ÷ 16⌋ (turned 90°) \(\times\) ⌊24 ÷ 24⌋ \(\times\) ⌊30 ÷ 12⌋ \(\times\) 1 shelf
\(\lfloor 60 \div 24 \rfloor \times \lfloor 24 \div 16 \rfloor \times \lfloor 30 \div 12 \rfloor = 2 \times 1 \times 2 = 4\)
\(\lfloor 60 \div 16 \rfloor \times \lfloor 24 \div 24 \rfloor \times \lfloor 30 \div 12 \rfloor = 3 \times 1 \times 2 = 6\)
Key idea
Count separately how many boxes fit across, how many fit deep and how many stack up, then multiply. Each count is "space ÷ box size" rounded down to a whole number (\(\lfloor\ \rfloor\) is the sign for rounding down: \(\lfloor 3.75 \rfloor = 3\)). You cannot fit 3.75 boxes, so the extra 0.75 of a box width is simply empty space. As in the example, turning the box 90° flat can change the count. This page automatically finds the orientation that fits the most within the choice you make: "Keep as entered", "May turn 90° flat" (2 ways) or "Any side down" (6 ways). Drawer units cannot be turned on their side, so do not choose the orientations that lay them down. This assumes all boxes face the same way. It does not calculate clever packing where some boxes are turned to fill gaps.
How many books fit
Figure
Standard notation (the usual math form)
\(B_1\) \(=\) \(\left\lfloor \dfrac{W}{s} \right\rfloor\)
\(B\) \(=\) \(B_1\) \(\times\) \(k\)
In words (symbols replaced with words)
② \(B_1\): books per shelf \(=\) ① \(\left\lfloor \dfrac{\text{inside shelf width } W}{\text{thickness of one book } s} \right\rfloor\)
④ \(B\): total books \(=\) \(B_1\): books per shelf \(\times\) ③ \(k\): number of shelves
The formula in words
① Divide the inside shelf width \(W\) by the thickness of one book \(s\). The number of books across (rounded down) is the
② \(B_1\): books per shelf . Multiply it by the
③ \(k\): number of shelves to get the
④ \(B\): total books
Quick example
Line up hardcovers 1.5 in thick on a bookcase with 3 shelves, each 31 in wide inside:
\(B\): total books \(=\) ⌊31 ÷ 1.5⌋ \(\times\) 3 shelves
\(31 \div 1.5 = 20.66\ldots \rightarrow 20\)
\(20 \times 3 = 60\)
Key idea
Books stand in a row with their spines facing out, so the number per shelf is "shelf width ÷ book thickness" rounded down. 31 ÷ 1.5 = 20.66…, so 20 books fit, and the 1 in left over is not enough for a 21st book. This remainder is the "width left over" in the result. Book thickness varies a lot with the number of pages. Even among paperbacks, a 200-page book is about 0.5 in thick and a 600-page book about 1.5 in, so the typical values in the list are for a shelf of average books. Measure 10 of your own books together, divide by 10, and enter the average for a count closer to real life. Check separately that the books are not too tall or too deep for the shelf. As a guide, a mass-market paperback is about 7 in tall × 4.25 in deep, a trade paperback about 8.5 × 5.5 in or 9 × 6 in, a typical hardcover about 9.5 × 6.5 in, and a magazine about 11 × 8.5 in.
Working back from the number of books to the shelf width needed
Standard notation (the usual math form)
\(B_1\) \(=\) \(\left\lceil \dfrac{B}{k} \right\rceil\)
\(W\) \(=\) \(B_1\) \(\times\) \(s\)
In words (symbols replaced with words)
② \(B_1\): books per shelf \(=\) ① \(\left\lceil \dfrac{\text{number of books to store } B}{\text{number of shelves } k} \right\rceil\)
④ \(W\): inside shelf width needed \(=\) \(B_1\): books per shelf \(\times\) ③ \(s\): thickness of one book
The formula in words
① Divide the number of books to store \(B\) by the number of shelves \(k\). The number of books to put on each shelf (rounded up) is the
② \(B_1\): books per shelf . Multiply it by the
③ \(s\): thickness of one book to get the
④ \(W\): inside shelf width needed
Quick example
The shelf width needed to fit 150 hardcovers 1.5 in thick on a bookcase with 4 shelves is
\(W\): shelf width needed \(=\) ⌈150 ÷ 4⌉ \(\times\) thickness (1.5 in)
\(150 \div 4 = 37.5 \rightarrow 38\)
\(38 \times 1.5 = 57\)
Key idea
This turns the "how many books fit" formula around. Dividing the number of books by the number of shelves gives the books per shelf, and when it does not divide evenly, round up (\(\lceil\ \rceil\) is the sign for rounding up: \(\lceil 37.5 \rceil = 38\)). 150 books on 4 shelves make two shelves of 38 and two of 37, so each shelf must be wide enough for 38 books. The width found is an inside width, with the books packed tightly. In real life, allow an inch or two per shelf for taking books in and out. When choosing a bookcase, compare with the inside width (or "usable width"), not the outside width.
How many garments fit on a closet rod
Standard notation (the usual math form)
\(C\) \(=\) \(\left\lfloor \dfrac{L}{c} \right\rfloor\)
In words (symbols replaced with words)
② \(C\): garments that fit \(=\) ① \(\left\lfloor \dfrac{\text{rod length } L}{\text{width per garment } c} \right\rfloor\)
The formula in words
① Divide the closet rod length \(L\) by the width per garment \(c\). The number of hangers along the rod (rounded down) is the
② \(C\): garments that fit
Quick example
Hang light shirts taking 1.5 in each on a closet rod 58 in long:
\(C\): garments that fit \(=\) ⌊58 ÷ 1.5⌋
\(58 \div 1.5 = 38.66\ldots \rightarrow 38\)
Key idea
The idea is the same as for books: "rod length ÷ width per garment", rounded down. The width per garment depends on the hanger and how bulky the clothes are. A common guide is 1 to 1.5 in for light shirts and blouses and 2 to 3 in for jackets and coats. Clothes packed tightly get wrinkled, so if you want them easy to take out, try a slightly larger width per garment (about 1/2 in more than the guide).
The volume of a storage space is "inside width × depth × height ÷ 1728" in cubic feet (with sizes in inches). With shelf boards, the clear height of each shelf is "(height − number of boards × thickness) ÷ number of shelves". For how many boxes or books fit, divide "space ÷ size of one item" and round down; when working back to the width needed, round up.

Symbols and terms

Symbols

\(V\) V The volume of the storage (ft³), from the first letter of "volume". It is found with \(V = W \times D \times H \div 1728\).
\(W\) W The inside width of the storage or shelf (in), from the first letter of "width". Measure from the inside of one side panel to the inside of the other. When working back from a number of books, it is the value found (the shelf width needed).
\(D\) D The inside depth of the storage (in), from the first letter of "depth". It is the length from the front to the back panel.
\(H\) H The inside height of the storage (in), from the first letter of "height". Measure from the top of the bottom panel to the underside of the top panel.
\(n\) n The number of shelf boards, from the first letter of "number". With no boards, it is 0.
\(t\) t The thickness of one shelf board (in), from the first letter of "thickness". As a guide, about 5/8 in for flat-pack furniture and 3/4 in for plywood or 1×12 boards; measuring the real board is best.
\(k\) k The number of shelves. With \(n\) shelf boards, there are \(k = n + 1\) shelves (the boards are dividers, so there is one more shelf than boards).
\(h\) lowercase h The clear height of each shelf with the boards evenly spaced (in), found with \(h = (H - n \times t) \div k\). It is lowercase to tell it apart from the height \(H\).
\(w,\ d,\ b\) w, d, b The outside width, depth and height of the box or bin to put in (in). They are lowercase to tell them apart from the inside dimensions of the storage (capitals), and the height uses b, from "box".
\(N\) capital N The number of boxes that fit in the storage, found with \(N = \lfloor W/w \rfloor \times \lfloor D/d \rfloor \times \lfloor h/b \rfloor \times k\).
\(s\) s The thickness of one book (the width of the spine, in), from the first letter of "spine".
\(B\) capital B The total number of books, from the first letter of "books". In "How many books fit" it is the value found; when working back to the shelf width, it is the number of books you enter.
\(B_1\) B sub 1 The number of books per shelf. In "How many books fit" it is \(\lfloor W/s \rfloor\) (rounded down); when working back to the shelf width, it is \(\lceil B/k \rceil\) (rounded up).
\(L\) L The length of the closet rod (in), from the first letter of "length".
\(c\) c The width one garment on a hanger takes up along the rod (in), from the first letter of "clothes".
\(C\) capital C The number of garments that fit on the closet rod, found with \(C = \lfloor L/c \rfloor\).
\(\lfloor\ \rfloor\) floor The sign of the floor function (rounding down). It gives the number inside rounded down to a whole number (example - \(\lfloor 20.66 \rfloor = 20\)). "How many fit" is always rounded down like this.
\(\lceil\ \rceil\) ceiling The sign of the ceiling function (rounding up). It gives the number inside rounded up to a whole number (example - \(\lceil 37.5 \rceil = 38\)). Working back to "how much you need" is rounded up like this.

Terms

inside dimension The size measured on the inside of furniture or storage. It is the width, depth and height of the space you can actually use, without the thickness of the panels. Every calculation on this page uses inside dimensions. Catalogs often list outside dimensions, so be careful.
outside dimension The size measured over the outside of furniture or storage, including the thickness of the panels. Use it to check whether the furniture fits the space where it goes. When putting a box into storage, compare the outside dimensions of the box with the inside dimensions of the storage.
capacity The size of the space inside a container. It is the same idea as volume, but "capacity" is used for how much a container can hold. Units include cubic inches, cubic feet, gallons and liters.
cubic foot A unit of volume: a cube 12 in × 12 in × 12 in, which is 1,728 in³. It holds about 7.48 US gallons. Storage units, freezers and moving trucks are often sized in cubic feet (ft³), while plastic totes are often labeled in gallons or quarts.
shelf board A board that divides the storage into levels. Each extra board adds one more shelf, but the height left for contents gets smaller by the board's thickness.
clear height The height on one shelf that you can actually use, without the board thickness. With the boards evenly spaced, it is "(inside height − number of boards × thickness) ÷ number of shelves".
effective volume The volume you can actually fill, without the space taken by the shelf boards. With sizes in inches, "width × depth × (height − number of boards × thickness) ÷ 1728" gives it in cubic feet.
rounding down Dropping the decimal part to get a whole number: 20.66… → 20. "How many fit" is always counted by rounding down, because a part that is too small does not fit. In math it is written with the floor function \(\lfloor x \rfloor\).
rounding up Going up to the next whole number if there is any decimal part: 37.5 → 38. When the leftover items also need space, such as when splitting books over shelves, round up. In math it is written with the ceiling function \(\lceil x \rceil\).
layout Deciding how to arrange items of a set size in a space of a set size. This page counts with the simplest layout, with everything facing the same way.
storage tote A plastic storage box with a lid, often labeled by capacity in gallons or quarts. Stackable drawer units are similar, but they cannot be turned on their side, so only turn them flat.
trim size The page size of a book. Common sizes include mass-market paperbacks (about 4.25 × 7 in), trade paperbacks (about 5.5 × 8.5 in or 6 × 9 in) and hardcovers (about 6 × 9 in, with the cover a little larger). Use the trim size to check that books fit the height and depth of the shelf.
paperback A book with a soft cover. Mass-market paperbacks are small (about 4.25 × 7 in) and trade paperbacks are larger. Thickness depends on the number of pages; this page uses about 1 in as a typical value.
hardcover A book with a stiff cover, usually around 6 × 9 in. This page uses about 1.5 in as a typical thickness.
closet rod The bar in a closet where hangers go. The number of garments that fit is the rod length divided by the width per garment.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.

Volume of a rectangular prism (Grade 5)
  • Knowing that the volume of a rectangular prism is length × width × height
  • Seeing that the space inside storage is also a rectangular prism, so multiplying its three inside dimensions gives its capacity
Units of volume (Grades 5–6)
  • Knowing that \(1\,\mathrm{ft^3} = 12 \times 12 \times 12 = 1728\,\mathrm{in^3}\) and \(1\,\mathrm{yd^3} = 27\,\mathrm{ft^3}\)
  • Knowing that dividing a value in \(\mathrm{in^3}\) by 1728 gives \(\mathrm{ft^3}\)
Converting units of length (Grade 4)
  • Knowing that \(1\,\mathrm{ft} = 12\,\mathrm{in}\) and \(1\,\mathrm{yd} = 3\,\mathrm{ft}\)
  • Being able to rewrite a size such as "3 ft 2 in" as "38 in", and a fraction such as 3/4 in as 0.75 in
Division with remainders (Grades 3–4)
  • Being able to find a quotient and a remainder, as in "\(100 \div 3 = 33\) R \(1\)"
  • Seeing that the remainder is the width left over where nothing fits
Rounding down and rounding up (Grade 4)
  • Knowing the difference between rounding down to a whole number and rounding up to a whole number
  • Being able to explain why "how many fit" is rounded down and "how much you need" is rounded up
Multiplying and dividing decimals (Grades 5–6)
  • Being able to work with decimals such as \(31 \div 1.5\) and \(2 \times 0.75\) (a calculator can do the arithmetic)

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table for the volume of the storage (ft³)
Inside width (in) 30
Inside depth (in) 12
Inside height (in) 36
Volume (in³) =B1*B2*B3
Volume (ft³) =B4/1728
Table for the number of shelves and the clear height
Inside height (in) 36
Number of shelf boards 2
Shelf board thickness (in) 0.75
Number of shelves =B2+1
Clear height of each shelf (in) =(B1-B2*B3)/B4
Table for how many boxes fit
Inside width (in) 60
Inside depth (in) 24
Clear height of each shelf (in) 30
Number of shelves 1
Box width (in) 16
Box depth (in) 24
Box height (in) 12
Number of boxes =INT(B1/B5)*INT(B2/B6)*INT(B3/B7)*B4
Table for how many books fit
Inside shelf width (in) 31
Thickness of one book (in) 1.5
Number of shelves 3
Books per shelf =INT(B1/B2)
Total books =B4*B3
Table for working back to the shelf width needed
Number of books to store 150
Number of shelves 4
Thickness of one book (in) 1.5
Books per shelf =ROUNDUP(B1/B2,0)
Shelf width needed (in) =B4*B3
Table for how many garments fit on a closet rod
Rod length (in) 58
Width per garment (in) 1.5
Garments that fit =INT(B1/B2)
After pasting, the upper rows of column B are your inputs and the last row is calculated automatically.
The first table multiplies width × depth × height to get cubic inches (12960 in B4) and divides by 1728 to get cubic feet (7.5 in B5). The second table has 2 boards, so 3 shelves (B4), and the clear height is (36 − 2 × 0.75) ÷ 3 = 11.5 (B5).
"INT" in the third, fourth and sixth tables rounds down to a whole number, so INT(31/1.5) = INT(20.66…) = 20 counts how many fit. The third table gives 3 × 1 × 2 × 1 = 6 boxes and the fourth 20 × 3 = 60 books.
"ROUNDUP(…,0)" in the fifth table rounds up to a whole number: 150 ÷ 4 = 37.5 → 38 books per shelf, and 38 × 1.5 = 57 in is the shelf width needed. The sixth table gives INT(58/1.5) = 38 garments.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table for the volume of the storage (ft³)
Inside width (in) 30
Inside depth (in) 12
Inside height (in) 36
Volume (in³) =B1*B2*B3
Volume (ft³) =B4/1728
Table for the number of shelves and the clear height
Inside height (in) 36
Number of shelf boards 2
Shelf board thickness (in) 0.75
Number of shelves =B2+1
Clear height of each shelf (in) =(B1-B2*B3)/B4
Table for how many boxes fit
Inside width (in) 60
Inside depth (in) 24
Clear height of each shelf (in) 30
Number of shelves 1
Box width (in) 16
Box depth (in) 24
Box height (in) 12
Number of boxes =INT(B1/B5)*INT(B2/B6)*INT(B3/B7)*B4
Table for how many books fit
Inside shelf width (in) 31
Thickness of one book (in) 1.5
Number of shelves 3
Books per shelf =INT(B1/B2)
Total books =B4*B3
Table for working back to the shelf width needed
Number of books to store 150
Number of shelves 4
Thickness of one book (in) 1.5
Books per shelf =ROUNDUP(B1/B2,0)
Shelf width needed (in) =B4*B3
Table for how many garments fit on a closet rod
Rod length (in) 58
Width per garment (in) 1.5
Garments that fit =INT(B1/B2)
The same formulas as in Excel work as is (Google Sheets also has INT and ROUNDUP under the same names). Copy the whole table, paste it into cell A1, and replace the numbers in column B with your own.

How to calculate it in Python

from fractions import Fraction
import math

# Inside dimensions of the storage space (in)
width_in = Fraction("30")
depth_in = Fraction("12")
height_in = Fraction("36")
shelf_count = 2                        # number of shelf boards
shelf_thickness_in = Fraction("0.75")  # shelf board thickness (in)

volume_in3 = width_in * depth_in * height_in            # volume V = W x D x H
print(f"Volume: {float(volume_in3):.1f} in³ = {float(volume_in3 / 1728):.2f} ft³")

rows = shelf_count + 1                                  # number of shelves k = n + 1
row_height_in = (height_in - shelf_count * shelf_thickness_in) / rows   # clear height per shelf h
print(f"Shelves: {rows}, clear height per shelf: {float(row_height_in):.2f} in")

# How many boxes (outside size in inches) fit: storage totes on a closet floor (inside 60 x 24 x 30 in, one shelf)
space_w, space_d, space_h = Fraction("60"), Fraction("24"), Fraction("30")
box_w, box_d, box_h = Fraction("24"), Fraction("16"), Fraction("12")
best = 0
for w, d in [(box_w, box_d), (box_d, box_w)]:            # also try the box turned 90° flat, keep the larger count
    count = math.floor(space_w / w) * math.floor(space_d / d) * math.floor(space_h / box_h)   # ⌊W/w⌋×⌊D/d⌋×⌊h/b⌋ (× 1 shelf)
    best = max(best, count)
print(f"Boxes: {best}")

# How many books fit
shelf_width_in = Fraction("31")
book_thickness_in = Fraction("1.5")
book_rows = 3
per_row = math.floor(shelf_width_in / book_thickness_in)   # per shelf ⌊W/s⌋
print(f"{per_row} per shelf, {per_row * book_rows} in total, {float(shelf_width_in - per_row * book_thickness_in):.2f} in left over per shelf")

# Shelf width needed for a number of books
book_count = 150
per_row_needed = math.ceil(book_count / 4)                  # split over 4 shelves: ⌈B/k⌉
print(f"Shelf width needed: {float(per_row_needed * book_thickness_in):.2f} in ({per_row_needed} per shelf)")

# How many garments fit on a closet rod
rod_in = Fraction("58")
per_hanger_in = Fraction("1.5")
print(f"Garments: {math.floor(rod_in / per_hanger_in)}")
Runs with the standard library only. It calculates with Fraction, so rounding down a division such as "31 ÷ 1.5" is never thrown off by floating-point error, even with decimals like 1.5. math.floor rounds down and math.ceil rounds up. When run, it prints in order: volume 7.5 ft³, 3 shelves with a clear height of 11.5 in, 6 boxes, 20 books per shelf and 60 in total, a shelf width of 57 in, and 38 garments. Change the sizes and counts at the top of each block and run it again.

How to write it in LaTeX and other math languages (copy and paste)

Volume of the storage (ft³)
V = W × D × H ÷ 1728
V = \frac{W \times D \times H}{1728}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>V</mi>
    <mo>=</mo>
    <mfrac>
      <mrow><mi>W</mi><mo>&#xD7;</mo><mi>D</mi><mo>&#xD7;</mo><mi>H</mi></mrow>
      <mn>1728</mn>
    </mfrac>
  </mrow>
</math>
V = (W * D * H) / 1728
V = W*depth*H/1728
V := W*depth*H/1728;
V = W*D*H/1728;
V = (W × D × H)/1728
Number of shelves and clear height with shelf boards
k = n + 1,  h = (H − n × t) ÷ k
k = n + 1,\quad h = \frac{H - n t}{k}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>k</mi><mo>=</mo><mi>n</mi><mo>+</mo><mn>1</mn>
    <mo>,</mo>
    <mi>h</mi><mo>=</mo>
    <mfrac>
      <mrow><mi>H</mi><mo>&#x2212;</mo><mi>n</mi><mo>&#xD7;</mo><mi>t</mi></mrow>
      <mi>k</mi>
    </mfrac>
  </mrow>
</math>
k = n + 1,  h = (H - n * t) / k
k = n + 1; h = (H - n*t)/k
k := n + 1;  h := (H - n*t)/k;
k = n + 1; h = (H - n*t)/k;
k = n + 1, h = (H − n × t)/k
How many boxes or bins fit
N = ⌊W/w⌋ × ⌊D/d⌋ × ⌊h/b⌋ × k
N = \left\lfloor \frac{W}{w} \right\rfloor \times \left\lfloor \frac{D}{d} \right\rfloor \times \left\lfloor \frac{h}{b} \right\rfloor \times k
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>N</mi><mo>=</mo>
    <mo>&#x230A;</mo><mfrac><mi>W</mi><mi>w</mi></mfrac><mo>&#x230B;</mo>
    <mo>&#xD7;</mo>
    <mo>&#x230A;</mo><mfrac><mi>D</mi><mi>d</mi></mfrac><mo>&#x230B;</mo>
    <mo>&#xD7;</mo>
    <mo>&#x230A;</mo><mfrac><mi>h</mi><mi>b</mi></mfrac><mo>&#x230B;</mo>
    <mo>&#xD7;</mo>
    <mi>k</mi>
  </mrow>
</math>
N = floor(W/w) * floor(D/d) * floor(h/b) * k
Nbox = Floor[W/w]*Floor[depth/d]*Floor[h/b]*k
Nbox := floor(W/w)*floor(depth/d)*floor(h/b)*k;
N = floor(W/w)*floor(D/d)*floor(h/b)*k;
N = ⌊W/w⌋ × ⌊D/d⌋ × ⌊h/b⌋ × k
How many books fit
B₁ = ⌊W/s⌋,  B = B₁ × k
B_1 = \left\lfloor \frac{W}{s} \right\rfloor,\quad B = B_1 \times k
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>B</mi><mn>1</mn></msub><mo>=</mo>
    <mo>&#x230A;</mo><mfrac><mi>W</mi><mi>s</mi></mfrac><mo>&#x230B;</mo>
    <mo>,</mo>
    <mi>B</mi><mo>=</mo>
    <msub><mi>B</mi><mn>1</mn></msub><mo>&#xD7;</mo><mi>k</mi>
  </mrow>
</math>
B_1 = floor(W/s),  B = B_1 * k
B1 = Floor[W/s]; B = B1*k
B1 := floor(W/s);  B := B1*k;
B1 = floor(W/s); B = B1*k;
B_1 = ⌊W/s⌋, B = B_1 × k
Working back from the number of books to the shelf width needed
B₁ = ⌈B/k⌉,  W = B₁ × s
B_1 = \left\lceil \frac{B}{k} \right\rceil,\quad W = B_1 \times s
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>B</mi><mn>1</mn></msub><mo>=</mo>
    <mo>&#x2308;</mo><mfrac><mi>B</mi><mi>k</mi></mfrac><mo>&#x2309;</mo>
    <mo>,</mo>
    <mi>W</mi><mo>=</mo>
    <msub><mi>B</mi><mn>1</mn></msub><mo>&#xD7;</mo><mi>s</mi>
  </mrow>
</math>
B_1 = ceil(B/k),  W = B_1 * s
B1 = Ceiling[B/k]; W = B1*s
B1 := ceil(B/k);  W := B1*s;
B1 = ceil(B/k); W = B1*s;
B_1 = ⌈B/k⌉, W = B_1 × s
How many garments fit on a closet rod
C = ⌊L/c⌋
C = \left\lfloor \frac{L}{c} \right\rfloor
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>C</mi><mo>=</mo>
    <mo>&#x230A;</mo><mfrac><mi>L</mi><mi>c</mi></mfrac><mo>&#x230B;</mo>
  </mrow>
</math>
C = floor(L/c)
Cn = Floor[L/c]
C := floor(L/c);
C = floor(L/c);
C = ⌊L/c⌋

How to have ChatGPT  do the calculation

You are a calculation assistant for storage and furniture sizes. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

1. Find the volume of a storage space 30 in wide × 12 in deep × 36 in high inside, in cubic inches and in cubic feet (1 ft³ = 1,728 in³).
2. Two shelf boards 0.75 in thick are placed evenly inside it. Find the number of shelves and the clear height of each shelf (in inches, to 2 decimal places).
3. Storage totes with an outside size of 24 in wide × 16 in deep × 12 in high are lined up, all facing the same way, on a closet floor 60 in wide × 24 in deep × 30 in high inside (no shelf boards). How many fit? Calculate both as entered and turned 90° flat, and give the larger number (round each direction's count down).
4. Hardcovers 1.5 in thick are lined up on 3 shelves, each 31 in wide inside. How many fit per shelf and in total (round down)?
5. To fit 150 hardcovers 1.5 in thick on 4 shelves, what inside shelf width is needed (round the books per shelf up)?

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.