Property that has gone up in value is taxed only when you sell, exchange, or otherwise dispose of it, and the rate you pay depends on how long you held it, what kind of asset it is, and how the transfer happens. Watching a stock or a rental property climb in value creates no tax bill on its own. The unrealized gain sits untouched until a sale converts it into a taxable event. Once you sell, federal law treats the profit as a capital gain, and the rules that decide how much you owe run from favorable (long-term rates, the primary residence exclusion, stepped-up basis at death) to punishing (short-term ordinary rates, a 28% ceiling on collectibles, 25% depreciation recapture on real estate).
Figuring Out the Gain
Every tax calculation starts with your cost basis: what you paid for the property, plus acquisition costs like commissions, transfer fees, and legal expenses.1Office of the Law Revision Counsel. 26 USC 1012 – Basis of Property-Cost That number then shifts over time into your adjusted basis. Capital improvements (a new roof, a finished basement) push it up. Depreciation deductions on rental property or business equipment push it down, which enlarges the taxable gain when you eventually sell.
When you sell, the taxable gain is the amount realized minus your adjusted basis.2Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss The amount realized is the gross sale price minus selling costs such as broker commissions and closing fees. Sell an investment property for $400,000 gross, pay $20,000 in selling costs, and start from an adjusted basis of $250,000, and your taxable gain is $130,000. You report capital gains and losses on Form 8949, which feeds into Schedule D of your Form 1040.3Internal Revenue Service. Instructions for Form 8949
Short-Term vs. Long-Term Rates
The single biggest factor in how much you owe is your holding period. The IRS draws a hard line at one year.
An asset held for one year or less produces a short-term capital gain, taxed at your ordinary income rate.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses For someone in the 32% or 37% bracket, that is a steep bite, and there is no preferential treatment. The gain just stacks on top of your wages.
Hold the asset more than one year and the profit is a long-term capital gain, taxed at 0%, 15%, or 20% depending on your taxable income and filing status.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses The 2026 income thresholds, set by Revenue Procedure 2025-32, are:5Internal Revenue Service. Revenue Procedure 2025-32
- 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
- 15% rate: taxable income from $49,451 to $545,500 (single), $98,901 to $613,700 (married filing jointly), or $66,201 to $579,600 (head of household).
- 20% rate: taxable income above $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
Most sellers land in the 15% bracket. The 0% rate is genuinely useful in a low-income year, such as early retirement, where a well-timed sale can move appreciated stock off the books tax-free.
Assets That Get Higher Rates
Two categories break out of the standard long-term brackets.
Collectibles
Long-term gains on collectibles, including coins, art, antiques, stamps, and precious metals, are taxed at a maximum rate of 28%.6Office of the Law Revision Counsel. 26 US Code 1 – Tax Imposed If your ordinary rate is below 28%, you pay the lower rate. Anyone in a higher bracket pays 28% instead of 15% or 20%. This surprises people selling inherited jewelry or a coin collection who expected the usual capital gains treatment.
Depreciation Recapture on Real Estate
When you sell rental or commercial property on which you claimed depreciation, the IRS claws back that tax benefit at a 25% rate.6Office of the Law Revision Counsel. 26 US Code 1 – Tax Imposed The portion of your gain attributable to prior depreciation deductions is called unrecaptured Section 1250 gain, and it is taxed at that 25% rate; any gain above the depreciation amount is taxed at the regular long-term rates.7Internal Revenue Service. Publication 544 – Sales and Other Dispositions of Assets If you owned a rental for a decade and claimed $80,000 in depreciation, that $80,000 slice of the sale is taxed at 25%, even if the rest of the gain qualifies for 15%.
The 3.8% Net Investment Income Tax
Higher earners owe an additional 3.8% on net investment income, capital gains included. The surtax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds:8Internal Revenue Service. Topic No. 559, Net Investment Income Tax
- $200,000 for single filers or head of household
- $250,000 for married filing jointly
- $125,000 for married filing separately
These thresholds are not indexed for inflation, so more taxpayers cross them each year. A married couple selling a rental for a $300,000 gain can face an effective federal rate of 23.8% on part of that gain (20% capital gains plus 3.8% NIIT), before any state tax.
Selling Your Primary Home
A home sale is the one situation where most people pocket a large gain completely tax-free. Single homeowners can exclude up to $250,000 of gain, and married couples filing jointly can exclude up to $500,000.9Office of the Law Revision Counsel. 26 US Code 121 – Exclusion of Gain From Sale of Principal Residence
Two tests must be met. You need to have owned the home for at least two of the five years before the sale, and used it as your primary residence for at least two of those same five years. The two years do not have to be consecutive, and you can only claim the exclusion once every two years. For the $500,000 joint exclusion, both spouses must meet the use test, though only one has to meet the ownership test. Any gain above the exclusion is taxed at long-term capital gains rates.
The exclusion applies to a primary residence only. Second homes, vacation properties, and pure investment real estate do not qualify.
Inheriting Appreciated Property
Inheriting property carries a major tax advantage. The heir’s basis resets to the fair market value on the date the original owner died, wiping out all the appreciation that built up during the decedent’s lifetime.10Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent This is the stepped-up basis rule. If a parent bought stock for $10,000 and it is worth $1,000,000 at death, the heir’s basis becomes $1,000,000. Sell it immediately and the capital gain is zero. Decades of appreciation vanish from the tax rolls.
The default valuation date is the date of death, though an estate executor can elect an alternate date six months later if it lowers the estate’s total tax liability.11Internal Revenue Service. Gifts and Inheritances The step also runs downward. If an asset lost value between purchase and death, the heir’s basis steps down to that lower fair market value, and there is no way to claim the higher original cost.
Receiving Property as a Gift
Gifts work in the opposite direction from inheritances. When you receive appreciated property as a gift, your basis is the same as the donor’s adjusted basis at the time of the gift.12Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust This is called carryover basis, and it means you inherit the donor’s built-in tax bill along with the asset.
If a parent gives you stock they bought for $1,000 that is now worth $10,000, your basis is $1,000. Sell the next day and you report $9,000 in capital gain, even though you never saw a dollar of that appreciation yourself.13Internal Revenue Service. Property (Basis, Sale of Home, Etc.) Your holding period does include the donor’s, so if the donor held for more than a year, you qualify for long-term rates even if you sell right away.
There is a special wrinkle for property that has lost value. If the donor’s basis is higher than the fair market value at the time of the gift, and you later sell at a loss, your basis for measuring that loss is the lower fair market value, not the donor’s original cost.12Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust Donors cannot shift unrealized losses to recipients.
Donating Appreciated Property to Charity
Giving appreciated assets directly to a qualified charity is one of the cleanest ways to avoid the tax entirely. Donate long-term capital gain property (held more than one year) and you can generally deduct the full fair market value while paying no capital gains tax on the appreciation.14Internal Revenue Service. Publication 526 – Charitable Contributions Selling first and donating the cash triggers the gain; transferring the shares directly does not.
The deduction for donating capital gain property to a public charity is capped at 30% of your adjusted gross income for the year, with a five-year carryforward for any excess.15Office of the Law Revision Counsel. 26 USC 170 – Charitable, Etc., Contributions and Gifts You can elect a higher 50% AGI limit, but doing so reduces the deduction to your cost basis rather than fair market value.14Internal Revenue Service. Publication 526 – Charitable Contributions For someone holding low-basis stock who was planning a charitable gift anyway, this is one of the few genuine tax freebies in the code.
1031 Exchanges for Investment Real Estate
Real estate investors can defer capital gains tax indefinitely by swapping one investment property for another under Section 1031.16Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Since the 2017 Tax Cuts and Jobs Act, these exchanges are limited to real property used in a trade or business or held for investment. Personal residences, vacation homes, and property held primarily for resale do not qualify.
The deadlines are unforgiving. You have 45 calendar days from the sale of the original property to identify potential replacements, and 180 calendar days to close on the new purchase. These windows cannot be extended. A qualified intermediary must hold the proceeds throughout; if you touch the money at any point, the exchange fails.
To defer the entire gain, the replacement property must be equal to or greater in value than what you sold, and all proceeds must be reinvested. Any cash left over, known as boot, is taxable. Differences in mortgage debt between the old and new properties can also produce taxable boot. Your basis carries over to the replacement property, which means the tax is deferred until an eventual sale without exchange. Some investors chain 1031 exchanges for decades, then die holding the final property, letting the stepped-up basis erase the accumulated liability.
Using Capital Losses to Offset Gains
Capital losses offset capital gains dollar for dollar. Sell one stock for a $50,000 gain and another for a $30,000 loss in the same year, and you pay tax on only $20,000. If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately) and carry the rest forward to future years.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Short-term losses offset short-term gains first, and long-term losses offset long-term gains first; any excess crosses over. Watch the wash-sale rule: repurchase the same or substantially identical security within 30 days before or after the sale and the loss is disallowed for tax purposes. If you are sitting on a large realized gain late in the year, a look through your portfolio for positions trading below basis can meaningfully cut the bill.