A progressive guide for the non-accountant — from basic concepts to the mathematical principles behind monthly payments.
This is the first of three articles building a complete, ground-up understanding of loan amortization — from the vocabulary a borrower needs, to the mathematics behind the payment formula, to the software engineering decisions about rounding and precision that determine how real financial systems behave.
No prerequisites. Covers the vocabulary and mechanics you need to understand a loan statement and follow a payment schedule step by step.
Goes deeper into the financial math. Derives the payment formula from first principles and introduces Newton-Raphson for loans with irregular day counts.
We all know what a monthly payment is: the amount we pay each month for borrowed money. But to truly understand why that number is what it is, we need to grasp several fundamental concepts.
The financed amount is the total money you receive as a loan, plus any charges incorporated into the initial balance. These charges may include taxes, fees, or commissions required to formalize the loan. It’s important to distinguish this number from the price of the asset you’re acquiring.
When we talk about “monthly” payments, the unit that formally defines the loan’s duration is the month, even when expressed in years. For example, a 5-year loan equals 60 monthly installments.
While most loans operate with monthly intervals, it’s also possible to structure loans with annual intervals. For example, a $1,000,000 loan over 10 years with annual payments would have 10 intervals.
The term or interval defines when the loan is evaluated to allocate a portion of the payment to principal and another to accrued interest. This process is called amortization, and we’ll cover it in detail below.
This is possibly the most confusing concept, not by accident but by design. Interest is usually presented, and in many cases required by law, in annual terms. For example, “at 6.55%”.
For standard US consumer loans, interest is calculated each period as simple interest on the outstanding balance — it does not compound. You pay all accrued interest every month, so unpaid interest never accumulates on itself. The monthly rate used in the calculations throughout this guide is APR/12 — a convention the industry agreed on, not a mathematical equivalence.
Keeping this convention in mind is important: the amortization tables throughout this guide apply APR/12 each month to the outstanding balance. We’ll build on this in Layer 2.
The monthly payment is the fixed amount you pay each period for the life of the loan. It is calculated so that by the final period your balance reaches exactly zero — no more, no less. Each payment covers two things: the interest charged for that period, and a portion of the principal you still owe.
The standard formula — which assumes equal 30-day periods — gives you an exact answer in one step. Here M is the monthly payment, PV is the loan amount, r is APR/12, and n is the total number of payments:
For our example — $10,000 at 5% APR over 60 months — r = 0.05/12 = 0.004167, (1+r)⁶⁰ = 1.28336, and M = $10,000 × (0.004167 × 1.28336) / (1.28336 − 1) = $188.71.
For loans that use actual day counts, where each month has a different number of days, this formula no longer works directly. Layer 2 derives it from first principles and shows how to handle both cases.
Loan amortization is the process by which, in each period, we determine what portion of your payment reduces the principal and what portion corresponds to interest. From a fixed monthly payment, the portion going to interest decreases over time while the portion going to principal increases.
The amortization method determines how interest is calculated for each period. The most common are:
30/360 (regular loan or annuity): Simplifies the math by assuming all months have 30 days and the year has 360 days. Equal periods are what make a closed-form formula possible — they let the payment series form a perfect geometric progression. What makes payments appear identical is not the method but the precision: when M is carried with full floating-point precision and rounded only for display, the accumulated rounding error stays invisible and the balance closes to $0.00. This is the spreadsheet model. In real servicing, where interest is rounded to the penny at each step, the last payment still adjusts slightly.
Actual/365 (irregular loan): Uses the actual number of days in each month, but assumes all years have 365 days (ignores leap years).
Actual/Actual (ISDA): Uses the actual number of days in each month and the actual number of days in the year (365 or 366 as applicable). The most precise but also most complex method.
To compare both methods, we’ll use the same initial conditions:
With this method, the interest for each period is calculated as:
Iteration 1
Iteration 2
This process repeats for 60 periods until the balance reaches $0.00:
| # | Days | Payment | Interest | Principal | Balance |
|---|---|---|---|---|---|
| 1 | 30 | $188.71 | $41.67 | $147.04 | $9,852.96 |
| 2 | 30 | $188.71 | $41.05 | $147.66 | $9,705.30 |
| 3 | 30 | $188.71 | $40.44 | $148.27 | $9,557.03 |
| ··· | |||||
| 58 | 30 | $188.71 | $2.34 | $186.37 | $375.22 |
| 59 | 30 | $188.71 | $1.56 | $187.15 | $188.07 |
| 60 | 30 | $188.71 | $0.78 | $187.93 | $0.00 |
With this method, interest uses the actual days in each month:
Iteration 1 (April, 30 days)
Iteration 2 (May, 31 days)
Notice how the days column varies with each month’s actual length — yet the payment stays $188.74 every month. This is the same precision effect as 30/360: the payment is equal not because of the day-count convention, but because M is computed exactly and carried at full floating-point precision. Round interest to the penny at each step and the last payment will again adjust slightly.
| # | Days | Payment | Interest | Principal | Balance |
|---|---|---|---|---|---|
| 1 | 30 | $188.74 | $41.10 | $147.64 | $9,852.36 |
| 2 | 31 | $188.74 | $41.84 | $146.90 | $9,705.46 |
| 3 | 30 | $188.74 | $39.89 | $148.85 | $9,556.61 |
| ··· | |||||
| 58 | 31 | $188.74 | $2.38 | $186.36 | $375.22 |
| 59 | 28 | $188.74 | $1.44 | $187.30 | $187.92 |
| 60 | 31 | $188.74 | $0.80 | $187.94 | $0.00 |
In Layer 1 we learned what amortization is and saw how it works by iterating month by month. Now the question is: how is that fixed monthly payment calculated before we start the table? Where does the number $188.71 come from?
The answer requires understanding a fundamental principle: the time value of money.
A dollar today is worth more than a dollar tomorrow. Why? Because today’s dollar can be invested and earn a return. If you deposit $100 today at a 5% annual rate, in one year you’ll have $105. This concept works in both directions:
Future Value (FV): If I have $100 today, how much will I have in the future? The answer is FV = PV × (1 + r), where PV is the present value and r is the period interest rate.
Present Value (PV): If I’ll receive $105 in one year, what is that worth today? The answer is PV = FV / (1 + r). In our example: PV = $105 / 1.05 = $100.
The process of converting a future value to its present equivalent is called “discounting”, and the rate used is called the “discount rate”.
As we saw in Layer 1, the APR is expressed annually but payments are monthly. We need to convert the annual rate to a monthly rate. In the 30/360 method, the conversion is straightforward:
For our example with APR = 5%: r = 0.05 / 12 = 0.004167 (≈ 0.4167% monthly).
It’s important to note that this simple division is a convention, not an exact mathematical equivalence. Applying 0.4167% monthly for 12 months to a fixed balance would yield (1 + 0.004167)¹² − 1 ≈ 5.116% annually — slightly above the stated 5%. For our amortizing loan this makes no practical difference, since APR/12 is the agreed-upon periodic rate and you pay down the balance each month.
A loan with fixed monthly payments is, mathematically, an annuity: a series of equal payments made at regular intervals. The central question is:
Each future payment has a different present value, since each is farther in time:
This is a geometric series. Factoring it, we get the present value of an annuity formula:
Solving for M:
Let’s verify it with our example:
Exactly the number we used in Layer 1.
The previous derivation assumes all periods are equal: every month has exactly 30 days. This allows the payment series to form a perfect geometric series with a constant common ratio.
In actual/365 or actual/actual methods, each period has a different length (28, 29, 30, or 31 days). This means the effective rate for each period is different and the series is no longer geometric. There’s no closed-form formula to solve for M directly.
In these cases, we need to define a function relating M to the final balance (which must be zero) and use iterative numerical methods to find the correct value.
For an irregular loan, we define a function f(M) representing the residual balance after all payments. If M is correct, f(M) = 0. If M is too low, the balance remains positive (we owe money). If M is too high, it goes negative (we overpaid).
Since each payment M reduces the balance proportionally, f(M) is a linear function of M. This is key and can be seen in the following graph:
Residual balance f(M) vs. monthly payment M. Notice the relationship is a straight line: higher payment → lower final balance. The point where the line crosses zero is the correct payment ($188.74).
Linearity has a powerful consequence: if we draw the tangent line to f(M) at any point, that tangent is the function itself. This means Newton-Raphson will find the root in a single iteration.
The derivative f′(M) measures how much the final balance changes for each dollar you change in the monthly payment. Geometrically, it’s the slope of the line f(M).
If f′(M) = −53, it means that for every $1 you increase the monthly payment, the final balance decreases by $53. This makes intuitive sense: an extra dollar per month, over 60 months, reduces the balance by more than $60 because that extra dollar also reduces future interest.
The slope of the line f(M) is constant: each additional $1 in the monthly payment reduces the final balance by approximately $53. This slope is f′(M), the derivative.
The Newton-Raphson method is an iterative algorithm for finding roots of functions (points where f(M) = 0). It works like this:
In general, Newton-Raphson converges quadratically: if the error is $1.00, the next iteration reduces it to ~$0.01. But since our f(M) is a straight line, the tangent is identical to the function — the first iteration already gives us the exact answer.
Newton-Raphson in action: we start from M₀ = $188.71 (30/360 formula), draw the tangent (which is the line itself), and jump directly to M₁ = $188.74 where f(M) = 0.
Let’s revisit our example ($10,000, 5%, 60 months, starting April 1st):
Initial estimate (30/360 formula): M₀ = $188.71. Simulating the 60 periods with actual days, the final balance is f(M₀) ≈ +$1.62. The balance is slightly positive, indicating we’re paying a bit too little — there is still a small residual owed after the 60th payment.
Iteration 1: With f(M₀) = +$1.62 and f′(M₀) ≈ −53.27, Newton-Raphson calculates M₁ = $188.71 − (+1.62 / −53.27) = $188.71 + 0.03 = $188.74. Simulating again: f(M₁) ≈ $0.003 — practically zero. Convergence achieved.
The result $188.74 is exactly the payment we used in the actual/365 table in Layer 1.
To apply Newton-Raphson we need f′(M). Since each period’s balance depends on the previous one, we propagate the sensitivity iteratively:
We initialize with dBalance₀/dM = 0 (the financed amount doesn’t depend on M) and propagate period by period. After 60 periods, f′(M) = dBalance₆₀/dM gives us the slope we need.
Since each iteration simply multiplies by a factor greater than 1 and subtracts 1, the result is a negative number whose magnitude grows with the number of periods. For our example, f′(M) ≈ −53.27, confirming that each additional $1 in M reduces the final balance by ~$53.