The simplest compost bin is a pile in a corner of your yard, but a contained bin keeps pests out and speeds decomposition

A compost bin is a container—or a structure you build—that holds kitchen scraps and yard waste while they break down into usable compost. You can buy a ready-made bin, build one from wood or wire, or straightforward pile materials on the ground. The main difference is how much space you have, how quickly you want finished compost, and whether you want to keep rodents and insects away from the pile.

The fastest and cleanest option for most homeowners is a three-sided wooden bin or a wire cylinder, both of which you can build in an afternoon with basic tools. Both let air reach the pile (which speeds decomposition), contain the mess, and cost between $20 and $50 in materials if you build them yourself.

Key Takeaways

  • A three-sided wooden bin made from untreated wood or a wire cylinder takes 2 to 4 hours to build and costs $20 to $50 in materials.
  • Your bin should be at least 3 feet wide and 3 feet tall to generate enough heat for fast decomposition, though larger is better if you have the space.
  • Place your bin on bare soil (not concrete) so worms and microorganisms can move in from below.
  • Layer "brown" materials (dry leaves, shredded paper, straw) with "green" materials (grass clippings, food scraps, plant trimmings) in roughly equal amounts by volume.
  • Turn the pile every 2 to 4 weeks with a pitchfork to speed decomposition, or leave it undisturbed for 6 to 12 months for slower, hands-off composting.

Build a three-sided wooden bin

A three-sided bin is the most common DIY design. You need four pieces of untreated wood (cedar, oak, or pine—never pressure-treated, which contains chemicals), each 3 feet long and 12 inches wide. Untreated wood costs $8 to $15 per board at a hardware store. Avoid treated wood because the chemicals leach into your compost and soil.

Stand the boards on edge to form three sides of a square, leaving the front open so you can fork material in and out. find the corners with galvanized bolts, lag screws, or wire—not nails, which pull loose as the wood shifts. If you use bolts, drill holes through the overlapping corners and tighten them snugly. The open front is your access point; you can add a removable fourth board later if you want to contain the pile completely.

Set the bin on bare soil, not on concrete or a pallet. Worms, beetles, and microorganisms need to move up from the ground into your pile. If your yard is mostly clay or compacted soil, loosen the top 6 inches with a shovel before you place the bin.

Build a wire cylinder bin

A wire cylinder is faster to build and takes up less space than a wooden bin. Buy a roll of hardware cloth (galvanized wire mesh with 1/4-inch or 1/2-inch holes) that is 3 feet tall and at least 9 feet long. This costs $15 to $25. Roll it into a cylinder about 3 feet in diameter and fasten the overlapping ends with wire or zip ties.

Set the cylinder on bare soil. The open bottom lets worms and soil organisms enter, and the mesh lets air reach all sides of the pile. The main drawback is that rodents can squeeze through larger mesh holes, so use 1/4-inch hardware cloth if rats or mice are common in your area. You can also line the inside with cardboard or newspaper to slow rodent entry, though this also slows air flow slightly.

A wire bin works well for leaves and yard waste but is messier for food scraps because they are more visible and smell stronger. If you compost kitchen scraps, bury them in the center of the pile under a layer of leaves or soil.

What to put in your bin and what to avoid

Layer two types of material: brown (carbon-rich) and green (nitrogen-rich). Browns include dry leaves, shredded paper, cardboard, straw, and wood chips. Greens include grass clippings, plant trimmings, vegetable scraps, coffee grounds, and crushed eggshells. Aim for roughly equal volumes of each—a 3-inch layer of brown, then a 3-inch layer of green, and repeat.

Avoid meat, fish, dairy, oils, and pet waste. These attract rodents, create odor, and can harbor pathogens. Do not add diseased plants or weeds that have gone to seed. Shred or chop large pieces (like whole corn cobs or thick branches) so they break down faster. Wet materials like grass clippings tend to clump and slow air flow, so mix them with dry leaves or straw.

Cardboard and newspaper are fine to add—tear them into strips first. Glossy paper and colored inks are safe in small amounts. Sawdust from untreated wood is acceptable, but sawdust from pressure-treated lumber should not go in your bin.

Turn the pile or let it sit

Turning the pile speeds decomposition by mixing materials and bringing oxygen to the center. Use a pitchfork to move material from the outside of the pile to the center, working from bottom to top. Turn every 2 to 4 weeks, and you can have finished compost in 2 to 3 months during warm weather.

If you do not want to turn the pile, straightforward add material as you have it and wait. The pile will decompose on its own in 6 to 12 months, depending on temperature and the size of the materials. This method requires less work but takes longer and may attract more insects because the pile stays cooler and wetter.

You will know the compost is ready when it looks like dark, crumbly soil and you cannot identify the original materials. It should smell earthy, not sour or rotten. If it smells bad, add more brown material and turn it more often to increase air flow.

Manage moisture and temperature

Your pile should feel like a wrung-out sponge—damp but not soggy. If it is too wet, add brown material (leaves or shredded paper) and turn it to let moisture escape. If it is too dry, add green material or water it lightly with a hose. In rainy climates, you may need to cover the top of the pile with a tarp to prevent it from becoming waterlogged.

A pile that is at least 3 feet by 3 feet by 3 feet will heat up as microorganisms work, reaching 130 to 150 degrees Fahrenheit in the center. This heat kills weed seeds and pathogens. Smaller piles decompose more slowly because they do not generate as much heat. If your pile is smaller, turn it more often or wait longer for decomposition.

Know when to call a professional

Composting at home is a straightforward process, but a few problems may need outside help. If your pile smells strongly of ammonia or rotten eggs, the balance of materials is off—add brown material and turn it. If you see a lot of flies or maggots, bury food scraps deeper and cover them with soil or leaves. If your pile is not heating up or breaking down after several months, it may be too small, too dry, or too compacted—turn it and add more green material.

If you live in an apartment or have very limited space, you can use a worm bin (vermicomposting) indoors, though that is a different system. If you have questions about whether your local rules allow composting, contact your city or county waste management office—some areas have restrictions on bin placement or the types of materials you can compost.

Frequently Asked Questions

Can I use pressure-treated wood for my bin?

No. Pressure-treated wood contains chemicals like copper or arsenic that leach into your compost and soil. Use untreated cedar, oak, or pine instead. Cedar lasts longer than pine because it resists rot naturally.

How long does it take to get finished compost?

If you turn the pile every 2 to 4 weeks during warm months, you can have finished compost in 2 to 3 months. If you do not turn it, expect 6 to 12 months. Cold weather slows the process significantly, so a pile started in fall may not be ready until spring.

What if my bin attracts rats or raccoons?

Do not add meat, fish, or dairy—these are the main attractants. Bury food scraps under at least 6 inches of soil or leaves. Use hardware cloth with 1/4-inch holes instead of larger mesh. If rodents are persistent, add a lid or cover the top with plywood weighted down with bricks.

Can I compost in winter?

Yes, but decomposition slows dramatically in cold weather. A pile will continue to break down slowly all winter, but you will not see much progress until spring warms it up. Starting a pile in fall means it will be ready in late spring or early summer.

Do I need to add anything to speed up composting?

No. A balanced mix of brown and green materials, adequate moisture, and air flow are all you need. Commercial compost accelerators are not necessary—the microorganisms and worms already in your soil will colonize the pile on their own.