How the calculators work: formulas and assumptions

Everything these calculators show comes from the formulas below. There are no hidden adjustments. If your lender's statement differs by a few dollars, the section on rounding explains why.

The short version. Each month, interest is your balance times your annual rate divided by 12. Your payment covers that interest first, and the rest reduces your balance. Extra money goes entirely to the balance. The schedule repeats until the balance is zero.

The regular payment

The level monthly payment that pays a loan off in a fixed number of months is the standard amortization formula:

M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1)

  • M is the monthly payment of principal and interest.
  • P is the current balance.
  • r is the annual rate divided by 12, as a decimal. A 6.5% rate gives r = 0.065 ÷ 12.
  • n is the number of months left.

At a 0% rate the formula simplifies to M = P ÷ n. If you enter your actual payment in "More options", the calculator uses that number instead.

Each month, step by step

  1. Interest: balance × r, rounded to the nearest cent.
  2. Payment: your regular payment plus any extra for that month, but never more than the balance plus that month's interest.
  3. Principal: payment − interest. This reduces the balance.
  4. New balance: old balance − principal. Go back to step 1 until the balance is zero.

Worked example. For a $400,000 balance at 6.5% with 30 years left, the payment is $2,528.27. In month one, interest is $400,000 × 0.065 ÷ 12 = $2,166.67, so $361.60 goes to principal and the balance becomes $399,638.40.

Extra payments, lump sums and bi-weekly

  • Extra monthly payment: added to every payment from the month you choose. All of it reduces principal.
  • One-time payment: added to the payment you pick. If it is more than you owe, only what is needed is applied.
  • Bi-weekly: modeled as one extra payment per year, spread evenly. One-twelfth of your regular payment is added to each month. A real bi-weekly plan can differ slightly depending on how your servicer applies each half payment.

The "current schedule" in every comparison is your regular payment with no extras, continuing until the loan is paid off.

Pay off by a target date

The reverse calculator applies the payment formula with n set to your goal, giving the total payment that would finish on time. The extra amount is that payment minus your current one, rounded up to a whole dollar. It then runs the full schedule to confirm the loan really is paid off within your goal, and adds a dollar at a time if rounding leaves a few cents.

Rounding

Like a lender, the calculators round the payment and each month's interest to the nearest cent, and the final payment absorbs whatever small remainder is left. That means total interest can differ by a few dollars from calculators that do not round. For example, on a 30-year loan the final payment can be a couple of dollars larger than the regular one.

Dates

"Last payment" assumes your next payment is due next month and one payment is made each month after that. The yearly view groups payments in blocks of 12 starting with your next payment, so Year 1 is the next 12 payments, not a calendar year.

What is not modeled

  • Property taxes, homeowners insurance, mortgage insurance and HOA dues. Enter only the principal-and-interest part of your payment.
  • Rate changes. The rate is fixed, so results for an adjustable-rate mortgage are only valid until the rate resets.
  • Closing costs, refinancing fees, late fees and prepayment penalties.
  • Lenders that calculate interest daily, or that treat the first payment period differently. Your statement is the final word.

How the math is tested

The calculation engine has automated tests that run against the same code you use on the site. They include:

  • Known loans with published answers, such as $400,000 at 6.5% over 30 years, which gives a payment of $2,528.27.
  • A sweep of 4,000 randomly generated loans, compared with an independent floating-point calculation and with the closed-form payoff-time formula.
  • Checks that every schedule ends at exactly $0, that principal repaid equals the loan, that yearly totals match the monthly rows and that no schedule ends with an empty extra month.
  • Edge cases: 0% interest, a lump sum larger than the balance, a payment too small to cover interest, and odd remaining terms.

Found a problem?

Please tell us. Use the "Copy link" button to capture the numbers you entered and send it to us from the contact page.

Change log

  • 2026-11-17: First release of the calculation engine, with whole-cent arithmetic and the test suite described above.