Extra Payment Calculator Formula
Understand the math behind the extra payment calculator. Each variable explained with a worked example.
Formulas Used
Months Saved
months_saved = n - new_nTotal Interest Saved
interest_saved = base_total_interest - new_total_interestNew Payoff Time (months)
new_payoff_months = new_nBase Monthly Payment
base_pmt = base_paymentTotal Monthly (with extra)
total_with_extra = total_paymentOriginal Total Interest
original_total_interest = base_total_interestVariables
| Variable | Description | Default |
|---|---|---|
loan_amount | Original Loan Amount(USD) | 300000 |
interest_rate | Interest Rate(%) | 7 |
loan_term_years | Loan Term(years) | 30 |
extra_monthly | Extra Monthly Payment(USD) | 300 |
r | Derived value= interest_rate / 100 / 12 | calculated |
n | Derived value= loan_term_years * 12 | calculated |
base_payment | Derived value= r > 0 ? loan_amount * r * pow(1 + r, n) / (pow(1 + r, n) - 1) : loan_amount / n | calculated |
total_payment | Derived value= base_payment + extra_monthly | calculated |
base_total_interest | Derived value= base_payment * n - loan_amount | calculated |
new_n | Derived value= r > 0 ? log(total_payment / (total_payment - loan_amount * r)) / log(1 + r) : loan_amount / total_payment | calculated |
new_total_interest | Derived value= total_payment * new_n - loan_amount | calculated |
How It Works
Impact of Extra Mortgage Payments
Extra payments applied to principal reduce the balance faster, saving interest and shortening the loan term.
New Payoff Formula
New Months = log(PMT / (PMT - P x r)) / log(1 + r)
Where PMT is the total monthly payment (base + extra), P is the loan balance, and r is the monthly rate.
Why Extra Payments Are So Effective
Strategies
Worked Example
A $300,000 loan at 7% for 30 years with an extra $300/month.
loan_amount = 300000interest_rate = 7loan_term_years = 30extra_monthly = 300
- 01Base payment: $1,995.91
- 02Total payment with extra: $1,995.91 + $300 = $2,295.91
- 03Original payoff: 360 months (30 years)
- 04New payoff: approximately 263 months (about 22 years)
- 05Months saved: 360 - 263 = 97 months (about 8 years)
- 06Original total interest: $418,528
- 07New total interest: approximately $303,726
- 08Interest saved: approximately $114,802
Ready to run the numbers?
Open Extra Payment Calculator