Sub topic 6
Fees and the total cost of a loan
This chapter assumes you can compute a fixed-rate loan payment with the amortization formula. It also assumes you know the difference between a nominal rate and an effective annual rate. The question here is what a loan costs once fees are added to the interest.
Why the interest rate is not the whole price
A lender's advertised rate describes only the interest charge. Most loans also carry fees, and they change the real price in three ways:
- Some fees reduce the money you receive, but you still repay the full principal.
- Some fees are added to the balance, so they accrue interest too.
- Some fees apply only if something happens, such as paying late or paying off early.
The correct comparison measures total cost of borrowing:
total cost = all payments you make + fees you pay outside the payments - money you actually receiveCompare offers by this number, and by the fee-adjusted rate described below. Do not compare them by the monthly payment.
Common fees and when they bite
| Fee | When charged | Effect on cost |
|---|---|---|
| Origination fee | Upfront, often a percentage of principal | Reduces the cash you receive, or is added to the loan |
| Application or closing costs | Upfront | Fixed cost that matters most on small or short loans |
| Discount points (mortgages) | Upfront | Pays for a lower rate, so you must break even over time |
| Annual or monthly account fee | Recurring | Adds cost every year the account is open |
| Late fee | If a payment is missed | Adds cost, and may also trigger a penalty rate |
| Prepayment penalty | If you repay early | Removes the savings from paying off early |
| Credit insurance or add-on products | Often rolled into the loan | Increases the balance and accrues interest |
Which fees count toward the disclosed APR depends on the country and the product. In general, upfront finance charges such as origination fees are included. Late fees and optional add-ons usually are not. Read the lender's disclosure to see what its APR covers.
Where the money goes
The figures in the diagram come from the next section. The borrower repays 20,000 of principal but receives only 19,400. That makes the fee as much a cost of the loan as the interest is.
Worked example: a lower rate that costs more
You need about 20,000 over 5 years. Two lenders respond:
- Offer A: 7% nominal rate with a 3% origination fee, deducted from the proceeds.
- Offer B: 7.5% nominal rate with no fees.
Offer A has the lower rate. The code below computes each offer's payment, total cost, and fee-adjusted rate. The fee-adjusted rate is the rate at which the payments are worth exactly the cash you received. It is the same idea as APR, calculated here by bisection.
def monthly_payment(principal, annual_rate, years):
"""Fixed monthly payment for a fully amortizing loan."""
r = annual_rate / 12
n = years * 12
if r == 0:
return principal / n
return principal * r / (1 - (1 + r) ** -n)
def fee_adjusted_apr(principal, upfront_fee, annual_rate, years):
"""Annual rate (compounded monthly) that equates the payments to the cash received."""
pmt = monthly_payment(principal, annual_rate, years)
n = years * 12
net = principal - upfront_fee
lo, hi = 0.0, 1.0
for _ in range(100):
mid = (lo + hi) / 2
r = mid / 12
present_value = pmt * (1 - (1 + r) ** -n) / r
if present_value > net:
lo = mid # rate too low: payments are worth more than cash received
else:
hi = mid
return (lo + hi) / 2
def total_cost(principal, upfront_fee, annual_rate, years):
"""Everything paid beyond the cash received (fee deducted from proceeds)."""
pmt = monthly_payment(principal, annual_rate, years)
received = principal - upfront_fee
return pmt * years * 12 - received
offers = {
"A (7.0%, 3% fee)": (20000, 600, 0.07, 5),
"B (7.5%, no fee)": (20000, 0, 0.075, 5),
}
for name, (p, fee, rate, yrs) in offers.items():
pmt = monthly_payment(p, rate, yrs)
apr = fee_adjusted_apr(p, fee, rate, yrs)
cost = total_cost(p, fee, rate, yrs)
print(f"{name}: payment {pmt:.2f}, total cost {cost:.2f}, fee-adjusted rate {apr:.2%}")The results, rounded:
| Offer | Monthly payment | Interest over 5 years | Fee | Total cost | Fee-adjusted rate |
|---|---|---|---|---|---|
| A | about 396 | about 3,761 | 600 | about 4,361 | about 8.3% |
| B | about 401 | about 4,044 | 0 | about 4,044 | 7.5% |
Offer A has the lower payment and the lower stated rate. It still costs about 320 more in total. Its fee-adjusted rate of about 8.3% is the better measure of what it costs. Offer A looks cheaper only if you compare the stated rate or the monthly payment.
The fee is front-loaded, so timing matters
An upfront fee is paid on day one whether the loan lasts 5 years or 5 months. If you repay early, the fee is spread over fewer months of borrowing. This has three consequences:
- The same fee raises the effective rate more on a short loan than on a long one.
- A lender's APR assumes you hold the loan for the full term. If you repay or refinance early, your real cost is higher than the disclosed APR.
- A prepayment penalty makes early payoff more expensive still.
Mortgage discount points work the same way. Paying points lowers the rate, but you recover the cost only if you keep the loan past the break-even point. The break-even time is the upfront cost divided by the monthly saving.
def break_even_months(upfront_cost, monthly_saving):
"""Months before an upfront payment is recovered by lower payments."""
if monthly_saving <= 0:
return None
return upfront_cost / monthly_saving
print(f"{break_even_months(3000, 75):.0f} months")This prints 40 months. Paying 3,000 in points to save 75 a month only helps if you keep the loan more than 40 months.
Common errors
- Comparing monthly payments. A payment lowered by a longer term or by a fee rolled into the balance can hide a higher total cost.
- Ignoring financed fees. If you roll a fee into the principal, you pay interest on it for the whole term. A 600 fee financed at 7% for 5 years costs roughly an extra 113 in interest, on top of the 600 itself.
- Treating APR as final. APR covers only the fees its rules include. It also assumes you keep the loan to the end of the term.
- Accepting add-ons by default. Credit insurance and similar products raise the balance and the interest. They are optional, so price them as a separate purchase.
- Forgetting conditional fees. Late fees, returned-payment fees, and prepayment penalties never appear in the headline rate. They matter if your plans or your cash flow change.
A comparison routine
For any offer, collect these numbers before deciding:
- The principal, and the cash you actually receive after fees.
- The rate, the term, and the monthly payment.
- Every upfront fee, and whether it is deducted or financed.
- Every conditional fee: late, prepayment, and account fees.
- Total payments, minus the cash received. This is the total cost.
- The fee-adjusted rate for the time you expect to keep the loan.
Exercise
You borrow 10,000 for one year. The lender deducts a 2% origination fee at the start, so you receive 9,800. At the end of the year you repay 10,600 in a single payment (10,000 principal plus 600 interest). What is the total cost of borrowing, and what is the effective cost as a percentage of the cash you received?
Show answer
The total cost is 10,600 - 9,800 = 800 (600 interest plus 200 fee). As a share of the cash received it is 800 / 9,800 = about 8.16% for the year. The stated simple interest rate was only 6%.
Exercise
A lender offers to waive a 400 fee if you accept a rate that raises your payment by 8 a month. If you will keep the loan 36 months, should you take the waiver, ignoring interest on the fee?
Show answer
Over 36 months the higher rate costs 8 x 36 = 288, which is less than the 400 fee, so the waiver is cheaper. Break-even is 400 / 8 = 50 months. The waiver stops being a good deal only if you keep the loan longer than 50 months.