Free calculator

Sell or borrow?

When you need cash from your portfolio, you can sell shares or borrow against them. See what each choice does to your wealth, your taxes and your risk, year by year.

Net Equity is the fairer comparison if the holdings are kept until death, because heirs generally receive a step-up in cost basis under current US law. After-Tax Value assumes everything is sold in the snapshot year and the loan is repaid.

Same total return, different split

Each row keeps your total return and moves the mix between dividends and price growth. Results are at the snapshot year. Click a row to use that split.

Net equity over time

Year by year

Learn the strategy before you use it.

Borrowing against a portfolio can be powerful and it carries real risk. The Perfect Portfolio teaches how investing, taxes and borrowing work together, in plain English, before you make a single move.

How the model works

  • Cost basis starts equal to the starting portfolio value, as it would for a fresh purchase.
  • Both scenarios start with the same portfolio and take the same after-tax cash draw at the end of each year.
  • Sell: shares are sold to raise the draw. The sale is grossed up for long-term capital gains tax using average cost basis.
  • Borrow: the draw is added to a margin loan, so the full portfolio keeps compounding. Interest is charged on the opening loan balance each year.
  • Margin investing: optional, and applied to both scenarios. On day one a margin loan buys extra shares of the same holdings, so both portfolios start larger with the same loan. In the Sell scenario that loan stays open and its interest is paid from dividends or added to the loan, but every cash draw still comes from selling shares, with the capital gains tax that goes with it. Net equity is the portfolio minus the loan. Leverage magnifies losses as well as gains, and it raises the chance of a margin call in both scenarios.
  • Dividends are paid on the start-of-year value. The Return of Capital share is untaxed and reduces cost basis. Once basis reaches zero, further ROC is taxed as a capital gain.
  • Total return is split into dividend yield and price growth, and both are held constant, so the model does not show market drops. A sharp early decline is the main margin-call risk when borrowing. Test it with a low or negative total return.

Disclaimer

This tool is provided to help you model and test financial scenarios and is for educational purposes only. It is an estimate, not a projection or guarantee, and does not constitute financial, legal, or tax advice. Results depend entirely on the inputs you provide. Margin borrowing involves the risk of forced liquidation and losses greater than your investment. Tax treatment depends on your circumstances and current law. Consult qualified professionals before acting. All decisions and their results are solely your responsibility.

How to use the Sell vs. Borrow calculator

A 2-minute walkthrough made by one of our students. Have a question it doesn't answer? Read the .

How to use the calculator

Fill in the five boxes on the left from top to bottom. Every result on the page updates as you type.

  1. Portfolio. Enter the money you're investing. If you want to invest on margin, set how much extra to borrow to buy more shares (0% means none); the starting portfolio value shows the total. Margin investing applies to both scenarios. Add your age and how many years to look ahead.
  2. Returns. Enter the total yearly return you expect. The dividend yield is the part paid to you as cash; the rest is price growth. Return of Capital is the share of each payout that isn't taxed when you get it but lowers your cost basis.
  3. Taxes. Enter your tax rate on dividends and your long-term capital gains rate. Add 3.8% to the capital gains rate if the Net Investment Income Tax applies to you.
  4. Cash need. Enter how much spending money you want each year after tax, how much it should grow each year, and the year you want it to start.
  5. Margin loan. Enter your broker's interest rate, whether dividends pay the interest, your broker's maintenance requirement, and the loan-to-value you'd be comfortable with.

Reading the results

  • The headline tells you which choice leaves you with more, and warns you if the loan would hit a margin call or if selling would run out of money.
  • Snapshot year: drag the slider to compare the two choices in any year. Everything below it updates.
  • Net equity is what you own minus the loan. After-tax value assumes you sell everything that year and pay the tax. If you plan to keep your investments for life, net equity is the fairer comparison, because your heirs generally get a step-up in cost basis.
  • Same total return, different split shows how moving between dividends and price growth changes the result. Click a row to use it.
  • The chart tabs show net equity, after-tax value, loan-to-value (with your margin call line) and dividends over time.
  • Year by year lists every number for every year, for both choices.

Saving your numbers

  • Copy share link makes a link that reopens your exact inputs.
  • Download CSV saves the full year-by-year table for a spreadsheet.
  • Reset puts every box back to the starting example.

Test a bad market

The calculator keeps returns steady every year, so it never shows a crash. A sharp drop early on is the main margin call risk when borrowing. To see it, try a low or negative total return.

Education only, not financial, tax or legal advice.