Generally speaking, flexible hose size is based on the inside diameter, so "1/2" hose" is 1/2" I.D. (and typically 3/4" O.D.). A hose barb that's advertised as 1/2" is sized based on the fitting's outside diameter, so a 1/2" hose barb will fit a 1/2" flexible hose.