Almost every failed compost heap in Britain fails in one of two ways. Either it is a slimy, stinking, airless pudding of grass clippings and kitchen scraps, or it is a dry stack of twigs and cardboard that looks exactly the same as it did eighteen months ago.

These look like opposite problems. They are the same problem, and it has one fix.

Compost is made by bacteria and fungi, and they need four things: nitrogen, carbon, air and water. Get the balance right and a heap will be usable in six months. Get it wrong and you can wait years.

November is the ideal month to sort this out, because you have just cleared the beds and you are standing next to a mountain of the exact material a heap needs.

Why is my compost heap not rotting?

Because the ratio of greens to browns is wrong, and in Britain it is almost always too many greens.

Greens are nitrogen-rich, wet, and soft: grass clippings, vegetable peelings, coffee grounds, weeds, spent crop plants, manure.

Browns are carbon-rich, dry, and structural: cardboard, autumn leaves, straw, woodchip, paper, dead stems, egg boxes.

If your heap is slimy, smelly and hot then cold, you have too many greens. The material has packed down, the air has been squeezed out, and it is fermenting rather than composting. That ammonia smell is nitrogen escaping into the sky.

If your heap is dry, unchanged and full of recognisable twigs, you have too many browns. There is not enough nitrogen for the bacteria to work with, so nothing is happening.

The fix in both cases is the same: change the ratio and add air (RHS composting guide).

What is the right ratio of greens to browns?

Roughly half and half by volume, and if in doubt, add more browns.

You will see 25:1 or 30:1 quoted, which is a carbon-to-nitrogen ratio by weight and is useless standing next to a heap with a bucket of peelings in your hand. The practical version is: for every bucket of green material you add, add roughly a bucket of brown.

The reason this is hard in practice is that greens arrive in enormous quantities all at once - one mowing produces a barrow of grass clippings - while browns arrive slowly. So the discipline is not really about the ratio. It is about keeping a stock of browns next to the heap: a bag of autumn leaves, a stack of flattened cardboard, a bale of straw. Then every time you tip a bucket of green in, you have something to tip in after it.

Grass clippings on their own are the most common cause of a failed heap in this country. A 15cm layer of clippings will compact into an airless, black, stinking mat that rots nothing. Mix them with cardboard or leaves and the same clippings become the best compost activator you have.

What can I put in a compost heap?

Greens - yes:

Browns - yes:

No:

Do I need to turn the compost heap?

No, but it roughly halves the time.

Turning does one thing: it puts air back in. Bacteria that break material down fast are aerobic - they need oxygen - and a heap that has settled and compacted has run out. Turning it into an empty bay next to it, or just forking it over, gets it moving again. It also moves the cool outside material into the hot middle where the work happens.

An unturned heap still makes compost. It just takes twelve to twenty-four months instead of six to nine (RHS composting guide).

The compromise most people settle on, and it is a sensible one: two bays. Fill bay one for a year. Then turn it into bay two, and start filling bay one again. You turn once a year, you get finished compost every year, and you never have to think about it beyond that.

How wet should a compost heap be?

Like a wrung-out sponge - damp, but not dripping when you squeeze a handful.

Too dry and nothing works: dry cardboard and dry leaves will sit there indefinitely. Too wet and you have squeezed the air out, which is what turns a heap anaerobic and produces that sour, ammonia smell.

In a British winter the risk is almost always too wet. A lid, a piece of old carpet, or a sheet of cardboard over the top keeps the worst of the rain off - and it also keeps the heat in, which matters more than people realise once the nights are cold.

In a dry summer the risk flips, and a heap that has dried out completely will need a watering can before it will do anything.

How do I fix a compost heap that has gone wrong?

Slimy and smelly: fork the whole thing out onto a tarpaulin, mix in a large volume of browns - torn cardboard is the fastest thing to hand - and put it back loosely, without compacting it. Cover it. Within a fortnight the smell will be gone.

Dry and inert: water it, and add greens. Fresh grass clippings, if you have them, or a bucket of vegetable waste, or a handful of chicken manure pellets. Mix, cover, and it will fire up.

Full of flies: you have exposed food waste on the surface. Bury each addition under a layer of browns and the flies stop.

Rats: you have put cooked food in, or the heap is dry enough to be a comfortable nest. Take the food waste out, wet the heap thoroughly, and turn it - a wet, hot, frequently disturbed heap is not somewhere a rat wants to live.

How do I know when the compost is ready?

When it is dark, crumbly, smells of woodland floor, and you cannot tell what any of it used to be.

It does not need to be a fine, uniform tilth. A few twigs and the odd unrotted stalk are fine - sieve them out if you are sowing seed into it, or just spread it as it is if it is going onto a bed as a mulch. Perfectionism here costs you time and gains you nothing.

Timescale: six to nine months for a well-balanced, turned heap. Twelve to twenty-four for one that is left alone. A heap built this November with the right ratio will be feeding your beds by next autumn.

And that is the point of all of it. Compost is not a waste-disposal chore - it is the single input that most improves a vegetable garden, and it is the one you are already throwing away.