Learn

Guide · Published 12 August 2026 · 7 min read

Tax-Aware Rebalancing: Selling Losers Before Winners

How to review the tax side of a rebalance: average cost, unrealized gains and losses, and why the order of sells matters.

By Rebalance Cloud · Last reviewed 12 August 2026

Direct answer

How do taxes affect a rebalance?

Selling a position can create a taxable gain or loss. A tax-aware review looks at average cost and unrealized gains and losses first, so you can see which planned sells would realize gains and which would realize losses before you decide anything. The broker chooses the actual tax lots at execution.

Average cost basics

Average cost is roughly what you paid per share, adjusted for splits and other corporate actions. Current price minus average cost, times quantity, gives an estimate of unrealized gain or loss.

  • Cost basis: what you paid
  • Market value: what it is worth now
  • Unrealized gain or loss: the difference
  • Realized gain or loss: locked in only when you sell

Why sell order matters

Selling positions with losses first can realize losses that offset gains in the same year. Selling large gains early may create a tax bill sooner than necessary. The exact outcome depends on your tax rules and the lots your broker picks.

A practical review

Before transmitting anything, list every planned sell with its estimated realized gain or loss. Group them: losses, small gains, large gains. That list is decision support — not tax advice — and it keeps the tax effect visible.

  • Planned sells sorted from losses to gains
  • Estimated realized loss total
  • Estimated realized gain total
  • Wash-sale check for the same or similar securities

Limits

  • Average cost is an estimate; the broker selects actual lots.
  • Wash-sale rules can disallow a loss when you buy the same or similar security within the window.
  • Tax rules differ by country and change over time. This is research, not tax advice.

Common questions

Questions about this workflow

Does Rebalance Cloud give tax advice?

No. It shows estimates from average cost so the tax effect is visible. You, your broker, and your tax professional own the final decision.

What is a wash sale?

A wash sale happens when you sell a security at a loss and buy the same or a substantially identical security around the same time. The loss may be disallowed for tax purposes under U.S. rules.

Put this into practice

Connect your Interactive Brokers account, review your portfolio drift, and generate a checked basket on your schedule.

Open Rebalance Cloud