Assuming you haven’t eaten and shared all your delicious garlic – hardneck varieties will store for 5-8 months before sprouting, and softnecks will store for up to 10 months (if not longer under ideal conditions).
Sprouting garlic can still be eaten, but does lose it’s intensity of flavour.
The optimum storage condition is a well ventilated area, preferably left in the open shipping box. On top of the fridge, or on top of a cupboard, is an ideal location.
Do not store garlic in the fridge unless you intend to use it within the week. Garlic can be frozen but will become mushy upon defrosting.