What you'll learn
- What a "20% tax" on investment gains typically means in plain language
- The difference between realized and unrealized gains (and why taxes trigger only at sale)
- How to calculate capital gains tax step-by-step using cost basis
- How dividends may be taxed differently from price gains
- How losses can reduce taxes on gains (basic loss offset concepts)
- Practical ways taxes affect your investment decisions and timing
- Common mistakes beginners make when thinking about taxes
Concept explanation
When you make money from investing in stocks, you might owe taxes on your profits. Think of your investment like buying and selling a bike. If you buy a bike for 300, your profit is 300. With investing, that profit is called a "capital gain."
A "20% tax" usually means you owe 20% of your profit in tax. If your profit is 20. Importantly, this tax typically applies when you realize the gain—meaning you actually sell the stock for more than you paid. If you just watch the price go up but don't sell, that's an unrealized gain, and in many systems, you don't pay tax yet.
You may also receive dividends, which are cash payments from companies to shareholders. Dividends can be taxed differently from capital gains. Some places tax dividends at the same rate as gains; others use different rates. The key idea: stock profits come from price increases and dividends, and they may be taxed differently.
Finally, the account type matters. In many countries, a standard brokerage account is taxable each time you realize gains or receive dividends. Some accounts are tax-advantaged, meaning taxes are delayed or reduced, depending on rules. Your tax rate and timing can change based on where your money sits.
Why it matters
Taxes affect your net return—what you keep after paying the government. A 10% investment gain might feel great, but if 20% of that gain goes to taxes, your take-home result is smaller. Over years, after-tax compounding (earnings on what you actually keep) determines how fast your wealth grows. Knowing how the 20% tax works helps you plan smarter.
Taxes also influence decisions like when to sell, which investments to hold, and which account to use. For example, holding an investment for longer might qualify you for a lower tax rate in some jurisdictions. Or you might choose to keep frequent-trading strategies in tax-advantaged accounts to avoid constant taxable events.
Lastly, understanding basic rules helps you avoid surprises. Many beginners are caught off-guard by taxes owed after a profitable year, especially if they reinvest all proceeds and leave no cash for the tax bill. Awareness prevents last-minute scrambles.
Calculation method
Let's break down the pieces you need to compute a simple 20% capital gains tax.
- Identify your cost basis
- Cost basis is what you paid for the shares, plus certain costs like commissions.
- If you buy 10 shares at 10 commission, your cost basis is 10 = $510.
- Determine your sale proceeds
- Sale proceeds are what you receive when you sell, minus selling costs.
- If you sell those 10 shares at 10 commission, your proceeds are 10 = $640.
- Calculate your gain (or loss)
- Gain = Sale proceeds − Cost basis.
- In this example: 510 = $130 gain.
- Apply the tax rate
- If the tax rate is a flat 20% on gains: Tax = Gain × 20%.
- Tax = 26.
- Compute after-tax profit
- After-tax profit = Gain − Tax.
- 26 = $104.
Two quick examples
-
Example A: Profit
- Buy 5 shares at 500 cost basis.
- Sell 5 shares at 600 proceeds.
- Gain = 500 = $100.
- Tax at 20% = $20.
- After-tax profit = $80.
-
Example B: Loss
- Buy 10 shares at 300 cost basis.
- Sell 10 shares at 250 proceeds.
- Gain = 300 = −$50 (a loss).
- Tax on a loss is typically $0, and the loss may offset other gains depending on local rules.
Dividends
- If you receive a 50 × 0.20 = 40.
- Some brokers withhold taxes automatically; others report it for your own year-end filing.
Realized vs. unrealized
- If the stock price rises but you do not sell, your gain is unrealized, and you generally do not pay tax yet.
- When you later sell, you realize the gain and the tax is computed at that time.
Case study
Imagine Avery, a beginner investor, buys 100 shares of GreenTech at 5 commission to buy, and 22 each. The country taxes capital gains at a flat 20% rate and dividends at 20% as well.
Step 1: Cost basis
- Purchase cost = 100 × 1,500.
- Add buy commission $5.
- Cost basis = $1,505.
Step 2: Sale proceeds
- Sale amount = 100 × 2,200.
- Subtract sell commission $5.
- Proceeds = $2,195.
Step 3: Gain
- Gain = 1,505 = $690.
Step 4: Tax on gain (20%)
- Tax = 138.
Step 5: After-tax profit
- After-tax profit = 138 = $552.
Dividends during the year
- Suppose GreenTech paid a $0.20 dividend per share during the year.
- Dividend received = 100 × 20.
- Dividend tax at 20% = 4.
- After-tax dividend = $16.
Total after-tax outcome
- After-tax capital gain = $552.
- After-tax dividends = $16.
- Total after-tax profit = $568.
What if Avery had a loss instead?
- If Avery sold at 22, proceeds would be 14 − $5 commission).
- Gain = 1,505 = −0.
- Depending on local rules, that $110 loss might offset other gains in the same year or in future years.
Practical applications
-
Choosing when to sell
- If you plan to sell soon anyway, consider the tax timing. Selling in one calendar year vs. the next can change when you owe taxes.
-
Rebalancing with taxes in mind
- When you rebalance your portfolio, look for positions with smaller gains to trim first, or use losses to offset gains when allowed.
-
Asset location
- Put tax-inefficient investments (like high-dividend funds or frequent traders) into tax-advantaged accounts if available, and tax-efficient holdings in taxable accounts.
-
Using losses wisely
- If a position is down, realizing the loss might reduce taxes on other gains. Be mindful of local rules that may restrict buying back the same security immediately.
-
Keeping cash for taxes
- If your broker does not withhold taxes, set aside a portion of proceeds to cover your tax bill so you are not caught short.
-
Long-term mindset
- Fewer taxable events can mean less tax drag. Buying quality investments and holding them longer can be more tax-efficient than frequent trading.
Common misconceptions
Summary
Glossary
Capital gains tax: A tax on the profit from selling an investment for more than its cost basis.
Cost basis: The original purchase price of an investment, plus certain costs like commissions.
Realized gain: A profit that becomes taxable when you sell the investment.
Unrealized gain: An increase in value you have not locked in by selling; usually not taxed yet.
Dividend: A cash payment from a company to its shareholders, often from profits.
Tax-advantaged account: An account type where taxes are deferred or reduced under specific rules.
Withholding tax: Tax automatically taken out by a broker or payer before you receive funds.
Loss offset: Using investment losses to reduce taxes owed on gains, subject to local rules.