A prepayment penalty is an agreement between a bank and a borrower that regulates what the borrower is allowed to pay off and when. Here’s what you need to know if you’re considering paying off a loan early.