Borrow vs Sell Calculator
Compare selling enough securities to net a cash need after capital gains tax against borrowing the same amount and staying invested — for any liquidity need, not just a home purchase.
Quick answer: Compare selling securities to net a cash need after capital gains tax against borrowing the same amount against the portfolio and staying invested, for any liquidity need. Enter Cash Needed (after tax, net), Portfolio Value, Entered Annual Portfolio Return Scenario, and Time Horizon to personalize the estimate. It returns Gross Sale Needed to Net the Cash and Loan as % of Portfolio so you can compare the impact before choosing a next step. Use it to compare payment, APR, total cost, credit impact, and lender or card tradeoffs.
This calculator doesn't model margin-call risk. See the Margin-Call Stress Test for what a portfolio decline does to this loan.
Borrowing and staying invested outperforms selling by $217K over 7 years — the avoided capital-gains tax plus compounding on the full portfolio.
Selling enough to net $500,000 after tax requires a larger gross sale than the cash amount itself; the full comparison, including the after-tax gross-up, is in the panel above.
Compare SBL lendersCompare Securities-Based Lenders
- 1
Compare the leading option against your current setup
Compare selling securities to net a cash need after capital gains tax against borrowing the same amount against the portfolio and staying invested, for any liquidity need.
- 2
Check the assumptions before using the result for a high-stakes decision
Assumptions change the answer, especially when rates, taxes, or timing matter.
- 3
Save the result to Money Map or use the linked next action
Turn the result into a prioritized action instead of treating it as a one-off number.
This is an educational estimate, not tax, legal, investment, or lending advice. Tax rules, rates, and eligibility change and depend on your full situation. Confirm with a qualified professional or the provider before acting.
Turn this result into a decision
Every SwitchWize calculator connects to a product comparison, rate context, guidance, alerts, and Money Map.
Reviewed Sep 2, 2026 · Methodology
Advertising disclosure: SwitchWize may earn a referral fee if you open an account through a link above. This does not affect our rankings. Ranked using the SwitchWize methodology. Learn more
Add this calculator to your site
Paste this snippet into any page. No account or API key required, the widget is responsive, and it updates with live rates. A SwitchWize attribution link is included in the embed automatically.
<iframe src="https://www.switchwize.com/embed/borrow-vs-sell?source=embed_selfserve" width="100%" height="680" loading="lazy" style="border:1px solid #e2e8f0;border-radius:14px;max-width:100%;width:100%" title="SwitchWize calculator"></iframe>
<script>(function(){window.addEventListener("message",function(e){if(e.origin!=="https://www.switchwize.com")return;var d=e.data;if(!d||d.type!=="sw-embed-resize")return;var f=document.getElementsByTagName("iframe");for(var i=0;i<f.length;i++){if(f[i].contentWindow===e.source){f[i].style.height=d.height+"px";break;}}});})();</script>Frequently Asked Questions
Everything you need to know.
How is this different from the SBL vs Mortgage calculator?
Why does selling require a larger gross sale than the cash I need?
Is loan interest automatically tax-deductible if I'm investing the proceeds?
What happens if the portfolio can't support the loan I need?
Is the Borrow vs Sell Calculator free to use?
Does using the Borrow vs Sell Calculator affect my credit score?
Are the results personalized financial advice?
What should I do after seeing the result?
How does SwitchWize choose related offers?
How fresh are the rates and offers shown?
Where can I see the ranking methodology?
Can Money Map use this result?
Why This Matters
Selling securities to raise cash triggers capital gains tax on the embedded gain, and pulls that money out of the market permanently. Borrowing against the same portfolio avoids the tax event and keeps the full portfolio compounding, but adds real interest cost and loan risk. Which one leaves you wealthier after N years depends on the gap between your loan rate and your portfolio's return, not on which one feels safer.
How to Use It
- 1Enter the cash amount you actually need, after tax
- 2Enter your portfolio value and expected annual return
- 3Set the lender advance rate and loan interest rate
- 4Toggle interest deductibility only if you have confirmed the use of proceeds actually qualifies
Find the best account for this goal
Money Map matches your numbers to the strongest available accounts in 90 seconds.