In this study, we examine the generation of gravitational baryogenes(GB) within the context of \(f(R,L_m)\) modified gravity, where R indicates the Ricci curvature scalar and \(L_m\) represents the matter field density. Focusing on a specific functional form, \( f(R,L_m)= \frac{R}{2} + \lambda R^2 + \alpha L_m \) , we analyze the early cosmological evolution assuming a cosmos comprising of ideal fluid. The analysis is carried out during the radiation-dominated epoch, allowing for a non-vanishing matter imbalance ratio. By applying the GB procedure, we apply observational restrictions to ensure that the model’s free parameters are consistent with the measured baryon asymmetry. Our results demonstrate that the \(f(R,L_m)\) paradigm can provide a significant and stable contribution to the generation of baryon asymmetry, supporting its viability as a suitable explanation for baryogenesis.