In this paper, we discuss the averaging method for periodic systems of second order and the behavior of solutions that intersect a hyperplane. We prove an averaging theorem for impact systems. This allows us to investigate the approximate dynamics of mechanical systems, such as the weakly nonlinear and weakly periodically forced Duffing’s equation of a hard spring with an impact wall, or a weakly nonlinear and weakly periodically forced inverted pendulum with double impacts.