The right size gallons, but the top of the bag is a little tight and I have to cut one string and stretch the bag so I can fit it over the lip of my trash can. Otherwise, it fits except for this one detail.