The smell of freshly ground coffee is evocative, heady and indescribable, and in some ways it is worth paying for a coffee grinder for this alone. However, grinding your own beans at home will also make an enormous difference to the quality of your cup, compared to buying pre-ground coffee.
The aim of grinding the beans before brewing is to expose enough surface area to extract enough of the flavour locked inside the beans to make a good cup of coffee. If you brewed whole beans you’d end up with a very weak brew. The finer the beans are ground, the more surface area is exposed and, in theory, the faster the coffee could be brewed because the water has more access to it. This is important when considering how finely the coffee should be ground for different brew methods.
The fact that the size of the coffee grounds changes the speed at which the coffee brews also makes it very important that we try to make all the pieces the same size when grinding coffee.
Finally, grinding the coffee exposes more of it to the air, which means that the coffee will go stale more quickly, so it should ideally only be ground just before brewing.