Lot-aware rebalancing with realized gain budget

Estimate how many shares of one security can be sold within a realized-gain budget.

Inputs

Calculation guide

Sell whole shares up to the desired trim, highest basis first. Realized losses offset realized gains in this scenario. A single sale price applies. Ignore jurisdiction-specific tax-lot restrictions, taxes and fees.

Read the guide →