You pay capital gains tax when you sell an asset for more than you paid for it
Capital gains tax is owed by the person or entity that sold the asset — not the buyer, not a broker, not the government. If you bought stock for $1,000 and sold it for $1,500, you owe tax on that $500 gain. The tax is calculated based on your income, filing status, and how long you held the asset before selling.
The person responsible for paying is whoever owned the asset at the time of sale. If you inherited property and sold it, you pay the tax. If you sold cryptocurrency, you pay it. If a business sells equipment or real estate, the business (or its owners, depending on structure) pays it. The obligation follows ownership, not transaction type.
Key Takeaways
- The seller of an asset owes capital gains tax, calculated on the difference between what they paid and what they received.
- Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
- Your tax rate depends on your total income for the year and your filing status — not on the asset type or sale amount alone.
- You report capital gains on your federal tax return; some states also tax capital gains, while others do not.
- If you sell at a loss, you can use that loss to reduce gains from other sales or, in some cases, reduce ordinary income.
How the tax obligation works by ownership type
If you own the asset individually, you owe the tax. If you own it jointly with a spouse, you typically split the gain and each report half on your return. If you own it through a business entity — a corporation, partnership, LLC, or S-corp — the tax responsibility depends on the entity type. A C-corporation pays tax at the corporate rate; an S-corp or partnership passes the gain through to owners, who pay tax on their share at individual rates.
If you inherit an asset and then sell it, you owe tax only on gains that occurred after you inherited it, not on gains that happened while the previous owner held it. This is called a "stepped-up basis." If you inherited a house worth $300,000 and sold it a year later for $310,000, you owe tax on $10,000, not on all the appreciation that happened before you inherited it.
If you sell an asset as part of a divorce settlement, the rules vary by state and by whether the sale happens before or after the property transfer. Consult a tax professional or family law attorney for your specific situation, as the timing and structure of the sale affect who owes the tax.
Long-term versus short-term: why holding time matters
The length of time you held the asset determines your tax rate. Long-term capital gains — assets held for more than one year — are taxed at preferential rates: 0%, 15%, or 20%, depending on your income. Short-term capital gains — assets held one year or less — are taxed as ordinary income at your regular tax bracket, which can be as high as 37%.
The holding period starts the day after you buy the asset and ends the day you sell it. If you bought stock on January 15 and sold it on January 15 the following year, that is exactly one year, and the gain qualifies as long-term. If you sold it on January 14, it is short-term. This distinction can mean thousands of dollars in tax difference on the same gain.
Some assets have special rules. Real estate held for business use may may have access to for different treatment. Collectibles (art, coins, certain metals) are taxed at a maximum 28% rate even if held long-term. may have access to small business stock can exclude up to 50% of the gain under certain conditions. These exceptions are narrow and have strict requirements.
Your tax bracket determines your rate
Your capital gains tax rate is not set by the asset or the sale amount — it is set by your total income for the year and your filing status. For 2024, the 0% long-term rate applies to single filers with income up to roughly $47,000; the 15% rate applies to income between roughly $47,000 and $518,000; and the 20% rate applies above that. These thresholds change yearly and differ for married filing jointly, head of household, and other statuses.
This means your rate can shift depending on what else you earned that year. If you are usually in the 15% bracket but had a large bonus or sold another asset, you might push into the 20% bracket for part of your gains. Conversely, if you had a low-income year, you might pay 0% on long-term gains. Some people deliberately time large sales across two tax years to stay in a lower bracket.
Short-term gains are always taxed at your ordinary income rate, which is the same rate you pay on wages, interest, and dividends. If you are in the 24% tax bracket, short-term gains are taxed at 24%. There is no preferential rate for short-term gains at any income level.
State and local taxes on capital gains
Federal capital gains tax is only part of the picture. Most states tax capital gains as part of ordinary income, meaning you owe state tax on top of federal tax. A few states — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — have no state income tax at all. Three states — Illinois, Iowa, and Mississippi — exempt capital gains from state tax.
In states that do tax capital gains, the rate is usually your ordinary state income tax rate, which ranges from roughly 1% to 13% depending on the state and your income. California, for example, taxes long-term capital gains at the same rate as ordinary income, with a top rate of 13.3%. New York's top rate is 10.9%. These state taxes are in addition to federal tax, so your total tax on a long-term gain in a high-tax state can exceed 40%.
Some cities also impose local income taxes that apply to capital gains. New York City, for instance, adds a local tax on top of state and federal. If you sell an asset and move to a different state before the tax year ends, the state where you lived when you sold it is generally the one that taxes the gain.
What happens if you sell at a loss
If you sell an asset for less than you paid for it, you have a capital loss. You can use this loss to reduce capital gains from other sales in the same year, dollar for dollar. If you sold one stock for a $5,000 gain and another for a $3,000 loss, you report a net gain of $2,000 and pay tax only on that amount.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income (wages, interest, and other non-investment income). If your losses are larger than $3,000, you can carry the remaining loss forward to future years and use it to offset gains or income in those years. This carryforward has no expiration — you can use it whenever you have gains or sufficient income.
This loss-harvesting strategy is common among investors who want to reduce their tax bill. You can sell a losing investment to lock in the loss, then buy a similar (but not identical) investment to maintain your portfolio position. The IRS has a "wash sale" rule that prevents you from buying the same or substantially identical security within 30 days before or after the sale, but you can buy a different one.
Who does not owe capital gains tax
If you never sell the asset, you owe no capital gains tax, even if it has grown enormously in value. The tax is triggered only by a sale or other taxable event. If you hold stock until you die, your heirs inherit it at the stepped-up basis (the value on the date of your death), and they owe no tax on the appreciation that happened during your lifetime.
Certain sales are exempt or deferred. If you sell a primary residence and meet the requirements — you owned and lived in it for at least two of the last five years — you can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from tax. This exclusion is available once every two years.
If you sell an asset and reinvest the proceeds in a may have access to opportunity zone investment within 180 days, you can defer the capital gains tax. The deferral is temporary, but it allows you to delay paying tax and potentially reduce it if the new investment grows. This is a complex strategy with strict rules and timing requirements.
Frequently Asked Questions
Do I owe capital gains tax if I sell something I inherited?
You owe tax only on gains that occurred after you inherited it. The value on the date of inheritance becomes your "basis," so if you inherited property worth $300,000 and sold it for $310,000, you owe tax on $10,000, not on all the appreciation that happened before you inherited it. This stepped-up basis rule applies to most inherited assets.
What if I sold an asset but have not received the money yet?
You owe tax in the year of the sale, not the year you receive payment. If you sold property in 2024 but will receive installment payments over several years, you report the gain in 2024 and pay tax then, even though you have not received all the money. The installment sale rules allow you to spread the tax liability across years, but the tax is still owed in the year of sale.
Can my spouse owe capital gains tax on an asset I sold?
Not unless you owned it jointly or the asset is part of community property in a community property state. If you owned the asset individually and sold it, only you owe the tax. If you owned it jointly, you each owe tax on your share of the gain, typically 50% each unless you had a different ownership agreement.
Do I have to report capital gains if the amount is small?
Yes. There is no minimum threshold for reporting capital gains. Even a $1 gain must be reported on your tax return. However, if your total income is below the filing threshold for your age and status, you may not be required to file a return at all — but if you do file, you must report all gains.
What if I sold cryptocurrency or an NFT?
The same capital gains rules apply. If you held it for more than one year, it is taxed as a long-term gain. If you held it for one year or less, it is a short-term gain taxed as ordinary income. You owe tax on the difference between what you paid and what you received, regardless of whether the asset is digital or physical.