Prepayment and foreclosure fees are the costs involved with paying back the loan balance before the term is over.