Mortgage vs Cash Purchase Calculator: 2026 Opportunity Cost

By Tyler Singletary ·

The mortgage-versus-cash question for a high net worth buyer is not a vibe. It is an opportunity-cost calculation with five inputs that all matter and one tax adjustment that most calculators omit. The buyer who has $3M in cash and is staring at a $3M home can pay outright or take a jumbo and invest the difference. The right answer depends on the after-tax effective rate on the loan, the expected after-tax return on the alternative investment, the hold horizon, the cap-gains drag if the cash purchase requires any liquidation, and the buyer's tolerance for the structural risks of leverage during a drawdown.

This post is the calculator-focused companion to the existing essay on the true opportunity cost of a down payment, which walks through a single 30-year case study. The framing here is different: how to model the comparison, what inputs to gather, what assumptions to test, and where the standard cash-vs-mortgage calculator from a bank or a generic real-estate site quietly misleads HNW buyers at 2026 yields. For the broader calculator stack an HNW buyer needs, see the pillar guide on mortgage calculators for high net worth buyers.

Rate data current as of May 24, 2026. The Freddie Mac PMMS 30-year average, SOFR, and Treasury yields move daily. Verify rates with primary sources before sizing a loan or running a comparison. Two-line chart showing cumulative wealth over ten years: the mortgage-plus-invest path producing approximately $180K more wealth than an all-cash purchase at year 10, assuming a 5.95% after-tax effective mortgage rate and 6.5% after-tax portfolio return

Why the mortgage vs cash decision changed at 2026 yields

In 2026, the Freddie Mac Primary Mortgage Market Survey 30-year average sits in the mid-to-high 6% range and jumbo pricing tracks within 25-50 basis points of conforming, depending on the lender. The 10-year Treasury yield as published by the U.S. Treasury hovers near 4.3%, and 3-month T-bills via the Federal Reserve clear above 4.5%. Those three numbers together set the cash-versus-mortgage calculus for an HNW buyer.

The 2020-2022 environment, with 30-year fixed rates near 3% and Treasury yields under 1%, made the mortgage path obvious. Borrow at 3%, invest at an expected 7%, capture the 400 bp spread. In 2026, the spread between a jumbo's after-tax effective rate and a diversified portfolio's expected after-tax return has compressed to roughly 50-150 basis points for most HNW buyers. The mortgage path still typically wins, but the margin is thinner and the assumptions matter more. A modest change in the portfolio return assumption or the hold horizon can flip the answer.

What a mortgage vs cash purchase calculator needs to model

A correctly built mortgage-vs-cash calculator takes seven inputs and produces a single output: the cumulative wealth differential between the two paths over the hold horizon. The seven inputs are home price, down payment, mortgage rate and term, expected portfolio return, marginal federal and state tax brackets, cost basis on any cash that would need to be liquidated, and hold horizon. The output is dollars of additional wealth from the mortgage path minus the cash path, evaluated at the end of the hold.

The seven inputs in detail

Home price and down payment. These determine the loan size. For a $3M home with 20% down, the loan is $2.4M. The down payment funding source matters separately because of cost basis.

Mortgage rate and term. For a 2026 jumbo, a 30-year fixed at 6.85% is a reasonable working assumption per the Freddie Mac PMMS. The calculator needs the term to compute amortization and the deductible interest schedule year by year.

Expected portfolio return. This is the most consequential and most debated input. For a 70/30 stock-bond portfolio, a 7-8% nominal expected return is within the range of long-run historical realized returns and most institutional capital market assumptions. After tax, that becomes 6.0-6.5% for a high-bracket buyer in a taxable account, accounting for dividend taxation and turnover drag.

Marginal federal and state tax brackets. A 37% federal plus 9% state buyer is the canonical HNW case for California or New York. The bracket determines both the deductible value of mortgage interest and the after-tax compounded return on the alternative investment.

Cost basis on liquidated cash. If the cash for a cash purchase comes from a taxable brokerage account, the calculator must compute the realized capital gain at sale. A 50% blended cost basis on a $3M cash purchase produces a $1.5M realized gain, which at a 20% federal LTCG plus 3.8% NIIT per the IRS NIIT guidance plus 9% state, generates roughly $492K of tax due. That tax is a real cost of the cash path that the mortgage path avoids.

Hold horizon. The number of years before sale, refinance, or payoff. The mortgage's compounding spread advantage scales with hold length.

How to compute the after-tax effective mortgage rate

[UNIQUE INSIGHT] For a 37% federal plus 9% state buyer with a $2.4M jumbo at 6.85%, the after-tax effective rate is roughly 5.95%, not the 4.31% implied by applying the full marginal rate against the full interest payment. The gap exists because of the $750K acquisition-indebtedness cap from IRC Section 163(h)(3) per IRS Publication 936. Only the first $750K of principal generates deductible interest. On a $2.4M loan, that is 31.25% of the balance.

The mechanic in three steps. First, compute year-one interest on the full loan: $2.4M times 6.85% equals roughly $164,400. Second, compute the deductible portion: $750K times 6.85% equals roughly $51,400. Third, apply the buyer's marginal rate (capped by the SALT cap at the state-and-property-tax level) to the deductible portion only: $51,400 times 46% combined equals roughly $23,600 of tax savings. The after-tax interest cost is $164,400 minus $23,600 equals $140,800, which as a percent of the full $2.4M balance is 5.87%. Add the amortization-schedule adjustment over the life of the loan and the blended after-tax effective rate works out to roughly 5.95%.

The conversion with full SALT-cap and state-bracket inputs is worked natively in the after-tax spoke. For the deeper essay on how the deduction cap reshapes HNW mortgage math, see the mortgage interest deduction cap explainer.

What expected after-tax portfolio return should you use?

In 2026, a 70/30 diversified portfolio's expected after-tax return for a high-bracket buyer in a taxable account lands in the 6.0-6.5% range. That figure derives from a 7.5-8.0% nominal expected return (equity risk premium plus the current 10-year Treasury yield, weighted 70/30) minus tax drag from dividends, distributions, and turnover. A buyer running the cash-vs-mortgage comparison should test the calculator across at least three return assumptions, not commit to a single point estimate.

Three return scenarios to test

Conservative. 5.5% after-tax. Reflects a slightly more bond-heavy allocation, a lower equity-risk-premium assumption, or higher friction costs. Under this assumption, a 5.95% after-tax mortgage rate is essentially a wash with the alternative return, and the mortgage path's wealth advantage is near zero or slightly negative over a 10-year hold.

Base case. 6.5% after-tax. Reflects standard 70/30 capital market assumptions from major asset managers. The 55 bp positive spread over a 5.95% after-tax mortgage rate compounds to roughly $180K of additional wealth on a $2.4M decision over 10 years.

Optimistic. 7.5% after-tax. Reflects either a higher equity allocation, a more bullish equity-risk-premium view, or a buyer with access to tax-efficient structures (direct indexing, ETF-only allocation) that reduce drag. The 155 bp spread compounds to roughly $510K of additional wealth on the same $2.4M decision over 10 years.

[ORIGINAL DATA] The three scenarios above are not academic. They span the realistic range of after-tax outcomes for HNW buyers in a diversified taxable portfolio in 2026. The decision quality improves substantially when the buyer runs all three and asks: under which scenario does the answer flip, and what is my probability assessment for that scenario?

How to model the cap-gains drag on a cash purchase

If the cash for an all-cash purchase comes from a taxable brokerage account rather than cash savings, the realized capital gain on liquidation is a real cost that must be added to the cash-purchase column. Per IRS Topic No. 409, long-term capital gains for high-income filers are taxed at 20% federal, plus the 3.8% NIIT, plus the applicable state rate. For a California or New York buyer, that is a combined 32-33% on the realized gain.

The size of the drag scales with cost basis. A $3M liquidation at a 25% blended basis (highly appreciated long-held positions) produces a $2.25M realized gain and roughly $720K of tax. The same liquidation at an 80% basis (recently bought, modest appreciation) produces a $600K gain and roughly $192K of tax. The drag can shift the cash-vs-mortgage answer by hundreds of thousands of dollars depending on basis.

[PERSONAL EXPERIENCE] Most calculators we've seen, including the bank-provided cash-vs-mortgage tools, omit the cap-gains drag entirely. They treat the cash as if it appeared from nowhere. For a buyer who has been accumulating in a taxable account for 15-20 years, the realized gain at liquidation is often the single largest line item in the cash-purchase column, exceeding the cumulative interest on the alternative mortgage by a wide margin. For the deeper essay on this specific failure mode, see the existing post on liquidating investments for a down payment.

A worked $3M decision at 2026 yields

Concrete numbers. The buyer has $3M in a taxable brokerage account with a 50% blended cost basis and is purchasing a $3M home in a 37% federal plus 9% state jurisdiction. The hold horizon is 10 years. The two paths under comparison:

Path A: All-cash purchase. Liquidate $3M of the brokerage account. Realized long-term gain of $1.5M times 32.8% combined LTCG plus NIIT plus state equals roughly $492K of tax due. Net cash to close: $2.508M, requiring an additional $492K liquidation to actually fund the $3M purchase, which itself triggers more tax in a recursive bite. Including the recursive tax, the buyer must liquidate roughly $3.69M of the portfolio to net $3M of cash at closing. Tax cost: $690K. Remaining portfolio: zero.

Path B: $2.4M jumbo at 6.85%, $600K down. Liquidate $600K from the brokerage to fund the down payment (plus the cap-gains tax on $300K of gain, roughly $98K). The remaining $2.302M stays invested and compounds at 6.5% after-tax for 10 years, growing to roughly $4.32M. The mortgage carries an after-tax interest cost averaging 5.95% on the $2.4M balance, declining as principal amortizes; cumulative after-tax interest over 10 years is roughly $1.26M.

The wealth comparison at year 10. Path A leaves the buyer with the home and zero investments. Path B leaves the buyer with the home, a remaining mortgage balance of roughly $2.02M (after 10 years of amortization on a 30-year), an investment portfolio worth $4.32M, and cumulative after-tax interest paid of $1.26M. Net equity in Path B is $4.32M minus $2.02M remaining mortgage minus $1.26M cumulative interest equals roughly $1.04M of additional liquid wealth over the cash path, even after backing out interest.

The mortgage path wins by roughly $1.04M of liquid net worth at year 10 in this worked example. The win narrows if the portfolio return underperforms, if the buyer's cost basis is higher (less cap-gains drag in the cash path), or if interest rates fall and the buyer refinances at a lower rate (which would improve both paths but disproportionately help the mortgage path on the remaining balance).

When the cash purchase wins

The mortgage path does not always win. Five conditions tilt the math toward cash:

  1. Very high cost basis on the cash side. If the cash is genuinely cash savings (or post-tax bonus money, or recently realized gain) with near-zero embedded tax cost, the cash-purchase path avoids the friction that usually penalizes it.
  2. Low expected portfolio return. A buyer who would park the freed cash in money-market funds at 4.5% nominal, not a 70/30 portfolio, faces an after-tax alternative return of roughly 2.7%, well below any plausible mortgage rate. The mortgage path loses.
  3. Short hold horizon. Under a 5-year hold, the closing costs and origination fees on the jumbo can outweigh the modest opportunity-cost gain, especially if the buyer expects to sell or refinance.
  4. Low risk tolerance during a drawdown. The mortgage path leaves the buyer holding the portfolio through any market event. A 40% portfolio drawdown coupled with a mandatory mortgage payment from cash flow can force liquidation at the bottom. The cash buyer faces no such forcing event.
  5. Liquidity preference and behavioral factors. Some buyers genuinely sleep better debt-free. That preference has value even if it does not show up on the calculator's output.

How an SBLOC reframes the cash vs mortgage question

For HNW buyers with substantial taxable brokerage assets, the cash-vs-mortgage binary is incomplete. A third path exists: keep the cash invested, take a smaller jumbo, and bridge any gap with a portfolio-secured line that does not trigger liquidation. Per FINRA's Securities-Backed Lines of Credit Investor Alert, SBLOCs are widely available at major brokerages, with rates priced as a spread over SOFR per the New York Fed reference rate.

The SBLOC path eliminates the cap-gains drag of the cash-purchase path while keeping the deductible portion of the jumbo. The non-deductibility of SBLOC interest is the offsetting cost. Modeling all three paths in parallel, cash, jumbo only, jumbo plus SBLOC, is what the SBLOC mortgage calculator spoke does. For the deeper essay on the three-way comparison, the existing SBLOC vs mortgage vs cash post is the companion read. Stockstead also operates an interactive after-tax SBLOC vs HELOC calculator for the portfolio-funded vs home-equity decision specifically.

How this calculator connects to the rest of the HNW stack

The cash-vs-mortgage decision is the strategic comparison that sits on top of the rest of the HNW calculator stack. Its inputs depend on the outputs of three other calculators in the cluster, and its answer changes when any of those upstream inputs change.

The mortgage rate input comes from the jumbo or super-jumbo pricing your specific lender quotes, modeled in the loan-type calculators. The after-tax effective rate conversion comes from the after-tax math discussed above. The 15-versus-30-year decision sits adjacent: a shorter amortization changes the cumulative interest cost on the mortgage side and the freed-cash-flow input on the investment side. For that comparison, see the 15 vs 30 year mortgage calculator for HNW buyers. The ARM-versus-fixed decision sits below: a 7/1 ARM priced 75-150 basis points under the fixed jumbo changes the mortgage-side cost meaningfully, but introduces reset risk that depends on hold horizon. See the ARM vs fixed jumbo mortgage calculator for the break-even math.

The honest answer to the cash-versus-mortgage question requires running all four of these calculators together. The mortgage-versus-cash output is a single number, but it is built from the outputs of the loan-type, after-tax, term-comparison, and rate-structure calculators. The buyer who runs only the mortgage-vs-cash tool and treats the headline rate as the input is solving the wrong problem.

When to consult a professional

A calculator can produce a wealth differential to the nearest dollar. It cannot tell a buyer whether their specific tax facts support claiming the mortgage interest deduction at the size and structure modeled, whether their state's intersection with the SALT cap actually delivers the assumed deductible value, whether their portfolio return assumption is reasonable given their actual asset allocation, or whether their cost-basis figure on any liquidated cash is accurate down to the lot.

For decisions of this magnitude, the calculator output is the start of a conversation with three professionals: a CPA with HNW practice depth to confirm the after-tax math against the buyer's specific return, a fiduciary financial advisor to confirm the expected portfolio return assumption and the risk tolerance for any leveraged path, and a jumbo loan officer to confirm what rate and structure the lender will actually approve.

Stockstead publishes educational content and runs calculators that model these comparisons. Stockstead does not provide investment, tax, or legal advice. For the full disclosure, see the disclaimers page.


Sources and further reading

Rates and yields current as of May 24, 2026. Mortgage rates, Treasury yields, and SOFR move daily; tax thresholds change with new legislation. Verify directly with primary sources before sizing a loan or making a financing decision. Educational, not financial advice. Stockstead publishes educational content for HNW home buyers and is not a licensed financial advisor, tax advisor, or mortgage broker. Consult a fiduciary advisor, a CPA, and a licensed loan officer before committing to any financing structure.

Frequently asked questions

Is it better to buy a house with cash or get a mortgage in 2026?

For an HNW buyer in a top federal bracket, the answer is usually mortgage, but only after running the after-tax math. The mortgage wins when the after-tax effective rate on the loan is meaningfully below the expected after-tax portfolio return on the cash that would otherwise be deployed. At 2026 yields, a 6.85% jumbo translates to roughly 5.95% after-tax for a 37% federal plus 9% state buyer above the $750K deduction cap, against an expected 6.0-6.5% after-tax portfolio return on a 70/30 portfolio. The spread is positive but not large, which is why the comparison must be modeled, not assumed.

What is the opportunity cost of buying a house in cash?

The opportunity cost is the after-tax return the cash would have earned over the hold horizon, minus the after-tax cost of the mortgage that the cash purchase avoided. On a $2.4M decision at 6.85% nominal with an expected 7% portfolio return, the spread over ten years compounds to roughly $180K to $250K in favor of the mortgage path, before accounting for any cap-gains drag on the cash side. The number is sensitive to the assumed portfolio return, the hold horizon, and the buyer's marginal tax brackets.

How do I calculate the after-tax effective mortgage rate?

Start with the headline rate. Compute the deductible portion of interest, capped at $750K of principal under IRC Section 163(h)(3). Apply the buyer's marginal federal rate plus state rate, subject to the $10K SALT cap. For a $2.4M jumbo at 6.85% held by a 37% federal plus 9% state buyer, only 31.25% of the principal generates deductible interest. The blended after-tax effective rate is roughly 5.95%, not the 4.31% a generic calculator implies by applying the full deduction. See the after-tax mortgage calculator spoke for the conversion mechanics.

Does liquidating investments to buy in cash trigger a tax bill?

Yes, and the size of the bill depends on the cost basis of the liquidated lots. For a $1M sale at a 50% blended basis, the realized long-term gain is $500K. At a 20% federal LTCG rate plus 3.8% NIIT plus a 9% state rate (typical for a high-bracket California or New York buyer), the combined tax is roughly $164K, or 16.4% of the cash raised. That drag is real money and must be added to the cash-purchase column when comparing against a mortgage path.

What discount rate should I use to compare cash vs mortgage?

Use the expected after-tax return on the alternative investment, not the risk-free rate. A buyer who would deploy the saved cash into a diversified 70/30 portfolio with an expected 7-8% nominal return uses roughly 6.0-6.5% after-tax as the comparison rate. A buyer who would park the cash in Treasury bills earning 4.5% nominal uses roughly 3.0% after-tax. The mortgage wins handily in the first case and loses in the second. The opportunity-cost question is fundamentally about which alternative the cash actually funds.

How does an SBLOC change the cash vs mortgage decision?

An SBLOC opens a third path: keep the cash invested, take a smaller jumbo, and fund the gap from a portfolio-secured line that does not trigger a liquidation. Under the right conditions, the SBLOC eliminates the cap-gains drag of the cash-purchase path while keeping the deductible portion of the jumbo. The math is non-trivial because SBLOC interest is generally non-deductible. See the SBLOC mortgage calculator at /blog/sbloc-mortgage-calculator for the full three-way comparison.

What hold horizon makes the mortgage path most attractive?

Longer is generally better for the mortgage path because the compounding spread between after-tax portfolio return and after-tax mortgage rate accumulates each year. At a 50 bp positive spread (portfolio over mortgage), the cumulative advantage doubles roughly every 14 years. Below a 5-year hold, the closing costs and origination fees on the jumbo can outweigh the modest opportunity-cost gain, especially if the buyer expects to refi or sell.

Ready to run the numbers on your situation?

Open the calculator →

Related posts