For a floating shelf, the bracket needs to be long enough to support the weight of your shelf. A good size for most shelves is between 16 inches and 23 inches.