The ability of prey to recognize predators is a fundamental prerequisite to avoid being eaten. Indeed, many prey animals learn to distinguish species that pose a threat from those that do not. Once the prey has learned the identity of one predator, it may generalize this recognition to similar predators with which the prey has no experience. The ability to generalize reduces the costs associated with learning and further enhances the ability of the prey to avoid relevant threats. For many aquatic organisms, recognition of predators is based on odor signatures, consequently any anthropogenic alteration in water chemistry has the potential to impair recognition and learning of predators. Here we explored whether episodic acidification could influence the ability of juvenile rainbow trout to learn to recognize an unknown predator and then generalize this recognition to a closely related predator. Trout were conditioned to recognize the odor of pumpkinseed sunfish under circumneutral (~pH 7) conditions, and then tested for recognition of pumpkinseed or longear sunfish under both neutral or weakly acidic (~pH 6) conditions. When tested for a response to pumpkinseed odor, we found no significant effect of predator odor pH: trout responded similarly regardless of pH. Moreover, under neutral conditions, trout were able to generalize their recognition to the odor of longear sunfish. However, the trout could not generalize their recognition of the longear sunfish under acidic conditions. Given the widespread occurrence of anthropogenic acidification, acid-mediated impairment of predator recognition and generalization may be a pervasive problem for freshwater salmonid populations and other aquatic organisms.