Finance:Amortization calculator

From HandWiki
Revision as of 17:20, 5 February 2024 by NBrushPhys (talk | contribs) (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Used to determine the periodic payment amount due on a loan


An amortization calculator is used to determine the periodic payment amount due on a loan (typically a mortgage), based on the amortization process.

The amortization repayment model factors varying amounts of both interest and principal into every installment, though the total amount of each payment is the same.

An amortization schedule calculator is often used to adjust the loan amount until the monthly payments will fit comfortably into budget, and can vary the interest rate to see the difference a better rate might make in the kind of home or car one can afford. An amortization calculator can also reveal the exact dollar amount that goes towards interest and the exact dollar amount that goes towards principal out of each individual payment. The amortization schedule is a table delineating these figures across the duration of the loan in chronological order.

The formula

The calculation used to arrive at the periodic payment amount assumes that the first payment is not due on the first day of the loan, but rather one full payment period into the loan.

While normally used to solve for A, (the payment, given the terms) it can be used to solve for any single variable in the equation provided that all other variables are known. One can rearrange the formula to solve for any one term, except for i, for which one can use a root-finding algorithm.

The annuity formula is:

[math]\displaystyle{ A = P\frac{i(1 + i)^n}{(1 + i)^n - 1} = Pi \times \frac{(1+i)^n}{(1+i)^n-1} \times \frac{(1+i)^{-n}}{(1+i)^{-n}} = \frac{P \times i}{1 - (1 + i)^{-n}} }[/math]

Or, equivalently:
[math]\displaystyle{ A = P\frac{i(1 + i)^n}{(1 + i)^n - 1} = Pi \times \frac{(1+i)^n}{(1+i)^n-1} = Pi \times \frac{(1+i)^n - 1 + 1}{(1+i)^n-1} = Pi \times (\frac{(1+i)^n - 1}{(1+i)^n-1} + \frac{1}{(1+i)^n-1}) = P\left(i + \frac{i} {(1 + i)^n - 1}\right) }[/math]

Where:

  • A = periodic payment amount
  • P = amount of principal, net of initial payments, meaning "subtract any down-payments"
  • i = periodic interest rate
  • n = total number of payments

This formula is valid if i > 0. If i = 0 then simply A = P / n.

For a 30-year loan with monthly payments, [math]\displaystyle{ n = 30 \text{ years} \times 12 \text{ months/year} = 360\text{ months} }[/math]

Note that the interest rate is commonly referred to as an annual percentage rate (e.g. 8% APR), but in the above formula, since the payments are monthly, the rate [math]\displaystyle{ i }[/math] must be in terms of a monthly percent. Converting an annual interest rate (that is to say, annual percentage yield or APY) to the monthly rate is not as simple as dividing by 12; see the formula and discussion in APR. However, if the rate is stated in terms of "APR" and not "annual interest rate", then dividing by 12 is an appropriate means of determining the monthly interest rate.

Derivation of the formula

The formula for the periodic payment amount [math]\displaystyle{ A }[/math] is derived as follows. For an amortization schedule, we can define a function [math]\displaystyle{ p_t }[/math] that represents the principal amount remaining immediately after the [math]\displaystyle{ t }[/math]-th payment is made. The total number of payments of the entire amortized loan is [math]\displaystyle{ n }[/math]. We can then derive a formula for this function to solve foe the unknown payment amount [math]\displaystyle{ A }[/math], with the definition [math]\displaystyle{ r = 1 + i }[/math].

This general rule for the [math]\displaystyle{ t }[/math]-th payment is

[math]\displaystyle{ \;p_t = p_{t-1} r - A }[/math]

And the initial condition is

[math]\displaystyle{ \;p_0 = P }[/math]

The principal immediately after the first payment is

[math]\displaystyle{ \;p_1 = p_0 r - A = P r - A }[/math]

Note that in order to reduce the principal amount, [math]\displaystyle{ p_1\lt p_0 }[/math] or [math]\displaystyle{ P(r-1)=Pi\lt A }[/math]. This defines a minimum payment necessary to exceed the interest added to the loan and make progress to pay it off.

The principal immediately after the second payment is

[math]\displaystyle{ \;p_2 = p_1 r - A = P r^2 - A r - A }[/math]

The principal immediately after the third payment is

[math]\displaystyle{ \;p_3 = p_2 r - A = P r^3 - A r^2 - A r - A }[/math]

This may be generalized to

[math]\displaystyle{ \;p_t = P r^t - A \sum_{k=0}^{t-1} r^k }[/math]

Applying the substitution (see geometric progressions)

[math]\displaystyle{ \;\sum_{k=0}^{t-1} r^k = 1 + r + r^2 + ... + r^{t-1} = \frac{r^t-1}{r-1} }[/math]

This results in

[math]\displaystyle{ \;p_t = P r^t - A \frac{r^t-1}{r-1} }[/math]

For [math]\displaystyle{ n }[/math] payment periods, we expect the principal amount will be completely paid off at the last payment period, or

[math]\displaystyle{ \;p_n = P r^n - A \frac{r^n-1}{r-1} = 0 }[/math]

Solving for [math]\displaystyle{ A }[/math], we get

[math]\displaystyle{ \; A = P \frac{r^n (r-1)}{r^n-1} = P \frac{(i+1)^n ((i+\cancel{1})-\cancel{1})}{(i+1)^n-1} = P \frac{i (1 + i)^n}{(1 + i)^n-1} }[/math]

Other uses

While often used for mortgage-related purposes, an amortization calculator can also be used to analyze other debt, including short-term loans, student loans and credit cards.

See also