Compost is decomposed organic matter — the end product of microorganisms breaking down plant materials, food scraps, leaves, grass clippings, manure, and other organic inputs. It's many things at once: part fertilizer, part soil conditioner, part microbial habitat.
Compost shines as an amendment to existing garden soil. It feeds soil microbes, reduces compaction, improves structure, and supplies slow-release nutrients. It helps topsoil hold water better and makes the ground easier to dig. Topsoil without compost is essentially lifeless dirt; compost without topsoil is often too rich to support many garden plants. They work together.
Spring is a great time to spread compost around the garden because plants are still small, but you can apply it anytime you have it available. I recommend 2 to 3 inches if you have it, but any amount helps. Put it directly on the soil surface and resist the urge to till it in. Tilling destroys the fungal network you're trying to build and collapses the air space in the soil. Spread compost and other amendments across the surface and let them do their work — layer upon layer.
A word of caution from the field: Compost is incredibly inconsistent. Even though I recommend it for every garden, it should not be relied upon as a stand-alone growing medium or as your sole source of fertilizer unless you've had it tested. Think of compost as good for gut health, but not for calories. It contains slow-release nutrition, but the amounts vary widely from batch to batch. I almost always supplement with nitrogen, phosphorus, and potassium.
Compost also holds a lot of moisture and doesn't work in containers on its own. Avoid it in small pots and in seed-starting setups. In larger outdoor containers, it can be mixed in, but it's rarely used as a planting medium by itself.
One more practical note: because of how fertilizers and bagged soils are regulated, you may have a hard time finding a product literally labeled "compost" at the big box stores. Look instead for terms like garden soil, soil conditioners, or aged forest materials — all of these organic products can help improve your soil. Better yet, check your local landscape supply company for a bulk delivery. You can often get a whole truckload for a fraction of the cost of bagged material, with enough left over to share with the neighbors.