loan-comparison@1.0.0Equal-funding mortgage and refinance cost comparison
Compare two mortgage offers or keeping versus refinancing over one future horizon, separating liquidity, debt reduction and borrowing costs. Maintenance owner: project owner / Cloudwards e.K.
Last reviewed
Inputs and units
- Mode
- mortgage offers or keep/refinance
- Common financing requirement F / current outstanding principal
- positive USD cents
- Common horizon H and each amortization term N
- 1–600 whole months; remaining amortization for existing debt
- Each fixed nominal annual rate A
- 0–100%, whole basis points; monthly rate r = A / 12
- Separate cash-paid C and financed Z fees
- nonnegative USD cents; existing-loan fees zero in refinance mode
Outputs and units
- Starting debt, monthly P&I, cumulative payments, principal repaid and remaining balance
- USD cents; payment count in whole months
- Interest, cash outflow, financing cost and cash plus remaining principal
- USD cents at common horizon
- Own full-term interest and financing cost
- USD cents over each loan's own term
- Signed differences
- A minus B; keep minus refinance; independent cent rounding
- First lower-cost month, first later reversal and continued advantage
- months 0–H; first advantage requires displayed +$0.01; ties are not advantages
- Checkpoints and cumulative cost-difference chart
- whole months and USD cents
Model assumptions
- Both alternatives fund the same base amount. Fixed nominal annual rates, fully amortizing monthly principal-and-interest payments in arrears, and one common comparison date aligned with the scheduled payment cycle. Payments and interest stop at maturity.
- Cash-paid fees are paid at month zero. Financed fees increase principal and are not also paid in cash. Enter separate, non-overlapping aggregate fees, including any points converted to dollars. Count each charge once; net lender credits may reduce fees, but negative fees or a net cash distribution are outside this model.
- Keep or Refinance starts with outstanding principal immediately after the most recent modeled scheduled payment and the remaining amortization term. Historical fees and past interest are sunk costs and excluded. An actual payoff quote may include accrued interest, penalties or other charges. Enter incremental replacement-only charges once in refinance fees. No extra cash withdrawal or separate principal contribution is assumed.
- Financing cost is interest plus cash-paid and financed fees. Principal repayment reduces debt; it is not a borrowing cost. Cash outflow measures liquidity and excludes unpaid principal. Cash outflow plus remaining principal is a debt-adjusted comparison amount, not an actual payoff quote or a requirement to repay at the horizon. Each loan's full-term cost uses its own duration; the primary comparison uses the common horizon.
- Differences are A minus B (keep existing loan minus refinance). Positive financing-cost differences favor B on modeled costs only. Every whole month from zero through the selected horizon is checked. The first lower-cost month requires an independently rounded advantage of at least $0.01; a displayed tie is not an advantage. The first subsequent negative displayed difference is a reversal. A crossover need not remain favorable.
- Exact integer cents and basis points feed calculator-local rational amortization. Intermediate payments, balances, interest and differences remain exact. Final money rounds half-up to USD cents, with signed ties away from zero. Independently rounded components can differ by one or more cents from an exact aggregate or difference. Unsafe output representations are rejected.
- Comparison alternatives are hypothetical and stay in this calculator's input-only local extension. Neither alternative reads or updates acquisition, permanent, refinance, seller-note, bridge or construction loan roles. Enter compatible values deliberately; opening this page never saves example defaults.
- Nominal, pre-tax and undiscounted estimates. Excludes down payments, common property purchase costs, escrow, taxes, insurance, mortgage insurance, operating expenses, inflation, opportunity cost and tax effects. No adjustable rates, interest-only phase, balloon, extra principal, future refinancing, cash-out/cash-in, legal APR, present value, lender qualification or overall winning loan. A prepayment penalty is included only if deliberately entered once as an incremental refinancing fee.
- Pᵢ = F + Zᵢ. F is common funding, C is cash-paid fees and Z is financed fees. Financed fees are debt, not additional usable capital.
- Mᵢ = Pᵢ × rᵢ / (1 − (1 + rᵢ)^(−Nᵢ)); at rᵢ = 0, Mᵢ = Pᵢ / Nᵢ. r is nominal annual rate divided by 12; N is amortization months, remaining months for the kept loan.
- Bᵢ(k) = Pᵢ × ((1+rᵢ)^Nᵢ − (1+rᵢ)^k) / ((1+rᵢ)^Nᵢ − 1). k = min(horizon, N). At zero rate B = P × (N−k) / N. At month zero B = P; at and after maturity B = 0 exactly.
- Sᵢ = Mᵢ × kᵢ; Rᵢ = Pᵢ − Bᵢ; Iᵢ = Sᵢ − Rᵢ. Use the exact payment, never the displayed rounded amount. Zero-rate interest is exactly zero.
- Oᵢ = Cᵢ + Sᵢ; Costᵢ = Iᵢ + Cᵢ + Zᵢ = Oᵢ + Bᵢ − F. O is cumulative cash outflow. O + B is the debt-adjusted comparison amount. These cost reconciliations agree before rounding; financed fees count once.
- Full-term costᵢ = Mᵢ × Nᵢ − Pᵢ + Cᵢ + Zᵢ. Each loan uses its own term. This is supplementary context, not the primary common-horizon conclusion.
- Advantage of B(t) = Cost_A(t) − Cost_B(t), t = 0 … H. Differences are A minus B (keep existing loan minus refinance). Positive financing-cost differences favor B on modeled costs only. Every whole month from zero through the selected horizon is checked. The first lower-cost month requires an independently rounded advantage of at least $0.01; a displayed tie is not an advantage. The first subsequent negative displayed difference is a reversal. A crossover need not remain favorable.
- For positive annual basis points b, d = 120000, q = d+b, D = q^N−d^N: exact payment cents = P cents × b × q^N / (d×D); exact balance cents = P cents × (q^N−q^k×d^(N−k)) / D. At zero rate use P/N and P×(N−k)/N. Month zero and maturity are exact. Loan-specific factors advance incrementally; no arbitrary epsilon, rounded-payment aggregation or internal BigInt persistence.
Not modeled
- Nominal, pre-tax and undiscounted estimates. Excludes down payments, common property purchase costs, escrow, taxes, insurance, mortgage insurance, operating expenses, inflation, opportunity cost and tax effects. No adjustable rates, interest-only phase, balloon, extra principal, future refinancing, cash-out/cash-in, legal APR, present value, lender qualification or overall winning loan. A prepayment penalty is included only if deliberately entered once as an incremental refinancing fee.
- No automatic loan-role promotion or inferred payoff
- No lender-specific available-rate offer, qualification result or independent professional-review claim
Worked example
Offers: common $250,000; 60-month horizon; both terms 360 months. A: 6.50%, $2,000 cash fees; B: 6.00%, $6,500 cash fees; no financed fees. A/B: monthly P&I $1,580.17/$1,498.88; payments $94,810.20/$89,932.58; principal repaid $15,972.56/$17,364.11; interest $78,837.65/$72,568.47; balances $234,027.44/$232,635.89; cash outflow $96,810.20/$96,432.58; financing costs $80,837.65/$79,068.47; cash plus balance $330,837.65/$329,068.47; full-term costs $320,861.22/$296,095.47. B lowers monthly P&I $81.29, cash outflow $377.62 and horizon cost $1,769.18; first lower-cost month 44, advantage $96.32, no later reversal through month 60. Refinance: current $250,000 at 6.50%, 240 months, no fees; new 5.75%, 360 months, $2,000 cash plus $6,000 financed fees, 60-month horizon. A/B: principal $250,000/$256,000; monthly P&I $1,863.93/$1,493.95; payments $111,835.97/$89,636.79; principal repaid $36,027.20/$18,528.80; interest $75,808.77/$71,107.99; balances $213,972.80/$237,471.20; cash $111,835.97/$91,636.79; cost $75,808.77/$79,107.99; cash plus balance $325,808.77/$329,107.99; full-term cost $197,343.88/$289,820.74. Exact monthly difference rounds $369.99, cash difference $20,199.18, debt difference −$23,498.40, cost difference −$3,299.22; no lower-cost month through 60. Reversal: $200,000 at 7%/180 months versus 5%/360 months with $4,000 cash fees crosses at month 13 (+$119.31), reverses at month 161 (−$220.07), and ends at month 360 with zero balances and costs $123,578.18/$190,511.57 (difference −$66,933.39). Half-cent: $1.01, zero rate, two months gives exact $0.505 payment and balance at month one, each displayed $0.51; cash plus balance is exactly $1.01 and interest/cost zero.
Source context
Professional valuation guidance provides context; it does not establish that this simplified model complies with appraisal standards.