Understanding the APR calculator — concept and principle
The interest rate on a loan does not tell the whole story when the lender also charges upfront fees. The annual percentage rate (APR) folds those fees into a single yearly rate, so two offers with different rates and fees can be compared fairly. This calculator takes the loan amount, nominal rate, term and upfront fees, and returns the APR, the monthly payment, the cash you actually receive, the total paid, the total cost of credit and the effective annual rate (APY).
How it is calculated
- Monthly payment from the nominal rate: A = P × r ÷ (1 − (1 + r)^−N), with r = annual rate ÷ 12 and N = years × 12.
- Cash received: P − fees.
- Find the monthly rate x that makes the present value of the payments equal the cash received: A × (1 − (1 + x)^−N) ÷ x = P − fees. There is no closed formula, so the calculator solves it numerically (Newton's method).
- APR = x × 12; APY = (1 + x)^12 − 1.
The calculator works with any currency.
The principle
APR is the internal rate of return of the loan from the borrower's side. You get less cash up front (the fees are deducted) but repay the same payments, so the true cost per dollar actually received is higher than the nominal rate. Multiplying the monthly rate by 12 follows the US Truth in Lending convention (Regulation Z), which quotes APR as a nominal yearly rate. The EU instead uses an effective annual rate (APRC), which corresponds to the APY line here.
Worked example
Default: $20,000 loan, 8% rate, 5 years, $600 fees.
- r = 0.08 ÷ 12 = 0.0066667; N = 60. Payment: $405.53.
- Cash received: 20,000 − 600 = $19,400.00.
- Total paid: 405.53 × 60 ≈ $24,331.67; cost of credit: 24,331.67 − 19,400 = $4,931.67.
- Solving 405.53 × (1 − (1 + x)^−60) ÷ x = 19,400 gives x ≈ 0.0077487.
- APR = 0.0077487 × 12 ≈ 9.298%; APY = 1.0077487^12 − 1 ≈ 9.705%.
How to read the result
The gap between APR and the nominal rate shows how heavy the fees are. The same fee hurts more on a short loan, because it is spread over fewer payments. When comparing offers, compare APR for loans you will keep to term; if you may repay early, the fees weigh even more, so the effective cost would be higher than the APR shown.
Common mistakes
- Comparing nominal rates while ignoring fees.
- Comparing a US-style APR with an EU APRC or an APY; they are on different bases.
- Adding fees to the loan balance in your head and still using the full amount as "cash received".
Frequently asked questions
What APR does a $20,000, 8%, 5-year loan with $600 fees have?
About 9.30%.
What is the difference between APR and APY?
APR here is the monthly rate × 12; APY compounds the monthly rate over 12 months, so it is higher.
Why does the APR rise if I repay early?
The upfront fee is spread over a shorter time, so the cost per year increases.
Sources: US Regulation Z (Truth in Lending), 12 CFR Part 1026, Appendix J (APR computation) · EU Consumer Credit Directive, annual percentage rate of charge (APRC)