Compost carbon to nitrogen calculator

Compost works best around 30 parts carbon to one of nitrogen. Too much nitrogen smells; too much carbon does nothing.

Straw 80; dry leaves 60; sawdust 400; cardboard 350.

%

Grass clippings 17; kitchen scraps 15; manure 20; coffee grounds 20.

%
Carbon to nitrogen ratio
30.00
= Exact Ideal
Total mix
100.0
Carbon material for the target ratio
60.0
Carbon material to add Negative means you have too much already.
0.0
Total carbon
39.00
Total nitrogen
1.300
Show the working
  1. Carbon-rich material = 60
  2. Its C:N ratio = 80
  3. Its nitrogen content = 0.5
  4. Nitrogen-rich material = 40
  5. Its C:N ratio = 15
  6. Its nitrogen content = 2.5
  7. Target C:N ratio = 30
  8. brown_n_mass = 60 * 0.5/100 = 0.3
  9. green_n_mass = 40 * 2.5/100 = 1
  10. brown_c = 0.3 * 80 = 24
  11. green_c = 1 * 15 = 15
  12. Total nitrogen = 0.3 + 1 = 1.3
  13. Total carbon = 24 + 15 = 39
  14. Carbon to nitrogen ratio = 1.3 > 0 ? 39 / 1.3 : 0 = 30
  15. Total mix = 60 + 40 = 100
  16. Carbon material for the target ratio = (80 - 30) * 0.5/100 != 0 ? 1 * (30 - 15) / ((80 - 30) * 0.5/100) : 0 = 60
  17. Carbon material to add = 60 - 60 = 0

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • nitrogen mass = material mass x nitrogen percentage
    • carbon mass = nitrogen mass x that material C:N ratio
    • mix ratio = total carbon / total nitrogen

    Moisture matters as much as the ratio: aim for the dampness of a wrung-out sponge, around 50 to 60% water.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library