Milk losses associated with mastitis can be attributed to either effects of pathogens per se (i.e. direct losses) or to effects of the immune response triggered by the presence of mammary pathogens (i.e. indirect losses). Test-day milk somatic cell counts (SCC) and number of bacterial colony forming units (CFU) found in milk samples are putative measures of the level of immune response and of the bacterial load, respectively. Mediation models, in which one independent variable affects a second variable which, in turn, affects a third one, are conceivable models to estimate direct and indirect losses. Here, we evaluated the feasibility of a mediation model in which test-day SCC and milk were regressed toward bacterial CFU measured at three selected sampling dates, 1 week apart. We applied this method on cows free of clinical signs and with records on up to 3 test-days before and after the date of the first bacteriological samples. Most bacteriological cultures were negative (52.38%), others contained either staphylococci (23.08%), streptococci (9.16%), mixed bacteria (8.79%) or were contaminated (6.59%). Only losses mediated by an increase in SCC were significantly different from null. In cows with three consecutive bacteriological positive results, we estimated a decreased milk yield of 0.28 kg per day for each unit increase in log 2 -transformed CFU that elicited one unit increase in log 2 -transformed SCC. In cows with one or two bacteriological positive results, indirect milk loss was not significantly different from null although test-day milk decreased by 0.74 kg per day for each unit increase of log 2 -transformed SCC. These results highlight the importance of milk losses that are mediated by an increase in SCC during mammary infection and the feasibility of decomposing total milk loss into its direct and indirect components.