While barley is not toxic to gerbils, it is not a staple part of their diet. Gerbils should primarily eat a diet of commercial gerbil food, supplemented with fresh vegetables and occasional treats.
If you have a gerbil, please consult with a veterinarian or experienced gerbil owner for advice on their diet.