Sub topic 10
Trading Costs and Taxes
Assume you understand percentage returns, index funds, and bonds. This chapter focuses on how moving between investments can reduce your result even when your market forecast is correct.
Market timing creates trading costs. A trade may incur a commission, a bid-ask spread, a fund transaction cost, or a platform fee. The bid-ask spread is the difference between the price available from a buyer and the price requested by a seller. You usually pay part of this spread when you buy or sell.
Taxes can add another cost in a taxable account. Selling an investment for more than its purchase price creates a capital gain, which may be taxable. The purchase price used to calculate that gain is the tax basis.
How a round trip reduces returns
Suppose you sell an index fund, wait in cash, and later buy it again. This is a round trip: one sale followed by one purchase. Even if the fund price is unchanged during the trade, you may lose money to costs.
| Cost | When it occurs | Effect |
|---|---|---|
| Bid-ask spread | Buying or selling | You receive a slightly worse price |
| Commission or platform fee | Placing a trade | Cash leaves the account |
| Capital-gains tax | Selling at a profit | Part of the gain goes to tax |
| Fund turnover cost | The fund trades internally | The fund's return is reduced |
Here is a simple estimate. It assumes a taxable account, a profitable sale, and no state-specific rules:
portfolio = 10_000
sale_fee_rate = 0.001
purchase_fee_rate = 0.001
gain = 2_000
tax_rate = 0.15
sale_fee = portfolio * sale_fee_rate
purchase_fee = portfolio * purchase_fee_rate
capital_gains_tax = gain * tax_rate
total_friction = sale_fee + purchase_fee + capital_gains_tax
print(round(total_friction, 2)) # 520.0The calculation estimates $520 of friction. The exact result depends on the account type, holding period, tax jurisdiction, trade execution, and investment.
Why taxes make timing harder
A sale can turn an unrealized gain into a realized gain. An unrealized gain is a profit that exists only because the current price is higher. A realized gain occurs when you sell.
Frequent selling can also change the tax character of gains. In some jurisdictions, investments held for a shorter period receive less favorable treatment than investments held longer. Tax rules vary, so check the rules that apply to your account and location.
Tax is not always due immediately. Retirement or tax-sheltered accounts may defer or avoid some taxes, but they can have withdrawal rules. A taxable account may offer flexibility, while creating more reporting and tax consequences.
The decision rule
Timing must outperform staying invested by enough to cover:
- Trading costs on the exit and re-entry.
- Taxes caused by selling.
- The return earned while money is outside the market.
- The risk that the re-entry occurs at a higher price.
A lower-cost alternative is often to change future contributions, rebalance according to a rule, or adjust the overall asset allocation rather than making an emotional trade.
Exercise
You sell a fund after a $1,000 gain and owe $150 in tax. You also pay $20 in total trading costs. How much must your timing decision add before it has produced a financial benefit?
Show answer
It must add more than $170, ignoring the value of time and any difference in risk.