1/2 inch would be perfect
Not too small as to risk getting teeth caught(a risk with smaller spacing),but not big enough to allow a hamster to escape.1/2 inch is also just right for hanging things,as it can be extremely difficult to hang things with smaller spacing