The simplest compost bin is a pile in a corner, but a contained bin keeps rodents out and speeds decomposition
A compost bin is a container that holds kitchen scraps and yard waste while they break down into usable compost. You can build one from wood pallets, wire mesh, plastic storage bins, or even stacked cinder blocks — the material matters less than having walls that hold material in place and let air flow through. A bin keeps your pile organized, protects it from rain and pests, and makes turning the compost easier when the time comes.
The bin does not have to be fancy or expensive. Most working bins cost between $20 and $100 in materials if you build them yourself, or $50 to $300 if you buy a ready-made one. The trade-off is straightforward: a cheaper bin takes longer to produce finished compost and requires more hands-on work, while a more expensive bin with better ventilation and insulation can finish a batch in two to three months instead of six to twelve.
Key Takeaways
- A wooden pallet bin is the fastest and cheapest option to build, requiring four pallets, wire, and about an hour of work.
- The bin must have openings on the sides and bottom to let air reach the decomposing material, or the pile will rot instead of compost.
- A lid keeps rain from waterlogging the pile and stops rodents from digging into fresh food scraps.
- Bins work best when placed on bare soil or grass, not concrete, so worms and beneficial insects can move in and out.
- You can start composting when ready after building the bin by layering brown materials (dry leaves, shredded paper) with green materials (food scraps, grass clippings).
Building a wooden pallet bin in one afternoon
Four wooden pallets and some wire or zip ties are all you need to make a working bin. Stand the pallets on their edges to form a square, then wire or zip-tie them together at the corners. Leave one side slightly loose or hinged so you can open it to pull finished compost from the bottom. The whole job takes about an hour and costs almost nothing if you can find free pallets at a loading dock or warehouse.
Wooden pallets rot over time, especially if they sit in wet soil. A pallet bin typically lasts three to five years before the wood softens enough that you need to rebuild it. If you want the bin to last longer, line the inside with landscape fabric or hardware cloth to slow the rot, or treat the wood with a non-toxic sealant before assembly. Do not use pallets that were treated with pesticides or that carried hazardous materials — look for pallets marked "HT" (heat-treated) rather than "MB" (methyl bromide).
Wire mesh and wooden frame for a sturdier option
A frame made from four wooden posts with wire mesh stapled to the inside creates a bin that lasts longer than pallets and lets you see the compost level at a glance. Cut four pieces of untreated wood (2-by-4 or 2-by-6 lumber works well) to the same length — 3 to 4 feet is a good size — and stand them upright to form a square. Staple hardware cloth or chicken wire to the inside of the frame, making sure the mesh extends below ground level or is folded outward at the base to stop burrowing rodents.
This style of bin is more work to build than a pallet bin, but it holds its shape better and the wooden frame can last ten years or more if you use rot-resistant wood like cedar or redwood. The wire mesh needs replacing every five to seven years as it rusts, but you can do that without rebuilding the whole frame. Leave one side open or hinged for access, or build a removable front panel from smaller pieces of wood.
Plastic storage bins for small spaces or balconies
A large plastic storage bin with a lid can work as a compost bin if you drill holes in the bottom and sides for air flow. A 32-gallon bin is big enough to hold several weeks of kitchen scraps from one or two people. Drill holes about half an inch across, spaced 4 to 6 inches apart, across the bottom and up the sides. Place the bin on a tray or in a larger container to catch any liquid that drains out.
Plastic bins work well on a balcony, patio, or in a garage where you do not have yard space. They heat up faster than outdoor bins in sunlight, which can speed decomposition, but they also dry out faster and may need water added. A plastic bin typically produces finished compost in four to six months if you keep it moist and turn it every two weeks. The plastic will eventually become brittle from sun exposure and may crack after two to three years of outdoor use.
Cinder block and wire bins for permanent installations
Stack cinder blocks in a square, four or five blocks high, and line the inside with wire mesh or landscape fabric. This style of bin is heavy, permanent, and lasts indefinitely because the blocks do not rot. It is also the slowest to build if you are stacking blocks by hand, and it takes up more space than a wooden frame of the same capacity. Cinder blocks absorb and hold moisture, which can slow decomposition in wet climates, but they also provide good insulation in cold areas.
A cinder block bin works best in a permanent garden location where you do not plan to move it. You can build it without mortar — just stack the blocks and let gravity hold them — or use concrete mortar for extra stability. Leave gaps between some blocks on the sides to let air flow through, or line the inside with mesh that lets air pass but keeps rodents out. You can cover the top with a wooden frame and hinged lid, or straightforward lay plywood across the top.
Placement and preparation before you start filling
Place your bin on bare soil or grass, not on concrete or asphalt. Worms, beetles, and other decomposers need to be able to move in and out of the pile from the ground below. If you must place the bin on a hard surface, line the bottom with hardware cloth to keep rodents out while still allowing drainage. The bin should sit in a spot that gets some sun — full shade slows decomposition — but not so much direct sun that the pile dries out completely in summer.
Before you fill the bin, lay down a layer of coarse material like twigs or straw about 4 inches deep. This creates air pockets at the bottom and keeps the pile from compacting into a wet, airless mass. If you are using a bin with a solid bottom, drill or punch holes in it to let water drain out. Once the base layer is in place, you can start adding your first layers of brown and green material.
Ventilation and drainage matter more than the bin material
The most common mistake is building a bin that is too solid or too wet. Compost needs oxygen to break down quickly — a pile without air flow becomes a smelly, anaerobic mess that takes years to finish. Make sure your bin has openings on at least three sides, or use mesh that lets air pass through. If water pools at the bottom, drill more drainage holes or add a layer of gravel under the bin to improve drainage.
A bin that is too small (under 3 feet on each side) may not heat up enough to decompose quickly, especially in cold climates. A bin that is too large (over 5 feet on each side) becomes hard to turn and may have a cold, wet center. Three to four feet on each side is the sweet spot for most home gardeners. If you have a lot of material, build two bins side by side instead of one giant one.
Frequently Asked Questions
Do I need a lid on my compost bin?
A lid is not required but is useful. It keeps heavy rain from waterlogging the pile and stops rodents and raccoons from digging into fresh food scraps. You can use plywood, a wooden frame with hinges, or even an old door. Leave gaps or drill holes so air can still reach the pile.
Can I use treated wood for the frame?
No. Pressure-treated wood contains chemicals that can leach into your compost and eventually into your garden soil. Use untreated wood, cedar, redwood, or composite lumber instead. If you use pallets, make sure they are marked "HT" (heat-treated) and not "MB" (methyl bromide).
What size bin should I build?
A bin that is 3 to 4 feet on each side and 3 to 4 feet tall is large enough to heat up and decompose quickly, but small enough to turn by hand. If you have less space, a 2-by-2-foot bin works but will take longer to finish. If you have a lot of yard waste, build two bins instead of one large one.
Can I put my bin in the shade?
Yes, but decomposition will be slower. Compost piles heat up from microbial activity, not from sun, so shade does not stop the process — it just slows it down. A bin in partial shade (a few hours of sun per day) is ideal. Full shade can add two to three months to the time it takes to finish a batch.
Do I need to buy special tools to build a bin?
No. A hammer, drill, wire cutters, and zip ties or wire are enough to build most bins. If you are using wood, a saw helps, but you can ask the lumber yard to cut pieces to size for you. A staple gun makes attaching mesh easier but is not required — you can use wire or zip ties instead.