The 2 gallon buckets I have actually hold more than 2 1/2 gallons so you can ferment pretty close to 2 gallons of beer and still have plenty of head space as long as it's not a real big beer. I think I did 2 gallons once but have tried to stick with 1.8 or less.
I try to get 1.9 g in my 2 g buckets.