This paper deals with second-order differential pencils with a fixed frozen argument on a finite interval. We obtain the trace formulae under four boundary conditions: Dirichlet–Dirichlet, Neumann–Neumann, Dirichlet–Neumann, Neumann–Dirichlet. Although the boundary conditions and the corresponding asymptotic behaviour of the eigenvalues are different, the trace formulae have the same form which reveals the impact of the frozen argument.