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: With the starting numbers ($500,000 cash needed (after tax, net), $3,000,000 portfolio value, 7% entered annual portfolio return scenario), gross sale needed to net the cash comes to $500,000. Change Cash Needed (after tax, net), Portfolio Value, Entered Annual Portfolio Return Scenario, and Time Horizon to see your own.
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.
Email me this result
We will send your numbers and a link to change them. You will also get our short weekly email on rates and money moves. Unsubscribe any time.
Rate moves, posted as they happen. New rates and the dollars they cost or save you, on X.
Follow @switchwizeThis 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 Dec 2, 2026 · Methodology
Advertising disclosure: Some partner links may compensate SwitchWize. Ranked using the SwitchWize methodology. Learn more
Add this calculator to your site
Paste this snippet into any page. No account or API key is required. Check the widget's displayed inputs and limits before using a result. A SwitchWize attribution link is included 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
A Worked Example
Start with these numbers: Cash Needed (after tax, net) $500,000, Portfolio Value $3,000,000, Entered Annual Portfolio Return Scenario 7%, Time Horizon 7, Lender Advance Rate 65%, Loan Interest Rate (APR) 6.5%. The calculator returns Gross Sale Needed to Net the Cash $500,000, Loan as % of Portfolio 16.67%. Change any input above to see your own result.
Find the best account for this goal
Money Map matches your numbers to the strongest available accounts in 90 seconds.