Capital gains tax is calculated on your profit from selling an asset: Capital Gain = Sale Price − Purchase Price (cost basis). Assets held over one year qualify for long-term rates of 0%, 15%, or 20% depending on your income; assets held one year or less are taxed at ordinary income rates (10%–37%). For example, selling stock for $15,000 that you bought for $10,000 after holding 14 months yields a $5,000 long-term gain — taxed at 15% for most middle-income filers, resulting in $750 owed.
Capital gains taxes are the tax you pay on profit from selling assets — stocks, bonds, real estate, collectibles, or any other appreciated property. The rate you pay depends primarily on how long you held the asset and your total taxable income, and the difference between getting this right and getting it wrong can easily be $5,000 to $50,000 on a single transaction. Understanding the holding period rules, the rate schedules, how gains stack on top of your ordinary income, and the additional Medicare tax for high earners lets you make informed decisions about timing, selling strategies, and tax planning rather than discovering the bill after the fact.
Real Estate Capital Gains: The Primary Residence Exclusion
Homeowners who have owned and used their home as their primary residence for at least 2 of the last 5 years before sale can exclude up to $250,000 in capital gains ($500,000 for married filing jointly) from taxable income. This exclusion is available once every two years.
A couple who bought their home in 2015 for $380,000 and sells in 2024 for $820,000: gain = $440,000. With $500,000 married exclusion: taxable gain = $440,000 - $500,000 = $0. No capital gains tax owed. But if the gain had been $650,000: taxable gain = $650,000 - $500,000 = $150,000, taxed at the applicable long-term rate. Improvements made to the home (documented with receipts) increase the cost basis, reducing the taxable gain. A $20,000 kitchen renovation adds to basis, reducing taxable gain dollar-for-dollar.