How we calculate

Every calculator on the site uses one calculation engine. This page explains what it does, how it rounds, and where each program rule comes from, so you can check any number yourself.

The payment and the schedule

A fixed-rate loan is repaid in equal payments. The payment is:

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

where P is the amount borrowed, r the interest rate per payment (the yearly rate ÷ 12 for monthly payments) and n the number of payments. At a 0% rate it's simply P ÷ n. Each payment first pays the interest owed on the balance for that period, and the rest reduces the balance.

Rounding: whole cents, like a lender

The schedule is worked in whole cents. The payment is rounded to the cent, each period's interest is rounded to the cent, and the final payment takes whatever is left so the balance lands on exactly $0.00. Every column of the schedule therefore adds up exactly to its total. Many calculators keep fractions of a cent and only round for display, so their columns don't quite match their totals.

Extra payments

Extra principal, whether every payment or on one chosen payment, is taken off the balance straight away, so it stops costing interest from the next period. The required payment stays the same and the loan ends sooner. The savings shown compare the same loan paid exactly as scheduled. The payoff calculator finds the smallest extra amount, to the cent, that pays the loan off by the date you pick. It searches the same schedule rather than using an approximate formula, so the answer is exact even with one-time extras in the mix.

Payment frequency

Adjustable rates (ARMs)

The rate stays at its starting level for the fixed period, then moves at each adjustment toward the rate you expect (or as far up or down as the caps allow, for the worst and best cases). The first adjustment is limited by the initial cap, later ones by the periodic cap, and the rate never goes above the starting rate plus the lifetime cap or below the floor. Whenever the rate changes, the payment is recalculated on the balance actually owed, over the time left, as lenders do. The ARM presets use Fannie Mae's standard caps for SOFR ARMs: 2/1/5 for a 5/6 ARM, and 5/1/5 for 7/6 and 10/6 ARMs.

Interest-only and balloon loans

An interest-only loan charges just the interest for its interest-only period, then repays the whole balance over the years left, which is why its payment jumps. A balloon loan's payment is figured over the full term, and whatever is still owed at the balloon date is due in one lump sum.

PMI on conventional loans

With less than 20% down, private mortgage insurance is charged at the yearly rate you enter, on the original loan amount. It ends following the federal Homeowners Protection Act:

FHA, VA and USDA fees

These figures change by policy letter and fiscal year. They're kept in one dated place in the code and checked against the official sources; the date is shown on each program's calculator.

Affordability

The affordability calculator finds the highest price whose full monthly housing cost fits both limits you set: housing as a share of gross income (front-end ratio), and housing plus other debts (back-end ratio). The housing cost is the loan's actual first payment from the same schedule, including property tax, insurance, PMI or FHA insurance and HOA dues. The price is also limited by the program's minimum down payment: 3% for conventional loans and 3.5% for FHA. The answer is found by a search, to the dollar.

Refinancing

The refinance calculator compares keeping your loan with replacing it by each loan's position every month: everything paid so far plus what's still owed, plus closing costs paid in cash and minus any cash taken out. It breaks even the first month the refinance's position is lower. Unlike the common shortcut (costs ÷ monthly saving), this counts how fast each loan pays down principal. It also shows when a longer new term makes the refinance fall behind for good. The comparison covers principal and interest, since tax and insurance don't change with a refinance.

What the results leave out

Real loans also have lender fees, prepaid interest, escrow cushions and exact payment dates, and each lender has its own rounding and cutoff rules. The results are close estimates for planning, not a loan estimate or an offer. Your lender's Loan Estimate and Closing Disclosure are the official figures for your loan.

Tested

The engine has an automated test suite that runs before every release. It checks, for example, that every schedule pays off exactly what was borrowed, that the FHA table matches HUD's, and that PMI ends when the law says it must. Spotted something that looks wrong? Tell us.