Usually it's the size of the whole plastic hood. For example, my 30 inch Aquaticlife fixture is 30" but uses 24" bulbs inside it. A 10 gal. hood at 20" uses an 18" bulb if it's flourescent.
LED lights are different because they don't have to allow room for ballasts. OS.