No recent study attempted to model daily milk losses before and after mastitis onset and the moment when it begins. Thus, we aimed to describe the impact of mastitis on milk production based on mastitis level and moment of occurrence. We used data from 11 dairy farms, and the data set consisted of 885,759 daily individual milk test records from 3,508 cows in different lactations, with an average milk yield from January 2017 to December 2022. We modeled the impact of mastitis severity [i.e., 1 (mild) and 2 (severe)] based on the drop and recovery of milk yield following 3 steps. First, we removed milk recorded on the day of diagnosis of mastitis from the data set and fitted a Wood's Curve for each cow and parity. Second, we returned the mastitis data to the data set and estimated the residual milk loss due to mastitis from 15 d before to 30 d after the mastitis event. Third, we used generalized additive mixed effect models to estimate the residual milk loss, including farm as a random effect. In addition to the random effect of the farm, we also included the predicted value of mastitis, the day effect before and after mastitis incidence, and the interaction between the predicted value of mastitis and days. On average, mastitis level 2 resulted in a more severe milk yield drop in all represented stages of lactation (80, 170, and 260 d in milk), suggesting a higher loss close to the lactation peak, approximately 130 kg more than mastitis level 1. Moreover, the occurrence of mastitis case level 1 during early phase of lactation (DIM 80) can cause an average milk loss of 158 L and a ML 2, an average loss of 288 L. The estimations suggest that milk drop occurs 14 to 4 d before mastitis onset and can last until 15 to 25 d from the diagnosis, which would be the necessary time for a cow to reestablish their predicted milk yield. Therefore, our study brings new perspectives to investigate milk yield drop and recovery due to mastitis infections and how much mastitis can deplete and impair milk production.