Chicken legs should be cooked for approximately 20 to 25 minutes while on the grill. It is advised to use a food thermometer to ensure the chicken cooks thoroughly and reaches the appropriate temperature of 165 degrees Fahrenheit.