A certificate of deposit pays more than a savings account holding the same money at the same bank. The extra comes from a commitment, and the penalty is how it is enforced.
Banks price deposits by how long they stay
A bank funds loans with deposits, and loans have terms. Matching a long loan against money that can leave tomorrow creates a mismatch the bank must manage.
Deposits that are contractually committed for a period reduce that mismatch, which makes them more valuable to the institution than money that can walk out.
The rate on a CD is that value passed back to the depositor, and it is why longer terms usually pay more than shorter ones.
The penalty enforces the term
Without a cost to leaving early, the commitment would be meaningless and the bank could not treat the money as stable funding.
Penalties are typically expressed as a number of months of interest, which scales with the term and is disclosed before the account is opened.
Because the charge is against interest rather than the deposit, a short holding period can result in receiving back slightly less than was put in.
Rate changes create the real cost
A CD fixes a rate for the term. If prevailing rates rise afterward, the depositor is locked into a lower rate while newly issued accounts pay more.
Breaking the CD to capture the higher rate means paying the penalty, so the two have to be weighed against each other rather than considered separately.
If rates fall instead, the fixed rate becomes advantageous, and the bank is the party holding the less favorable side of the arrangement.
Laddering spreads the commitment
Rather than committing everything for one term, some depositors divide funds across staggered maturities so a portion becomes available at regular intervals.
Each maturity can be reinvested at whatever rates then prevail, which reduces the consequence of having committed everything at a single moment.
The structure does not predict rates. It reduces the concentration of a single decision, which is a different objective.
Terms vary more than the product suggests
Some institutions offer accounts with no early withdrawal penalty at a lower rate, and others offer terms allowing a one-time rate adjustment.
Automatic renewal is common, with a short window to withdraw before a matured CD rolls into a new term at current rates.
Missing that window is the most frequent way depositors end up committed again unintentionally, which is a calendar problem rather than a financial one.