Capital gains tax is a tax on the profit you make when you sell an investment or asset for more than you paid for it. When you buy a stock, real estate property, or collectible and later sell it at a higher price, that profit is called a capital gain. The IRS (Internal Revenue Service) requires you to report these gains on your tax return and pay tax on them.
Understanding IRS Tax Payment Deadlines for 2026 →
The basic concept is straightforward: if you purchase a stock for $1,000 and sell it for $1,500, your capital gain is $500. You owe capital gains tax on that $500 profit, not on the full $1,500 sale price. This applies to many types of assets including stocks, bonds, real estate, artwork, and cryptocurrency.
Capital gains tax differs from income tax on wages or salary. When you work a job, you pay income tax on your earnings. Capital gains tax applies specifically to investment profits. The tax rate you pay depends on several factors, including how long you held the asset, your income level, and your filing status.
Understanding capital gains tax matters because it affects how much money you keep from your investments. A person who sells stock without understanding capital gains tax might be surprised to owe hundreds or thousands of dollars at tax time. By learning how these calculations work, you can better plan your financial decisions.
Practical Takeaway: Capital gains are the profits from selling assets. To calculate your capital gain, subtract what you paid (your basis) from what you received when you sold it. This difference is your taxable gain.
The IRS divides capital gains into two categories based on how long you owned the asset: long-term and short-term. This distinction matters significantly because the tax rates are different. Long-term capital gains receive preferential tax treatment with lower rates, while short-term capital gains are taxed at your ordinary income tax rate.
Learn How to Check Your Credit Card Status Online →
Long-term capital gains apply when you hold an asset for more than one year before selling it. Short-term capital gains apply when you hold an asset for one year or less. This one-year holding period is a clear, bright-line rule that the IRS uses consistently. The actual calendar matters—if you buy stock on March 15, 2023 and sell it on March 15, 2024, that qualifies as long-term.
As of 2024, the long-term capital gains tax rates are 0%, 15%, or 20%, depending on your taxable income and filing status. These rates are significantly lower than ordinary income tax rates, which range from 10% to 37%. For example, a person in the 37% tax bracket pays only 20% on long-term capital gains. Someone in the 22% bracket pays 15% on long-term gains.
Short-term capital gains are taxed as ordinary income. If you're in the 24% tax bracket and make a short-term capital gain, you pay 24% tax on that gain. This creates a strong incentive to hold investments longer than one year when possible. A $10,000 short-term gain might result in $2,400 in taxes (at 24%), while the same gain as long-term capital would result in $1,500 in taxes (at 15%)—a $900 difference.
Investors often structure their selling strategy around this distinction. Someone might wait a few weeks or months to sell an asset if it means moving from short-term to long-term capital gains treatment. Financial planning often involves timing asset sales to take advantage of lower long-term rates.
Practical Takeaway: Hold investments more than one year when possible to qualify for lower long-term capital gains tax rates. If you must sell within one year, understand you'll pay your regular income tax rate on the gain.
Cost basis is the foundation of capital gains calculations. It's the amount you originally paid for an asset, including commissions and fees. Calculating your basis correctly is crucial because any error will throw off your entire capital gains calculation. The IRS allows you to use specific identification or other methods to determine which shares you're selling if you own multiple lots of the same stock.
Learn How to Log Into Your Lowes Credit Card Account →
For stocks purchased directly, your cost basis includes the per-share price plus any brokerage commissions you paid. If you bought 100 shares of Company XYZ at $50 per share and paid a $10 commission, your total cost basis is $5,010, making your per-share basis $50.10. When you sell those shares, you subtract this adjusted basis from your sale proceeds.
Cost basis becomes more complex with inherited assets or stocks received as gifts. If someone gives you stock, your cost basis generally remains what the original owner paid. However, if you inherit stock, your cost basis is "stepped up" to the fair market value on the date of the person's death. This step-up basis rule can significantly reduce or eliminate capital gains tax. If your aunt bought stock for $10,000 and it was worth $50,000 when she died, and you inherited it, your basis becomes $50,000, not $10,000.
Stock splits and dividends can also affect your basis. If you own 100 shares and the company does a 2-for-1 split, you now own 200 shares, but your basis per share is cut in half. Reinvested dividends increase your cost basis. If you reinvest $500 in dividends to buy more shares, those new shares have a $500 cost basis.
Many brokers now track your cost basis automatically and report it on forms provided at year-end. However, you should verify this information, especially for older accounts, inherited securities, or assets purchased before your broker began tracking basis.
Practical Takeaway: Keep detailed records of what you paid for each asset, including commissions and fees. Verify your broker's cost basis calculations, as errors can lead to overpaying taxes. For inherited assets, use the stepped-up basis value, which is typically much lower than the original purchase price.
Walking through a detailed example helps clarify how these calculations actually work. Let's use a realistic scenario involving stock ownership. Suppose you purchase 50 shares of Company ABC stock on June 15, 2023, at $100 per share. You pay a $25 commission. Your total cost is $5,025, making your per-share cost basis $100.50.
Get Your Free Guide to Costco Credit Card Login →
On September 10, 2024, you decide to sell all 50 shares. The current market price is $150 per share, and the broker charges a $25 commission on the sale. Your gross proceeds are $7,500. After subtracting the $25 commission, your net proceeds are $7,475.
Now calculate the capital gain: Net proceeds of $7,475 minus your cost basis of $5,025 equals a capital gain of $2,450. Since you held the shares for more than one year (from June 2023 to September 2024), this qualifies as a long-term capital gain.
At tax time, you report this $2,450 long-term capital gain on Schedule D (Capital Gains and Losses) of your tax return. Assuming your taxable income places you in the 15% long-term capital gains bracket, you would owe $367.50 in capital gains tax on this transaction ($2,450 × 0.15).
Now consider a variation: what if you sold those same shares on December 10, 2023, instead? You held them for less than one year (only about 6 months). The same $2,450 gain would now be a short-term capital gain. If you're in the 24% ordinary income tax bracket, you'd owe $588 in taxes ($2,450 × 0.24)—an extra $220.50 just because you sold too early.
This example illustrates why timing matters. By holding just a few more months, you could save significantly on taxes. It also shows the importance of tracking commissions and calculating net proceeds accurately.
Practical Takeaway: To calculate capital gains, take your net sale proceeds (selling price minus commissions) and subtract your total cost basis (purchase price plus commissions). Determine if it
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.