Free Guide to Understanding Capital Gains Tax
What Capital Gains Tax Is and How It Works Capital gains tax is a tax on the profit you make when you sell an investment or asset for more than you paid for...
What Capital Gains Tax Is and How It Works
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 something like stocks, real estate, or cryptocurrency and later sell it at a higher price, that profit is called a capital gain. The government taxes this profit, and the amount depends on how long you held the asset and how much profit you made.
The Internal Revenue Service (IRS) treats capital gains differently from regular income you earn from a job or business. This distinction matters because the tax rates are often lower for capital gains than they are for ordinary income. For example, if you earn $50,000 from a salary, that's taxed as ordinary income. But if you earn $50,000 from selling stocks you owned for several years, it may be taxed at a lower rate as a long-term capital gain.
Capital gains apply to many types of assets. Real estate is a common example—if you buy a house for $200,000 and sell it later for $250,000, you have a $50,000 gain. Stocks work the same way: buy at $100 per share, sell at $150 per share, and you have a $50 gain per share. Other assets that generate capital gains include bonds, mutual funds, collectibles, and even digital assets like cryptocurrency.
There are also capital losses, which occur when you sell an asset for less than you paid for it. The IRS allows you to use capital losses to offset capital gains, which can reduce your overall tax burden. This is one reason many investors track their transactions carefully—they can strategically use losses to balance out gains.
Practical takeaway: Before selling any investment or asset, calculate what your profit or loss will be. This helps you understand whether you'll owe capital gains tax and approximately how much. Keep records of your original purchase price and sale price for every transaction.
Short-Term vs. Long-Term Capital Gains
The IRS divides capital gains into two categories based on how long you owned the asset before selling it. This distinction significantly affects the tax rate you'll pay. Understanding the difference between short-term and long-term capital gains is one of the most important parts of tax planning for investors.
Short-term capital gains apply when you sell an asset you've owned for one year or less. The IRS taxes short-term gains at your ordinary income tax rate, which ranges from 10% to 37% depending on your income level in 2024. If you're in the 24% tax bracket, short-term gains are taxed at 24%. This rate is often significantly higher than the long-term capital gains rate, which is why the holding period matters so much.
Long-term capital gains apply when you sell an asset you've owned for more than one year. These gains receive preferential tax treatment with lower rates: 0%, 15%, or 20%, depending on your income level. For 2024, the 0% rate applies to lower-income individuals, the 15% rate applies to most middle-income taxpayers, and the 20% rate applies to higher-income earners. This means holding an asset for just over one year can result in significantly lower taxes.
Here's a concrete example: Suppose you buy a stock for $1,000 and sell it eight months later for $1,500, making a $500 gain. If you're in the 24% tax bracket, you owe $120 in taxes (24% of $500). Now suppose you hold that same stock for 13 months and sell it for $1,500. If you're eligible for the 15% long-term rate, you only owe $75 in taxes (15% of $500). By holding the stock slightly longer, you save $45 on this single transaction.
The one-year holding period is measured from the date you purchase the asset to the date you sell it. If you buy stock on June 15, 2024, the one-year mark is June 15, 2025. Selling on June 14, 2025, is considered short-term. Selling on June 15, 2025, or later is considered long-term. Many investors plan their sales strategically around this date to capture long-term rates.
Practical takeaway: Before selling an investment that's close to the one-year mark, calculate what taxes you'll owe at both the short-term and long-term rates. Sometimes waiting a few weeks or months can save you hundreds or thousands of dollars in taxes. Mark the one-year anniversary date on your calendar for each investment you own.
Capital Gains Tax Rates for 2024
Tax rates change annually, and understanding the current rates helps you estimate your tax liability. For 2024, the long-term capital gains rates are 0%, 15%, and 20%, but which rate applies depends on your filing status and total taxable income. The income thresholds that determine your rate are adjusted each year for inflation.
For single filers in 2024, the 0% long-term capital gains rate applies if your taxable income is $47,025 or less. The 15% rate applies to taxable income between $47,025 and $518,900. The 20% rate applies to taxable income above $518,900. These are the ranges for long-term gains specifically—short-term gains are taxed using the ordinary income brackets, which are higher.
For married couples filing jointly, the income thresholds are higher. The 0% rate applies to taxable income of $94,050 or less. The 15% rate applies between $94,050 and $583,750. The 20% rate applies above $583,750. Heads of household have different thresholds as well: the 0% rate applies to income of $63,000 or less, the 15% rate applies between $63,000 and $551,350, and the 20% rate applies above $551,350.
It's important to understand that these thresholds apply to your total taxable income, not just your capital gains. If you earn $40,000 from work and have $20,000 in long-term capital gains, your total taxable income is $60,000 (before deductions). For a single filer, part of that $20,000 in gains may be taxed at 0% (the portion that keeps you below $47,025) and part may be taxed at 15% (the portion above $47,025). This is called "stacking" and can significantly affect your tax bill.
Certain types of capital gains have different rules. Net investment income tax adds an additional 3.8% tax on capital gains for high-income earners. In 2024, this applies to single filers with modified adjusted gross income over $200,000 and married filers over $250,000. Some assets like collectibles and small business stock have preferential rates of up to 28% and 18% respectively, which are higher than the standard long-term rates but still lower than short-term rates.
Practical takeaway: Use an online tax calculator or spreadsheet to estimate your 2024 taxable income and see which long-term capital gains rate bracket you fall into. Then, when considering selling investments, you'll know approximately what tax rate will apply. Remember that these rates change each year, so check the IRS website annually for updated thresholds.
How to Calculate Your Capital Gain or Loss
Calculating your capital gain or loss is straightforward but requires accurate records of your purchase and sale prices. The basic formula is: Sale Price minus Purchase Price equals Capital Gain (or Loss if the number is negative). However, there are additional costs and adjustments that can affect this calculation.
Start with the sale price—the total amount you received from selling the asset. If you sold 100 shares of stock at $50 per share, your sale price is $5,000. From this, subtract your basis, which is typically your original purchase price. If you bought those 100 shares at $30 per share, your basis is $3,000. Your capital gain is $5,000 minus $3,000, which equals $2,000.
But basis isn't always just the purchase price. Transaction costs matter. Commissions you paid to buy the asset should be added to your basis, reducing your gain. If you paid a $50 commission to buy the stock, your
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides →