How does debt consolidation affect a credit score?

Debt consolidation can initially lower a credit score due to a hard inquiry and a new account. Over time, it can improve a score by reducing credit utilization and demonstrating responsible payment behavior, assuming consistent on-time payments are made.