Consolidating and refinancing are different decisions.
One keeps you in the federal system. The other can take you out.
Federal Direct Consolidation
This combines eligible federal loans into a new federal loan. Its rate is a weighted average rounded up to the nearest one-eighth of a percentage point. It is not a way to obtain a market refinance rate.
Private refinancing
A lender replaces selected balances with a private loan. Refinancing federal debt permanently gives up federal income-driven repayment and forgiveness benefits, including PSLF, on that debt.
Pause before combining everything
Check how consolidation affects your existing payment credit and plan options. If you have both federal and private loans, you can evaluate the private balance separately.
Go to the source
CFPB · consolidation and refinancing ↗Federal Student Aid · PSLF questions ↗Rules and account details can change. Official sources determine eligibility; this page does not.