The matter–anti-matter asymmetry in the early Universe’s history is explained theoretically by the baryogenesis. It is well known that modified gravity theories are highly effective in explaining the Universe’s current accelerated state. In this paper, we examine the gravitational baryogenesis for f(Q, C) gravity, where Q is the non-metricity scalar and C is the boundary term. To perform the baryogenesis, we assume linear, nonlinear and logarithmic forms of f(Q, C). We evaluate the baryon-to-entropy ratio for our models by assuming the power law form of the scale factor a(t) = a0tδ. We also investigate the generalized baryogenesis for our model by assuming the interaction term ∂μ(Q + C). We constrain the model parameters by comparing with the observational value η