Building a Portfolio
Taxes: Capital Gains, Accounts & Wash Sales
Keeping more of what you make, the basics, no accountant needed.
You can pick great stocks and still hand a big chunk of the gains to the tax collector for no reason. Taxes are the return killer nobody markets against. You don't need to become an accountant, you need to know a few rules that quietly decide how much you keep. None of this is tax advice; rules vary and change, so confirm specifics for your situation.
Short term vs long term
In the US, how long you hold before selling changes your tax rate. Sell a profitable position you've held one year or less and the gain is short term, taxed as ordinary income, the same high rate as your paycheck. Hold longer than a year and it becomes a long term gain, taxed at a lower rate.
1 year + 1 day
the line between ordinary-income and long term gain rates
You're only taxed when you sell
A gain on paper isn't taxed. You owe on realized gains, gains you locked in by selling. This is huge: every time you don't sell, you defer the tax and let the full pre-tax amount keep compounding. Frequent trading doesn't just risk mistakes, it drags a tax bill forward every time you're right.
Accounts change everything
- Taxable brokerage: full flexibility, but you owe tax on gains and dividends as you go.
- Traditional 401(k) / IRA: contributions may be pre-tax now, grows untaxed, taxed on withdrawal in retirement.
- Roth IRA / Roth 401(k): funded with after tax money, then qualified growth and withdrawals are tax-free.
- Employer match on a 401(k): free money, capture it before anything else, then fill other tax-advantaged space, then use taxable for the rest.
The wash-sale trap
Selling a loser to book a tax loss is legit, it's called tax-loss harvesting. But the wash-sale rule says if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now. People trigger it by accident, especially with automatic reinvestment turned on.
The playbook is simple: prefer long term holds, use your tax-advantaged accounts before your taxable one, grab any employer match, and don't accidentally trip the wash-sale rule. That's most of the edge, and it costs you nothing but attention.
Key takeaways
Educational content only, not financial advice. Trading and investing carry real risk of loss, including your entire capital. Do your own research and consult a licensed professional before making financial decisions.
This is one lesson of 541.
The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.