You can build a working compost bin from materials you likely have or can buy cheaply

A DIY compost bin is a container you build yourself to hold kitchen scraps and yard waste while they break down into usable compost. You do not need to buy a finished bin—wood pallets, plastic storage containers, wire fencing, or even a straightforward pile in a corner of your yard all work. The bin's job is to hold material in one place, let air and moisture reach it, and make it easier to turn or harvest finished compost when you are ready.

The simplest bins cost nothing if you use materials already on hand. More structured designs take a few hours and $20 to $50 in supplies. What matters is that the bin lets air in, keeps pests out (or at least makes them harder to reach), and gives you a way to access the finished compost at the bottom.

Key Takeaways

  • A pallet bin, wire bin, or plastic storage container all work as compost bins and cost between $0 and $50 to build.
  • The bin needs air holes or gaps to let oxygen reach the pile, which speeds decomposition and prevents smell.
  • A lid or cover keeps rain from waterlogging the pile and makes it harder for rodents to dig in.
  • You can start composting when ready after building, mixing green materials (food scraps, grass clippings) with brown materials (leaves, cardboard, wood chips).
  • Finished compost is ready to use in 2 to 12 months depending on how often you turn the pile and what you put in it.

Pallet Bin: The Easiest Build for Most Yards

A pallet bin uses four wooden pallets stood on edge and fastened together to form a square. You can find pallets free or very cheap from businesses that receive shipments—ask at garden centers, hardware stores, or warehouses. Look for pallets marked "HT" (heat-treated) rather than "MB" (methyl bromide treated), since heat-treated wood is safer for food gardens.

To build one, stand four pallets upright in a square shape and wire or bolt them together at the corners. Leave the bottom open so compost can touch the ground (this lets worms and microbes move in from the soil). You can add a pallet on top as a removable lid, or leave it open. The gaps between the pallet boards let air flow through naturally. If you want to keep rodents out, line the bottom and sides with 1/4-inch hardware cloth (metal mesh) before filling.

This design works well for yards with space and is sturdy enough to last several years. The main drawback is that you cannot easily access compost from the bottom—you have to pull the whole pile apart when it is done.

Wire Bin: straightforward and Fast to Set Up

A wire bin is a cylinder made from wire fencing, usually 3 to 4 feet tall and 3 to 4 feet across. Buy a roll of 1/2-inch or 1-inch wire fencing (sometimes called chicken wire or hardware cloth) and form it into a circle, then fasten the ends together with wire or zip ties.

Wire bins are fast to build—15 minutes with basic tools—and take up less space than a pallet bin. The open sides let air flow freely, which is why they work well for active composting where you turn the pile regularly. The downside is that small rodents can squeeze through larger mesh, and there is no lid to keep rain out or block flies.

To improve a wire bin, add a removable plywood top and line the inside with cardboard or burlap to slow rodent entry. You can also set the bin on a piece of hardware cloth to block burrowing from below.

Plastic Storage Container: Best for Small Spaces

A large plastic storage container (18 to 30 gallons) works as a compact compost bin for apartments, patios, or small yards. Drill holes around the sides, bottom, and lid for air flow—about 1/4-inch holes spaced 4 to 6 inches apart. Add a layer of brown material (shredded paper, leaves) to the bottom, then alternate layers of green (food scraps, grass) and brown as you fill.

This design keeps pests out completely and contains smell, making it good for urban settings. It also heats up faster than larger bins because the material is more concentrated. The trade-off is that you can only compost small amounts at a time, and finished compost takes longer to harvest because you have to empty the whole container.

Drill the holes carefully to avoid cracking the plastic. If the bin gets too wet, drill more holes in the bottom or add more brown material to absorb moisture.

Three-Bin System: For Serious Composters

A three-bin setup uses three pallet or wire bins side by side. You fill the first bin, let it sit while you fill the second, then turn the first bin's contents into the third bin to finish. This method speeds decomposition because turning the pile adds oxygen, and it keeps finished compost separate from fresh material.

Building three bins takes more time and space but gives you a steady supply of finished compost. You can use any combination of pallet, wire, or wood-frame designs as long as the bins are the same size and positioned so you can move material between them with a shovel or pitchfork.

This system works best if you have a yard with room and plan to compost regularly. For occasional composters or renters, a single bin is usually enough.

What to Put In and What to Avoid

Fill your bin with a mix of green materials (nitrogen-rich: fruit and vegetable scraps, grass clippings, coffee grounds, plant trimmings) and brown materials (carbon-rich: dry leaves, shredded paper, cardboard, wood chips, straw). A rough ratio is 3 parts brown to 1 part green by volume, though exact ratios are not critical.

Avoid meat, dairy, oils, pet waste, diseased plants, and weeds with seeds. These either attract pests, spread disease, or survive the composting process. Avoid glossy or colored paper and sawdust from treated wood. Grass clippings are fine if they have not been sprayed with pesticides.

Chop or shred large pieces before adding them—smaller pieces decompose faster. Keep the pile as moist as a wrung-out sponge; if it smells like ammonia, add more brown material; if it is dry and not breaking down, add water or green material.

Turning Your Pile and Harvesting Finished Compost

You do not have to turn your pile for compost to form—it will happen on its own in 6 to 12 months. Turning speeds the process to 2 to 4 months by adding oxygen, which microbes need to work fast. To turn, move material from one bin to another (or from one side of a single bin to the other) using a shovel or pitchfork, mixing as you go.

Finished compost looks like dark, crumbly soil and smells earthy. You can harvest it from the bottom of the bin by removing the front or side panel, or by emptying the whole bin. Sift out any large pieces that have not broken down yet and return them to the top of a new pile.

Use finished compost in garden beds, potted plants, or as mulch. It improves soil structure, holds moisture, and feeds plants slowly over time.

Frequently Asked Questions

Do I need a lid on my compost bin?

A lid is not required but is helpful. It keeps heavy rain from waterlogging the pile, reduces smell, and makes it harder for raccoons and rats to dig in. You can use a piece of plywood, a pallet, or even an old door. Leave small gaps for air flow.

How do I stop my compost bin from smelling bad?

Bad smell usually means too much green material or not enough air. Add more brown material (leaves, cardboard, wood chips) and turn the pile if you can. Make sure air holes are not blocked. If the pile is soggy, add more brown material and drill additional drainage holes in the bottom.

Can I compost in winter?

Yes, but decomposition slows in cold weather. A pile that finishes in 3 months in summer may take 6 to 12 months in winter. Insulating the bin with straw or leaves helps keep it warmer. You can keep adding material all winter and let it finish in spring.

What if I do not have space for a bin?

You can compost in a straightforward pile on the ground without any container. Pile material in a corner of your yard, keep it moist, and turn it occasionally. It takes longer than a contained bin and attracts more pests, but it works. You can also bury scraps directly in garden beds and let them break down in place.

How long until I have finished compost?

It depends on what you put in, how often you turn the pile, and the temperature. A small, well-turned pile in warm weather can finish in 2 to 4 months. A larger pile that you do not turn may take 6 to 12 months. Finished compost is dark, crumbly, and does not smell like fresh scraps.