Enter your green and brown materials by weight to find your current carbon-to-nitrogen ratio and what you need to add.
The carbon-to-nitrogen ratio (C:N ratio) is the single most important variable in composting. Microorganisms — bacteria and fungi — are the engine of decomposition, and like all living organisms they need both carbon for energy and nitrogen to build proteins. When the ratio is right (roughly 25–35 parts carbon to 1 part nitrogen by weight), microbial populations explode, the pile heats up to 130–160°F, and finished compost can be ready in as little as 4–8 weeks with regular turning. When the ratio is off in either direction, the process slows dramatically or produces unpleasant side effects.
In practical terms, you balance your compost pile by mixing "browns" (high-carbon materials like dry leaves, straw, and cardboard) with "greens" (high-nitrogen materials like grass clippings, kitchen scraps, and fresh manure). The challenge is that the C:N values of individual materials vary enormously — dry leaves are around 60:1, straw 75:1, and wood chips 400:1, while grass clippings run 17:1 and chicken manure as low as 7:1. The calculator above lets you enter weights of each material you have on hand and tells you exactly what to add to reach the optimal range.
Hot composting requires maintaining a pile of at least 3 cubic feet in volume, getting the C:N ratio into the 25–35:1 range, keeping moisture at 40–60%, and turning the pile every 3–5 days to reintroduce oxygen. When done correctly, the pile's core reaches 131–160°F, which kills weed seeds, pathogens, and fly larvae in as little as 3 days at those temperatures. The benefit is fast, reliable compost in 4–8 weeks. The downside is that it requires active management and a large batch of materials assembled at once. Cold composting — simply piling materials and letting them sit — works without any effort but takes 6–24 months and does not reliably kill weed seeds or pathogens.
The universally recommended target is 25:1 to 35:1, with 30:1 cited most often as the ideal. At this ratio, aerobic bacteria are the dominant decomposers and generate significant heat. Ratios below 20:1 favor anaerobic bacteria, which produce ammonia gas and sulfur compounds — the source of the rotten-egg and ammonia smells associated with poorly managed piles. Ratios above 40:1 slow decomposition sharply because bacteria run out of nitrogen needed to reproduce. The pile still decomposes eventually but takes months rather than weeks and generates little heat, meaning weed seeds and pathogens survive.
Greens are nitrogen-rich materials, not necessarily green in color. The most commonly available green materials include fresh grass clippings (C:N 17:1), vegetable and fruit kitchen scraps (12–35:1), fresh plant trimmings and weeds (15:1), coffee grounds with the paper filter (20:1), and fresh animal manures — chicken manure is especially nitrogen-dense at 7:1, while horse and cow manure range from 15–25:1 depending on bedding content. Human urine, often overlooked, is an excellent free nitrogen source at roughly 0.5:1 and can be diluted 10:1 with water and poured over a carbon-heavy pile to kick-start heating. Avoid adding diseased plant material or weeds that have already gone to seed, as these may survive even in a hot pile.
A pile that won't heat typically has one or more of these problems: too much carbon (high C:N ratio), insufficient moisture, pile is too small, or lacks oxygen. Start diagnosis by checking moisture — the pile should feel like a wrung-out sponge. If it is dry, add water and mix. If moisture is correct, check volume: a pile smaller than 3 cubic feet (roughly a 3×3×3 foot cube) lacks the insulating mass to retain microbial heat. If size and moisture are adequate, the pile almost certainly needs more nitrogen — add grass clippings, fresh manure, or blood meal and turn thoroughly. Finally, turning the pile introduces oxygen and reinvigorates aerobic bacteria; a pile that has compacted without turning will go anaerobic and stall.
Timeline varies enormously depending on method and management. A properly managed hot pile with correct C:N ratio, adequate moisture, and turning every 3–5 days can produce finished compost in 3–5 weeks. More realistically, with turning every 1–2 weeks and occasional moisture management, most hot piles finish in 6–12 weeks. Cold piles that receive materials passively over time and are turned only occasionally take 6–24 months. Finished compost smells earthy and sweet (like forest soil), crumbles easily, is dark brown in color, and is unrecognizable from its original materials. If you can still identify ingredients, it is not finished and should not be applied heavily to vegetable beds.
The standard advice is to avoid meat, fish, dairy, oils, and cooked foods in backyard compost piles because they attract rodents, raccoons, and other pests, and because they can create foul odors if not decomposed quickly enough. In a properly managed hot pile that reaches 140–160°F, these materials do break down and are actually excellent nitrogen sources. If you want to compost these materials safely, use a sealed bin, a bokashi system (fermentation-based pre-composting), or a hot pile you are actively managing with frequent turning. Bokashi is particularly well-suited to households that generate a lot of cooked food waste — it ferments the material in an anaerobic environment within 2–4 weeks, and the fermented product can then be buried in soil or added to an active compost pile.
Finished compost is most effectively used by working 2–4 inches into the top 6–12 inches of garden soil before planting each season. For established raised beds, top-dressing with 1–2 inches of compost each year and letting earthworms and watering work it in is equally effective and less disruptive to soil structure. Container gardens and Mel's Mix beds benefit most from replacing 25–30% of the mix with fresh compost each season, since the existing compost breaks down and loses volume. Apply compost in fall to allow it to continue breaking down over winter, or apply in spring 2–4 weeks before planting so it has time to integrate. Fresh, incompletely finished compost applied immediately before planting can tie up nitrogen as it continues to decompose, temporarily starving seedlings.