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
Taxes vary by country and account type. This article uses a simplified 20% rate as an example. Always check the rules for your location and account, and consider consulting a qualified tax professional.
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 200andlatersellitfor300, your profit is 100.Governmentsoftentaxthatprofit,notthewhole300. 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 100,a2020. 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 50eachandpaya10 commission, your cost basis is 500+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 65eachandpaya10 commission, your proceeds are 650−10 = $640.
Calculate your gain (or loss)
Gain = Sale proceeds − Cost basis.
In this example: 640−510 = $130 gain.
Apply the tax rate
If the tax rate is a flat 20% on gains: Tax = Gain × 20%.
Tax = 130×0.20=26.
Compute after-tax profit
After-tax profit = Gain − Tax.
130−26 = $104.
Tax = (Sale Proceeds − Cost Basis) × Tax Rate
Two quick examples
Example A: Profit
Buy 5 shares at 100=500 cost basis.
Sell 5 shares at 120=600 proceeds.
Gain = 600−500 = $100.
Tax at 20% = $20.
After-tax profit = $80.
Example B: Loss
Buy 10 shares at 30=300 cost basis.
Sell 10 shares at 25=250 proceeds.
Gain = 300 = −$50 (a loss).
Dividends
If you receive a 50dividendandthetaxrateondividendsis2050 × 0.20 = 10.Y40.
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.
Some places have different rates for short-term vs. long-term holdings (for example, if you hold more than 12 months). Our 20% example assumes a single flat rate for simplicity.
Case study
Imagine Avery, a beginner investor, buys 100 shares of GreenTech at 15each.Thebrokerchargesa5 commission to buy, and 5tosell.Aye22 each. The country taxes capital gains at a flat 20% rate and dividends at 20% as well.
Step 1: Cost basis
Purchase cost = 100 × 15=1,500.
Add buy commission $5.
Cost basis = $1,505.
Step 2: Sale proceeds
Sale amount = 100 × 22=2,200.
Subtract sell commission $5.
Proceeds = $2,195.
Step 3: Gain
Gain = 2,195−1,505 = $690.
Step 4: Tax on gain (20%)
Tax = 690×0.20=138.
Step 5: After-tax profit
After-tax profit = 690−138 = $552.
Dividends during the year
Suppose GreenTech paid a $0.20 dividend per share during the year.
Dividend received = 100 × 0.20=20.
Dividend tax at 20% = 20×0.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 14insteadof22, proceeds would be 1,395(100×14 − $5 commission).
Gain = 1,395−1,505 = −0.
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.
Think of taxes as friction on your returns. Fewer stops and starts usually mean less friction. Plan trades in batches and be intentional about selling.
Common misconceptions
よくある誤解
- A 20% tax applies to everything I receive from selling stock. In reality, the tax generally applies to your profit (sale minus cost basis), not the entire sale amount.
- I have to pay tax when my stock goes up, even if I do not sell. Typically, taxes apply when you sell (realize the gain), not while gains are unrealized.
- Dividends and capital gains always have the same tax rate. They can be taxed differently depending on local rules and holding periods.
- Losses are useless. Losses can often offset gains, reducing your overall tax bill, subject to jurisdictional limits.
- My broker will always handle taxes for me. Some brokers withhold, others just report. You may still need to file and pay taxes yourself.
Summary
まとめ
- A 20% tax on investments usually refers to a tax on profits (capital gains), not the total sale amount.
- Taxes are typically due when gains are realized by selling, not while gains are unrealized.
- Calculate tax using cost basis, sale proceeds, and the applicable tax rate.
- Dividends may be taxed separately and at different rates than capital gains.
- Losses can reduce taxes on gains in many systems; rules vary by country.
- Account type matters: taxable vs. tax-advantaged accounts can change your rate and timing.
- Plan sales and rebalancing with taxes in mind to minimize tax drag.
This guide is for education, not tax advice. Tax laws change and differ by location. Confirm details with official sources or a tax professional.
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.
250−
Tax on a loss is typically $0, and the loss may offset other gains depending on local rules.
o
u
k
ee
p
Some brokers withhold taxes automatically; others report it for your own year-end filing.
a
r
l
a
t
er
,
A
v
eryse
ll
s
a
ll
100
s
ha
res
a
t
110(aloss),socapitalgainstaxwouldbe
Depending on local rules, that $110 loss might offset other gains in the same year or in future years.