Capital gains tax is a tax you may owe when you sell something you own for more money than you paid for it. The difference between what you paid and what you sold it for is called a "capital gain." The government taxes this profit. Understanding how capital gains tax works can help you make better decisions about buying and selling investments, real estate, and other valuable items.
Learn About Student Loan Dismissal and Disability Benefits →
Capital gains tax applies to many types of property. If you buy stock for $1,000 and sell it for $1,500, you have a $500 capital gain. If you purchase a rental property for $200,000 and sell it for $250,000, you have a $50,000 capital gain. Even collectibles like art, jewelry, or coins can trigger capital gains tax when you sell them for a profit. The IRS tracks these transactions and expects you to report them on your tax return.
The reason this matters is that capital gains tax can represent a significant portion of what you owe in taxes each year. According to the IRS, capital gains account for a meaningful share of federal tax revenue. In some cases, capital gains tax rates are lower than regular income tax rates, which means understanding the rules can help you plan your finances more effectively.
Not all sales trigger capital gains tax. If you sell something for less than you paid for it, you have a capital loss, which you may be able to use to reduce other taxes you owe. If you inherit property, the value may be "stepped up," which can reduce or eliminate the capital gain when you eventually sell it. These nuances make it worthwhile to learn the basics before you sell investments or property.
Practical Takeaway: Capital gains tax is a tax on profit from selling assets. Before making any major sales of investments, property, or valuable items, consider that you may owe taxes on the profit. Knowing this upfront lets you plan better and avoid surprises at tax time.
The IRS treats capital gains differently depending on how long you owned the asset before selling it. This distinction significantly affects how much tax you may owe. Understanding the difference between short-term and long-term capital gains is one of the most important parts of learning about capital gains tax.
Get Your Free Senior Housing Budget Guide →
Short-term capital gains apply when you own an asset for one year or less before selling it. These gains are taxed at the same rate as ordinary income. If you typically pay 22% federal income tax, your short-term capital gains are also taxed at 22%. If you pay 35% in ordinary income tax, your short-term capital gains are taxed at 35%. This means short-term gains can be taxed heavily, depending on your overall income level.
Long-term capital gains apply when you own an asset for more than one year before selling it. These gains receive preferential tax treatment. Most people pay 0%, 15%, or 20% federal tax on long-term capital gains, depending on their income level. For 2024, long-term capital gains tax rates were 0% for those with lower incomes, 15% for those in the middle income range, and 20% for higher-income individuals. Some states also charge state capital gains tax on top of federal tax.
Here's a practical example: Suppose you buy a stock for $5,000 and sell it three months later for $6,000. You have a $1,000 short-term capital gain, taxed as ordinary income. If you're in the 22% tax bracket, you owe approximately $220 in federal tax. Now suppose you buy a different stock for $5,000 and sell it after 14 months for $6,000. You have a $1,000 long-term capital gain. If you're in the 15% long-term capital gains bracket, you owe approximately $150 in federal tax. The same $1,000 profit results in $70 less tax because you held the asset longer.
This difference encourages long-term investing. Many financial advisors mention that holding assets longer can reduce your tax burden, though this is just one factor to consider when deciding when to sell.
Practical Takeaway: Hold onto investments for more than one year when possible. Long-term capital gains usually have lower tax rates than short-term gains. Before selling an investment that's been in your portfolio less than a year, consider whether waiting a few more months might reduce your tax bill.
Calculating capital gains sounds complicated, but the basic formula is straightforward: take the sale price, subtract the original purchase price (called your "basis"), and the result is your capital gain or loss. Accurately tracking this information is essential because the IRS expects you to report these calculations correctly on your tax return.
Learn About Tax-Free Gift Rules for Children →
Your basis in an asset is typically what you paid for it, including any fees or commissions. If you buy 100 shares of stock at $20 per share and pay a $10 commission, your total basis is $2,010 ($20 × 100 + $10 commission). When you sell those shares for $25 per share and pay a $10 commission, your sale proceeds are $2,490 ($25 × 100 - $10 commission). Your capital gain is $480 ($2,490 - $2,010).
For real estate, the calculation includes similar principles but also accounts for improvements. If you buy a house for $300,000 and later spend $50,000 on a new roof and updated kitchen, your basis becomes $350,000. When you sell the house for $450,000, your capital gain is $100,000 ($450,000 - $350,000). However, if you lived in the house as your primary residence, you may be able to exclude up to $250,000 of the gain (or $500,000 if married filing jointly) from taxation under specific IRS rules.
Tracking basis matters even more when you buy the same stock or fund multiple times at different prices. If you buy 50 shares of a mutual fund at $10 per share and later buy 50 more shares at $15 per share, you have two different cost bases. When you sell some shares, the IRS allows you to choose which shares you're selling. Using the "specific identification" method, you can sell the higher-cost shares first to minimize your capital gain. Some people use "first-in, first-out" (FIFO) instead, selling the shares they bought first. The choice affects your tax bill, so keeping detailed records matters.
Many investment companies provide tax statements in January that show your basis and gains or losses for the previous year. These documents, called Form 1099-B for stocks and Form 1099-S for real estate, help verify your calculations. The IRS receives copies of these forms too, so your reported numbers should match.
Practical Takeaway: Save all receipts and purchase confirmations for investments and property. Track the exact purchase price, any fees paid, and the sale price. This information is what you need to calculate capital gains correctly. If you bought the same investment at different times, note each purchase separately so you can choose which shares to sell strategically.
Capital losses occur when you sell an asset for less than you paid for it. While losses feel bad, they provide a tax benefit. You can use capital losses to reduce the capital gains tax you owe. This concept, sometimes called "tax-loss harvesting," allows investors to minimize their overall tax burden by strategically selling losing positions.
Learn About Tax-Free Weekend Shopping Dates →
The basic rule is that capital losses can offset capital gains dollar for dollar. If you have $5,000 in capital gains and $3,000 in capital losses, you report only $2,000 in net capital gains. This means you owe taxes on $2,000 instead of $5,000. The tax savings depend on your tax bracket, but in a 15% long-term capital gains bracket, reducing your gains by $3,000 saves you $450 in federal taxes.
If your capital losses exceed your capital gains in a given year, you can use up to $3,000 of the excess loss to reduce your ordinary income. This is significant because ordinary income is often taxed at higher rates than capital gains. If you have $10,000 in capital losses and only $4,000 in capital gains, you can use $3,000 of the remaining $6,
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.