Skip to main contentEstimate your 2026 federal tax on stock, crypto, and property sales. Long-term gains are taxed at 0%, 15%, or 20% depending on income; short-term gains are taxed as ordinary income.
Quick answer: Your capital gains tax depends on how long you held the asset and how much you earn. Long-term gains (held over one year) are taxed at 0%, 15%, or 20% — for 2026 the 0% rate covers taxable income up to $49,450 single or $98,900 married filing jointly, and the 20% rate begins above $545,500 single or $613,700 joint. Short-term gains (held one year or less) are taxed as ordinary income at 10% to 37%. A 3.8% Net Investment Income Tax can stack on top above $200,000 single or $250,000 joint. Use the calculator above to estimate federal tax on stock, crypto, or property sales.
A capital gain is the profit when you sell an asset for more than you paid for it. Your basis is generally what you paid plus certain costs of acquisition, and the gain is the sale price minus that basis. The tax applies to the gain, not the proceeds — selling $50,000 of stock you bought for $40,000 creates a $10,000 gain, and only that $10,000 is taxed. If you sell for less than basis, you have a capital loss, which the tax code lets you use in specific ways described below.
Two variables drive the entire calculation. The first is your holding period: assets held more than one year qualify for long-term rates, while assets held one year or less are short-term and taxed as ordinary income. The second is your taxable income, because the long-term rate depends on where your income falls relative to the thresholds in the table below. Add the 3.8% Net Investment Income Tax if your modified adjusted gross income clears its fixed thresholds, and this calculator produces your estimated federal liability.
The 0%, 15%, and 20% rates apply to your taxable income, not to the gain in isolation, so the same gain can fall across two brackets. These are the 2026 figures from the IRS inflation adjustments (Rev. Proc. 2025-32).
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,451–$545,500 | Over $545,500 |
| Married Filing Jointly | Up to $98,900 | $98,901–$613,700 | Over $613,700 |
| Head of Household | Up to $66,200 | $66,201–$579,600 | Over $579,600 |
Because these thresholds sit on top of your ordinary income, a raise or a large short-term gain can push part of your long-term gain into the 15% or 20% bracket even though the gain itself did not change. This stacking is why the calculator asks for your total income excluding the gain — it needs your position on the bracket ladder to apply the right rate.
Assets held one year or less get no preferential treatment. A short-term gain stacks on top of your wages and other income and is taxed at your normal marginal rate, from 10% up to 37% for 2026. For someone in the 24% bracket, a short-term gain costs 24 cents on the dollar before any state tax or surtax; the identical gain held one more day past the one-year mark would cost 15%. The holding-period difference is the single largest lever in capital gains planning.
The clock runs from the day after you acquire the asset through the sale date, so holding for "one year and one day" is the familiar shorthand for qualifying as long-term. This matters most for active traders and for anyone deciding whether to sell a concentrated position near a year boundary. Realized short-term losses work the same way in reverse, offsetting short-term gains first before touching long-term gains.
High earners may owe an additional 3.8% Net Investment Income Tax (NIIT) on investment income. The tax applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. Those thresholds are fixed in the statute and are not indexed for inflation, so more taxpayers cross them over time as incomes rise.
Net investment income includes capital gains, interest, dividends, rental income, and most passive business income, but it excludes wages, self-employment income, and Social Security. A taxpayer with $180,000 of wages and $40,000 of capital gains has MAGI of $220,000, which is $20,000 over the single threshold; the NIIT hits the lesser of the $40,000 gain or the $20,000 excess, so 3.8% applies to $20,000. The calculator layers this on automatically once your income clears the threshold.
Almost any asset you sell at a profit can produce a capital gain, but the tax treatment varies by asset class. Stocks, bonds, and mutual funds are the most common and follow the standard short-term and long-term rules. Real estate other than your primary home is taxed on the gain, often with additional depreciation recapture rules for rental property. Collectibles such as art, coins, and precious metals held long-term face a maximum 28% rate rather than 20%, and short-term gains on certain small-business stock can also be taxed at the 28% collectibles rate.
Assets you inherit usually receive a stepped-up basis equal to fair market value at the date of death, which can eliminate gain accumulated during the original owner's lifetime — a major reason unrealized gains often vanish at death. Gifts carry over the donor's basis instead. These basis rules explain why the same asset can produce wildly different taxable gains for two different owners.
The IRS treats cryptocurrency as property, not currency, so every disposal is a taxable event. Spending Bitcoin to buy something, swapping one coin for another, or selling for dollars each trigger a gain or loss calculation based on your basis at acquisition. Receiving crypto as payment, mining it, or earning staking rewards generally creates ordinary income at the fair market value when received, which then becomes your basis when you later sell.
Because each trade can be a separate realization event, active crypto traders can generate dozens or hundreds of taxable events in a year, all subject to the same short-term and long-term rules. Holding periods apply exactly as they do to stocks — over one year qualifies as long-term. Tax software and exchange cost-basis reports help, but the reporting burden falls on the taxpayer, and the IRS has made digital assets a stated enforcement priority on the Form 1040 itself.
Your primary residence is treated generously. Under Section 121, you can exclude up to $250,000 of gain from the sale of your main home, or $500,000 if married filing jointly, provided you owned and lived in the home for at least two of the five years before the sale. Gain above the exclusion is taxed as capital gain — long-term if you held the home over a year, which is typical. This is why a long-time homeowner often pays little or no tax on a large sale profit.
The exclusion is per person and per two-year period, so it can be claimed again after meeting the residency test again on a later sale. Special cases — a partial exclusion for a job-related move, or different rules for a deceased spouse — are covered in IRS Publication 523. Rental property or a home used partly for business is handled differently, with depreciation recapture applying to the portion attributable to non-residential use.
Losses are valuable but capped in how fast you can use them. First, capital losses offset capital gains of the same type — short-term losses cancel short-term gains first, then long-term losses cancel long-term gains. Any remaining net loss can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately), and unused losses carry forward indefinitely to future years. There is no expiration, which makes harvested losses worth tracking carefully.
The wash sale rule blocks the most obvious tax-loss trick: if you sell stock at a loss and buy a "substantially identical" security within 30 days before or 30 days after the sale, the loss is disallowed and added to your replacement position's basis. The rule prevents selling a losing position solely for the deduction while keeping continuous market exposure. Deliberate tax-loss harvesting — realizing losses in taxable accounts to offset gains — remains one of the few reliable annual tax-reduction moves, as long as you respect the wash sale window.
Most states tax capital gains as ordinary income, so your total bill is federal plus state. A handful of states levy no income tax at all — Texas, Florida, Nevada, Washington, and others — which means long-term gains there face only the federal rate. A few states provide preferential treatment: New Hampshire taxes only interest and dividends, and several states exempt a portion of retirement or investment income. Because the state layer can add several percentage points, a full estimate should combine this calculator with the state income tax calculator for your state.
The practical planning point is that selling an asset is a location decision as well as a timing decision. A large realization in a no-income-tax state costs meaningfully less than the identical sale in a high-tax state, which is one reason portfolio moves often accompany relocations — subject to the residency rules that require a genuine change of domicile, not merely a mailing address.
Four strategies cover most of the legitimate reduction available. Hold longer than one year to move from ordinary rates to the 0/15/20% schedule, the largest single lever. Harvest losses against gains within the wash-sale limits to net down the taxable amount. Time the realization — bunch a large sale into a low-income year, such as early retirement before Social Security or a sabbatical, to land in the 0% bracket. And use tax-advantaged accounts, where trades inside an IRA or 401(k) trigger no current capital gains tax at all.
For concentrated positions, additional tools exist — charitable donation of appreciated stock avoids the gain entirely while yielding a deduction, and gifting or estate planning can move the gain out of your taxable picture. Each has trade-offs and limits, so model the numbers with the calculator above before committing, and confirm the treatment with a tax professional for large or complex sales.
The 2026 long-term capital gains rates are 0%, 15%, and 20%. The 0% rate applies to taxable income up to $49,450 single or $98,900 married filing jointly, the 15% rate runs to $545,500 single or $613,700 joint, and the 20% rate applies above those points. A 3.8% Net Investment Income Tax may also apply.
Short-term gains apply to assets held one year or less and are taxed as ordinary income at 10% to 37%. Long-term gains apply to assets held more than one year and use the preferential 0%, 15%, or 20% rates. Holding an asset one year and one day is often the difference between a 24% and a 15% cost.
The NIIT applies to the lesser of your net investment income or your modified adjusted gross income above $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately. Those thresholds are fixed and not indexed for inflation, so the tax reaches more taxpayers each year as incomes rise.
Under Section 121 you can exclude up to $250,000 of gain on your main home, or $500,000 if married filing jointly, provided you owned and lived there for two of the five years before the sale. Gain above the exclusion is taxed as capital gain, and rental or business use of the property is treated separately.
Capital losses offset capital gains first, then up to $3,000 of ordinary income per year ($1,500 if married filing separately). Any unused loss carries forward to future years without expiring. The wash sale rule disallows a loss if you buy a substantially identical security within 30 days before or after the sale.
Yes. The IRS treats crypto as property, so selling, spending, or trading it realizes a taxable gain or loss based on your acquisition basis. Holding over one year qualifies for long-term rates. Mining, staking, and payment rewards generally create ordinary income at fair market value when received, which becomes your later basis.