Closet Shelving Length Calculator
Fitting out a closet means buying shelf board by the linear foot, and the total you need is a simple matter of how wide each run is and how many shelves you stack in it. This calculator adds it up. Enter the width of a shelf run in feet and the number of shelves in that run, and the tool multiplies the two to give the total linear feet of shelving to buy. The key point is that shelf depth does not enter the length calculation at all: a six-foot-wide shelf is six linear feet whether it is twelve or sixteen inches deep, and three of them stacked are eighteen linear feet in total. Depth only decides the width of board or wire shelving you choose and how much it holds. Both inputs are editable, so you can model a tall stack, a single long run, or one section at a time. Include closet rod the same way if you are buying it, since rod is also sold by length. The result is the net linear feet; add a small margin for saw cuts when purchasing. Every figure is computed deterministically from the formula below, with a worked example that reconciles exactly to the calculator's defaults.
Total shelving is the run width times the number of shelves: shelf width x number of shelves. A run 6 feet wide with 3 shelves needs 18.00 linear feet of shelf board.
Closet shelving formula
Total shelving = shelf run width x number of shelves
For several runs: total = sum of ( width x shelves ) for each run
shelf run width = width of one run in feet
number of shelves = shelves stacked in that run
Multiply the width of a run by the number of shelves in it for that run's length, then add the runs together. The result is the total linear feet of shelf board.
Worked example
Suppose a closet has one run 6 feet wide with 3 shelves stacked in it.
- Shelf run width = 6 ft
- Number of shelves = 3
- Total shelving = 6 x 3 = 18.00 ft
You need 18.00 linear feet of shelf board. These are the calculator's default inputs, so the result above matches the widget exactly.
Shelving length by run width and shelves
Total linear feet for common run widths and shelf counts.
| Run width | Shelves | Total length |
|---|---|---|
| 4 ft | 3 | 12.00 ft |
| 6 ft | 3 | 18.00 ft |
| 6 ft | 4 | 24.00 ft |
| 8 ft | 4 | 32.00 ft |
Shelf depth does not change the linear feet; it sets the board width you buy.
Closet shelving length calculator: frequently asked questions
How do I work out how much closet shelving I need?
Multiply the width of one shelf run by the number of shelves stacked in that run. Total shelving = shelf width times number of shelves. For several runs of different widths, calculate each and add them. The result is the total linear feet of shelf board to buy, plus any closet rod measured the same way.
What is a linear foot of shelving?
A linear foot is one foot of length measured along the shelf, regardless of its depth. Shelf board and closet rod are sold by length, so the total you need is in linear feet. A 6-foot-wide shelf is 6 linear feet; three such shelves stacked are 18 linear feet in total. Depth affects the board you choose, not the length count.
Does shelf depth matter for the length?
No, depth does not change the linear feet. A 12-inch-deep shelf and a 16-inch-deep shelf of the same width are both the same number of linear feet long. Depth determines the width of board or wire shelving you buy, and how much it can hold, but the length calculation depends only on the run width and the number of shelves.
How do I handle multiple closet sections?
Closets often have a long hanging section and a stack of shelves in another. Treat each run separately: multiply its width by its number of shelves, then add the runs together. Enter one run here and add the others, or combine them into an equivalent total. Include the closet rod length if you are buying rod too.
Should I add extra for cuts?
Shelving is usually cut to fit each run, so a small allowance for the saw kerf and the occasional miscut is sensible, though shelves have far less waste than mitered trim. Buying boards slightly longer than each run and cutting to size covers it. The calculation here gives the net length; add a modest margin when purchasing.
Official sources
- Length measurement reference: US National Institute of Standards and Technology (NIST). As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.