Methodology: How We Calculate
This page writes out the arithmetic behind every calculator on the site: the formula, the parameters and their defaults, the assumptions the result depends on, and the date the page was last reviewed. It is meant to be complete enough that you can rebuild any result in a spreadsheet and compare. Where a rule comes from outside this site, the citation is on the sources page with the year of the version that was read.
Shared conventions
Five rules apply to all ten calculators, and they matter because most disagreements about a calculator turn out to be a rounding decision rather than a wrong formula.
- Balance and payment are kept at full precision; every displayed figure is rounded to the cent at the edge (ruling R-2, precision level C). The monthly payment is computed once and applied unrounded while the schedule runs. Rounding it to cents first and then accumulating the rounded figure moves a 30-year total by one to three dollars, which is exactly the kind of gap that makes two correct-looking calculators disagree.
- Display is rounded, stored values are not. Every figure is rounded at the moment it is shown, with
Math.round(value * 100) / 100. Interest rates keep their full decimal value and are only rounded in the output. - The final period closes the balance to zero. In the last scheduled month the principal portion is the remaining balance, not the computed principal, so the schedule ends at exactly zero instead of a residual balance.
- Every division is guarded. A zero term, a zero budget, a payment that does not cover interest, or a denominator of the form
(1 + r)^n - 1that could evaluate to zero are all checked before the division happens. A guard that fails produces a message, not an infinity or a silent zero. - No locale formatting in the arithmetic. Money is formatted by the site's own formatter, not by a locale currency call, so a result does not change shape with the browser's region settings.
1. Mortgage payment
Equation for a fully amortizing fixed-rate loan, plus escrow-style costs that are collected with the payment but are not part of the loan balance.
Parameters. Home price (default 400,000), down payment in dollars (80,000) kept in step with down payment in percent (20), interest rate (6.5% a year), term in years (30, selectable from 1 to 40), property tax rate (1.2% of price a year), homeowners insurance (1,800 a year), HOA dues (0 a month), and PMI rate (0.55% of the loan a year). A down payment entered as a percentage and one entered as an amount update each other.
Assumptions. The rate is fixed for the whole term; there is no reset, no balloon, and no negative amortization. PMI starts with the first payment when the loan is above 80% of the price and the PMI rate entered is above zero, and it stops in the first month the simulated balance is at or below 78% of the home price. That stop month is where the statutory termination date falls on an unaccelerated schedule: the Homeowners Protection Act fixes the termination date by the original amortization schedule at 78% of the original value (12 U.S.C. §4901(18)), so a prepayment moves our stop month earlier than the statute's date, and the borrower-requested cancellation at 80% is not modelled. PMI is charged only for the months it is actually active, so total PMI uses the real count of months, not the full term. Property tax and insurance are held flat. Closing costs, discount points, prepaid interest, prepayment penalties, and extra payments are outside the model. The results show the first payment with PMI and the payment after PMI ends as separate figures, because averaging them over 30 years would misstate today's bill.
Last reviewed: 2026-11-20. Page: Mortgage Payment Calculator.
2. Amortization schedule
The same loan as above, simulated month by month at full precision, with an optional extra principal payment.
Parameters. Every field from the mortgage calculator, plus an extra monthly principal payment (default 0).
Assumptions. Interest accrues on the opening balance each month before the payment is applied. The extra payment goes to principal, not to escrow. PMI stops in the first month the balance-to-price ratio reaches 78%, using the simulated balance rather than the original schedule, so extra payments bring the stop forward. Balance and payment stay at full precision through the loop, and the last row absorbs the residual: it takes whatever balance remains as principal, so the closing balance is exactly zero and the final payment can differ from the earlier ones by a few cents. Outputs include total interest, interest as a share of payments, total PMI, the PMI stop month, and the interest and months saved by the extra payment.
Last reviewed: 2026-11-20. Page: Amortization Schedule Calculator.
3. Refinance break-even
Two payments on the same balance, and the number of months the monthly saving needs to repay the closing costs.
Parameters. Current balance, current rate, years remaining on the current loan, new rate, new term in years, and closing costs as a single cash figure.
Assumptions. The new loan replaces the old one at the same balance; nothing is rolled into the new loan and no cash is taken out. Closing costs are paid in cash at closing and are not financed, which is why they are compared against the monthly saving rather than added to the balance. Both rates are fixed for their terms. The break-even month is rounded up, because a fraction of a month is not a month in which the cost is recovered. When the new payment is not lower, no break-even is computed at all: a longer term can lower a payment while raising total interest, and the lifetime interest difference is reported so that trade-off is visible.
Last reviewed: 2026-11-20. Page: Refinance Break-Even Calculator.
4. Auto loan
Sales tax, trade-in credit, and an optional GAP fee, then a standard amortizing payment.
Parameters. Vehicle price, down payment, trade-in value, sales tax rate, interest rate, term in months, GAP cost (a fixed fee), a checkbox for including the GAP fee, and a checkbox that switches the tax base between the net-of-trade-in figure and the full price.
Assumptions. The default tax base is price minus trade-in, which is how most states tax a vehicle purchase; the full-price option exists because some states do not allow the trade-in credit. The trade-in is a credit against the amount financed, not cash, so it is subtracted once inside the loan amount and is never subtracted again from the cash total. The GAP fee, when included, is part of the amount financed and is also reported as its own line so the fee stays visible; because it is already inside the loan amount and repaid through the monthly payment, it is not added to cash out of pocket a second time. Registration, title, documentation, dealer add-ons, and insurance are outside the model. The rate is fixed and the loan amortizes to zero over the term.
Last reviewed: 2026-11-20. Page: Auto Loan Calculator.
5. Debt payoff (snowball and avalanche)
One simulator, two orderings. Each month every debt is charged interest first and paid its minimum, then the leftover budget attacks one target debt.
Parameters. Two to six debts, each with a name, balance, annual rate, and minimum payment, plus one monthly budget figure.
Assumptions. Rates are fixed, no new debt is added, the budget is the same every month, and interest is computed before the payment in each month. Minimum payments are made on every debt, including the target, so the target receives its minimum plus the surplus. The 600-month stop prevents an endless run when a minimum barely covers interest. When both strategies produce the same month count and the same total interest, for example when every debt carries the same rate, the page says so instead of claiming one strategy is cheaper; the tie rule is part of the method, not decoration. Fees, late charges, and promotional rate expirations are outside the model.
Last reviewed: 2026-11-20. Page: Debt Payoff Calculator.
6. Loan payoff time
How many months a fixed payment needs to retire a balance, solved in closed form rather than by simulation.
Parameters. Current balance, annual interest rate, and the monthly payment you intend to make.
Assumptions. The first payment is one month after the balance date, the rate is fixed, and the payment is the same every month. The payment-never-covers test is strict: when the first month's interest equals or exceeds the payment, the balance cannot fall, and the page says so rather than returning an enormous month count. A zero rate is handled as a separate branch, because the logarithm is undefined there. The month count is rounded up, since a partial month is still a payment. Total interest is the payment times the month count minus the balance. Where the page shows a comparison against a baseline payment, that figure comes from a second run of the same formula.
Last reviewed: 2026-11-20. Page: Loan Payoff Time Calculator.
7. Overtime pay
Two rule sets: the federal weekly rule and the California daily rule. They are separate selections, because they produce different answers for the same hours.
Parameters. Hourly rate, hours worked in the week, rule selection (FLSA or California), hours worked in the day, and the number of consecutive days worked for the seventh-day rule.
Assumptions. The federal rule is a weekly test only: hours above 40 in the workweek are paid at one and a half times the regular rate, and there is no daily test under the FLSA for the employees this calculator covers. The California rule is a daily test: above 8 hours in a day and above 40 in a workweek at one and a half times, above 12 hours in a day at double time, the first 8 hours of the seventh consecutive day at one and a half times, and anything beyond that on the seventh day at double time. The hourly rate entered is treated as the regular rate.
Limitation: the weekly 40-hour correction is not stacked on the daily total. The California result counts daily premiums and seventh-day premiums; it does not then apply a separate 40-hour weekly threshold on top and pay a second premium for hours already counted as daily overtime. California Labor Code §510 states that nothing in the section requires an employer to combine more than one rate of overtime compensation for the same hour, and the calculator follows that reading. The model also leaves out alternative workweek schedules, collective bargaining arrangements, exempt-status questions, bonuses and shift differentials that would change the regular rate, split shifts, and every state other than California. It is a pay estimate, not a payroll determination or legal advice.
Last reviewed: 2026-11-20. Page: Overtime Pay Calculator.
8. Down payment
What a target percentage costs, what it leaves to borrow, and how far the loan sits from the 80% line where private mortgage insurance stops applying.
Parameters. Home price, target down payment percentage, interest rate, term in years, and PMI rate as an annual percentage of the loan.
Assumptions. Loan-to-value is measured against the home price, not against an appraised value, and PMI applies only when that ratio is strictly above 80%. The comparison table for 5%, 10%, 15%, and 20% down shows principal and interest plus PMI only; property tax, homeowners insurance, HOA dues, and closing costs are excluded, and the table header says so, because a four-tier table read as a full monthly bill would overstate every row. All four tiers use the same rate, term, and PMI rate you entered. The gap to 20% is what the loan would have to shrink by to reach the 80% line, not a savings target.
Last reviewed: 2026-11-20. Page: Down Payment Calculator.
9. Rent versus buy
Cash flow and net cost are kept apart on purpose. The down payment appears once, as its own line, and is never folded into a yearly cash-flow figure.
Parameters. Monthly rent, home price, down payment percentage, mortgage rate, term in years, property tax rate, annual insurance, maintenance rate, home appreciation rate, rent growth rate, horizon in years, buying closing cost percentage, selling cost percentage, and the return the down payment could otherwise earn.
Assumptions, stated flatly because they drive the answer. Homeowners insurance rises 3% a year and that figure is fixed, not a field. Buying closing costs default to 3% of the price, selling costs to 6% of the sale price, and the opportunity cost of the down payment to 5% a year. Maintenance is a field and defaults to 1% of the home's value a year. The balance comes from a closed-form balance loop that applies the same last-period close-out rule as the schedule page; both are pinned to the same benchmark values in our test suite. Principal and interest are counted only for the months the mortgage is still running, through piMonths(y), so a mortgage paid off inside the horizon stops contributing principal and interest while property tax, insurance and maintenance continue (R-9). The down payment is listed as a single line and is excluded from the yearly buy cash flow, so it is never counted twice. The opportunity cost line is the growth on the down payment minus the down payment itself, because the down payment is already counted once. Private mortgage insurance and HOA dues are not included: a down payment below 20% would normally carry PMI, and a condominium or planned community would carry dues, so a comparison that ignores them overstates the buy case. Mortgage interest tax deductions, renters insurance, utilities, moving costs, and selling-time vacancy are also excluded. The seven-year verdict and the break-even year are read off the same two cumulative series; if the series never cross inside the horizon, the page says buy does not break even rather than extrapolating.
Last reviewed: 2026-11-20. Page: Rent vs. Buy Calculator.
Precision and rounding, in one place
The following is the full rounding contract. It is stated once here so that a discrepancy can be traced to a rule rather than guessed at.
- Balance and payment are kept at full precision through every loop. Nothing is converted to cents before a schedule is run.
- The monthly payment is computed once at full precision and applied unrounded. It is not rounded to cents before accumulation; doing so shifts a 30-year total by a dollar or more against the published benchmark values.
- Rates are never converted to cents. A monthly rate is the annual rate divided by 100 and by 12, kept at full decimal precision, and only the displayed percentage is rounded.
- Display rounds at the edge:
Math.round(value * 100) / 100for money, two decimals for percentages, and whole months for month counts. A displayed figure is therefore a rounded view of an unrounded value, and this display step is the site's only cent-level rounding. - The final period of any amortizing schedule takes the remaining balance as principal, so the closing balance is exactly zero and the last payment may differ from the others by a cent or two.
- Denominators are checked before the division: a zero term, a zero rate handled as its own branch,
(1 + r)^n - 1evaluated only after that branch, a monthly saving that must be positive, and a budget that must cover the sum of minimums. A failed check returns a sentence, not a number.
Changing a formula
A calculation convention changes only when the reasoning behind it changes, and never silently. When a convention changes, three things change in the same edit: the formula on this page, the code on the calculator page, and the last-reviewed date. Each calculator carries fixed benchmark cases, at least one of them a boundary case, and a change that moves a benchmark value has to be explained rather than absorbed. The review routine is described on the author page, the citations are on the sources page, and the limits on what a result means are on the disclaimer.