Investing in retirement

Investment Portfolio Tracker

List every holding by account, see gains and your mix against target, and find out how much of any rebalancing can happen inside IRAs and Roth accounts without a tax bill.

Tracking a Retirement Portfolio

Why track holdings by account?

By the late 50s most households hold money in five to ten accounts: two 401(k)s or rollover IRAs, Roth IRAs, a brokerage account, a cash account, sometimes an HSA. The statements never add up to one picture. This tracker does three things with one list:

  • One total: what the whole household owns, and what it cost
  • One mix: stocks, bonds and cash across every account, against the target you set
  • Where to trade: how much of any selling can be done inside IRAs and Roth accounts, where it is not taxed, and how large the built-up gain is in the taxable account

How to enter each holding

  1. 1One row per fund or stock per account. The same fund in your IRA and your brokerage account is two rows.
  2. 2Shares and today’s price from your statement or the broker’s positions page.
  3. 3Purchase price: the average cost per share your broker shows on the cost-basis or unrealized-gains page, including reinvested dividends. It matters for taxable accounts; for IRAs it only affects the return column.
  4. 4Asset class: split balanced and target-date funds into their stock and bond parts, or put them under the larger part.
  5. 5Account type: Taxable, Traditional IRA / 401(k) (including SEP and rollover IRAs), or Roth.
  6. 6Set your targets so they add to 100%. The asset allocation worksheet suggests a starting point.

What each account means for rebalancing

Traditional IRA / 401(k)

  • Trades are not taxed
  • Withdrawals are taxed as income
  • Required distributions start at 73, or 75 if born in 1960 or later
  • Best place to do the selling

Roth IRA / Roth 401(k)

  • Trades are not taxed
  • Qualified withdrawals are tax-free
  • No lifetime RMDs for the original owner
  • Often holds the longest-horizon stocks

Taxable

  • Selling realizes gains or losses
  • Gains on shares held over a year get lower rates
  • Heirs generally get a basis equal to value at death
  • Trim here last

When to rebalance

Look once a year, at a fixed time such as January or when you plan the year's withdrawals.

Act when a class is more than 5 points off target. The tracker flags those classes Over or Under.

Use withdrawals first. Take the year's spending and any required distribution from what is overweight; it often closes the gap without a trade.

Selling inside IRAs

The tracker shows how much of each class sits in IRA and Roth accounts. When that covers the sale, the whole rebalance can happen there, with no capital gains tax.

Mistakes to avoid

  • Selling your oldest taxable shares to rebalance when the same trade could be made in an IRA
  • Selling at a loss in the taxable account and buying the same fund in an IRA within 30 days, which disallows the loss
  • Leaving a spouse's accounts off the list, so the household mix is wrong
  • Letting one company's stock, often a former employer's, grow past 10% of the total unnoticed
  • Moving money on the advice of an unsolicited caller or a "guaranteed" offer

What Does the Tracker Show That Statements Don't?

The household picture. Each statement shows one account; the decisions that matter in retirement, how much is in stocks, what to sell and where, depend on all of them together. Enter every holding once, with its account type, and the tracker returns four things:

  • Value, cost and gain for each holding and in total.
  • The unrealized gain in taxable accounts, the only gain that would be taxed if you sold.
  • Your mix against target, with any class more than 5 points off flagged Over or Under, and the dollar trade that restores it.
  • How much of each class sits in IRA and Roth accounts, and whether the selling can all happen there.

The defaults are a hypothetical retired couple with $2,441,000 across a brokerage account, a rollover IRA and a Roth IRA. They paid $1,791,000, so the gain is $650,000, or 36.3% on cost, of which $419,000 sits in the taxable account. Stocks have drifted to 64.2% against a 55% target. Reaching the target means selling $387,600 of US stocks and buying international stocks, bonds and cash. Because their IRA and Roth hold $744,000 of US stocks, the whole sale can be made there without a capital gains bill.

How Do You Rebalance When Money Is in Several Accounts?

Treat the accounts as one portfolio for the mix and as separate tax buckets for the trades. The target applies to the household total; the trades go wherever they cost least.

Where to make each kind of trade
StepWhereTax effect
1. Take withdrawals from what is overweightAny account you were drawing on anywayNone beyond the withdrawal itself
2. Exchange between fundsTraditional IRA, 401(k), RothNone
3. Redirect dividends and interestTaxable accountAlready taxed as received
4. Give appreciated shares to charityTaxable accountGain never taxed
5. SellTaxable account, lastGain taxed at 0%, 15% or 20% if held over a year

Long-term capital gains rates depend on taxable income (IRS Topic 409), so a year with low income, such as the gap between retiring and claiming Social Security, can be a good time to realize some gains deliberately at a low or zero rate. The guide to retirement withdrawal order covers how those years fit together with Roth conversions.

Watch one rule when moving between accounts. Selling a fund at a loss in the brokerage account and buying the same fund in an IRA or Roth IRA within 30 days disallows the loss, and the IRA's basis does not absorb it (IRS Rev. Rul. 2008-5). Buy a similar but different fund, or wait 31 days.

Why Does Cost Basis Matter So Much After 60?

Because it decides both what a sale costs you and what your heirs inherit. In a taxable account the gain is value minus basis. A fund bought in the 1990s may be mostly gain; selling it to rebalance hands part of that to the IRS.

Held until death, the same shares generally pass with a basis equal to their fair market value on the date of death (IRS Publication 551), so the gain built up during your life is never taxed. For a household that expects to leave money to children or grandchildren, the oldest, most appreciated taxable shares are often the last thing to sell. The tracker's "Unrealized Gain, Taxable" figure shows how much is at stake. Shares given away during life generally keep your original basis instead; the guide to gifting to children and grandchildren weighs that trade-off.

Keep records. For shares bought before brokers were required to track basis, your own statements may be the only record. Enter the average cost your broker shows and note any lots where you know the figure is missing.

How Does the Tracker Fit With RMDs and Roth Conversions?

It shows what sits in each tax bucket, which is the starting point for both. Required minimum distributions start at 73, or 75 if born in 1960 or later. Taking the RMD from the overweight class inside the IRA turns a required withdrawal into a rebalance. The RMD calculator projects the amounts year by year.

Roth conversions work best with assets you expect to grow most, converted when prices are down. The tracker's account column shows which holdings are in the traditional IRA and could move. The guide to Roth conversions before RMDs sets out how much to convert each year and the Medicare premium surcharges to watch.

Charitable giving can do rebalancing work too. From 70½, a qualified charitable distribution of up to $111,000 a year goes straight from an IRA to charity and counts toward the RMD; choose to distribute from the overweight fund.

What Does the Tracker Leave Out?

  • Live prices. You enter them. The tracker never connects to an account, and nothing leaves your browser.
  • Annual returns. Return on cost is a total since purchase, not a yearly rate.
  • Taxes on the trades. It shows where the gains are and how much selling can happen in IRAs; it does not compute the tax.
  • Income you do not hold as investments. Pensions, annuities and Social Security are not listed, though they affect how much risk the portfolio can carry.
  • Fund overlap. Two funds can hold the same companies. Class the holding by what it owns, not what it is called.

The downloadable Excel version adds up to 30 holdings, the same account and asset-class totals, and the same checks. For the target itself, start with the asset allocation worksheet. And be wary of anyone who calls about your portfolio unprompted; the guide to investment scam red flags lists the usual approaches.

Learn more: Read our comprehensive guide on

Asset Allocation by Age: 55 to 75 and Beyond

How much to hold in stocks, bonds and cash through the transition into retirement and the decades after it.

How this calculator works

Method and assumptions

  • Each holding's value is shares times the current price you enter, and its cost basis is shares times your average cost per share. Gain is value minus cost basis; return on cost is gain divided by cost basis.
  • Unrealized gain, taxable, nets the gains and losses of holdings marked Taxable only. Holdings in traditional and Roth accounts are left out, since selling inside them creates no capital gain.
  • Your mix is each asset class's value divided by the total of all holdings. A class more than 5 percentage points above or below your target is flagged Over or Under.
  • Buy and sell amounts are the dollar gap between each class's target share of the total and its current value. Crypto and Other have no target box, so any holding in them counts as a full sale.
  • The sheltered share of selling assumes every sale in an overweight class comes first from that class's IRA and Roth holdings, up to their value; only the remainder is attributed to taxable accounts.

What it leaves out

  • Prices are not looked up. Every value is only as current as the prices you type in.
  • Return on cost is a simple gain over cost basis. It ignores dividends paid out, the timing of purchases and withdrawals, and is not an annualized or time-weighted return.
  • Capital gains tax on taxable sales is not estimated, and specific-lot selling, wash sales and the cost basis of inherited shares are not modeled.
  • Your holdings are kept only in this browser tab. Nothing is saved, and this page has no scenario link, so a private ledger never ends up in a shared URL. Use the Excel template to keep a record.

Methodology reviewed · For education, not individual advice

Portfolio Tracker FAQs

Why does the tracker ask which account each holding is in?

Because the account decides whether rebalancing costs tax. Selling inside a traditional IRA, 401(k) or Roth account is not a taxable event; selling in a brokerage account realizes the gain. The tracker adds up how much of each asset class sits in IRA and Roth accounts and tells you whether the selling your target calls for can all be done there.

What purchase price should I enter?

Your average cost per share, as your broker reports it. Most brokers show it on the cost-basis or unrealized gain page, including shares bought with reinvested dividends. It matters most for taxable accounts, where it sets the gain you would pay tax on. For IRAs and Roth accounts it only feeds the return column, so an estimate is fine.

Is the return figure an annual return?

No. Return on cost is the total gain divided by what you paid, however many years ago. A fund bought 15 years ago can show 150% while earning an ordinary annual rate. For a yearly rate that accounts for the timing of purchases and withdrawals, use the personal rate of return on your broker's statement, or the XIRR function in Excel with your dated cash flows.

How often should retirees rebalance?

Review once a year and act when a class is more than 5 percentage points off target. Many retirees pair the review with setting the year's withdrawals, so the money they take out comes from whatever is overweight. That alone often keeps the mix close to target without a trade.

Can I sell a fund at a loss in my brokerage account and buy it back in my IRA?

Not within 30 days. The IRS treats a purchase of substantially identical shares in your IRA or Roth IRA within 30 days as a wash sale: the loss is disallowed, and the IRA basis is not increased (Rev. Rul. 2008-5). Wait 31 days, or buy a different fund in the IRA.

Should I sell highly appreciated shares in my taxable account?

Often not, if you can rebalance elsewhere. Long-term gains are taxed at 0%, 15% or 20% depending on income (IRS), and the basis of property inherited from you is generally its value at your death (IRS Publication 551). Shares held for heirs may never be taxed on the gain. Rebalance in IRAs first, and consider giving appreciated shares to charity instead of cash.

How does the tracker help with required minimum distributions?

It shows what your IRAs hold, so you can decide what to distribute. RMDs start at 73, or 75 if born in 1960 or later. Take the distribution from the overweight class and the RMD does double duty as a rebalance. After 70½, up to $111,000 a year can go directly from an IRA to charity as a qualified charitable distribution, which counts toward the RMD.

Does the tracker look up current prices?

No. You type the prices, so nothing you enter leaves your browser. The example prices on the page are made up for illustration. Update the prices from your statements once a quarter or at your annual review.