1.Associating with conspecifics afflicted with infectious diseases increases the risk of becoming infected, but engaging in avoidance behaviour incurs the cost of lost social benefits. Across systems, infected individuals vary in the transmission risk they pose, so natural selection should favour risk‐sensitive avoidance behaviour that optimally balances the costs and benefits of sociality. 2.Here we use the guppy Poecilia reticulata‐Gyrodactylus turnbulli host‐parasite system to test the prediction that individuals avoid infected conspecifics in proportion to the transmission risk they pose. 3.In dichotomous choice tests, uninfected fish avoided both the chemical and visual cues, presented separately, of infected conspecifics only ...