The method of calculation varies depending on the type of account and the institution’s policies. For example, with CDs, the penalty may be a percentage of the interest earned or a set number of months' worth of interest. For retirement accounts like 401(k)s or IRAs, the penalty is typically a flat percentage of the amount withdrawn, often around 10%, in addition to any applicable taxes.