The ratio that usually works in a backyard compost bin is roughly one part green material to every two or three parts dry material. Greens provide nitrogen and moisture: fruit peels, vegetable scraps, coffee grounds, tea bags without the string, freshly cut grass. Browns provide carbon and air: fallen leaves, cardboard without glossy ink, paper towel rolls, small shredded branches, untreated sawdust. If the mix leans too far toward greens, the pile becomes compacted, gives off a sour smell, and attracts flies. If it leans too far toward browns, the process slows down and you barely feel any heat when you put your hand in.
What should be left out is shorter than people think. Meat scraps, bones, fish, dairy, and fats do not go in: they break down poorly and attract dogs, cats, and rodents. Nor do pet waste, diapers, cigarette butts, or diseased plants or plants with mature seeds, because they often survive the process. Citrus in large amounts, onion and garlic peels in excess, or bread can be added in small proportions, but not as the base of the pile.
To read the process there are three simple signs. Temperature: an active pile feels warm in the center when you insert a stick. Moisture: it should be like a wrung-out sponge, neither dripping nor dry. Texture: if when you turn it material still recognizable appears, the pile needs more time and one more turn. Aerating every week or every ten days, especially in summer, prevents the center from compacting and odors from appearing. In winter the pace slows down and there is no need to force it.
When the compost is ready it looks dark, smells like forest soil, and what was added can no longer be distinguished. It is used as an amendment in the beds, mixed with the soil or as a fine mulch. It is not a concentrated fertilizer nor does it replace other soil tasks, but it closes the cycle of organic matter at home and returns to the garden part of what came out of it.