Vivarium Drainage Layer Calculator
Drainage layer depth and media from enclosure dimensions.
About this calculator
A drainage layer sits beneath a mesh barrier and the substrate proper in a bioactive vivarium, collecting excess irrigation water so plant roots and soil-dwelling invertebrates don't sit in standing water at the bottom of the enclosure. Drainage depth uses a simple rule of thumb -- roughly 20% of Total substrate depth, with a 1-inch minimum regardless of how shallow the overall substrate column is -- since very thin drainage layers can't hold meaningful water volume even in a shallow enclosure. Media volume converts that depth times the enclosure's floor area (Enclosure length x Enclosure width) into liters and quarts for shopping purposes.
Drainage media changes two things about the result: Media weight, since LECA (lightweight expanded clay), lava rock, and bio-balls differ substantially in density (lava rock is roughly twice as dense as LECA, and bio-balls lighter still), and Water capacity, which depends on each material's void ratio -- the share of the layer's volume that is actually open space available to hold water rather than solid material. Bio-balls have the highest void ratio of the three options (around 65%) and therefore the highest water-holding capacity per unit volume, while lava rock's more irregular, partially solid structure gives it the lowest (around 40%). Mesh barrier is simply the enclosure's floor area converted to square feet, since the barrier needs to span the full footprint to keep substrate from settling down into the drainage layer below.
Inputs
Results
Drainage depth (in)
1
How to Use This Calculator
- Enter Enclosure length (in), Enclosure width (in), and Total substrate depth (in).
- Select your Drainage media: LECA (clay balls), Lava rock, or Bio-balls.
- Review the Drainage depth (in) result.
- Use Media volume (liters) and Media volume (quarts) to inform your decision.
How the result changes with Total substrate depth (in)
| Total substrate depth (in) | Drainage depth (in) |
|---|---|
| 2.5 | 1 |
| 3.75 | 1 |
| 7.5 | 1.5 |
| 13 | 2.6 |
What each input means
- Enclosure length (in)
- Interior length of your vivarium in inches.
- Enclosure width (in)
- Interior width (front-to-back) in inches.
- Total substrate depth (in)
- Total height of all substrate layers combined (drainage + soil + top dressing).
- Drainage media
- Drainage media affects the media's weight and void ratio (water-holding capacity).
What each result means
- Drainage depth (in)
- Recommended drainage layer depth.
- Media volume (liters)
- Volume of drainage media needed.
- Media volume (quarts)
- Volume of drainage media in dry quarts.
- Media weight (lbs)
- Approximate weight of the drainage media.
- Mesh barrier (sq ft)
- Area of mesh screen needed to separate drainage from substrate.
- Water capacity (gal)
- How much excess water the drainage layer can hold before overflow.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersEnclosure length (in) = 36, Enclosure width (in) = 18, Total substrate depth (in) = 5, Drainage media = 0 = 4 input(s) provided
- Calculate Drainage depthDrainage depth = max(1, totalSubstrateDepthIn * 0.20)1 = 1
- Calculate Media volumeMedia volume = drainageVolumeCuIn / 61.02410.6 = 10.6
- Calculate Media volumeMedia volume = drainageVolumeCuIn / 67.2006259.6 = 9.6
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does switching Drainage media change Water capacity if I'm using the same Drainage depth?
Water capacity depends on each media's void ratio -- the share of the drainage layer's volume that is open space able to hold water, versus solid material. Bio-balls have the highest void ratio of the three options (around 65%), lava rock the lowest (around 40%) due to its more irregular structure, so the same physical volume of different media holds meaningfully different amounts of water even at an identical Drainage depth.
Why is Drainage depth capped at a 1-inch minimum even for a shallow enclosure?
Drainage depth is calculated as roughly 20% of Total substrate depth, but very thin layers can't hold a meaningful volume of excess water regardless of how shallow the rest of the substrate column is. The 1-inch floor ensures the drainage layer still serves its purpose -- keeping standing water away from the substrate and roots above -- even in enclosures with a shallow overall substrate depth.
Why does Lava rock weigh so much more than LECA for the same Media volume?
Lava rock is roughly twice as dense as LECA (lightweight expanded clay aggregate) by design -- LECA is manufactured specifically to be lightweight and porous, while lava rock is a naturally occurring, denser volcanic material. This calculator applies each material's approximate density figure to the calculated Media volume, so the same drainage layer size will weigh noticeably more built from lava rock than from LECA.
Do I still need this drainage layer if I'm using the Substrate Volume Calculator's drainage-mix layer too?
Not necessarily both at full amounts -- the companion Substrate Volume Calculator's drainage-mix portion describes material blended directly into the substrate column, while this calculator sizes a separate physical layer of loose media beneath a mesh barrier. Some bioactive builds use one approach, some use both at reduced proportions; decide based on your enclosure's actual drainage needs rather than assuming the two always stack in full.
What does Mesh barrier tell me, and do I need to buy exactly that amount?
Mesh barrier reports the enclosure's floor area converted to square feet, since the barrier separating the drainage layer from the substrate above needs to span the full footprint to keep substrate from settling down into the drainage media over time. Buy mesh sized to that area plus enough overlap at the edges to fully seal against the enclosure walls.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
More in Family, Parenting & Pets.